Re: [Bug 217061] commit 2286a6914c776ec34cd97e4573b1466d055cb9de breaks do_mprotect_pkey

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



(switched to email.  Please respond via emailed reply-to-all, not via the
bugzilla web interface).

On Wed, 22 Feb 2023 18:27:37 +0000 bugzilla-daemon@xxxxxxxxxx wrote:

> https://bugzilla.kernel.org/show_bug.cgi?id=217061
> 
> --- Comment #5 from spasswolf@xxxxxx ---
> This fixes the problem for me in next-20230220
> 
> diff --git a/mm/mprotect.c b/mm/mprotect.c
> index 1d4843c97c2a..f70f9a7b545e 100644
> --- a/mm/mprotect.c
> +++ b/mm/mprotect.c
> @@ -832,6 +832,7 @@ static int do_mprotect_pkey(unsigned long start, size_t
> len,
>                 if (error)
>                         break;
> 
> +               tmp = prev->vm_end;
>                 nstart = tmp;
>                 prot = reqprot;
>         }
> 
> Next I'll try to construct a simpler testcase without steam and stellaris.

Thanks for figuring this out.

Liam, this has been bisected to 2286a6914c776e ("mm: change
mprotect_fixup to vma iterator").  Please take a look?





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux