Reiser4 oops on cat ./..plugin/..readdir
Filesystem is on a RAID 0 MD device.
Config is attached.
Kernel compiled with:
# gcc34 --version gcc34 (GCC) 3.4.0 20040129 (Red Hat Linux 3.4.0-0.3) Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Problem Description:
A clean, fresh boot into single user mode, no tainted modules:
# cd /home
# cat ./..plugin/..readdir
Oops: 0000 [#1]
CPU: 0
EIP: 0060:[<00000000>] Not tainted
EFLAGS: 00010286
EIP is at 0x0
eax: df2dfe58 ebx: 00000000 ecx: df287140 edx: c03967f0
esi: c1720280 edi: df2dfe68 ebp: df2dfee4 esp: df2dfe28
ds: 007b es: 007b ss: 0068
Process cat (pid: 5389, threadinfo=df2de000 task=dfd3a0c0)
Stack: c02031f4 df287140 df2dfe58 df2dfe68 00000000 00000001 df2de000 00000296
00000000 df2de000 c013f934 df287140 c036eefd 00000001 dffec150 dffef80c
00000001 000000d0 dffef814 000000d0 dffef800 dffef800 00000286 df4ed300
Call Trace:
[<c02031f4>] readdir_start+0x64/0x1a0
[<c013f934>] cache_alloc_refill+0x4e4/0x560
[<c01753b8>] seq_read+0x178/0x310
[<c01ddb0f>] reiser4_read+0x8f/0xf0
[<c01562ca>] vfs_read+0x10a/0x150
[<c0156582>] sys_read+0x42/0x70
[<c0108249>] sysenter_past_esp+0x52/0x71Code: Bad EIP value.
Another one, while in GUI running Nvidia drivers and VMware modules:
# cat ./..plugin/..readdir Segmentation fault
Oops: 0000 [#1] CPU: 0 EIP: 0060:[<00000000>] Tainted: PF EFLAGS: 00010286
EIP is at 0x0
eax: c375de58 ebx: 00000000 ecx: cc6d3e00 edx: c03967f0
esi: d3611c40 edi: c375de68 ebp: c375dee4 esp: c375de28
ds: 007b es: 007b ss: 0068
Process cat (pid: 9365, threadinfo=c375c000 task=c907a080)
Stack: c02031f4 cc6d3e00 c375de58 c375de68 00000000 00000202 00000000 c0390e74
c0390e74 0000015f d5693174 cc6d3e00 c036eefd 00000001 c375de5c c375def0
00000000 00000000 c907a080 00000010 c03910bc 00000000 000000d2 00000000
Call Trace:
[<c02031f4>] readdir_start+0x64/0x1a0
[<c01753b8>] seq_read+0x178/0x310
[<c01ddb0f>] reiser4_read+0x8f/0xf0
[<c01562ca>] vfs_read+0x10a/0x150
[<c0156582>] sys_read+0x42/0x70
[<c0108249>] sysenter_past_esp+0x52/0x71
Code: Bad EIP value.# lsmod Module Size Used by vmnet 26768 - vmmon 88245 - usbnet 26824 - snd_pcm_oss 47460 - snd_mixer_oss 16096 - nfs 100848 - lockd 57608 - sunrpc 119048 - ide_cd 35172 - cdrom 34464 - agpgart 23720 - via_rhine 17512 - mii 4032 - nvidia 2070312 - it87 19592 - i2c_sensor 2080 - i2c_isa 1472 - i2c_core 17764 - parport_pc 29372 - lp 9384 - parport 36136 - snd_intel8x0 26372 - snd_ac97_codec 58788 - snd_pcm 86084 - snd_timer 20580 - snd_page_alloc 8580 - snd_mpu401_uart 5824 - snd_rawmidi 19488 - snd 43172 - soundcore 6400 - md5 3584 - ipv6 228288 - autofs4 12896 - sis900 17060 - crc32 3680 - iptable_filter 1856 - ip_tables 16640 - hid 23296 - ehci_hcd 32068 - uhci_hcd 28076 - usbcore 96284 -
Signature · 2 lines
Jonathan Briggs [email protected]
Quoted 10 lines · Jonathan Briggs
Filesystem is on a RAID 0 MD device.
Config is attached.
Kernel compiled with:# gcc34 --version gcc34 (GCC) 3.4.0 20040129 (Red Hat Linux 3.4.0-0.3) Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Quoted 4 lines
Problem Description:
A clean, fresh boot into single user mode, no tainted modules:# cd /home # cat ./..plugin/..readdir
Please try the following patch:
----------------------------------------------------------------------
===== plugin/pseudo/pseudo.c 1.41 vs edited =====
plugin/pseudo/pseudo.c +1 -1
@@ -533,7 +533,7 @@ dotname.len =1 ;down (&host->i_sem); -if (dplug ==NULL ) { +if (dplug ==NULL || dplug->build_entry_key ==NULL ) {finish (NULL );return NULL ; }
----------------------------------------------------------------------
Quoted 4 lines
Signature · 3 lines
-- Jonathan Briggs [email protected]
Nikita.
Quoted 22 lines · Nikita Danilov
Quoted 10 lines · Jonathan Briggs
Filesystem is on a RAID 0 MD device.
Config is attached.
Kernel compiled with:# gcc34 --version gcc34 (GCC) 3.4.0 20040129 (Red Hat Linux 3.4.0-0.3) Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.Quoted 4 lines
Problem Description:
A clean, fresh boot into single user mode, no tainted modules:# cd /home # cat ./..plugin/..readdirPlease try the following patch:
----------------------------------------------------------------------
=====plugin/pseudo/pseudo.c1.41 vs edited =====
plugin/pseudo/pseudo.c
Quoted 9 lines
plugin/pseudo/pseudo.c +1
-2@@ -533,7 +533,7 @@ dotname.len =1 ;down (&host->i_sem); -if (dplug ==NULL ) { +if (dplug ==NULL || dplug->build_entry_key ==NULL ) {finish (NULL );return NULL ; } ----------------------------------------------------------------------
Yes, this fixed the Oops. Thanks.
That gives me another question. Why do I not see any plugins listed when I do either ls ./..plugin/ or cat ./..plugin/..readdir?
Shouldn't there be at least a few default plugins? I seem to remember seeing some when I was using a previous snapshot in January.
Signature · 2 lines
Jonathan Briggs [email protected]
Quoted 35 lines · Jonathan Briggs
Quoted 22 lines · Nikita Danilov
Quoted 10 lines · Jonathan Briggs
Filesystem is on a RAID 0 MD device.
Config is attached.
Kernel compiled with:# gcc34 --version gcc34 (GCC) 3.4.0 20040129 (Red Hat Linux 3.4.0-0.3) Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.Quoted 4 lines
Problem Description:
A clean, fresh boot into single user mode, no tainted modules:# cd /home # cat ./..plugin/..readdirPlease try the following patch:
----------------------------------------------------------------------
=====plugin/pseudo/pseudo.c1.41 vs edited =====plugin/pseudo/pseudo.c
Quoted 9 lines
plugin/pseudo/pseudo.c +1
-2@@ -533,7 +533,7 @@ dotname.len =1 ;down (&host->i_sem); -if (dplug ==NULL ) { +if (dplug ==NULL || dplug->build_entry_key ==NULL ) {finish (NULL );return NULL ; } ----------------------------------------------------------------------Yes, this fixed the Oops. Thanks.
Quoted 2 lines
That gives me another question. Why do I not see any plugins listed when I do either ls ./..plugin/ or cat ./..plugin/..readdir?
/data1/tests> cat ./..pseudo # list of pseudo file accessible under "." ..uid
..gid
..rwx
..oid
..key
..size
..nlink
..locality
..pagecache
..pseudo
..bmap
..readdir
..plugin
..items
..new
/data1/tests> cd ./..plugin # pseudo directory representing plugins of "." /mnt/b1/tests/..plugin> ls
compression crypto digest dir dir_item file formatting hash perm sd
Quoted 3 lines
Shouldn't there be at least a few default plugins? I seem to remember seeing some when I was using a previous snapshot in January.
See http://namesys.com/v4/pseudo.html for details.
Quoted 3 lines
Signature · 2 lines
Jonathan Briggs [email protected]
Nikita.
Quoted 60 lines · Nikita Danilov
Quoted 35 lines · Jonathan Briggs
Quoted 22 lines · Nikita Danilov
Quoted 10 lines · Jonathan Briggs
Filesystem is on a RAID 0 MD device.
Config is attached.
Kernel compiled with:# gcc34 --version gcc34 (GCC) 3.4.0 20040129 (Red Hat Linux 3.4.0-0.3) Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.Quoted 4 lines
Problem Description:
A clean, fresh boot into single user mode, no tainted modules:# cd /home # cat ./..plugin/..readdirPlease try the following patch:
----------------------------------------------------------------------
=====plugin/pseudo/pseudo.c1.41 vs edited =====plugin/pseudo/pseudo.c
Quoted 9 lines
plugin/pseudo/pseudo.c +1
-2@@ -533,7 +533,7 @@ dotname.len =1 ;down (&host->i_sem); -if (dplug ==NULL ) { +if (dplug ==NULL || dplug->build_entry_key ==NULL ) {finish (NULL );return NULL ; } ----------------------------------------------------------------------Yes, this fixed the Oops. Thanks.
Quoted 2 lines
That gives me another question. Why do I not see any plugins listed when I do either ls ./..plugin/ or cat ./..plugin/..readdir?
/data1/tests> cat ./..pseudo # list of pseudo file accessible under "." ..uid
..gid
..rwx
..oid
..key
..size
..nlink
..locality
..pagecache
..pseudo
..bmap
..readdir
..plugin
..items
..new
/data1/tests> cd ./..plugin # pseudo directory representing plugins of "."/mnt/b1/tests/..plugin> ls
compression crypto digest dirdir_itemfile formatting hash perm sdQuoted 1 line
Quoted 4 lines
Quoted 2 lines
Shouldn't there be at least a few default plugins? I seem to remember seeing some when I was using a previous snapshot in January.
See http://namesys.com/v4/pseudo.html for details.
Oh yes, I have read everything about v4 that I could find. I am very excited about it! :-)
I see the difference now. Try just doing ls ./..plugin/. No output. But cd ./..plugin; ls does produce a list just like yours. Strange! Is this a bug?
Signature · 2 lines
Jonathan Briggs [email protected]
Jonathan Briggs writes:
[...]
Quoted 4 lines
I see the difference now. Try just doing ls ./..plugin/. No output. But cd ./..plugin; ls does produce a list just like yours. Strange! Is this a bug?
Yes. In ls(1). :)
Try this patch (untested):
----------------------------------------------------------------------
===== plugin/pseudo/pseudo.c 1.42 vs edited =====
plugin/pseudo/pseudo.c +3 -3
@@ -1220,7 +1220,7 @@ }, .try = try_by_label, .lookup = lookup_pagecache, - .lookup_mode = S_IFREG | S_IRUGO | S_IXUGO, + .lookup_mode = S_IFDIR | S_IRUGO | S_IXUGO, .read_type = PSEUDO_READ_SINGLE, .read = { .single_show = show_pagecache
@@ -1326,7 +1326,7 @@ }, .try = NULL, .lookup = lookup_plugin_field, - .lookup_mode = S_IFREG | S_IRUGO | S_IXUGO, + .lookup_mode = S_IFDIR | S_IRUGO | S_IXUGO, .read_type = PSEUDO_READ_SINGLE, .read = { .single_show = show_plugin
@@ -1345,7 +1345,7 @@ }, .try = try_by_label, .lookup = lookup_plugins, - .lookup_mode = S_IFREG | S_IRUGO | S_IXUGO, + .lookup_mode = S_IFDIR | S_IRUGO | S_IXUGO, .read_type = PSEUDO_READ_NONE, .write_type =PSEUDO_WRITE_NONE , .readdir = readdir_plugins
----------------------------------------------------------------------
Quoted 3 lines
Signature · 2 lines
Jonathan Briggs [email protected]
Nikita.