summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorAlexandre Ghiti <alex@ghiti.fr>2021-01-29 12:31:05 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-02-17 11:02:23 +0100
commit4fccb50ec95b834c02099ed8e18c7e0ca6f6f923 (patch)
tree35dff23e66e9f9778293d85e5da5ebb34bbc18a1 /block
parentcd0604db18d22bc39dd8349d6b7ed2f8c79a627c (diff)
downloadlinux-stable-4fccb50ec95b834c02099ed8e18c7e0ca6f6f923.tar.gz
linux-stable-4fccb50ec95b834c02099ed8e18c7e0ca6f6f923.tar.bz2
linux-stable-4fccb50ec95b834c02099ed8e18c7e0ca6f6f923.zip
riscv: virt_addr_valid must check the address belongs to linear mapping
[ Upstream commit 2ab543823322b564f205cb15d0f0302803c87d11 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions