Unable to get XFS, ext3, reiserfs & LVM to coexist happily
Quoted 21 lines · Adrian Head
This is the kdb output from trying to create a snapshot of an XFS volume when I have removed ext3 from my kernel. (For clarifcation - in all my previous tests ext3 was compiled into my kernel - in this test I did not select ext3 at all in menuconfig)
The only other thing I have noticed is that when the original XFS logical volume is unmounted snapshot creation is fine. I'm not sure if this works on the other tests I have tried so I will go back and redo them.
id %eip is weird. What does this really mean? looks like the instructions point nowhere. Am I correct?
Entering kdb (current=0xd600e000, pid 940) Oops: Oops
due to oops @0xb800
eax =0xffffffffebx =0xd600e000ecx =0x0000b800edx =0xc018fd25esi =0x00000008edi =0xd600e000esp =0xd600ff0ceip =0x0000b800ebp =0xd600ff30xss =0x00000018xcs =0x00000010eflags =0x00010086xds =0x00000018xes =0x00000018origeax =0xffffffff®s =0xd600fed8kdb> bt
EBP EIP Function(args)0xd600ff300x0000b800<unknown>+0xb800 (0x1)
Quoted 8 lines
kernel <unknown> 0x0 0x0 0x0
0xc011ce83 dequeue_signal+0x43 (0xd600e560, 0xd600ff30,
0xd600e560, 0xd600ffc4, 0xc01392ff)
kernel .text 0xc0100000 0xc011ce40 0xc011cef0
0xc01069b9 do_signal+0x59 (0x11, 0xbfffec40, 0xbfffebb0, 0x8, 0x11)
kernel .text 0xc0100000 0xc0106960 0xc0106c00
0xc0106d54 signal_return+0x14
kernel .text 0xc0100000 0xc0106d40 0xc0106d58kdb is correctly reporting the current eip, but the kernel has taken a swan dive into nowhere. It looks like the chunk of code below. To confirm, run
objdump --start-addr=0xc011ce40 --stop-address=0xc011ce90 vmlinux
I expect to see a call instruction just before 0xc011ce83, probably an indirect call via ecx.
dequeue_signal(sigset_t *mask, siginfo_t *info)
{
int sig = 0;#if DEBUG_SIG
printk("SIG dequeue (%s:%d): %d ", current->comm, current->pid,
signal_pending(current));
#endif
sig = next_signal(current, mask);
if (sig) {
if (current->notifier) {
if (sigismember(current->notifier_mask, sig)) {
if (!(current->notifier)(current->notifier_data)) { <=== probably failing here
current->sigpending = 0;
return 0;
}Without seeing the objdump output, I am assuming that it is failing on the call to current->notifier which means that notifier is corrupt. The only place that notifier is set is in block_all_signals() so we need to find who is calling that routine with bad data. With any luck, this (untested) debug patch will catch the offender. Then we start finding out why it is passing a bad pointer.
signal.c renamed from signal.c.orig +2 -0
@@ -155,6 +155,8 @@ block_all_signals(int (*notifier)(void * {unsigned long flags; +if (notifier && (unsigned long )notifier <0xc0000000 ) +BUG ();spin_lock_irqsave (¤t->sigmask_lock, flags); current->notifier_mask = mask; current->notifier_data = priv;
A quick scan through the kernel found only DRM code using block_all_signals. If the bug is a bad notifier then the oops will be timing dependent, the notifier routine is only called if a signal trips between block_all_signals() and unblock_all_signals() and that does not always occur.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Keith - just a couple of questions...
Quoted 23 lines · Keith Owens
On Tue, 8 Jan 2002 00:08:11 +1000,
Quoted 18 lines · Adrian Head
Entering kdb (current=0xd600e000, pid 940) Oops: Oops
due to oops @0xb800
eax =0xffffffffebx =0xd600e000ecx =0x0000b800edx =0xc018fd25esi =0x00000008edi =0xd600e000esp =0xd600ff0ceip =0x0000b800ebp =0xd600ff30xss =0x00000018xcs =0x00000010eflags =0x00010086xds =0x00000018xes =0x00000018origeax =0xffffffff®s =0xd600fed8kdb> bt
EBP EIP Function(args)0xd600ff300x0000b800<unknown>+0xb800 (0x1)kernel <unknown> 0x0 0x0 0x0 0xc011ce83 dequeue_signal+0x43 (0xd600e560, 0xd600ff30, 0xd600e560, 0xd600ffc4, 0xc01392ff) kernel .text 0xc0100000 0xc011ce40 0xc011cef0 0xc01069b9 do_signal+0x59 (0x11, 0xbfffec40, 0xbfffebb0, 0x8, 0x11) kernel .text 0xc0100000 0xc0106960 0xc0106c00 0xc0106d54 signal_return+0x14 kernel .text 0xc0100000 0xc0106d40Quoted 1 line
0xc0106d58
Quoted 5 lines
kdb is correctly reporting the current eip, but the kernel has taken a swan dive into nowhere. It looks like the chunk of code below. To confirm, run
objdump --start-addr=0xc011ce40 --stop-address=0xc011ce90 vmlinux
How did you get 0xc011ce40 and 0xc011ce90? Do they come from above? How are they derived? Just interested.
vmlinux - where does that come from? I assume it is not the compressed kernel found in /boot.
Quoted 3 lines
I expect to see a call instruction just before
0xc011ce83, probably an indirect call via ecx.
As soon as I can get a sucessful objdump I'll send it on.
Quoted 20 lines
dequeue_signal(sigset_t *mask, siginfo_t *info){ int sig = 0;#if
DEBUG_SIG
printk("SIG dequeue (%s:%d): %d ",current->comm,current->pid,signal_pending(current));#endif
sig = next_signal(current, mask); if (sig) { if (current->notifier) { if (sigismember(current->notifier_mask, sig)) { if (!(current->notifier)(current->notifier_data)) { <=== probably failing here current->sigpending = 0; return 0; }
Quoted 6 lines
Without seeing the objdump output, I am assuming that it is failing on the call to
current->notifierwhich means that notifier is corrupt. The only place that notifier is set is inblock_all_signals()so we need to find who is calling that routine with bad data. With any luck, this (untested) debug patch will catch the offender. Then we start finding out why it is passing a bad pointer.
While I wait for more info about objdump I'll do this and see what happens.
Quoted 12 lines
signal.c renamed from signal.c.orig +2
-0@@ -155,6 +155,8 @@ block_all_signals(int (*notifier)(void * {unsigned long flags; +if (notifier && (unsigned long )notifier <0xc0000000 ) +BUG ();spin_lock_irqsave (¤t->sigmask_lock, flags); current->notifier_mask = mask; current->notifier_data = priv;
Quoted 5 lines
A quick scan through the kernel found only DRM code using
block_all_signals. If the bug is a bad notifier then the oops will be timing dependent, the notifier routine is only called if a signal trips betweenblock_all_signals()andunblock_all_signals()and that does not always occur.
- --
Adrian Head
(Public Key available on request.)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8OdHW8ZJI8OvSkAcRAmpQAKCaoO4JuZO+teCW8cUEnDzrNvkjeACeOk9B eZT4hJWVk3xh1BOZnC0o14A=
=YOrk
-----END PGP SIGNATURE-----