Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 293121 - Kernel panic during shutdown when using sys-block/iscsitarget 0.4.17
Summary: Kernel panic during shutdown when using sys-block/iscsitarget 0.4.17
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://www.ultraviolet.org/mail-archi...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-13 22:04 UTC by Tim Wright
Modified: 2010-04-10 21:04 UTC (History)
0 users

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


Attachments
Ebuild patch to add the extra patch fix for this problem (iscsitarget.diff,1.26 KB, patch)
2009-11-13 22:25 UTC, Tim Wright
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Wright 2009-11-13 22:04:54 UTC
Gentoo 2.6.0-r5 crashes with a BUG in net/core/dev.c. This is the same issue reported in http://www.ultraviolet.org/mail-archives/iscsitarget-devel.2009/msg00090.html and occurs because the code wrongly calls sock_release() on the netlink socket rather than using netlink_kernel_release(). There's a simple patch fix at http://www.ultraviolet.org/mail-archives/iscsitarget-devel.2009/msg00108.html which 100% resolves the problem for me.

Reproducible: Always

Steps to Reproduce:
1. Install current 2.6.30-r5 server gentoo config (in VMware as it happens).
2. emerge iscsitarget
3. /etc/init.d/ietd start; poweroff


Actual Results:  
Kernel trips the BUG_ON described above.

Expected Results:  
Normal shutdown.

I created an overlay portage area and rebuilt with this extra patch and it solves the problem.
Comment 1 Tim Wright 2009-11-13 22:25:31 UTC
Created attachment 210181 [details, diff]
Ebuild patch to add the extra patch fix for this problem

Diff against the portage /usr/portage/sys-block/iscsitarget tree to add the patch that fixes this problem.
Comment 2 Stefan Behte (RETIRED) gentoo-dev Security 2010-04-02 22:44:59 UTC
Could you test if the newest iscsitarget in portage fixes this for you?