* + kasan-fix-object-remaining-in-offline-per-cpu-quarantine-fix.patch added to -mm tree
@ 2020-12-05 1:24 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2020-12-05 1:24 UTC (permalink / raw)
To: aryabinin, dvyukov, glider, guangye.yang, Kuan-Ying.Lee,
matthias.bgg, miles.chen, mm-commits, nicholas.tang, qcai,
qiang.zhang, sfr
The patch titled
Subject: kasan: fix slab double free when cpu-hotplug
has been added to the -mm tree. Its filename is
kasan-fix-object-remaining-in-offline-per-cpu-quarantine-fix.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/kasan-fix-object-remaining-in-offline-per-cpu-quarantine-fix.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/kasan-fix-object-remaining-in-offline-per-cpu-quarantine-fix.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Zqiang <qiang.zhang@windriver.com>
Subject: kasan: fix slab double free when cpu-hotplug
When a CPU offline, the per-cpu quarantine's offline be set true, after
this, if the quarantine_put be called in this CPU, the objects will be
free and return false, free objects doesn't to be done, due to return
false, the slab memory manager will free this objects.
Link: https://lkml.kernel.org/r/20201204102206.20237-1-qiang.zhang@windriver.com
Fixes: 41ab1aae781f ("kasan: fix object remaining in offline per-cpu quarantine")
Signed-off-by: Zqiang <qiang.zhang@windriver.com>
Cc: Kuan-Ying Lee <Kuan-Ying.Lee@mediatek.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Guangye Yang <guangye.yang@mediatek.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Cc: Nicholas Tang <nicholas.tang@mediatek.com>
Cc: Miles Chen <miles.chen@mediatek.com>
Cc: Qian Cai <qcai@redhat.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/kasan/quarantine.c | 1 -
1 file changed, 1 deletion(-)
--- a/mm/kasan/quarantine.c~kasan-fix-object-remaining-in-offline-per-cpu-quarantine-fix
+++ a/mm/kasan/quarantine.c
@@ -191,7 +191,6 @@ void quarantine_put(struct kasan_free_me
q = this_cpu_ptr(&cpu_quarantine);
if (q->offline) {
- qlink_free(&info->quarantine_link, cache);
local_irq_restore(flags);
return;
}
_
Patches currently in -mm which might be from qiang.zhang@windriver.com are
kasan-fix-object-remaining-in-offline-per-cpu-quarantine-fix.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-12-05 1:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-05 1:24 + kasan-fix-object-remaining-in-offline-per-cpu-quarantine-fix.patch added to -mm tree akpm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox