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.
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.
Could you test if the newest iscsitarget in portage fixes this for you?