Bug 79441

Summary: Kernel Panic caused by atalkd
Product: Networking Reporter: Ed Martin (edman007)
Component: OtherAssignee: Stephen Hemminger (stephen)
Status: NEW ---    
Severity: normal CC: andrey_utkin
Priority: P1    
Hardware: x86-64   
OS: Linux   
Kernel Version: 3.15.3 Subsystem:
Regression: No Bisected commit-id:
Attachments: 3.14.4 Panic Trace
3.14.5 Panic Trace
3.15.3 Panic Trace
appletalk: Set skb with destructor
appletalk: Fix socket referencing in skb

Description Ed Martin 2014-07-03 00:42:16 UTC
Created attachment 141971 [details]
3.14.4 Panic Trace

I installed slackware-current, it has the 3.14.5 kernel (unpatched) and when I try running atalkd I get the panic shown in the attachments. Same issue on 3.14.4 and 3.15.3

netatalk 2.2.3 is installed.

I'm not too sure what else you need, but I should be able to get any other info you need about it, but it's very consistent and easy to generate, so I can provide the info, and I got it happening in qemu as well.

The backtrace taken with a physical camera was on my hardware (dual quad core core2 xeon), the other two (screenshots) were taken in qemu running on the same hardware, there is a mac on the network, but iptraf shows no traffic between the mac and qemu.
Comment 1 Ed Martin 2014-07-03 00:43:08 UTC
Created attachment 141981 [details]
3.14.5 Panic Trace
Comment 2 Ed Martin 2014-07-03 00:43:44 UTC
Created attachment 141991 [details]
3.15.3 Panic Trace
Comment 3 Andrey Utkin 2014-07-05 03:01:56 UTC
Created attachment 142101 [details]
appletalk: Set skb with destructor
Comment 4 Andrey Utkin 2014-07-05 03:02:57 UTC
Please try this patch.
Comment 5 Ed Martin 2014-07-05 04:15:33 UTC
Tested it on 3.15.3, no crash, it seems to work :)
Comment 6 Andrey Utkin 2014-07-05 04:30:44 UTC
Thanks for report, posted into lists: https://patchwork.kernel.org/patch/4486251/
Comment 7 Andrey Utkin 2014-07-07 18:53:56 UTC
Created attachment 142361 [details]
appletalk: Fix socket referencing in skb

Ed, please check if this new patch fixes the issue.
Comment 8 Ed Martin 2014-07-07 20:08:56 UTC
Yup, that works too on 3.15.3
Comment 9 Andrey Utkin 2014-07-08 10:23:51 UTC
Thank you Ed, please consider marking the ticket as RESOLVED CODE_FIX.