]> git.baikalelectronics.ru Git - kernel.git/commit
mm/kasan: prevent deadlock in kasan reporting
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Fri, 6 Nov 2015 02:50:51 +0000 (18:50 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Nov 2015 03:34:48 +0000 (19:34 -0800)
commit3e7c320106a3251a2463868df67d448028b58415
tree17b6521e9f9ba2d43d6d0b4d416d5a599e561980
parent75e082fc3b365d5f4cfc1ab851a53519f5badbd0
mm/kasan: prevent deadlock in kasan reporting

When we end up calling kasan_report in real mode, our shadow mapping for
the spinlock variable will show poisoned.  This will result in us calling
kasan_report_error with lock_report spin lock held.  To prevent this
disable kasan reporting when we are priting error w.r.t kasan.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Reviewed-by: Andrey Ryabinin <ryabinin.a.a@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/kasan/report.c