public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Murray J. Root" <murrayr@brain.org>
To: linux-kernel@vger.kernel.org
Subject: Re: 2.6.0 kernel panic
Date: Mon, 29 Dec 2003 22:30:36 -0500	[thread overview]
Message-ID: <20031230033036.GA2158@Master.Wizards> (raw)
In-Reply-To: <20031228020759.GA2158@Master.Wizards>

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

  parent reply	other threads:[~2003-12-30  3:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-28  2:07 2.6.0 kernel panic Murray J. Root
2003-12-28 10:58 ` Han Boetes
2003-12-30  3:30 ` Murray J. Root [this message]
2003-12-30  6:42   ` Linus Torvalds
2003-12-30  7:07     ` Murray J. Root
2003-12-31  3:53     ` Isaac Claymore

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031230033036.GA2158@Master.Wizards \
    --to=murrayr@brain.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox