[Bug,204479] KASAN hit at modprobe zram
diff mbox series

Message ID bug-204479-206035-CtKn8YKUwu@https.bugzilla.kernel.org/
State New
Headers show
  • [Bug,204479] KASAN hit at modprobe zram
Related show


Context Check Description
snowpatch_ozlabs/apply_patch fail Failed to apply to any branch

Commit Message

bugzilla-daemon@bugzilla.kernel.org Aug. 8, 2019, 1:57 p.m. UTC

--- Comment #4 from Christophe Leroy (christophe.leroy@c-s.fr) ---
We need to identify if the allocation of KASAN shadow area at module allocation
fails, or if kasan accesses outside of the allocated area.

Could you please run again with the below trace:

diff mbox series

diff --git a/arch/powerpc/mm/kasan/kasan_init_32.c
index 74f4555a62ba..2bca2bf691a9 100644
--- a/arch/powerpc/mm/kasan/kasan_init_32.c
+++ b/arch/powerpc/mm/kasan/kasan_init_32.c
@@ -142,6 +142,9 @@  void *module_alloc(unsigned long size)
        if (!base)
                return NULL;

+       pr_err("###### module_alloc(%lx) = %px [%px-%px]\n", size, base,
+              kasan_mem_to_shadow(base), kasan_mem_to_shadow(base + size));
        if (!kasan_init_region(base, size))
                return base;