public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 0/1] Fix objects remain in the offline per-cpu quarantine
@ 2020-11-12  6:24 Kuan-Ying Lee
  2020-11-12  6:24 ` [PATCH 1/1] kasan: fix object remain in " Kuan-Ying Lee
  0 siblings, 1 reply; 6+ messages in thread
From: Kuan-Ying Lee @ 2020-11-12  6:24 UTC (permalink / raw)
  To: Andrey Ryabinin, Alexander Potapenko, Dmitry Vyukov,
	Andrew Morton, Matthias Brugger
  Cc: wsd_upstream, Kuan-Ying Lee, nicholas.tang, linux-kernel,
	kasan-dev, linux-mm, miles.chen, linux-mediatek, linux-arm-kernel

This patch fixes object remain in the offline per-cpu quarantine as
describe below.

Free objects will get into per-cpu quarantine if enable generic KASAN.
If a cpu is offline and users use kmem_cache_destroy, kernel will detect
objects still remain in the offline per-cpu quarantine and report error.

Register a cpu hotplug function to remove all objects in the offline
per-cpu quarantine when cpu is going offline. Set a per-cpu variable
to indicate this cpu is offline.

Kuan-Ying Lee (1):
  kasan: fix object remain in offline per-cpu quarantine

 mm/kasan/quarantine.c | 59 +++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 57 insertions(+), 2 deletions(-)

-- 
2.18.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-11-16  1:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-12  6:24 [PATCH 0/1] Fix objects remain in the offline per-cpu quarantine Kuan-Ying Lee
2020-11-12  6:24 ` [PATCH 1/1] kasan: fix object remain in " Kuan-Ying Lee
2020-11-12  8:39   ` Dmitry Vyukov
2020-11-13  2:31     ` Kuan-Ying Lee
2020-11-13  7:03       ` Dmitry Vyukov
2020-11-16  1:44         ` Kuan-Ying Lee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox