Re: [PATCH v2] mm_access: simplify the security checks
From: Oleg Nesterov
Date: Mon Jun 01 2026 - 08:32:07 EST
On 06/01, David Hildenbrand (Arm) wrote:
>
> On 5/30/26 16:12, Oleg Nesterov wrote:
>
> I am not sure I spot the "simplification" here?
Ah, then lets forget this patch ;)
Cleanups are always subjective, if maintainer doesn't agree - forget it.
> Looks more like an optimization that makes the code slightly more complicated.
I don't think that !task->mm or current->mm == task->mm is the common case.
Just the code looks more clear to me if it takes exec_update_lock only when
necessary.
But see above, please forget.
Oleg.