The patch titled Subject: mm/kasan, slub: don't disable interrupts when object leaves quarantine has been added to the -mm tree. Its filename is mm-kasan-slub-dont-disable-interrupts-when-object-leaves-quarantine.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-kasan-slub-dont-disable-interrupts-when-object-leaves-quarantine.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-kasan-slub-dont-disable-interrupts-when-object-leaves-quarantine.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/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Andrey Ryabinin <aryabinin@xxxxxxxxxxxxx> Subject: mm/kasan, slub: don't disable interrupts when object leaves quarantine SLUB doesn't require disabled interrupts to call ___cache_free(). Link: http://lkml.kernel.org/r/1470062715-14077-3-git-send-email-aryabinin@xxxxxxxxxxxxx Signed-off-by: Andrey Ryabinin <aryabinin@xxxxxxxxxxxxx> Acked-by: Alexander Potapenko <glider@xxxxxxxxxx> Cc: Dmitry Vyukov <dvyukov@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/kasan/quarantine.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff -puN mm/kasan/quarantine.c~mm-kasan-slub-dont-disable-interrupts-when-object-leaves-quarantine mm/kasan/quarantine.c --- a/mm/kasan/quarantine.c~mm-kasan-slub-dont-disable-interrupts-when-object-leaves-quarantine +++ a/mm/kasan/quarantine.c @@ -147,10 +147,14 @@ static void qlink_free(struct qlist_node struct kasan_alloc_meta *alloc_info = get_alloc_info(cache, object); unsigned long flags; - local_irq_save(flags); + if (IS_ENABLED(CONFIG_SLAB)) + local_irq_save(flags); + alloc_info->state = KASAN_STATE_FREE; ___cache_free(cache, object, _THIS_IP_); - local_irq_restore(flags); + + if (IS_ENABLED(CONFIG_SLAB)) + local_irq_restore(flags); } static void qlist_free_all(struct qlist_head *q, struct kmem_cache *cache) _ Patches currently in -mm which might be from aryabinin@xxxxxxxxxxxxx are mm-kasan-fix-corruptions-and-false-positive-reports.patch mm-kasan-dont-reduce-quarantine-in-atomic-contexts.patch mm-kasan-slub-dont-disable-interrupts-when-object-leaves-quarantine.patch mm-kasan-get-rid-of-alloc_size-in-struct-kasan_alloc_meta.patch mm-kasan-get-rid-of-state-in-struct-kasan_alloc_meta.patch kasan-improve-double-free-reports.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html