Re: [PATCH] net: unix: properly re-increment inflight counter of GC discarded candidates

2017-03-21 Thread David Miller
From: Andrey Ulanov Date: Tue, 14 Mar 2017 20:16:42 -0700 > Dmitry has reported that a BUG_ON() condition in unix_notinflight() > may be triggered by a simple code that forwards unix socket in an > SCM_RIGHTS message. > That is caused by incorrect unix socket GC implementation in unix_gc(). > >

[PATCH] net: unix: properly re-increment inflight counter of GC discarded candidates

2017-03-14 Thread Andrey Ulanov
Dmitry has reported that a BUG_ON() condition in unix_notinflight() may be triggered by a simple code that forwards unix socket in an SCM_RIGHTS message. That is caused by incorrect unix socket GC implementation in unix_gc(). The GC first collects list of candidates, then (a) decrements their "chi