Re: [PATCH 1/2] mm/mprotect: Call arch_validate_prot under mmap_lock and with length

From: Jann Horn
Date: Wed Oct 14 2020 - 22:09:47 EST


On Wed, Oct 14, 2020 at 11:24 PM Khalid Aziz <khalid.aziz@xxxxxxxxxx> wrote:
[...]
> current code? What FreeBSD does seems like a reasonable thing to do. Any
> way first thing to do is to update sparc to use arch_validate_flags()
> and update sparc_validate_prot() to not peek into vma without lock. I
> can do that unless Jann wants to rework this 2 patch series with these
> changes.

Ah, if you're willing to take care of that, that'd be nice, please do. :)