mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 06:02:05 +00:00
6783091177
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>
17 lines
472 B
Makefile
17 lines
472 B
Makefile
|
|
ccflags-$(CONFIG_PM_DEBUG) := -DDEBUG
|
|
|
|
KASAN_SANITIZE_snapshot.o := n
|
|
|
|
obj-y += qos.o
|
|
obj-$(CONFIG_PM) += main.o
|
|
obj-$(CONFIG_VT_CONSOLE_SLEEP) += console.o
|
|
obj-$(CONFIG_FREEZER) += process.o
|
|
obj-$(CONFIG_SUSPEND) += suspend.o
|
|
obj-$(CONFIG_PM_TEST_SUSPEND) += suspend_test.o
|
|
obj-$(CONFIG_HIBERNATION) += hibernate.o snapshot.o swap.o user.o
|
|
obj-$(CONFIG_PM_AUTOSLEEP) += autosleep.o
|
|
obj-$(CONFIG_PM_WAKELOCKS) += wakelock.o
|
|
|
|
obj-$(CONFIG_MAGIC_SYSRQ) += poweroff.o
|