Re: [PATCH] mm_access: simplify the security checks

From: Lorenzo Stoakes

Date: Mon Jun 01 2026 - 07:16:56 EST


On Sat, May 30, 2026 at 04:10:07PM +0200, Oleg Nesterov wrote:
> On 05/30, Oleg Nesterov wrote:
> >
> > 2. With the change above may_access_mm() doesn't need the "mm" argument,
> > so we do not need to call get_task_mm() beforehand, we can call it
> > only if may_access_mm() suceeds.
> >
> > 2. With the change above, may_access_mm() doesn't need the "mm" argument,
> > so we do not need to call get_task_mm() beforehand. We can call it
> > only if may_access_mm() succeeds.
>
> OOPS. Somehow I wrote the same twice. Will fix the changelog and send V2
> in reply to this patch...

Sorry, pedantic side-note here but - in general in mm we prefer you don't send
new revision in-reply-to the prior one, as it makes them easier to miss! :)

>
> Oleg.
>

Cheers, Lorenzo