[PATCH v2 0/2] linux-user: Fix mincore() with PROT_NONE

Thomas Weißschuh posted 2 patches 1 year ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230422100314.1650-1-thomas@t-8ch.de
Maintainers: Laurent Vivier <laurent@vivier.eu>
linux-user/qemu.h    | 1 +
linux-user/syscall.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
[PATCH v2 0/2] linux-user: Fix mincore() with PROT_NONE
Posted by Thomas Weißschuh 1 year ago
The kernel does not require PROT_READ for addresses passed to mincore.

v1: https://lore.kernel.org/qemu-devel/20230416195103.607948-1-thomas@t-8ch.de/
v1 -> v2:
* Introduce symbolic flag VERIFY_NONE instead of hardcoding "0"

Thomas Weißschuh (2):
  linux-user: Add new flag VERIFY_NONE
  linux-user: Don't require PROT_READ for mincore

 linux-user/qemu.h    | 1 +
 linux-user/syscall.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)


base-commit: 1cc6e1a20144c0ae360cbeb0e035fdee1bd80609
-- 
2.40.0


Re: [PATCH v2 0/2] linux-user: Fix mincore() with PROT_NONE
Posted by Philippe Mathieu-Daudé 1 year ago
On 22/4/23 12:03, Thomas Weißschuh wrote:
> The kernel does not require PROT_READ for addresses passed to mincore.
> 
> v1: https://lore.kernel.org/qemu-devel/20230416195103.607948-1-thomas@t-8ch.de/
> v1 -> v2:
> * Introduce symbolic flag VERIFY_NONE instead of hardcoding "0"
> 
> Thomas Weißschuh (2):
>    linux-user: Add new flag VERIFY_NONE
>    linux-user: Don't require PROT_READ for mincore
> 
>   linux-user/qemu.h    | 1 +
>   linux-user/syscall.c | 2 +-
>   2 files changed, 2 insertions(+), 1 deletion(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>