Skip to contentSkip to conversation

insserv on Debian triggers "kernel BUG at fs/reiser4/plugin/object.c:58"

DISCUSSION dimas 2 participants 7 messages Nov 7, 2012 – Nov 19, 2012

lore
Share & tools
lore

dimas

author
#0 lore raw

hello, Edward!
as promised, i've made some tests with latest R4 stuff on Linux 3.6.7 with bfq (otherwise 3.x kernels like to hangup on high i/o).
i'm running Debian testing i386 on my "home server" machine with R4 on /. my params are "reg40,formatting=extents"
well, i've built my shiny new kernel and left it working. 3 days of normal usage passed without any single message from R4. and that looks nice.
but today i ran aptitude full-upgrade as some sort of stress-test. first thing i noticed is that upgrade runs very sloooow (because of "extents" ot what?). but there was no memory or cpu burn. ok. does not matter to much. but when dpkg started to configure packages, output was littered with warnings like that:

Quoted 16 lines
[269875.492865] ------------[ cut here ]------------
[269875.492928] kernel BUG at fs/reiser4/plugin/object.c:58!
[269875.492981] invalid opcode: 0000 [#43] 
[269875.493062] Pid: 5818, comm: insserv Tainted: G      D      3.6.7-309.12+pf+r4 #1 3Q IPP72-CPV/To be filled by O.E.M.
[269875.493139] EIP: 0060:[<b10e3bb6>] EFLAGS: 00010282 CPU: 0
[269875.493192] EAX: dd0b0600 EBX: 00000001 ECX: daa93f34 EDX: b693530c
[269875.493246] ESI: b693530c EDI: b10e3bb6 EBP: 00000001 ESP: daa93f1c
[269875.493300]  DS: 007b ES: 007b FS: 0000 GS: 00e0 SS: 0068
[269875.493353] CR0: 80050033 CR2: a76fd9b0 CR3: 29698000 CR4: 000007c0
[269875.493407] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[269875.493461] DR6: ffff0ff0 DR7: 00000400
[269875.493512] Process insserv (pid: 5818, ti=daa92000 task=e3412900 task.ti=daa92000)
[269875.493579] Stack:
[269875.493623]  b1057d3d 00000001 dd0b0600 00000000 00000000 b6935310 e7ea1db4 e7ea1db4
[269875.493896]  91827364 daa93f40 daa93f40 daa93f48 daa93f48 00000000 00000000 0000d04a
[269875.494168]  00000200 00000000 b1057f17 00000200 00000000 b693530c dd0b0600 00000000
Quoted 8 lines
[269875.494441] Call Trace:
[269875.494488]  [<b1057d3d>] ? 0xb1057d3d
[269875.494539]  [<b1057f17>] ? 0xb1057f17
[269875.494588]  [<b1053f98>] ? 0xb1053f98
[269875.494637]  [<b128d897>] ? 0xb128d897
[269875.494685] Code: 5f c3 90 90 90 31 c0 c3 b8 ea ff ff ff c3 85 c9 53 89 cb 74 0f 89 d1 89 da 5b 2d 9c 00 00 00 e9 ec fd ff ff b8 ea ff ff ff 5b c3 <0f> 0b 56 89 d6 53 89 c3 e8 58 d3 ff ff f6 40 08 01 74 33 89 d8
[269875.494765] EIP: [<b10e3bb6>]  SS:ESP 0068:daa93f1c
[269875.496554] ---[ end trace f4d149c808c3cc9c ]---

(see full dmesg in attachment)
i'm not sure, but it seems, that only insserv triggers this bug. simple "insserv -nv" (as user) triggers same bug and segfaults. but my upgrdae seems to be finished succesfully. i'm going to reproduce this case with default params (formatting=smart) and maybe also with ccreg40 if i would have time.

#1 lore raw
Quoted 1 line · dimas

hello, Edward!

Hello.

Quoted 29 lines

as promised, i've made some tests with latest R4 stuff on Linux 3.6.7 with bfq (otherwise 3.x kernels like to hangup on high i/o).
i'm running Debian testing i386 on my "home server" machine with R4 on /. my params are "reg40,formatting=extents"
well, i've built my shiny new kernel and left it working. 3 days of normal usage passed without any single message from R4. and that looks nice.
but today i ran aptitude full-upgrade as some sort of stress-test. first thing i noticed is that upgrade runs very sloooow (because of "extents" ot what?). but there was no memory or cpu burn. ok. does not matter to much. but when dpkg started to configure packages, output was littered with warnings like that:

Quoted 24 lines
[269875.492865] ------------[ cut here ]------------
[269875.492928] kernel BUG at fs/reiser4/plugin/object.c:58!
[269875.492981] invalid opcode: 0000 [#43]
[269875.493062] Pid: 5818, comm: insserv Tainted: G      D      3.6.7-309.12+pf+r4 #1 3Q IPP72-CPV/To be filled by O.E.M.
[269875.493139] EIP: 0060:[<b10e3bb6>] EFLAGS: 00010282 CPU: 0
[269875.493192] EAX: dd0b0600 EBX: 00000001 ECX: daa93f34 EDX: b693530c
[269875.493246] ESI: b693530c EDI: b10e3bb6 EBP: 00000001 ESP: daa93f1c
[269875.493300]  DS: 007b ES: 007b FS: 0000 GS: 00e0 SS: 0068
[269875.493353] CR0: 80050033 CR2: a76fd9b0 CR3: 29698000 CR4: 000007c0
[269875.493407] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[269875.493461] DR6: ffff0ff0 DR7: 00000400
[269875.493512] Process insserv (pid: 5818, ti=daa92000 task=e3412900 task.ti=daa92000)
[269875.493579] Stack:
[269875.493623]  b1057d3d 00000001 dd0b0600 00000000 00000000 b6935310 e7ea1db4 e7ea1db4
[269875.493896]  91827364 daa93f40 daa93f40 daa93f48 daa93f48 00000000 00000000 0000d04a
[269875.494168]  00000200 00000000 b1057f17 00000200 00000000 b693530c dd0b0600 00000000
[269875.494441] Call Trace:
[269875.494488]  [<b1057d3d>] ? 0xb1057d3d
[269875.494539]  [<b1057f17>] ? 0xb1057f17
[269875.494588]  [<b1053f98>] ? 0xb1053f98
[269875.494637]  [<b128d897>] ? 0xb128d897
[269875.494685] Code: 5f c3 90 90 90 31 c0 c3 b8 ea ff ff ff c3 85 c9 53 89 cb 74 0f 89 d1 89 da 5b 2d 9c 00 00 00 e9 ec fd ff ff b8 ea ff ff ff 5b c3 <0f> 0b 56 89 d6 53 89 c3 e8 58 d3 ff ff f6 40 08 01 74 33 89 d8
[269875.494765] EIP: [<b10e3bb6>]  SS:ESP 0068:daa93f1c
[269875.496554] ---[ end trace f4d149c808c3cc9c ]---

This indicates that reiser4 doesn't make a friendship with VFS in some bits. By the way, what the "pf" stands for in 3.6.7-309.12+pf+r4? ;) Could you please apply this temporary patch (it should prevent the oops), and send me the output of "strace insserv -nv"?

Thanks,
Edward.

Quoted 3 lines

(see full dmesg in attachment)
i'm not sure, but it seems, that only insserv triggers this bug. simple "insserv -nv" (as user) triggers same bug and segfaults. but my upgrdae seems to be finished succesfully. i'm going to reproduce this case with default params (formatting=smart) and maybe also with ccreg40 if i would have time.

#2 lore raw
Quoted 36 lines · Edward Shishkin
Quoted 1 line · dimas

hello, Edward!

Hello.

Quoted 29 lines

as promised, i've made some tests with latest R4 stuff on Linux 3.6.7 with bfq (otherwise 3.x kernels like to hangup on high i/o).
i'm running Debian testing i386 on my "home server" machine with R4 on /. my params are "reg40,formatting=extents"
well, i've built my shiny new kernel and left it working. 3 days of normal usage passed without any single message from R4. and that looks nice.
but today i ran aptitude full-upgrade as some sort of stress-test. first thing i noticed is that upgrade runs very sloooow (because of "extents" ot what?). but there was no memory or cpu burn. ok. does not matter to much. but when dpkg started to configure packages, output was littered with warnings like that:

Quoted 24 lines
[269875.492865] ------------[ cut here ]------------
[269875.492928] kernel BUG at fs/reiser4/plugin/object.c:58!
[269875.492981] invalid opcode: 0000 [#43]
[269875.493062] Pid: 5818, comm: insserv Tainted: G D      3.6.7-309.12+pf+r4 #1 3Q IPP72-CPV/To be filled by O.E.M.
[269875.493139] EIP: 0060:[<b10e3bb6>] EFLAGS: 00010282 CPU: 0
[269875.493192] EAX: dd0b0600 EBX: 00000001 ECX: daa93f34 EDX: b693530c
[269875.493246] ESI: b693530c EDI: b10e3bb6 EBP: 00000001 ESP: daa93f1c
[269875.493300]  DS: 007b ES: 007b FS: 0000 GS: 00e0 SS: 0068
[269875.493353] CR0: 80050033 CR2: a76fd9b0 CR3: 29698000 CR4: 000007c0
[269875.493407] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[269875.493461] DR6: ffff0ff0 DR7: 00000400
[269875.493512] Process insserv (pid: 5818, ti=daa92000 task=e3412900 task.ti=daa92000)
[269875.493579] Stack:
[269875.493623]  b1057d3d 00000001 dd0b0600 00000000 00000000 b6935310 e7ea1db4 e7ea1db4
[269875.493896]  91827364 daa93f40 daa93f40 daa93f48 daa93f48 00000000 00000000 0000d04a
[269875.494168]  00000200 00000000 b1057f17 00000200 00000000 b693530c dd0b0600 00000000
[269875.494441] Call Trace:
[269875.494488]  [<b1057d3d>] ? 0xb1057d3d
[269875.494539]  [<b1057f17>] ? 0xb1057f17
[269875.494588]  [<b1053f98>] ? 0xb1053f98
[269875.494637]  [<b128d897>] ? 0xb128d897
[269875.494685] Code: 5f c3 90 90 90 31 c0 c3 b8 ea ff ff ff c3 85 c9 53 89 cb 74 0f 89 d1 89 da 5b 2d 9c 00 00 00 e9 ec fd ff ff b8 ea ff ff ff 5b c3 <0f> 0b 56 89 d6 53 89 c3 e8 58 d3 ff ff f6 40 08 01 74 33 89 d8
[269875.494765] EIP: [<b10e3bb6>]  SS:ESP 0068:daa93f1c
[269875.496554] ---[ end trace f4d149c808c3cc9c ]---
Quoted 4 lines

This indicates that reiser4 doesn't make a friendship with VFS in some bits. By the way, what the "pf" stands for in 3.6.7-309.12+pf+r4? ;) Could you please apply this temporary patch (it should prevent the oops), and send me the output of "strace insserv -nv"?

oops, forgot the patch..

---
 fs/reiser4/plugin/object.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fs/reiser4/plugin/object.c +2 -2
@@ -55,8 +55,8 @@
 
 static int _bugop(void)
 {
-	BUG_ON(1);
-	return 0;
+	//BUG_ON(1);
+	return -EINVAL;
 }
 
 #define bugop ((void *)_bugop)
author
#3 lore raw
In reply to Edward Shishkin

well, i bult new kenel from same sources and with same config with this "don't oops" patch. see attachment for strace output you've asked.

Quoted 8 lines · 2012-312 21:47 Edward Shishkin <[email protected]> wrote:

This indicates that reiser4 doesn't make a friendship with VFS in some bits. By the way, what the "pf" stands for in 3.6.7-309.12+pf+r4? ;) Could you please apply this temporary patch (it should prevent the oops), and send me the output of "strace insserv -nv"?

Thanks,
Edward.

author
#4 lore raw

btw, with this patch insserv made its job succesfully. yesterday on update it failed due to that oops. and one more idea: insserv deals a lot with symlinks. maybe that's why it triggers the oops rather than other software...

#6 lore raw
Quoted 1 line · dimas

any news about this? do i need to provide some more info?

Hello.

Everything is more, or less clear with this BUG at object.c:58:
for every directory reiser4 installs aops with stubs, which cause oops. Nobody remembers the purpose of these stubs. I think we'll just get rid of them in the next release..

The more unpleasant issue is that the corruption is not gone: I have reproduced this again for both plugins (w/ and w/o compression). So will continue to narrow down...

Thanks,
Edward.