Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 293121

Summary: Kernel panic during shutdown when using sys-block/iscsitarget 0.4.17
Product: Gentoo Linux Reporter: Tim Wright <timw>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED NEEDINFO    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
URL: http://www.ultraviolet.org/mail-archives/iscsitarget-devel.2009/msg00108.html
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Ebuild patch to add the extra patch fix for this problem

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?