qemu/bsd-user
Warner Losh 91a5adda15 bsd-user/mmap.c: assert that target_mprotect cannot fail
Similar to the equivalent linux-user change 86abac06c1. All error
conditions that target_mprotect checks are also checked by target_mmap.
EACCESS cannot happen because we are just removing PROT_WRITE.  ENOMEM
should not happen because we are modifying a whole VMA (and we have
bigger problems anyway if it happens).

Fixes a Coverity false positive, where Coverity complains about
target_mprotect's return value being passed to tb_invalidate_phys_range.

Signed-off-by: Mikaël Urankar <mikael.urankar@gmail.com>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Kyle Evans <kevans@FreeBSD.org>
2021-10-18 12:51:38 -06:00
..
arm bsd-user: move strace OS/arch dependent code to host/arch dirs 2021-01-11 14:59:21 +01:00
freebsd bsd-user: Add target_os_user.h to capture the user/kernel structures 2021-09-10 14:13:06 -06:00
i386 user: Remove cpu_get_pic_interrupt() stubs 2021-09-14 12:00:21 -07:00
mips bsd-user: move strace OS/arch dependent code to host/arch dirs 2021-01-11 14:59:21 +01:00
mips64 bsd-user: move strace OS/arch dependent code to host/arch dirs 2021-01-11 14:59:21 +01:00
netbsd bsd-user: elf cleanup 2021-09-10 14:13:06 -06:00
openbsd bsd-user: elf cleanup 2021-09-10 14:13:06 -06:00
x86_64 user: Remove cpu_get_pic_interrupt() stubs 2021-09-14 12:00:21 -07:00
bsdload.c bsd-user: TARGET_NGROUPS unused in this file, remove 2021-09-10 14:13:06 -06:00
elfcore.c bsd-user: add stubbed out core dump support 2021-09-10 14:13:06 -06:00
elfload.c bsd-user: Refactor load_elf_sections and is_target_elf_binary 2021-09-10 14:13:06 -06:00
errno_defs.h
main.c bsd-user: Update mapping to handle reserved and starting conditions 2021-09-10 14:13:06 -06:00
meson.build meson: bsd-user 2020-08-21 06:30:38 -04:00
mmap.c bsd-user/mmap.c: assert that target_mprotect cannot fail 2021-10-18 12:51:38 -06:00
qemu.h bsd-user: Update mapping to handle reserved and starting conditions 2021-09-10 14:13:06 -06:00
signal.c bsd-user: remove target_signal.h, it's unused 2021-05-11 13:52:34 -06:00
strace.c bsd-user: style tweak: Remove #if 0'd code 2021-05-11 11:07:22 -06:00
syscall_defs.h bsd-user: Rewrite target system call definintion glue 2021-09-10 14:13:06 -06:00
syscall.c bsd-user: remove sparc and sparc64 2021-09-07 08:26:52 -06:00
uaccess.c bsd-user: style tweak: keyword space ( 2021-05-11 11:07:22 -06:00