2002-10-02 18:30:34

by Peter L Jones

[permalink] [raw]
Subject: kernel BUG at slab.c:1292

Hi all,

I asked on #kernelnewbies what I should do with this and was told to check the
mailing list archive at http://marc.theaimsgroup.com/ - which I've done.

The following was produced during boot. I _looks_ like it was during a
modprobe, but I'm not entirely sure what - it could be that binfmt_misc but I
couldn't find any docs in the tree for BUG() tracebacks (and I probably
wouldn't have understood the source).

I'm not subscribed to the list: if anyone wants more info, drop me private
mail and I'll see what I can do.

Hope this helps,

Thanks,

-- Peter


Oct 2 16:59:40 advent kernel: ------------[ cut here ]------------
Oct 2 16:59:40 advent kernel: kernel BUG at slab.c:1292!
Oct 2 16:59:40 advent kernel: invalid operand: 0000
Oct 2 16:59:40 advent kernel: vfat fat binfmt_misc
Oct 2 16:59:40 advent kernel: CPU: 0
Oct 2 16:59:40 advent kernel: EIP: 0060:[kmem_cache_alloc+346/464] Not
tainted
Oct 2 16:59:40 advent kernel: EFLAGS: 00010012
Oct 2 16:59:40 advent kernel: EIP is at kmem_cache_alloc+0x15a/0x1d0
Oct 2 16:59:40 advent kernel: eax: ca342fff ebx: ca342000 ecx: 00000001
edx: 00000001
Oct 2 16:59:40 advent kernel: esi: c11af390 edi: 00000000 ebp: 00012800
esp: ca139f18
Oct 2 16:59:40 advent kernel: ds: 0068 es: 0068 ss: 0068
Oct 2 16:59:40 advent kernel: Process mount (pid: 72, threadinfo=ca138000
task=ca695900)
Oct 2 16:59:40 advent kernel: Stack: c024dc00 fffffff4 ca7ff39c ca139f5c
00001000 00000000 00000246 c013dfcc
Oct 2 16:59:40 advent kernel: c11af390 000001d0 ca138000 ffffffff
ca7ff39c c0105a6e c024dc00 ca138000
Oct 2 16:59:40 advent kernel: ffffffff ca695900 c0106dc3 c024dc00
ca139fd8 c024dd00 ffffffff ca7ff39c
Oct 2 16:59:40 advent kernel: Call Trace:
Oct 2 16:59:40 advent kernel: [getname+28/156]getname+0x1c/0x9c
Oct 2 16:59:40 advent kernel: [sys_execve+14/96]sys_execve+0xe/0x60
Oct 2 16:59:40 advent kernel: [syscall_call+7/11]syscall_call+0x7/0xb
Oct 2 16:59:40 advent kernel:
[exec_usermodehelper+859/904]exec_usermodehelper+0x35b/0x388
Oct 2 16:59:40 advent kernel: [exec_modprobe+0/164]exec_modprobe+0x0/0xa4
Oct 2 16:59:40 advent kernel: [exec_modprobe+92/164]exec_modprobe+0x5c/0xa4
Oct 2 16:59:40 advent kernel: [exec_modprobe+0/164]exec_modprobe+0x0/0xa4
Oct 2 16:59:40 advent kernel:
[kernel_thread_helper+5/12]kernel_thread_helper+0x5/0xc
Oct 2 16:59:40 advent kernel:
Oct 2 16:59:40 advent kernel: Code: 0f 0b 0c 05 b3 9a 20 c0 f7 c5 00 04 00 00
74 36 b8 a5 c2 0f


2002-10-02 19:53:49

by Petr Vandrovec

[permalink] [raw]
Subject: Re: kernel BUG at slab.c:1292

On Wed, Oct 02, 2002 at 07:35:51PM +0100, Peter L Jones wrote:
> Hi all,
>
> I asked on #kernelnewbies what I should do with this and was told to check the
> mailing list archive at http://marc.theaimsgroup.com/ - which I've done.
>
> The following was produced during boot. I _looks_ like it was during a
> modprobe, but I'm not entirely sure what - it could be that binfmt_misc but I
> couldn't find any docs in the tree for BUG() tracebacks (and I probably
> wouldn't have understood the source).
>
> I'm not subscribed to the list: if anyone wants more info, drop me private
> mail and I'll see what I can do.

Try this. I just sent it to Linus.
Petr Vandrovec

diff -urdN linux/fs/fat/inode.c linux/fs/fat/inode.c
--- linux/fs/fat/inode.c 2002-10-02 13:20:19.000000000 +0200
+++ linux/fs/fat/inode.c 2002-10-02 19:54:59.000000000 +0200
@@ -228,8 +228,6 @@
save = 0;
savep = NULL;
while ((this_char = strsep(&options,",")) != NULL) {
- if (!*this_char)
- continue;
if ((value = strchr(this_char,'=')) != NULL) {
save = *value;
savep = value;
@@ -351,7 +349,7 @@
strncpy(cvf_options,value,100);
}

- if (this_char != options) *(this_char-1) = ',';
+ if (options) *(options-1) = ',';
if (value) *savep = save;
if (ret == 0)
break;
diff -urdN linux/fs/vfat/namei.c linux/fs/vfat/namei.c
--- linux/fs/vfat/namei.c 2002-10-02 13:20:27.000000000 +0200
+++ linux/fs/vfat/namei.c 2002-10-02 19:54:28.000000000 +0200
@@ -117,8 +117,6 @@
savep = NULL;
ret = 1;
while ((this_char = strsep(&options,",")) != NULL) {
- if (!*this_char)
- continue;
if ((value = strchr(this_char,'=')) != NULL) {
save = *value;
savep = value;
@@ -154,8 +152,8 @@
else
ret = 0;
}
- if (this_char != options)
- *(this_char-1) = ',';
+ if (options)
+ *(options-1) = ',';
if (value) {
*savep = save;
}

2002-10-02 21:46:58

by Peter L Jones

[permalink] [raw]
Subject: Re: kernel BUG at slab.c:1292

On Wednesday 02 Oct 2002 20:32, Petr Vandrovec wrote:
> On Wed, Oct 02, 2002 at 07:35:51PM +0100, Peter L Jones wrote:
> > Hi all,
> >
> > I asked on #kernelnewbies what I should do with this and was told to
> > check the mailing list archive at http://marc.theaimsgroup.com/ - which
> > I've done.
> >
> > The following was produced during boot. I _looks_ like it was during a
> > modprobe, but I'm not entirely sure what - it could be that binfmt_misc
> > but I couldn't find any docs in the tree for BUG() tracebacks (and I
> > probably wouldn't have understood the source).
> >
> > I'm not subscribed to the list: if anyone wants more info, drop me
> > private mail and I'll see what I can do.
>
> Try this. I just sent it to Linus.
> Petr Vandrovec
>

Petr,

This appears to have done the trick.

-- Peter