Kernel module crashes

View: New views
6 Messages — Rating Filter:   Alert me  

Kernel module crashes

by lbm-list :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi

I'm trying to get iet running on an embedded ARM platform. I managed to
cross-compile kernel module, ietd and ietadm; last two compiled staticly.
Compiled from SVN rev 164.

Kernel module and ietd loads just fine. But when adding a "regular file"
LUN to a target, the kernel module crashes:

iSCSI Enterprise Target Software - version 0.4.16
iscsi_trgt: Registered io type fileio
iscsi_trgt: Registered io type blockio
iscsi_trgt: Registered io type nullio
Unable to handle kernel NULL pointer dereference at virtual address
00000008
pgd = ac88c000
[00000008] *pgd=0cd40031, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#1]
Modules linked in: iscsi_trgt ntfs vfat msdos fat usb_storage sysinfo
CPU: 0
PC is at fileio_attach+0x318/0x3e0 [iscsi_trgt]
LR is at strlcpy+0x48/0x58
pc : [<9f067bd4>]    lr : [<a01d1384>]    Not tainted
sp : ac88598c  ip : 00000054  fp : ac8859d4
r10: 00000000  r9 : ad9e5c80  r8 : 00000000
r7 : adb3e460  r6 : aff75320  r5 : 00000000  r4 : aff1bde8
r3 : 00000000  r2 : aff75350  r1 : acda4000  r0 : 00000003
Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  Segment user
Control: 5317F
Table: 0C88C000  DAC: 00000015
Process ietd (pid: 1895, stack limit = 0xac884258)
Stack: (0xac88598c to 0xac886000)
5980:                            ac885998 00000000 adb3e6cd adb3e6d3
ac8859c4
59a0: ac8859ac 9f067444 a01d14a4 00000000 aff75320 00000000 adb3e6a0
acda4000
59c0: ac884000 00900036 ac885a18 ac8859d8 9f066f7c 9f0678cc 00000000
ac885a18
59e0: ac87802d ac878033 9f064a58 ac8859f8 9e9f0610 00000104 9e9f0718
ac885df8
5a00: 40186904 00000001 acda4000 ac885f34 ac885a1c 9f065054 9f066d30
ac871f20
5a20: a0bc0c00 00000008 af9efe00 ae460da0 ac885a84 ac885a40 a01c5e60
a01c5690
5a40: 00000000 00000000 00000001 00000001 00000001 a0bc0c00 00000000
a0bc0c00
5a60: ac871f80 a0bc0c00 ac871f80 ac871f20 afe51260 ae460da0 ac885b24
ac885a88
5a80: a027c40c a01c5ca4 ac885ac4 ac885ac0 ae460da0 ac885aa0 a004e168
a004dfd0
5aa0: afe512e4 00000003 af9efe00 00000000 ac885acc a06825c0 ac885af4
a06df3c0
5ac0: 00000002 00000000 a06df3c0 aff505e0 ac885b78 aff75320 ac885b1c
ac885ae8
5ae0: a021ef14 a021ca8c 00000000 ac88d000 ac885b4c ac885b00 a007f5f8
a007f804
5b00: 00000044 a074402c 00000000 00000000 00000000 00000000 ac885b74
ac885b28
5b20: a007f5f8 a007f4d0 00000044 000084d0 00000000 00000000 00000000
a03de9ec
5b40: 00000044 000200d2 a007f934 a03de9ec 00000000 000200d2 ac884000
a03de9e8
5b60: aff9e7c0 00000000 ac885bbc ac885b78 a007f934 a007f574 a008b650
a03de9ec
5b80: 000200d2 40002000 00000010 aff15128 aff158b8 00000000 a05b9ae0
0cd570ff
5ba0: aff158b8 ac884000 ac86d808 40002000 ac885c24 ac885bc0 a00899a8
a0030b64
5bc0: a0208be4 00000000 ac885bec addabb88 ac885c24 ac885be0 addabb88
00000002
5be0: ac885c04 ac885bf0 a0066c30 ac88d000 00000800 afcd8208 ac885c14
ffffffeb
5c00: 00000002 aff158b8 ac885c24 ac885c18 a0069c58 a01d0f24 ac885c64
ac885c28
5c20: a00303d4 a0069c58 ae4601a0 00000000 00000800 00000805 06540000
00001000
5c40: a03db3d0 00000805 40002000 ac885d30 40000013 00001000 ac885c7c
ac885c68
5c60: a003049c a003027c ffffffff a03db3d0 ac885d2c ac885c80 a0030564
a0030488
5c80: acd3f4e0 afc84000 00000813 60000013 ad6505c0 ae4601a0 ac8813c8
ac884000
5ca0: 00000813 00000000 ac885d34 ac885cb8 a0081c44 a01cfe0c 00000000
adb411e0
5cc0: ad6505c0 ae4601a0 ac885d0c ac885cd8 a01124d4 a00973a4 00000001
0cd570ff
5ce0: ac885d0c ac885cf0 a03dcda4 00000800 ac885d0c ac885d00 a0069c58
a01d0f24
5d00: ac885d5c ac885d10 a0047d9c a0069c58 00000000 ac885e48 ac885d4c
ac885d28
5d20: a0056c2c a0056bf4 487ff2f4 00000000 ac885e48 ac885d80 afc84000
00000000
5d40: ac885d7c ac885d50 a0056ce8 a0056c14 487ff2f4 0b0555b8 487ff2f4
0b0555b8
5d60: 487ff2f4 0b0555b8 acd3f4e0 ac885d80 ac885d9c ac885d80 a00b09b4
a0056c90
5d80: 487ff2f4 00000000 00000813 00000000 ac885e2c ac885da0 a007b2b8
a00b08dc
5da0: 00000001 a0680700 00000000 00000000 ac885e0c ac885dc0 a007f5f8
a007f4d0
5dc0: 00000044 acd3f4e0 ac885ee0 00000000 00000000 a03de9ec 00000044
000200d2
5de0: 00000000 a03de9ec 00000000 000200d2 ac884000 a03de9e8 00000001
00000000
5e00: 9e9f0777 00000000 00000033 00000000 00000001 a03de9ec 000200d2
2e37302d
5e20: 00000010 ac885e30 a01cf660 00000000 a05ba1c0 0cd8e0ff adc5ee90
ac884000
5e40: ac887fbc 9e9ef000 ac885ebc ac885e58 a00899a8 a0030b64 00000083
00000000
5e60: 00000000 adc5e3e8 adc5e3e8 00000007 00000000 0000f000 ac885e94
ac885e88
5e80: a0085860 ac88e7a0 00000800 ac885e98 a0030c78 ffffffeb 00000002
adc5ee90
5ea0: ac885ebc ac885eb0 a0069c58 a01d0f24 ac885efc ac885ec0 a00303d4
a0069c58
5ec0: adc5e3e8 ac884000 00000800 00000817 ac885f44 ffffffff a03db3f0
00000817
5ee0: 9e9ef6f4 ac885fb0 9e9f0770 9e9ef700 ac885fac ac885f00 a0030564
a003027c
5f00: 00000000 00000000 00000000 ac88c000 00000000 adb38560 ffffffe7
9e9f0718
5f20: 00000004 a0029504 ac885f54 ac885f38 a00a8e58 9f064dd0 ac885f84
adb38560
5f40: 9e9f0718 00000000 ac885f7c ac885f58 a00a9138 a00a8e2c a005f7c8
00000000
5f60: fffffff7 9e9f0718 40186904 adb38560 ac885fa4 ac885f80 a00a919c
a00a8eb0
5f80: a003049c 00000000 00000000 9e9f0777 00000000 00000036 00000000
ac885fa8
5fa0: a0028d00 a00a9168 00000000 9e9f0777 00000004 40186904 9e9f0718
00096ce0
5fc0: 00000000 9e9f0777 00000000 00000001 00000000 9e9f0770 00097f18
00000000
5fe0: 00000000 9e9f0710 0000b928 00030814 40000010 00000004 00000000
00000000
Backtrace:
[<9f0678bc>] (fileio_attach+0x0/0x3e0 [iscsi_trgt]) from [<9f066f7c>]
(volume_add+0x25c/0x308 [iscsi_trgt])
[<9f066d20>] (volume_add+0x0/0x308 [iscsi_trgt]) from [<9f065054>]
(ioctl+0x294/0x6b4 [iscsi_trgt])
 r8 = ACDA4000  r7 = 00000001  r6 = 40186904  r5 = AC885DF8
 r4 = 9E9F0718
[<9f064dc0>] (ioctl+0x0/0x6b4 [iscsi_trgt]) from [<a00a8e58>]
(do_ioctl+0x3c/0x84)
 r8 = A0029504  r7 = 00000004  r6 = 9E9F0718  r5 = FFFFFFE7
 r4 = ADB38560
[<a00a8e1c>] (do_ioctl+0x0/0x84) from [<a00a9138>] (vfs_ioctl+0x298/0x2b8)
 r6 = 00000000  r5 = 9E9F0718  r4 = ADB38560
[<a00a8ea0>] (vfs_ioctl+0x0/0x2b8) from [<a00a919c>] (sys_ioctl+0x44/0x68)
 r7 = ADB38560  r6 = 40186904  r5 = 9E9F0718  r4 = FFFFFFF7
[<a00a9158>] (sys_ioctl+0x0/0x68) from [<a0028d00>]
(ret_fast_syscall+0x0/0x2c)
 r7 = 00000036  r6 = 00000000  r5 = 9E9F0777  r4 = 00000000
Code: e5823004 e5943020 e5823008 e5943098 (e5933008)


Anyone able to debug this? Thanks!

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Iscsitarget-devel mailing list
Iscsitarget-devel@...
https://lists.sourceforge.net/lists/listinfo/iscsitarget-devel

Re: Kernel module crashes

by Arne Redlich-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Freitag, den 18.07.2008, 11:59 +0200 schrieb lbm-list@...:
> Hi
>
> I'm trying to get iet running on an embedded ARM platform. I managed to
> cross-compile kernel module, ietd and ietadm; last two compiled staticly.
> Compiled from SVN rev 164.

Please double-check the revision, as HEAD is currently at rev 162.

Can you also post your ietd.conf and/or the ietadm steps that lead to
the oops? Did you apply any patches / make any modifications yourself?

Thanks,
Arne


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Iscsitarget-devel mailing list
Iscsitarget-devel@...
https://lists.sourceforge.net/lists/listinfo/iscsitarget-devel

Re: Kernel module crashes

by lbm-list :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Arne Redlich skrev:

> Am Freitag, den 18.07.2008, 11:59 +0200 schrieb lbm-list@...:
>> Hi
>>
>> I'm trying to get iet running on an embedded ARM platform. I managed to
>> cross-compile kernel module, ietd and ietadm; last two compiled staticly.
>> Compiled from SVN rev 164.
>
> Please double-check the revision, as HEAD is currently at rev 162.
>
> Can you also post your ietd.conf and/or the ietadm steps that lead to
> the oops? Did you apply any patches / make any modifications yourself?

My fault. Compiled from SVN rev 162.

Kernel module crashes using both ietd.conf and ietadm;

Target iqn.2008-07.nas:test
         Lun 0 Path=/share/MD0_DATA/iscsi/test100M.img,Type=fileio
         Alias Test

ietadm --op new --tid=1 --params Name=iqn.2008-07.nas:test
ietadm --op new --tid=1 --lun=0 --params \
Path=/share/MD0_DATA/iscsi/test100M.img

Only modification made by me apart from patches automatically applied
(compiling for kernel 2.6.21.1):

--- usr/Makefile        (revision 162)
+++ usr/Makefile        (working copy)
@@ -1,16 +1,16 @@
-CFLAGS += -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include
+CFLAGS += -O2 -fno-inline -Wall -Wstrict-prototypes -g -I../include \
-I/home/lbm/qnapnas/iscsi/openssl-0.9.8h/include
  CFLAGS += -D_GNU_SOURCE # required for glibc >= 2.8
  PROGRAMS = ietd ietadm
-LIBS = -lcrypto
+LIBS = -lcrypto -L/home/lbm/qnapnas/iscsi/openssl-0.9.8h

  all: $(PROGRAMS)

  ietd: ietd.o iscsid.o conn.o session.o target.o message.o ctldev.o
log.o chap.o event.o param.o plain.o isns.o

-       $(CC) $^ -o $@ $(LIBS)
+       $(CC) $^ -o $@ $(LIBS) -static -s

  ietadm: ietadm.o param.o
-       $(CC) $^ -o $@
+       $(CC) $^ -o $@ -static -s

Thanks.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Iscsitarget-devel mailing list
Iscsitarget-devel@...
https://lists.sourceforge.net/lists/listinfo/iscsitarget-devel

Re: Kernel module crashes

by lbm-list :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Arne Redlich skrev:

> Am Freitag, den 18.07.2008, 11:59 +0200 schrieb lbm-list@...:
>> Hi
>>
>> I'm trying to get iet running on an embedded ARM platform. I managed to
>> cross-compile kernel module, ietd and ietadm; last two compiled staticly.
>> Compiled from SVN rev 164.
>
> Please double-check the revision, as HEAD is currently at rev 162.
>
> Can you also post your ietd.conf and/or the ietadm steps that lead to
> the oops? Did you apply any patches / make any modifications yourself?

Hi Arne

The problem was caused by a wrong set of kernel patches and kernel
configuration for the specific ARM platform. While the kernel module
doesn't crash anymore I now get the following error when trying to add a
"regular file" LUN:

Can't create a logical unit 22 1 0 \
Path=/share/MD0_DATA/iscsi/test100M.img,Type=fileio

Thanks.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Iscsitarget-devel mailing list
Iscsitarget-devel@...
https://lists.sourceforge.net/lists/listinfo/iscsitarget-devel

Re: Kernel module crashes

by Arne Redlich-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Freitag, den 25.07.2008, 18:09 +0200 schrieb Lasse Bang Mikkelsen:

> Arne Redlich skrev:
> > Am Freitag, den 18.07.2008, 11:59 +0200 schrieb lbm-list@...:
> >> Hi
> >>
> >> I'm trying to get iet running on an embedded ARM platform. I managed to
> >> cross-compile kernel module, ietd and ietadm; last two compiled staticly.
> >> Compiled from SVN rev 164.
> >
> > Please double-check the revision, as HEAD is currently at rev 162.
> >
> > Can you also post your ietd.conf and/or the ietadm steps that lead to
> > the oops? Did you apply any patches / make any modifications yourself?
>
> Hi Arne
>
> The problem was caused by a wrong set of kernel patches and kernel
> configuration for the specific ARM platform. While the kernel module
> doesn't crash anymore I now get the following error when trying to add a
> "regular file" LUN:
>
> Can't create a logical unit 22 1 0 \
> Path=/share/MD0_DATA/iscsi/test100M.img,Type=fileio

And no additional error messages in your dmesg output?

Arne


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Iscsitarget-devel mailing list
Iscsitarget-devel@...
https://lists.sourceforge.net/lists/listinfo/iscsitarget-devel

Re: Kernel module crashes

by lbm-list :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Arne Redlich skrev:

> Am Freitag, den 25.07.2008, 18:09 +0200 schrieb Lasse Bang Mikkelsen:
>> Arne Redlich skrev:
>>> Am Freitag, den 18.07.2008, 11:59 +0200 schrieb lbm-list@...:
>>>> Hi
>>>>
>>>> I'm trying to get iet running on an embedded ARM platform. I managed to
>>>> cross-compile kernel module, ietd and ietadm; last two compiled staticly.
>>>> Compiled from SVN rev 164.
>>> Please double-check the revision, as HEAD is currently at rev 162.
>>>
>>> Can you also post your ietd.conf and/or the ietadm steps that lead to
>>> the oops? Did you apply any patches / make any modifications yourself?
>> Hi Arne
>>
>> The problem was caused by a wrong set of kernel patches and kernel
>> configuration for the specific ARM platform. While the kernel module
>> doesn't crash anymore I now get the following error when trying to add a
>> "regular file" LUN:
>>
>> Can't create a logical unit 22 1 0 \
>> Path=/share/MD0_DATA/iscsi/test100M.img,Type=fileio
>
> And no additional error messages in your dmesg output?

Hi Arne

None whatsoever.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Iscsitarget-devel mailing list
Iscsitarget-devel@...
https://lists.sourceforge.net/lists/listinfo/iscsitarget-devel
LightInTheBox - Buy quality products at wholesale price!