garbage collect
Quoted 7 lines · Nick Ivanter
I've compiled JFFS and MTD into the kernel and tried to play with it on the mtdram device. It seems to work, but when I tried to mount device without manually specifying a filesystem type, I got error: "Unable to handle kernel NULL pointer dereference at virtual address ........... Process mount........... Segmentation fault". When specifying -t jffs, everything seems to be ok.
Does anyone have ideas about what may cause that?
Probably the mtdblock device falling over when a 'real' filesystem actually causes a block read request, which jffs will never do because it goes straight to the underlying MTD device.
What kernel version? Can you give me a backtrace of the oops?
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to [email protected]
Quoted 10 lines · [email protected] wrote:
Quoted 7 lines · Nick Ivanter
I've compiled JFFS and MTD into the kernel and tried to play with it on the mtdram device. It seems to work, but when I tried to mount device without manually specifying a filesystem type, I got error: "Unable to handle kernel NULL pointer dereference at virtual address ........... Process mount........... Segmentation fault". When specifying -t jffs, everything seems to be ok.
Does anyone have ideas about what may cause that?
Quoted 5 lines
Probably the mtdblock device falling over when a 'real' filesystem actually causes a block read request, which jffs will never do because it goes straight to the underlying MTD device.
What kernel version? Can you give me a backtrace of the oops?
Kernel 2.2.12. The exact error message is as following:
bash# mount /dev/mtd0 /mnt
Unable to handle kernel NULL pointer dereference at virtual address 0000000c
current->tss.cr3 = 01676000, %cr3 = 01676000
*pde = 00000000
Oops: 0002
CPU: 0
EIP: 0010:[<c014cd43>]
EFLAGS: 00010092
eax: c019549c ebx: 00000000 ecx: 00000000 edx: 00000003
esi: 00000000 edi: 00000001 ebp: c15ba000 esp: c15bbcc8
ds: 0018 es: 0018 ss: 0018
Process mount (pid: 10, process nr: 7, stackpage=c15bb000)
Stack: 00000001 c0131c62 00000000 00000001 c0174880 c01b252c c0131f3f
00000001
c01b252c 00000001 00000246 c15bbd28 c168f4d0 00000400 c014c190
00000000
c012165a c01bb02c 00000001 c168f4d0 c168f4d0 c15bbe9c c15bbd28
c15bbd28
Call Trace: [<c0131c62>] [<c0174880>] [<c0131f3f>] [<c014c190>] [<c012165a>]
[<c01255ea>] [<c0121e2b>]
[<c012208b>] [<c013ad74>] [<c0121e2b>] [<c012208b>] [<c013ad74>]
[<c0121e2b>] [<c012208b>] [<c012768c>]
[<c01748a0>] [<c0111fa9>] [<c0131d0b>] [<c017489b>] [<c012126d>]
[<c01206e0>] [<c0120935>] [<c01079c8>]
Code: c7 46 0c 00 00 00 00 85 ff 75 44 ff 76 10 ff 74 24 1c 0f b7Segmentation fault
Nick.
To unsubscribe, send "unsubscribe mtd" to [email protected]
Quoted 10 lines · SИbastien CТtИ
Quoted 7 lines · Nick Ivanter
I've compiled JFFS and MTD into the kernel and tried to play with it on the mtdram device. It seems to work, but when I tried to mount device without manually specifying a filesystem type, I got error: "Unable to handle kernel NULL pointer dereference at virtual address ........... Process mount........... Segmentation fault". When specifying -t jffs, everything seems to be ok.
Does anyone have ideas about what may cause that?
Quoted 8 lines
hmm.... when I try the same thing I get :
mount: you must specify the filesystem typeI get the same output with -t auto..... try using -t auto and see if it segfaults.
--
SИbastien CТtИ
I've tried it. mount with -t auto segfaults in the same way.
But I noticed interesting thing: when I then try to mount it for the first time either with -t auto or not, I get the error immediately after entering the command. But when I try it for the second time (again doesn't matter specifying -t auto or not), I get debugging output from the mtdblock before the error message:
bash# mount /dev/mtd0 /mnt -t automtdblock_open
ok
Unable to handle kernel NULL pointer dereference at virtual address 0000000c
current->tss.cr3 = 01676000, %cr3 = 01676000
*pde = 00000000
Oops: 0002 CPU: 0 EIP: 0010:[<c014cd43>] EFLAGS: 00010092
..................
.................
Starting the third time and till reset, mounting /dev/mtd0 without specifying filesystem type or with -t auto doesn't cause segfault:
bash# mount /dev/mtd0 /mntmtdblock_open
okmtdblock_release
ok
mount: you must specify the filesystem type
Nick.
To unsubscribe, send "unsubscribe mtd" to [email protected]
Quoted 18 lines · Nick Ivanter
Quoted 16 lines · SИbastien CТtИ
Quoted 7 lines · Nick Ivanter
I've compiled JFFS and MTD into the kernel and tried to play with it on the mtdram device. It seems to work, but when I tried to mount device without manually specifying a filesystem type, I got error: "Unable to handle kernel NULL pointer dereference at virtual address ........... Process mount........... Segmentation fault". When specifying -t jffs, everything seems to be ok.
Does anyone have ideas about what may cause that?hmm.... when I try the same thing I get :
mount: you must specify the filesystem typeI get the same output with -t auto..... try using -t auto and see if it segfaults.
Quoted 6 lines
Quoted 2 lines
--
SИbastien CТtИI've tried it. mount with -t auto segfaults in the same way.
But I noticed interesting thing: when I then try to mount it for the first
^^^^ sorry shouldn't be "then" here
Quoted 23 lines
time either with -t auto or not, I get the error immediately after entering the command. But when I try it for the second time (again doesn't matter specifying -t auto or not), I get debugging output from the mtdblock before the error message:
bash# mount
/dev/mtd0/mnt -t automtdblock_open
okUnable to handle kernel NULL pointer dereference at virtual address 0000000c
current->tss.cr3= 01676000, %cr3 = 01676000
*pde = 00000000Oops: 0002 CPU: 0 EIP: 0010:[<c014cd43>] EFLAGS: 00010092..................
.................Starting the third time and till reset, mounting
/dev/mtd0without specifying filesystem type or with -t auto doesn't cause segfault:
Quoted 8 lines
bash# mount
/dev/mtd0/mntmtdblock_open
okmtdblock_release
ok
mount: you must specify the filesystem typeNick.
To unsubscribe, send "unsubscribe mtd" to [email protected]
Quoted 2 lines · [email protected] said:
bash# mount
/dev/mtd0/mntUnable to handle kernel NULL pointer dereference at virtual address 0000000c
Cvs update and try again. Version 1.16 of mtdblock.c should fix this. I haven't tested it yet, but it was 'obviously broken'.
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to [email protected]
Quoted 9 lines · David Woodhouse
Quoted 2 lines · [email protected] said:
bash# mount
/dev/mtd0/mntUnable to handle kernel NULL pointer dereference at virtual address 0000000cCvs update and try again. Version 1.16 of
mtdblock.cshould fix this. I haven't tested it yet, but it was 'obviously broken'.--
dwmw2
yes, now it works ok!
Nick.
To unsubscribe, send "unsubscribe mtd" to [email protected]