diff options
author | Joel Stanley <[email protected]> | 2021-10-14 08:04:38 +1030 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2021-10-22 15:22:02 +1100 |
commit | 4f703e7faa67a116016c4678fc88b507c12670c9 (patch) | |
tree | 29b21d3ba6945f30efd81ef52076fc1708774ba4 /lib/test_fortify/write_overflow-memset.c | |
parent | 3091f5fc5f1df7741ddf326561384e0997eca2a1 (diff) |
powerpc/s64: Clarify that radix lacks DEBUG_PAGEALLOC
The page_alloc.c code will call into __kernel_map_pages() when
DEBUG_PAGEALLOC is configured and enabled.
As the implementation assumes hash, this should crash spectacularly if
not for a bit of luck in __kernel_map_pages(). In this function
linear_map_hash_count is always zero, the for loop exits without doing
any damage.
There are no other platforms that determine if they support
debug_pagealloc at runtime. Instead of adding code to mm/page_alloc.c to
do that, this change turns the map/unmap into a noop when in radix
mode and prints a warning once.
Signed-off-by: Joel Stanley <[email protected]>
Reviewed-by: Christophe Leroy <[email protected]>
[mpe: Reformat if per Christophe's suggestion]
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-memset.c')
0 files changed, 0 insertions, 0 deletions