On Tue, Jan 04, 2022 at 01:10:39AM +0100, Vlastimil Babka wrote: > From: "Matthew Wilcox (Oracle)" <willy@xxxxxxxxxxxxx> > > KASAN accesses some slab related struct page fields so we need to > convert it to struct slab. Some places are a bit simplified thanks to > kasan_addr_to_slab() encapsulating the PageSlab flag check through > virt_to_slab(). When resolving object address to either a real slab or > a large kmalloc, use struct folio as the intermediate type for testing > the slab flag to avoid unnecessary implicit compound_head(). > > [ vbabka@xxxxxxx: use struct folio, adjust to differences in previous > patches ] > > Signed-off-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx> > Signed-off-by: Vlastimil Babka <vbabka@xxxxxxx> > Reviewed-by: Andrey Konovalov <andreyknvl@xxxxxxxxx> > Tested-by: Hyeongogn Yoo <42.hyeyoo@xxxxxxxxx> > Cc: Andrey Ryabinin <ryabinin.a.a@xxxxxxxxx> > Cc: Alexander Potapenko <glider@xxxxxxxxxx> > Cc: Andrey Konovalov <andreyknvl@xxxxxxxxx> > Cc: Dmitry Vyukov <dvyukov@xxxxxxxxxx> > Cc: <kasan-dev@xxxxxxxxxxxxxxxx> Reviewed-by: Roman Gushchin <guro@xxxxxx> Thanks!