kasan: call kasan_malloc() from __kmalloc_*track_caller()
authorPeter Collingbourne <pcc@google.com>
Wed, 14 Sep 2022 02:00:01 +0000 (19:00 -0700)
committerVlastimil Babka <vbabka@suse.cz>
Fri, 16 Sep 2022 21:05:59 +0000 (23:05 +0200)
commit5373b8a09d6e037ee0587cb5d9fe4cc09077deeb
tree14d7ee978f14f59ac7e279bdbdbbab110574d144
parent7e9c323c52b379d261a72dc7bd38120a761a93cd
kasan: call kasan_malloc() from __kmalloc_*track_caller()

We were failing to call kasan_malloc() from __kmalloc_*track_caller()
which was causing us to sometimes fail to produce KASAN error reports
for allocations made using e.g. devm_kcalloc(), as the KASAN poison was
not being initialized. Fix it.

Signed-off-by: Peter Collingbourne <pcc@google.com>
Cc: <stable@vger.kernel.org> # 5.15
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
mm/slub.c