summaryrefslogtreecommitdiff
path: root/scripts/lib
diff options
context:
space:
mode:
authorSeongJae Park <sj@kernel.org>2025-06-02 10:49:26 -0700
committerAndrew Morton <akpm@linux-foundation.org>2025-06-05 22:02:23 -0700
commit9c49e5d09f076001e05537734d7df002162eb2b5 (patch)
tree478c8dba33d26d72613f0bf4af6fcafcf51abd99 /scripts/lib
parent684088173b1852e5f5891a7b2a124b7974cb827d (diff)
mm/madvise: handle madvise_lock() failure during race unwinding
When unwinding race on -ERESTARTNOINTR handling of process_madvise(), madvise_lock() failure is ignored. Check the failure and abort remaining works in the case. Link: https://lkml.kernel.org/r/20250602174926.1074-1-sj@kernel.org Fixes: 4000e3d0a367 ("mm/madvise: remove redundant mmap_lock operations from process_madvise()") Signed-off-by: SeongJae Park <sj@kernel.org> Reported-by: Barry Song <21cnbao@gmail.com> Closes: https://lore.kernel.org/CAGsJ_4xJXXO0G+4BizhohSZ4yDteziPw43_uF8nPXPWxUVChzw@mail.gmail.com Reviewed-by: Jann Horn <jannh@google.com> Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com> Acked-by: David Hildenbrand <david@redhat.com> Reviewed-by: Shakeel Butt <shakeel.butt@linux.dev> Reviewed-by: Barry Song <baohua@kernel.org> Cc: Liam Howlett <liam.howlett@oracle.com> Cc: Vlastimil Babka <vbabka@suse.cz> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'scripts/lib')
0 files changed, 0 insertions, 0 deletions