linux-stable/mm/kasan
Lecopzer Chen fee5a83dfc kasan: fix incorrect arguments passing in kasan_add_zero_shadow
commit 5dabd1712c upstream.

kasan_remove_zero_shadow() shall use original virtual address, start and
size, instead of shadow address.

Link: https://lkml.kernel.org/r/20210103063847.5963-1-lecopzer@gmail.com
Fixes: 0207df4fa1 ("kernel/memremap, kasan: make ZONE_DEVICE with work with KASAN")
Signed-off-by: Lecopzer Chen <lecopzer.chen@mediatek.com>
Reviewed-by: Andrey Konovalov <andreyknvl@google.com>
Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Alexander Potapenko <glider@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-27 11:55:23 +01:00
..
common.c kasan: remove kasan_unpoison_stack_above_sp_to() 2020-08-07 11:33:28 -07:00
generic.c kasan: record and print the free track 2020-08-07 11:33:28 -07:00
generic_report.c kasan: record and print the free track 2020-08-07 11:33:28 -07:00
init.c kasan: fix incorrect arguments passing in kasan_add_zero_shadow 2021-01-27 11:55:23 +01:00
kasan.h kasan: record and print the free track 2020-08-07 11:33:28 -07:00
Makefile kbuild: remove cc-option test of -fno-stack-protector 2020-07-07 11:13:10 +09:00
quarantine.c kasan: fix object remaining in offline per-cpu quarantine 2020-12-11 14:02:14 -08:00
report.c mm: kasan: do not panic if both panic_on_warn and kasan_multishot set 2020-10-13 18:38:32 -07:00
tags.c kasan: record and print the free track 2020-08-07 11:33:28 -07:00
tags_report.c kasan: detect negative size in memory operation function 2020-04-02 09:35:30 -07:00