Le 19/05/2020 à 20:56, Richard Henderson a écrit : > The kernel will return -EINVAL for bits set in the prot argument > that are unknown or invalid. Previously we were simply cropping > out the bits that we care about. > > Introduce validate_prot_to_pageflags to perform this check in a > single place between the two syscalls. Differentiate between > the target and host versions of prot. Compute the qemu internal > page_flags value at the same time. > > Signed-off-by: Richard Henderson <[email protected]> > --- > linux-user/mmap.c | 106 +++++++++++++++++++++++++++++++--------------- > 1 file changed, 73 insertions(+), 33 deletions(-) >
Applied to my linux-user-for-5.2 branch. Thanks, Laurent
