Re: [PATCH 16/17] bsd-user: Define validate_prot_to_pageflags and use in mprotect

2024-08-04 Thread Richard Henderson
On 8/3/24 09:56, Warner Losh wrote: Define validate_prot_to_pageflags. Use it in target_mprotect to validate the flags. Our taraget_mmap needs more work before it can be used there, do don't copy linux-user's use of it there. This should hvae no net functional change, but does make target_mprotec

[PATCH 16/17] bsd-user: Define validate_prot_to_pageflags and use in mprotect

2024-08-02 Thread Warner Losh
Define validate_prot_to_pageflags. Use it in target_mprotect to validate the flags. Our taraget_mmap needs more work before it can be used there, do don't copy linux-user's use of it there. This should hvae no net functional change, but does make target_mprotect more similar to linux-user's. Signe