diff options
author | 2021-06-29 11:13:48 +0200 | |
---|---|---|
committer | 2021-07-22 21:34:36 -0700 | |
commit | db6b84a368b495cb7e41be9cb9e73d4d0537d027 (patch) | |
tree | eba21fdeb9b9b8238fb0cb08ef76226f5eec7e74 /net/unix/af_unix.c | |
parent | riscv: Make sure the linear mapping does not use the kernel mapping (diff) | |
download | wireguard-linux-db6b84a368b495cb7e41be9cb9e73d4d0537d027.tar.xz wireguard-linux-db6b84a368b495cb7e41be9cb9e73d4d0537d027.zip |
riscv: Make sure the kernel mapping does not overlap with IS_ERR_VALUE
The check that is done in setup_bootmem currently only works for 32-bit
kernel since the kernel mapping has been moved outside of the linear
mapping for 64-bit kernel. So make sure that for 64-bit kernel, the kernel
mapping does not overlap with the last 4K of the addressable memory.
Signed-off-by: Alexandre Ghiti <alex@ghiti.fr>
Fixes: 2bfc6cd81bd1 ("riscv: Move kernel mapping outside of linear mapping")
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions