Messages in this thread Patch in this message | | | Date | Mon, 29 Dec 2003 22:30:36 -0500 | From | "Murray J. Root" <> | Subject | Re: 2.6.0 kernel panic |
| |
On Sat, Dec 27, 2003 at 09:07:59PM -0500, Murray J. Root wrote: > P4 2GHz > ASUS P4S533 mainboard > 1G PC2700 RAM > GF2 GTS video using nv driver > 2.6.0 compiled with gcc 3.3.2 > > At boot kernel gets: > INIT: cannot execute "/etc/rc.d/rc.sysinit" > then panic. > > Same configuration for 2.6.0-test11 and earlier works fine. >
To answer myself, I did a diff between 2.6.0-test11 and 2.6.0. Found this:
diff -ru RAW260T11/mm/mmap.c RAW260/mm/mmap.c --- RAW260T11/mm/mmap.c 2003-11-26 15:44:31.000000000 -0500 +++ RAW260/mm/mmap.c 2003-12-17 21:58:58.000000000 -0500 @@ -19,6 +19,7 @@ #include <linux/hugetlb.h> #include <linux/profile.h> #include <linux/module.h> +#include <linux/mount.h> #include <asm/uaccess.h> #include <asm/pgalloc.h> @@ -474,8 +475,13 @@ struct rb_node ** rb_link, * rb_parent; unsigned long charged = 0; - if (file && (!file->f_op || !file->f_op->mmap)) - return -ENODEV; + if (file) { + if (!file->f_op || !file->f_op->mmap) + return -ENODEV; + + if ((prot & PROT_EXEC) && (file->f_vfsmnt->mnt_flags & MNT_NOEXEC)) + return -EPERM; + } if (!len) return addr; I undid the changes and it boots fine. Don't know if it makes a difference but I don't use an initrd.
-- Murray J. Root - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |