Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 699acfcb authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "defconfig: Enable PANIC_ON_DATA_CORRUPTION on SM8150"

parents b6142300 03ba34e0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -725,6 +725,7 @@ CONFIG_ATOMIC64_SELFTEST=m
CONFIG_TEST_USER_COPY=m
CONFIG_MEMTEST=y
CONFIG_BUG_ON_DATA_CORRUPTION=y
CONFIG_PANIC_ON_DATA_CORRUPTION=y
CONFIG_PID_IN_CONTEXTIDR=y
CONFIG_ARM64_STRICT_BREAK_BEFORE_MAKE=y
CONFIG_CORESIGHT=y
+5 −0
Original line number Diff line number Diff line
@@ -71,4 +71,9 @@ static inline __must_check bool check_data_corruption(bool v) { return v; }
		corruption;						 \
	}))

#ifdef CONFIG_PANIC_ON_DATA_CORRUPTION
#define PANIC_CORRUPTION 1
#else
#define PANIC_CORRUPTION 0
#endif  /* CONFIG_PANIC_ON_DATA_CORRUPTION */
#endif	/* _LINUX_BUG_H */
+7 −0
Original line number Diff line number Diff line
@@ -2061,6 +2061,13 @@ config BUG_ON_DATA_CORRUPTION

	  If unsure, say N.

config PANIC_ON_DATA_CORRUPTION
	bool "Cause a Kernel Panic When Data Corruption is detected"
	help
	 Select this option to upgrade warnings for potentially
	 recoverable data corruption scenarios to system-halting panics,
	 for easier detection and debug.

source "samples/Kconfig"

source "lib/Kconfig.kgdb"
+1 −0
Original line number Diff line number Diff line
@@ -84,6 +84,7 @@ static void check_poison_mem(struct page *page,

	print_hex_dump(KERN_ERR, "", DUMP_PREFIX_ADDRESS, 16, 1, start,
			end - start + 1, 1);
	BUG_ON(PANIC_CORRUPTION);
	dump_stack();
}