Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 413119 - =sys-kernel/gentoo-sources-3.3.1, .2, .3, .4 flock on nfs4 drive crashes user apps
Summary: =sys-kernel/gentoo-sources-3.3.1, .2, .3, .4 flock on nfs4 drive crashes user...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard: linux-3.3.5
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-22 16:30 UTC by Max Klinger
Modified: 2012-06-22 00:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch from the nfs maintainer (file_413119.txt,1.67 KB, text/plain)
2012-04-23 15:51 UTC, Max Klinger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Max Klinger 2012-04-22 16:30:08 UTC
[62413.673669] PGD 1983067 PUD 1984067 PMD 0 
[62413.673672] Oops: 0000 [#5] PREEMPT SMP 
[62413.673674] CPU 0 
[62413.673676] Modules linked in: vboxnetadp(O) vboxnetflt(O) vboxdrv(O) nvidia(PO)
[62413.673681] 
[62413.673683] Pid: 19310, comm: gedit Tainted: P      D    O 3.3.2-gentoo-gaf.0 #1 System manufacturer System Product Name/M3N78 PRO
[62413.673687] RIP: 0010:[<ffffffff81223918>]  [<ffffffff81223918>] nfs_have_delegation+0x18/0x50
[62413.673691] RSP: 0018:ffff88003f103e28  EFLAGS: 00010202
[62413.673692] RAX: ffff8801271f9320 RBX: 0000000000000000 RCX: 00000000ffffd8ca
[62413.673694] RDX: ffff88003f103eb8 RSI: 0000000000000001 RDI: 0000000000000000
[62413.673696] RBP: 0000000000000001 R08: ffff88003f102000 R09: 0000000000000000
[62413.673697] R10: 0000000000000001 R11: 0000000000000000 R12: ffff88003f103eb8
[62413.673699] R13: ffff88004d0ab540 R14: ffff88011ade6000 R15: 0000000000000000
[62413.673701] FS:  00007f4b5a926920(0000) GS:ffff880127c00000(0000) knlGS:00000000f774b680
[62413.673703] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[62413.673704] CR2: ffffffffffffffc0 CR3: 000000001a92b000 CR4: 00000000000006f0
[62413.673706] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[62413.673708] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[62413.673710] Process gedit (pid: 19310, threadinfo ffff88003f102000, task ffff8801271f9320)
[62413.673711] Stack:
[62413.673712]  ffffffff8199ca10 00000000ffffd8ca ffff88011df56800 ffffffff812158a5
[62413.673715]  ffff88004d0ab540 ffff880122280440 ffff88004d0ab540 0000000000000082
[62413.673717]  ffff88003f103eb8 ffff8800393f85f0 00000000fffffff5 ffffffff81217bb3
[62413.673720] Call Trace:
[62413.673724]  [<ffffffff812158a5>] ? nfs4_handle_exception+0x275/0x320
[62413.673727]  [<ffffffff81217bb3>] ? nfs4_proc_lock+0x213/0x440
[62413.673730]  [<ffffffff811fbec4>] ? do_setlk+0xf4/0x110
[62413.673734]  [<ffffffff81144bbf>] ? sys_flock+0xdf/0x1b0
[62413.673737]  [<ffffffff817613b9>] ? system_call_fastpath+0x16/0x1b
[62413.673738] Code: 00 00 00 f0 80 4f 48 04 c3 66 2e 0f 1f 84 00 00 00 00 00 48 83 ec 18 48 89 5c 24 08 48 89 fb 48 89 6c 24 10 89 f5 e8 88 a9 e9 ff <48> 8b 53 c0 31 db 48 85 d2 74 15 8b 42 30 89 ee 83 e6 03 21 f0 
[62413.673758] RIP  [<ffffffff81223918>] nfs_have_delegation+0x18/0x50
[62413.673761]  RSP <ffff88003f103e28>
[62413.673762] CR2: ffffffffffffffc0
[62413.673764] ---[ end trace 0431bd421e357428 ]---


Reproducible: Always

Steps to Reproduce:
1. install linux-kernel >=3.3.1
2. use a program that flocks (piding and gedit for us)
3. observe the application getting killed and have a look at dmesg
Actual Results:  
[62413.673654] BUG: unable to handle kernel paging request at ffffffffffffffc0
[62413.673660] IP: [<ffffffff81223918>] nfs_have_delegation+0x18/0x50
[62413.673669] PGD 1983067 PUD 1984067 PMD 0 
[62413.673672] Oops: 0000 [#5] PREEMPT SMP 
[62413.673674] CPU 0 
[62413.673676] Modules linked in: vboxnetadp(O) vboxnetflt(O) vboxdrv(O) nvidia(PO)
[62413.673681] 
[62413.673683] Pid: 19310, comm: gedit Tainted: P      D    O 3.3.2-gentoo-gaf.0 #1 System manufacturer System Product Name/M3N78 PRO
[62413.673687] RIP: 0010:[<ffffffff81223918>]  [<ffffffff81223918>] nfs_have_delegation+0x18/0x50
[62413.673691] RSP: 0018:ffff88003f103e28  EFLAGS: 00010202
[62413.673692] RAX: ffff8801271f9320 RBX: 0000000000000000 RCX: 00000000ffffd8ca
[62413.673694] RDX: ffff88003f103eb8 RSI: 0000000000000001 RDI: 0000000000000000
[62413.673696] RBP: 0000000000000001 R08: ffff88003f102000 R09: 0000000000000000
[62413.673697] R10: 0000000000000001 R11: 0000000000000000 R12: ffff88003f103eb8
[62413.673699] R13: ffff88004d0ab540 R14: ffff88011ade6000 R15: 0000000000000000
[62413.673701] FS:  00007f4b5a926920(0000) GS:ffff880127c00000(0000) knlGS:00000000f774b680
[62413.673703] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[62413.673704] CR2: ffffffffffffffc0 CR3: 000000001a92b000 CR4: 00000000000006f0
[62413.673706] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[62413.673708] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[62413.673710] Process gedit (pid: 19310, threadinfo ffff88003f102000, task ffff8801271f9320)
[62413.673711] Stack:
[62413.673712]  ffffffff8199ca10 00000000ffffd8ca ffff88011df56800 ffffffff812158a5
[62413.673715]  ffff88004d0ab540 ffff880122280440 ffff88004d0ab540 0000000000000082
[62413.673717]  ffff88003f103eb8 ffff8800393f85f0 00000000fffffff5 ffffffff81217bb3
[62413.673720] Call Trace:
[62413.673724]  [<ffffffff812158a5>] ? nfs4_handle_exception+0x275/0x320
[62413.673727]  [<ffffffff81217bb3>] ? nfs4_proc_lock+0x213/0x440
[62413.673730]  [<ffffffff811fbec4>] ? do_setlk+0xf4/0x110
[62413.673734]  [<ffffffff81144bbf>] ? sys_flock+0xdf/0x1b0
[62413.673737]  [<ffffffff817613b9>] ? system_call_fastpath+0x16/0x1b
[62413.673738] Code: 00 00 00 f0 80 4f 48 04 c3 66 2e 0f 1f 84 00 00 00 00 00 48 83 ec 18 48 89 5c 24 08 48 89 fb 48 89 6c 24 10 89 f5 e8 88 a9 e9 ff <48> 8b 53 c0 31 db 48 85 d2 74 15 8b 42 30 89 ee 83 e6 03 21 f0 
[62413.673758] RIP  [<ffffffff81223918>] nfs_have_delegation+0x18/0x50
[62413.673761]  RSP <ffff88003f103e28>
[62413.673762] CR2: ffffffffffffffc0
[62413.673764] ---[ end trace 0431bd421e357428 ]---


Expected Results:  
Profit, well anything but crash the application really

Same bug as https://bugzilla.redhat.com/show_bug.cgi?id=811138
Comment 1 Max Klinger 2012-04-23 14:48:49 UTC
That should have read pidgin. 
In the spirit of clarification, pidgin crashes straight upon start, gedit upon saving and we have now found out that midori also crashes when starting and the config is on the nfs volume.

We tested the 3.3.3 kernel, added to the tree today and it still exhibits the behaviour described.
Comment 2 Max Klinger 2012-04-23 15:51:26 UTC
Created attachment 309859 [details]
Patch from the nfs maintainer

Patch from Trond Myklebust (the Linux nfs maintainer) scraped from the lkml
Not pulled by Linus yet, but working for us. Fixes the crashes on our machines.
Comment 3 Max Klinger 2012-05-02 15:00:26 UTC
The 3.3.4 sources still exhibit mentioned behaviour which is to be assumed, since the patch hasn't been applied upstream yet.
Comment 4 Michael Weber (RETIRED) gentoo-dev 2012-05-13 22:12:50 UTC
included in genoo-sources-3.3.5
Comment 5 Mike Pagano gentoo-dev 2012-06-22 00:10:58 UTC
This patch is contained in gentoo-sources.