Re: [PATCH] kmemleak: fix check for softirq context

2019-05-18 Thread Catalin Marinas
On Sat, May 18, 2019 at 09:10:59AM +0200, Dmitry Vyukov wrote: > On Fri, May 17, 2019 at 11:37 PM Andrew Morton > wrote: > > On Fri, 17 May 2019 19:15:07 +0200 Dmitry Vyukov wrote: > > > > > From: Dmitry Vyukov > > > > > > in_softirq() is a wrong predicate to check if we are in a softirq

Re: [PATCH] kmemleak: fix check for softirq context

2019-05-18 Thread Dmitry Vyukov
On Fri, May 17, 2019 at 11:37 PM Andrew Morton wrote: > > On Fri, 17 May 2019 19:15:07 +0200 Dmitry Vyukov wrote: > > > From: Dmitry Vyukov > > > > in_softirq() is a wrong predicate to check if we are in a softirq context. > > It also returns true if we have BH disabled, so objects are falsely

Re: [PATCH] kmemleak: fix check for softirq context

2019-05-17 Thread Andrew Morton
On Fri, 17 May 2019 19:15:07 +0200 Dmitry Vyukov wrote: > From: Dmitry Vyukov > > in_softirq() is a wrong predicate to check if we are in a softirq context. > It also returns true if we have BH disabled, so objects are falsely > stamped with "softirq" comm. The correct predicate is

[PATCH] kmemleak: fix check for softirq context

2019-05-17 Thread Dmitry Vyukov
From: Dmitry Vyukov in_softirq() is a wrong predicate to check if we are in a softirq context. It also returns true if we have BH disabled, so objects are falsely stamped with "softirq" comm. The correct predicate is in_serving_softirq(). Signed-off-by: Dmitry Vyukov Cc: linux...@kvack.org Cc: