android_kernel_motorola_sm6375/mm/kasan
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Alexander Potapenko c3cee37228 kasan: avoid overflowing quarantine size on low memory systems
If the total amount of memory assigned to quarantine is less than the
amount of memory assigned to per-cpu quarantines, |new_quarantine_size|
may overflow.  Instead, set it to zero.

[[email protected]: cleanup: use WARN_ONCE return value]
Link: http://lkml.kernel.org/r/[email protected]
Fixes: 55834c5909 ("mm: kasan: initial memory quarantine implementation")
Signed-off-by: Alexander Potapenko <[email protected]>
Reported-by: Dmitry Vyukov <[email protected]>
Cc: Andrey Ryabinin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2016-08-02 17:31:41 -04:00
..
kasan.c kasan: improve double-free reports 2016-08-02 17:31:41 -04:00
kasan.h kasan: improve double-free reports 2016-08-02 17:31:41 -04:00
kasan_init.c x86/kasan, mm: Introduce generic kasan_populate_zero_shadow() 2015-08-22 14:54:55 +02:00
Makefile mm, kasan: switch SLUB to stackdepot, enable memory quarantine for SLUB 2016-07-28 16:07:41 -07:00
quarantine.c kasan: avoid overflowing quarantine size on low memory systems 2016-08-02 17:31:41 -04:00
report.c kasan: improve double-free reports 2016-08-02 17:31:41 -04:00