summaryrefslogtreecommitdiffstats
path: root/crypto/ctr.c
diff options
context:
space:
mode:
authorAlexandre Ghiti <alex@ghiti.fr>2021-01-29 18:31:05 +0100
committerPalmer Dabbelt <palmerdabbelt@google.com>2021-02-03 03:31:13 +0100
commit2ab543823322b564f205cb15d0f0302803c87d11 (patch)
tree7b8ad0e5c2d6547e1e42886ce9e28f16af2c7336 /crypto/ctr.c
parentLinux 5.11-rc6 (diff)
downloadlinux-2ab543823322b564f205cb15d0f0302803c87d11.tar.xz
linux-2ab543823322b564f205cb15d0f0302803c87d11.zip
riscv: virt_addr_valid must check the address belongs to linear mapping
virt_addr_valid macro checks that a virtual address is valid, ie that the address belongs to the linear mapping and that the corresponding physical page exists. Add the missing check that ensures the virtual address belongs to the linear mapping, otherwise __virt_to_phys, when compiled with CONFIG_DEBUG_VIRTUAL enabled, raises a WARN that is interpreted as a kernel bug by syzbot. Signed-off-by: Alexandre Ghiti <alex@ghiti.fr> Reviewed-by: Atish Patra <atish.patra@wdc.com> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'crypto/ctr.c')
0 files changed, 0 insertions, 0 deletions