diff options
| author | SeongJae Park <[email protected]> | 2025-06-02 17:49:26 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-06-06 05:02:23 +0000 |
| commit | 9c49e5d09f076001e05537734d7df002162eb2b5 (patch) | |
| tree | 478c8dba33d26d72613f0bf4af6fcafcf51abd99 /lib/alloc_tag.c | |
| parent | mm: fix vmstat after removing NR_BOUNCE (diff) | |
| download | kernel-9c49e5d09f076001e05537734d7df002162eb2b5.tar.gz kernel-9c49e5d09f076001e05537734d7df002162eb2b5.zip | |
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/[email protected]
Fixes: 4000e3d0a367 ("mm/madvise: remove redundant mmap_lock operations from process_madvise()")
Signed-off-by: SeongJae Park <[email protected]>
Reported-by: Barry Song <[email protected]>
Closes: https://lore.kernel.org/CAGsJ_4xJXXO0G+4BizhohSZ4yDteziPw43_uF8nPXPWxUVChzw@mail.gmail.com
Reviewed-by: Jann Horn <[email protected]>
Reviewed-by: Lorenzo Stoakes <[email protected]>
Acked-by: David Hildenbrand <[email protected]>
Reviewed-by: Shakeel Butt <[email protected]>
Reviewed-by: Barry Song <[email protected]>
Cc: Liam Howlett <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/alloc_tag.c')
0 files changed, 0 insertions, 0 deletions
