[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.22.394.2208011011120.2493025@gentwo.de>
Date: Mon, 1 Aug 2022 10:13:04 +0200 (CEST)
From: Christoph Lameter <cl@...two.de>
To: Feng Tang <feng.tang@...el.com>
cc: Dmitry Vyukov <dvyukov@...gle.com>,
"Sang, Oliver" <oliver.sang@...el.com>,
Vlastimil Babka <vbabka@...e.cz>, lkp <lkp@...el.com>,
LKML <linux-kernel@...r.kernel.org>,
"linux-mm@...ck.org" <linux-mm@...ck.org>,
"lkp@...ts.01.org" <lkp@...ts.01.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Pekka Enberg <penberg@...nel.org>,
David Rientjes <rientjes@...gle.com>,
Joonsoo Kim <iamjoonsoo.kim@....com>,
Roman Gushchin <roman.gushchin@...ux.dev>,
Hyeonggon Yoo <42.hyeyoo@...il.com>,
"Hansen, Dave" <dave.hansen@...el.com>,
Robin Murphy <robin.murphy@....com>,
John Garry <john.garry@...wei.com>,
Kefeng Wang <wangkefeng.wang@...wei.com>,
Andrey Konovalov <andreyknvl@...il.com>,
Andrey Ryabinin <ryabinin.a.a@...il.com>,
Alexander Potapenko <glider@...gle.com>,
"kasan-dev@...glegroups.com" <kasan-dev@...glegroups.com>
Subject: Re: [mm/slub] 3616799128:
BUG_kmalloc-#(Not_tainted):kmalloc_Redzone_overwritten
On Mon, 1 Aug 2022, Feng Tang wrote:
> > Or does it make sense to prohibit KASAN+SLUB_DEBUG combination? Does
> > SLUB_DEBUG add anything on top of KASAN?
>
> I did a quick glance, seems the KASAN will select SLUB_DEBUG in
> many cases, as shown in the lib/Kconfig.kasan:
>
> config KASAN_GENERIC
> ...
> select SLUB_DEBUG if SLUB
>
> config KASAN_SW_TAGS
> ...
> select SLUB_DEBUG if SLUB
SLUB_DEBUG is on by default on all distros. This just means that debugging
support is compiled in but not activated. Kasan etc could depend on
SLUB_DEBUG. Without SLUB_DEBUG the debugging infrastructure of SLUB that
is use by Kasan is not included.
If you want to enable debugging on bootup then you need to set
SLUB_DEBUG_ON.
Powered by blists - more mailing lists