diff options
author | Yang Shi <[email protected]> | 2024-07-12 08:58:55 -0700 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2024-07-26 14:33:09 -0700 |
commit | d9592025000b3cf26c742f3505da7b83aedc26d5 (patch) | |
tree | 1a12153de00dc1710e21eb8f827a368afc9c4758 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 4cd7ba16a0afb36550eed7690e73d3e7a743fa96 (diff) |
mm: huge_memory: use !CONFIG_64BIT to relax huge page alignment on 32 bit machines
Yves-Alexis Perez reported commit 4ef9ad19e176 ("mm: huge_memory: don't
force huge page alignment on 32 bit") didn't work for x86_32 [1]. It is
because x86_32 uses CONFIG_X86_32 instead of CONFIG_32BIT.
!CONFIG_64BIT should cover all 32 bit machines.
[1] https://lore.kernel.org/linux-mm/CAHbLzkr1LwH3pcTgM+aGQ31ip2bKqiqEQ8=FQB+t2c3dhNKNHA@mail.gmail.com/
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 4ef9ad19e176 ("mm: huge_memory: don't force huge page alignment on 32 bit")
Signed-off-by: Yang Shi <[email protected]>
Reported-by: Yves-Alexis Perez <[email protected]>
Tested-by: Yves-Alexis Perez <[email protected]>
Acked-by: David Hildenbrand <[email protected]>
Cc: Ben Hutchings <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Jiri Slaby <[email protected]>
Cc: Matthew Wilcox (Oracle) <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Salvatore Bonaccorso <[email protected]>
Cc: Suren Baghdasaryan <[email protected]>
Cc: <[email protected]> [6.8+]
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions