[BUG] Netfilter ipt_owner deadlock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

there's a nasty problem with the ipt_owner netfilter code:

It does a spin_lock(&files->file_lock), sometimes from softirq context.
This can lead to deadlocks on SMP systems. The lock must not be taken
from softirq context because the rest of the kernel doesn't use
spin_lock_bh.

On a UP machine (that had an SMP compiled kernel) the machine repeatedly
locked up after approx. five minutes. SysRQ shows backtraces like fput
-> timer interrupt -> softirq -> ipv4 -> netfilter -> ipt_owner -> hang.

I don't see a clean solution for this (except for changing all the
spin_locks to spin_lock_bhs which I think is way too aggressive).

Any ideas?


-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux