[PATCH 4/7] maccess: Use a scoped guard to re-enable page faults

David Hildenbrand (Arm) david at kernel.org
Thu Oct 1 04:35:05 PDT 2026


On 8/24/26 18:04, Muhammad Usama Anjum wrote:
> Kernel nofault copy and string paths open-code page-fault disable and
> enable around label-based loops, duplicating cleanup on success and
> failure.
> 
> Use a page-fault scope guard instead. Leaving the scope now re-enables
> page faults on both paths without separate cleanup at the fault label.
> 
> No functional change.
> 
> Signed-off-by: Muhammad Usama Anjum <usama.anjum at arm.com>
> ---

Patch itself is fine, but the guard name is completely misleading.

Acked-by: David Hildenbrand (Arm) <david at kernel.org>

-- 
Cheers,

David



More information about the linux-arm-kernel mailing list