path: root/mm/rodata_test.c
AgeCommit message (Collapse)AuthorLines
2020-06-17maccess: rename probe_kernel_{read,write} to copy_{from,to}_kernel_nofaultChristoph Hellwig-1/+1
Better describe what these functions do. Suggested-by: Linus Torvalds <> Signed-off-by: Christoph Hellwig <> Signed-off-by: Linus Torvalds <>
2019-06-05treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 441Thomas Gleixner-5/+1
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation version 2 of the license extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 315 file(s). Signed-off-by: Thomas Gleixner <> Reviewed-by: Allison Randal <> Reviewed-by: Armijn Hemel <> Cc: Link: Signed-off-by: Greg Kroah-Hartman <>
2017-10-03mm: fix RODATA_TEST failure "rodata_test: test data was not read only"Christophe Leroy-1/+1
On powerpc, RODATA_TEST fails with message the following messages: Freeing unused kernel memory: 528K rodata_test: test data was not read only This is because GCC allocates it to .data section: c0695034 g O .data 00000004 rodata_test_data Since commit 056b9d8a7692 ("mm: remove rodata_test_data export, add pr_fmt"), rodata_test_data is used only inside rodata_test.c By declaring it static, it gets properly allocated into .rodata section instead of .data: c04df710 l O .rodata 00000004 rodata_test_data Fixes: 056b9d8a7692 ("mm: remove rodata_test_data export, add pr_fmt") Link: Signed-off-by: Christophe Leroy <> Cc: Kees Cook <> Cc: Jinbum Park <> Cc: Segher Boessenkool <> Cc: David Laight <David.Laight@ACULAB.COM> Cc: <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
2017-05-03mm: remove rodata_test_data export, add pr_fmtKees Cook-8/+9
Since commit 3ad38ceb2769 ("x86/mm: Remove CONFIG_DEBUG_NX_TEST"), nothing is using the exported rodata_test_data variable, so drop the export. This additionally updates the pr_fmt to avoid redundant strings and adjusts some whitespace. Link: Signed-off-by: Kees Cook <> Cc: Jinbum Park <> Cc: Arjan van de Ven <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
2017-02-27mm: add arch-independent testcases for RODATAJinbum Park-0/+56
This patch makes arch-independent testcases for RODATA. Both x86 and x86_64 already have testcases for RODATA, But they are arch-specific because using inline assembly directly. And cacheflush.h is not a suitable location for rodata-test related things. Since they were in cacheflush.h, If someone change the state of CONFIG_DEBUG_RODATA_TEST, It cause overhead of kernel build. To solve the above issues, write arch-independent testcases and move it to shared location. [ fix config dependency] Link: Link: Signed-off-by: Jinbum Park <> Acked-by: Kees Cook <> Cc: Ingo Molnar <> Cc: H. Peter Anvin <> Cc: Arjan van de Ven <> Cc: Laura Abbott <> Cc: Russell King <> Cc: Valentin Rothberg <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>