All of lore.kernel.org
 help / color / mirror / Atom feed
* + kasan-simplify-kasan_poison_kfree-temp-fix.patch added to -mm tree
@ 2020-11-13  0:22 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2020-11-13  0:22 UTC (permalink / raw)
  To: andreyknvl, cai, lstoakes, mm-commits, sfr


The patch titled
     Subject: kasan-simplify-kasan_poison_kfree-temp-fix
has been added to the -mm tree.  Its filename is
     kasan-simplify-kasan_poison_kfree-temp-fix.patch

This patch should soon appear at
    https://ozlabs.org/~akpm/mmots/broken-out/kasan-simplify-kasan_poison_kfree-temp-fix.patch
and later at
    https://ozlabs.org/~akpm/mmotm/broken-out/kasan-simplify-kasan_poison_kfree-temp-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: Lorenzo Stoakes <lstoakes@gmail.com>
Subject: kasan-simplify-kasan_poison_kfree-temp-fix

temp workaround for a ceph-related oops

Link: https://lkml.kernel.org/r/CAA5enKY8mBicpc7kZKKLG5LeVFhVJtRQ73MYVFM0Az2bbiGv8g@mail.gmail.com
Reported-by: syzbot+2d6f3dad1a42d86a5801@syzkaller.appspotmail.com
Cc: Andrey Konovalov <andreyknvl@google.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Qian Cai <cai@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/kasan/common.c |    5 +++++
 1 file changed, 5 insertions(+)

--- a/mm/kasan/common.c~kasan-simplify-kasan_poison_kfree-temp-fix
+++ a/mm/kasan/common.c
@@ -439,6 +439,11 @@ void __kasan_poison_kfree(void *ptr, uns
 	struct page *page;
 
 	page = virt_to_head_page(ptr);
+
+	if (!PageSlab(page)) {
+		return;
+	}
+
 	____kasan_slab_free(page->slab_cache, ptr, ip, false);
 }
 
_

Patches currently in -mm which might be from lstoakes@gmail.com are

kasan-simplify-kasan_poison_kfree-temp-fix.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-11-13  0:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-13  0:22 + kasan-simplify-kasan_poison_kfree-temp-fix.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.