From: Andrew Morton <akpm@osdl.org>
To: Georg Schild <dangertools@gmx.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.6.10-rc[2|3] protection fault on /proc/devices
Date: Mon, 6 Dec 2004 23:40:44 -0800 [thread overview]
Message-ID: <20041206234044.51667e94.akpm@osdl.org> (raw)
In-Reply-To: <41B4E70F.8040306@gmx.net>
Georg Schild <dangertools@gmx.net> wrote:
>
> Since 2.6.10-rc2 I am having problems accessing /proc/devices. On
> startup some init-skripts access this node and print out a protection
> fault. i am having this on pcmcia and swap startup. My system is an
> amd64 @3000+ in an Acer Aspire 1501Lmi at 64bit mode running gentoo.
> .config is the same as on 2.6.10-rc1 which works good. cat on
> /proc/devices gives the same problems. The kernel has just a patch for
> wbsd (builtin mmc-cardreader) from Pierre Ossman in use, everything else
> is vanilla. Does anyone know of this issue and perhaps on how to solve this?
>
> Regards
>
> Georg Schild
>
> > kjournald starting. Commit interval 5 seconds
> > EXT3 FS on hda10, internal journal
> > EXT3-fs: mounted filesystem with ordered data mode.
> > kjournald starting. Commit interval 5 seconds
> > EXT3 FS on hda11, internal journal
> > EXT3-fs: mounted filesystem with ordered data mode.
> > general protection fault: 0000 [1]
> > CPU 0
> > Modules linked in:
> > Pid: 5693, comm: grep Not tainted 2.6.10-rc3
> > RIP: 0010:[<ffffffff8028c5b5>] <ffffffff8028c5b5>{get_blkdev_list+85}
> > RSP: 0018:000001001eec1e48 EFLAGS: 00010202
> > RAX: 000000000000000c RBX: 6d736f2d636f7270 RCX: 0000000000000000
> > RDX: ffffffff804332e2 RSI: fffffffffffffffe RDI: ffffffff804332e2
> > RBP: 0000000000000048 R08: 00000000ffffffff R09: 0000000000000009
> > R10: 00000000ffffffff R11: 0000000000000000 R12: 000001001f248139
> > R13: 000000000000000b R14: 0000000000000c00 R15: 0000000000000000
> > FS: 0000000000000000(0000) GS:ffffffff805f71c0(0000) knlGS:0000000000000000
> > CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
> > CR2: 0000002a95725f60 CR3: 0000000000101000 CR4: 00000000000006e0
> > Process grep (pid: 5693, threadinfo 000001001eec0000, task 000001001e80f0b0)
> > Stack: 0000000000000003 0000000000000139 000001001eec1ed8 000001001f248000
> > 000001001eec1ed4 ffffffff80186903 000001001ec4be80 0000000000000000
> > 000001001f248000 0000000000000c00
> > Call Trace:<ffffffff80186903>{devices_read_proc+67} <ffffffff801841ba>{proc_file_read+234}
> > <ffffffff80158ac7>{vfs_read+199} <ffffffff80158d73>{sys_read+83}
> > <ffffffff8010e12a>{system_call+126}
> >
> > Code: 8b 53 08 48 8d 4b 0c 48 63 fd 4c 01 e7 48 c7 c6 db 32 43 80
How odd. All I can think is that something has registered a zillion
devices and get_blkdev_list() has run off the /proc page. But then, it
should have oopsed in sprintf()..
Still. Please send a copy of your /proc/devices from 2.6.10-rc1 and also
apply this:
--- 25/drivers/block/genhd.c~a 2004-12-06 23:31:13.677476528 -0800
+++ 25-akpm/drivers/block/genhd.c 2004-12-06 23:31:30.539913048 -0800
@@ -48,9 +48,11 @@ int get_blkdev_list(char *p)
down_read(&block_subsys.rwsem);
for (i = 0; i < ARRAY_SIZE(major_names); i++) {
- for (n = major_names[i]; n; n = n->next)
- len += sprintf(p+len, "%3d %s\n",
+ for (n = major_names[i]; n; n = n->next) {
+ if (len < PAGE_SIZE / 2)
+ len += sprintf(p+len, "%3d %s\n",
n->major, n->name);
+ }
}
up_read(&block_subsys.rwsem);
_
to 2.6.10-rc3 and see if that fixes it. If so, please send the
/proc/devices content from this kernel.
Beyond that, perhaps something scribbled on the data structures in there.
Setting CONFIG_SLAB_DEBUG and/or CONFIG_DEBUG_PAGEALLOC might turn
something up.
next prev parent reply other threads:[~2004-12-07 7:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-06 23:11 2.6.10-rc[2|3] protection fault on /proc/devices Georg Schild
2004-12-07 7:40 ` Andrew Morton [this message]
2004-12-07 7:50 ` Georg Schild
2004-12-07 8:31 ` Georg Schild
2004-12-07 9:05 ` Andrew Morton
2004-12-07 9:02 ` Georg Schild
2004-12-07 15:29 ` George Alexandru Dragoi
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=20041206234044.51667e94.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=dangertools@gmx.net \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.