PM / Hibernate: Don't let kasan instrument snapshot.c
commit678309117768e25751594a48a2d873b0552a3130
authorJames Morse <james.morse@arm.com>
Thu, 2 Jun 2016 12:20:32 +0000 (2 13:20 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 13 Jun 2016 22:38:56 +0000 (14 00:38 +0200)
tree05fd4cf2a758f3ed26683ebe4f9aa0278046feef
parent5edb56491d4812c42175980759da53388e5d86f5
PM / Hibernate: Don't let kasan instrument snapshot.c

Kasan causes the compiler to instrument C code and is used at runtime to
detect accesses to memory that has been freed, or not yet allocated.

The code in snapshot.c saves and restores memory when hibernating. This will
access whole pages in the slab cache that have both free and allocated
areas, resulting in a large number of false positives from Kasan.

Disable instrumentation of this file.

Signed-off-by: James Morse <james.morse@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/Makefile