Skip to content
Commit 5f23b734 authored by dann frazier's avatar dann frazier Committed by David S. Miller
Browse files

net: Fix soft lockups/OOM issues w/ unix garbage collector



This is an implementation of David Miller's suggested fix in:
  https://bugzilla.redhat.com/show_bug.cgi?id=470201

It has been updated to use wait_event() instead of
wait_event_interruptible().

Paraphrasing the description from the above report, it makes sendmsg()
block while UNIX garbage collection is in progress. This avoids a
situation where child processes continue to queue new FDs over a
AF_UNIX socket to a parent which is in the exit path and running
garbage collection on these FDs. This contention can result in soft
lockups and oom-killing of unrelated processes.

Signed-off-by: default avatardann frazier <dannf@hp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent efbbced3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment