Messages in this thread | | | Date | Wed, 11 Mar 2020 14:18:48 +0000 | From | Catalin Marinas <> | Subject | Re: [PATCH -next 1/2] mm: disable KCSAN for kmemleak |
| |
On Tue, Mar 03, 2020 at 02:28:35PM -0500, Qian Cai wrote: > Kmemleak could scan task stacks while plain writes happens to those > stack variables which could results in data races. For example, in > sys_rt_sigaction and do_sigaction(), it could have plain writes in > a 32-byte size. Since the kmemleak does not care about the actual values > of a non-pointer and all do_sigaction() call sites only copy to stack > variables, just disable KCSAN for kmemleak to avoid annotating anything > outside Kmemleak just because Kmemleak scans everything. > > Suggested-by: Marco Elver <elver@google.com> > Signed-off-by: Qian Cai <cai@lca.pw>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
| |