alignment trap caused by sock_release in cifs module ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've been trying with no luck to get the CIFS module work properly in
the 3.10 kernel compiled for ARM under the LG Webos 2.2.

I have an old samba NAS which can be mounted (using CIFS) by any of my
other linux boxes, but my TV running webos 2.2.

When I execute mount.cifs //nas_ip/share_name /mount_point it hangs
for a while (about 2 minutes), after which the command crashes with
seg fault. Dmesg reveals the following:

[  988.072983] Error -110 connecting to server
[  988.073011] Alignment trap: not handling instruction e1903f9f at [<80487b3c>]
[  988.073019] Unhandled fault: alignment exception (0x001) at 0x000004e2
[  988.073029] Internal error: : 1 [#1] PREEMPT SMP ARM
[   31.554584]
[DIP INFO] dip open
[  988.073036] Modules linked in:
[  988.073042]  cifs fscache sha256_generic hmac portal(O) tfat(PO)
tntfs(PO) btusb(O) wl(PO) bcm_dbus(O) mali_kbase(O) ump(O) kds(O)
mhal_alsa_audio(P) mdrv_alsa_audio snd_pcm_oss snd_pcm snd_timer
snd_rawmidi snd_page_alloc snd_mixer_oss snd_hwdep utpa2k(PO)
[  988.073108] CPU: 1 PID: 3925 Comm: mount.cifs Tainted: P
O 3.10.23-p.21.biscayne.lm15u.10 #1
[  988.073116] task: 9e960a00 ti: 9eff6000 task.ti: 9eff6000
[  988.073128] PC is at __sk_free+0xcc/0x148
[  988.073139] LR is at inet_sock_destruct+0x148/0x1e0
[  988.073146] pc : [<80487b40>]    lr : [<804fe56c>]    psr: 20010013
sp : 9eff7d68  ip : 9eff7d48  fp : 9eff7d84
[  988.073153] r10: 9e93f400  r9 : 00000080  r8 : 00000007
[  988.073159] r7 : 9cf453cc  r6 : 9cf452b8  r5 : 9cf452b0  r4 : 9cf45280
[  988.073165] r3 : 00000000  r2 : 00004301  r1 : 00000000  r0 : 000004e2
[  988.073172] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[  988.073178] Control: 10c5387d  Table: 3f0d806a  DAC: 00000015
[  988.073183]
PC: 0x80487ac0:
[  988.073189] 7ac0  e183cf91 e33c0000 1afffffa f57ff05f e1903f9f
e2433001 e1802f93 e3320000
[  988.073211] 7ae0  1afffffa f57ff05f e3530000 0a00002a e3a03000
e58430a0 e59420b0 e3a03080
[  988.073232] 7b00  e3403008 e0033002 e3530000 0a000003 e3c22702
e3c22080 e58420b0 eb002ffe
[  988.073253] 7b20  e59430d0 e5940170 e3530000 159430d0 e3500000
0a000009 f57ff05f e1903f9f
[  988.073274] 7b40  e2433001 e1802f93 e3320000 1afffffa f57ff05f
e3530000 1a000000 ebef2ca7
[  988.073295] 7b60  e594016c ebef0160 e5943148 e1a00004 e5935080
e593609c ebf8c122 e3550000
[  988.073315] 7b80  0a00000a e1a00005 e1a01004 ebf22de9 e1a00006
ebefeb9c e89da878 e30a1db4
[  988.073336] 7ba0  e280000c e348104a ebf05252 eaffffcf e1a00004
ebf22d42 eafffff4 e1a0c00d
[  988.073358]
LR: 0x804fe4ec:
[  988.073363] e4ec  1afffff0 e5943020 e5933060 e3530000 0a000002
e5943090 e3530a01 aa000021
[  988.073384] e50c  e1d43fb6 e3530001 0a000015 e59430b0 e3130001
0a00001e e5943080 e3530000
[  988.073404] e52c  1a000020 e59430cc e3530000 1a000022 e59430f8
e3530000 1a000024 e5943090
[  988.073425] e54c  e3530000 1a000026 e5940200 ebf052d9 e59400b8
ebfe89b8 e59400b4 ebfe89b6
[  988.073446] e56c  e89da878 e5d43012 e3530007 0affffe6 e30c0cd8
e5d41012 e1a02004 e3480076
[  988.073467] e58c  eb03139b e89da878 e1a00004 ebfe2021 eaffffda
e30c0d10 e1a01004 e3480076
[  988.073487] e5ac  eb031393 e89da878 e30c0d44 e3a010a6 e3480076
ebeca1e4 eaffffd9 e30c0d44
[  988.073508] e5cc  e3a010a7 e3480076 ebeca1df eaffffd7 e30c0d44
e3a010a8 e3480076 ebeca1da
[  988.073530]
SP: 0x9eff7ce8:
[  988.073535] 7ce8  800c7308 80057fb0 80807340 80487b3c 20010013
80487b3c 20010013 ffffffff
[  988.073555] 7d08  9eff7d54 00000007 9eff7d84 9eff7d20 8000e81c
800083cc 000004e2 00000000
[  988.073576] 7d28  00004301 00000000 9cf45280 9cf452b0 9cf452b8
9cf453cc 00000007 00000080
[  988.073597] 7d48  9e93f400 9eff7d84 9eff7d48 9eff7d68 804fe56c
80487b40 20010013 ffffffff
[  988.073618] 7d68  9cf4534c 9cf45280 9cf452b0 9cf452b8 9eff7d94
9eff7d88 80487bfc 80487a80
[  988.073638] 7d88  9eff7dc4 9eff7d98 804db8ec 80487bc8 00000020
9e93f400 ffffff92 9cf45280
[  988.073659] 7da8  a30a0e00 00000010 0000bd01 9f3ba600 9eff7ddc
9eff7dc8 804febf0 804db768
[  988.073679] 7dc8  a30a0e00 00000000 9eff7df4 9eff7de0 80482e6c
804feb74 9e93f400 ffffff92
[  988.073701]
IP: 0x9eff7cc8:
[  988.073706] 7cc8  0000002f 805cabc0 9eff6000 81d9d340 00000001
800c7308 9eff7d04 9eff7cf0
[  988.073727] 7ce8  800c7308 80057fb0 80807340 80487b3c 20010013
80487b3c 20010013 ffffffff
[  988.073747] 7d08  9eff7d54 00000007 9eff7d84 9eff7d20 8000e81c
800083cc 000004e2 00000000
[  988.073768] 7d28  00004301 00000000 9cf45280 9cf452b0 9cf452b8
9cf453cc 00000007 00000080
[  988.073789] 7d48  9e93f400 9eff7d84 9eff7d48 9eff7d68 804fe56c
80487b40 20010013 ffffffff
[  988.073809] 7d68  9cf4534c 9cf45280 9cf452b0 9cf452b8 9eff7d94
9eff7d88 80487bfc 80487a80
[  988.073830] 7d88  9eff7dc4 9eff7d98 804db8ec 80487bc8 00000020
9e93f400 ffffff92 9cf45280
[  988.073851] 7da8  a30a0e00 00000010 0000bd01 9f3ba600 9eff7ddc
9eff7dc8 804febf0 804db768
[  988.073872]
FP: 0x9eff7d04:
[  988.073877] 7d04  ffffffff 9eff7d54 00000007 9eff7d84 9eff7d20
8000e81c 800083cc 000004e2
[  988.073898] 7d24  00000000 00004301 00000000 9cf45280 9cf452b0
9cf452b8 9cf453cc 00000007
[  988.073918] 7d44  00000080 9e93f400 9eff7d84 9eff7d48 9eff7d68
804fe56c 80487b40 20010013
[  988.073939] 7d64  ffffffff 9cf4534c 9cf45280 9cf452b0 9cf452b8
9eff7d94 9eff7d88 80487bfc
[  988.073960] 7d84  80487a80 9eff7dc4 9eff7d98 804db8ec 80487bc8
00000020 9e93f400 ffffff92
[  988.073980] 7da4  9cf45280 a30a0e00 00000010 0000bd01 9f3ba600
9eff7ddc 9eff7dc8 804febf0
[  988.074001] 7dc4  804db768 a30a0e00 00000000 9eff7df4 9eff7de0
80482e6c 804feb74 9e93f400
[  988.074022] 7de4  ffffff92 9eff7e24 9eff7df8 7fb997e8 80482e48
9eff7e00 00000001 a30a0e00
[  988.074043]
R4: 0x9cf45200:
[  988.074048] 5200  00000000 00000000 00000000 00000000 00000008
32574385 0000f9b3 00003908
[  988.074069] 5220  32570f67 0000f9c4 00000000 00000000 00000000
00000000 00000000 00000000
[  988.074089] 5240  9cf44200 00000000 00000000 000001c5 00000000
1b000000 1cf35ce9 1fffe748
[  988.074110] 5260  00001fff 00000000 00000000 00000000 00000000
00000000 00000000 00000000
[  988.074130] 5280  0102a8c0 6702a8c0 c609a2a2 00000000 00070002
00000000 00000000 a15c6974
[  988.074151] 52a0  8088e8fc 00000545 00000000 ffffffff 00000000
00000000 000e000e dead4ead
[  988.074171] 52c0  ffffffff ffffffff 00000000 00000000 dead4ead
ffffffff ffffffff 9cf452dc
[  988.074192] 52e0  9cf452dc 9cf452e4 9cf452e4 00000000 00000000
dead4ead ffffffff ffffffff
[  988.074213]
R5: 0x9cf45230:
[  988.074218] 5230  00000000 00000000 00000000 00000000 9cf44200
00000000 00000000 000001c5
[  988.074239] 5250  00000000 1b000000 1cf35ce9 1fffe748 00001fff
00000000 00000000 00000000
[  988.074259] 5270  00000000 00000000 00000000 00000000 0102a8c0
6702a8c0 c609a2a2 00000000
[  988.074279] 5290  00070002 00000000 00000000 a15c6974 8088e8fc
00000545 00000000 ffffffff
[  988.074300] 52b0  00000000 00000000 000e000e dead4ead ffffffff
ffffffff 00000000 00000000
[  988.074320] 52d0  dead4ead ffffffff ffffffff 9cf452dc 9cf452dc
9cf452e4 9cf452e4 00000000
[  988.074341] 52f0  00000000 dead4ead ffffffff ffffffff 00000000
00000000 00000000 00000000
[  988.074361] 5310  00000000 00000000 00000000 00015554 00000000
00000000 00000000 00000000
[  988.074382]
R6: 0x9cf45238:
[  988.074387] 5238  00000000 00000000 9cf44200 00000000 00000000
000001c5 00000000 1b000000
[  988.074408] 5258  1cf35ce9 1fffe748 00001fff 00000000 00000000
00000000 00000000 00000000
[  988.074428] 5278  00000000 00000000 0102a8c0 6702a8c0 c609a2a2
00000000 00070002 00000000
[  988.074448] 5298  00000000 a15c6974 8088e8fc 00000545 00000000
ffffffff 00000000 00000000
[  988.074469] 52b8  000e000e dead4ead ffffffff ffffffff 00000000
00000000 dead4ead ffffffff
[  988.074490] 52d8  ffffffff 9cf452dc 9cf452dc 9cf452e4 9cf452e4
00000000 00000000 dead4ead
[  988.074510] 52f8  ffffffff ffffffff 00000000 00000000 00000000
00000000 00000000 00000000
[  988.074530] 5318  00000000 00015554 00000000 00000000 00000000
00000000 00004301 00000000
[  988.074551]
R7: 0x9cf4534c:
[  988.074556] 534c  00000000 00000000 00004000 9cf45358 9cf45358
00000000 00000000 dead4ead
[  988.074577] 536c  ffffffff ffffffff 00000053 00000000 000000d0
ffffffff 00000000 00004000
[  988.074597] 538c  00000000 00000000 00000000 00000001 00000000
00000000 00000001 00000000
[  988.074617] 53ac  9cf453ac 9cf453ac 00000000 00000000 dead4ead
ffffffff ffffffff 8088e8fc
[  988.074638] 53cc  00000000 deaf1eed ffffffff ffffffff 00000000
00000000 00000000 00000000
[  988.074658] 53ec  000006d6 000004e2 7fffffff 7fffffff 00000000
00000000 00000000 00000000
[  988.074679] 540c  a3612000 804e957c 9cf45280 ffffffff 00000000
c4653600 ffffffff 00000000
[  988.074699] 542c  00000000 00000000 00000000 00000000 ffffffff
00000000 00000000 00000000
[  988.074720]
R10: 0x9e93f380:
[  988.074725] f380  00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000
[  988.074745] f3a0  00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000
[  988.074765] f3c0  00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000
[  988.074786] f3e0  00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000
[  988.074806] f400  9e93f400 9e93f400 9e93f408 9e93f408 00000001
00000000 00000000 00000000
[  988.074826] f420  00000000 7fbdee20 7fbdede4 00000000 9c158a40
a30a0e00 bd010002 0102a8c0
[  988.074847] f440  00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000
[  988.074867] f460  00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000
[  988.074889] Process mount.cifs (pid: 3925, stack limit = 0x9eff6238)
[  988.074895] Stack: (0x9eff7d68 to 0x9eff8000)
[  988.074903] 7d60:                   9cf4534c 9cf45280 9cf452b0
9cf452b8 9eff7d94 9eff7d88
[  988.074912] 7d80: 80487bfc 80487a80 9eff7dc4 9eff7d98 804db8ec
80487bc8 00000020 9e93f400
[  988.074920] 7da0: ffffff92 9cf45280 a30a0e00 00000010 0000bd01
9f3ba600 9eff7ddc 9eff7dc8
[  988.074928] 7dc0: 804febf0 804db768 a30a0e00 00000000 9eff7df4
9eff7de0 80482e6c 804feb74
[  988.074936] 7de0: 9e93f400 ffffff92 9eff7e24 9eff7df8 7fb997e8
80482e48 9eff7e00 00000001
[  988.074944] 7e00: a30a0e00 7fb9d6d4 9e93f43a 00000000 9e93f048
9e93f000 9eff7e64 9eff7e28
[  988.074952] 7e20: 7fb9d740 7fb99610 9ee4d000 9e93f648 9e93f400
00000000 7fb9b318 9d940e00
[  988.074960] 7e40: 9f3ba600 9e93f000 9ee4d000 00000000 9f193000
7fbde844 9eff7eb4 9eff7e68
[  988.074968] 7e60: 7fb8dcb4 7fb9d418 802e38e4 800dccf0 80d5a260
00000000 9ee4d000 9d940e00
[  988.074977] 7e80: 7fbde844 9ee4d000 9eff7ea4 00000000 9ee4d000
9d940e00 7fbde844 9ee4d000
[  988.074985] 7ea0: 9f193000 00000000 9eff7eec 9eff7eb8 80126028
7fb8dc18 9eff7eec 9eff7ec8
[  988.074993] 7ec0: 8013f238 9c18c0c0 9d940e00 00000000 7fbde844
9ee4d000 9d940e80 00000000
[  988.075001] 7ee0: 9eff7f14 9eff7ef0 8013f3b4 80125fe0 9ee4d000
7fbde844 8082da60 9ee4d000
[  988.075009] 7f00: 9d940e00 00000000 9eff7f6c 9eff7f18 80141934
8013f368 9ee4d000 7e7447d8
[  988.075017] 7f20: 00000000 00000020 9cedb790 a04ceed8 800dccf0
800f62ec 9eff7f6c 9eff7f48
[  988.075025] 7f40: 80141618 00000000 9f2d1000 7e7447d8 00000000
8000ef84 9eff6000 00000000
[  988.075033] 7f60: 9eff7fa4 9eff7f70 80142100 80141754 9ee4d000
00000000 00000015 9d940e80
[  988.075041] 7f80: 9d940e00 9ee4d000 76d77010 76d6c73c 00000000
00000015 00000000 9eff7fa8
[  988.075049] 7fa0: 8000ed00 80142078 76d77010 76d6c73c 7e7447d8
76d6c634 76d6c73c 00000000
[  988.075057] 7fc0: 76d77010 76d6c73c 00000000 00000015 76d77010
76d76008 00000000 76d5f90b
[  988.075065] 7fe0: 76d74fcc 7e744420 76d6a6b0 76cb1450 60000010
7e7447d8 48544150 4e4f435f
[  988.075069] Backtrace:
[  988.075081] [<80487a74>] (__sk_free+0x0/0x148) from [<80487bfc>]
(sk_free+0x40/0x44)
[  988.075087]  r6:9cf452b8 r5:9cf452b0 r4:9cf45280 r3:9cf4534c
[  988.075108] [<80487bbc>] (sk_free+0x0/0x44) from [<804db8ec>]
(tcp_close+0x190/0x490)
[  988.075119] [<804db75c>] (tcp_close+0x0/0x490) from [<804febf0>]
(inet_release+0x88/0xb4)
[  988.075124]  r8:9f3ba600 r7:0000bd01 r6:00000010 r5:a30a0e00 r4:9cf45280
[  988.075147] [<804feb68>] (inet_release+0x0/0xb4) from [<80482e6c>]
(sock_release+0x30/0xb0)
[  988.075152]  r5:00000000 r4:a30a0e00
[  988.075200] [<80482e3c>] (sock_release+0x0/0xb0) from [<7fb997e8>]
(generic_ip_connect+0x1e4/0x2fc [cifs])
[  988.075205]  r5:ffffff92 r4:9e93f400
[  988.075255] [<7fb99604>] (generic_ip_connect+0x0/0x2fc [cifs]) from
[<7fb9d740>] (cifs_mount+0x334/0x784 [cifs])
[  988.075260]  r7:9e93f000 r6:9e93f048 r5:00000000 r4:9e93f43a
[  988.075307] [<7fb9d40c>] (cifs_mount+0x0/0x784 [cifs]) from
[<7fb8dcb4>] (cifs_do_mount+0xa8/0x454 [cifs])
[  988.075332] [<7fb8dc0c>] (cifs_do_mount+0x0/0x454 [cifs]) from
[<80126028>] (mount_fs+0x54/0x194)
[  988.075345] [<80125fd4>] (mount_fs+0x0/0x194) from [<8013f3b4>]
(vfs_kern_mount+0x58/0xd8)
[  988.075356] [<8013f35c>] (vfs_kern_mount+0x0/0xd8) from
[<80141934>] (do_mount+0x1ec/0x924)
[  988.075360]  r8:00000000 r7:9d940e00 r6:9ee4d000 r5:8082da60 r4:7fbde844
r3:9ee4d000
[  988.075383] [<80141748>] (do_mount+0x0/0x924) from [<80142100>]
(SyS_mount+0x94/0xc8)
[  988.075397] [<8014206c>] (SyS_mount+0x0/0xc8) from [<8000ed00>]
(ret_fast_syscall+0x0/0x48)
[  988.075402]  r7:00000015 r6:00000000 r5:76d6c73c r4:76d77010
[  988.075418] Code: e3500000 0a000009 f57ff05f e1903f9f (e2433001)
[  988.075453] ---[ end trace 634f6b4ee6025b11 ]---

I've traced the problem in the CIFS module, file
kernel/fs/cifs/connect.c function generic_ip_connect. The crash
happens in sock_release() after a timeout trying to connect to the NAS
via a server socket. Th code snippet is this:

    rc = socket->ops->connect(socket, saddr, slen, 0);
    if (rc < 0) {
        cifs_dbg(FYI, "Error %d connecting to server\n", rc);
        sock_release(socket);
        server->ssocket = NULL;
        return rc;
    }


The error is 110 (timeout error) and the crash appears to be inside
the sock_release function due to alignment exception.

It seems to me hard to believe that there is a bug inside
sock_release(). I suspect more that maybe there is a mismatch between
the original kernel configuration and my own. Or maybe gcc compile
flags....

Anyways I've already tried the following:

- use a different arm toolchain. Result was identical.
- use a slightly different version of the cifs module (copied from a
3.9 kernel source code tree). Same result.

What else can I try ? Anyone can help with this ? I'm not even sure if
this is the appropriate forum to ask such questions. Anyhow, any help
appreciated !
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux