mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-09 00:07:57 -06:00
linux-user: Use cpu_untagged_addr in access_ok; split out *_untagged
Provide both tagged and untagged versions of access_ok. In a few places use thread_cpu, as the user is several callees removed from do_syscall1. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20210212184902.1251044-17-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
46b12f461c
commit
c7169b022b
6 changed files with 24 additions and 13 deletions
|
@ -3510,7 +3510,7 @@ static int vma_get_mapping_count(const struct mm_struct *mm)
|
|||
static abi_ulong vma_dump_size(const struct vm_area_struct *vma)
|
||||
{
|
||||
/* if we cannot even read the first page, skip it */
|
||||
if (!access_ok(VERIFY_READ, vma->vma_start, TARGET_PAGE_SIZE))
|
||||
if (!access_ok_untagged(VERIFY_READ, vma->vma_start, TARGET_PAGE_SIZE))
|
||||
return (0);
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue