linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/1] Fix object remain in offline per-cpu quarantine
@ 2020-11-16  6:29 Kuan-Ying Lee
  2020-11-16  6:29 ` [PATCH v2 1/1] kasan: fix " Kuan-Ying Lee
  0 siblings, 1 reply; 6+ messages in thread
From: Kuan-Ying Lee @ 2020-11-16  6:29 UTC (permalink / raw)
  To: Andrey Ryabinin, Alexander Potapenko, Dmitry Vyukov,
	Andrew Morton, Matthias Brugger
  Cc: miles.chen, wsd_upstream, Kuan-Ying Lee, linux-kernel, kasan-dev,
	linux-mm, nicholas.tang, linux-mediatek, guangye.yang,
	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.

Changes since v2:
 - Thanks for Dmitry suggestion
 - Remove unnecessary code
 - Put offline variable into cpu_quarantine
 - Use single qlist_free_all call instead of iteration over all slabs
 - Add bug reporter in commit message

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

 mm/kasan/quarantine.c | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

-- 
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-19 12:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-16  6:29 [PATCH v2 0/1] Fix object remain in offline per-cpu quarantine Kuan-Ying Lee
2020-11-16  6:29 ` [PATCH v2 1/1] kasan: fix " Kuan-Ying Lee
2020-11-16  9:26   ` Dmitry Vyukov
2020-11-17  6:46     ` Kuan-Ying Lee
2020-11-17  7:13       ` Dmitry Vyukov
2020-11-19 12:06         ` 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;
as well as URLs for NNTP newsgroup(s).