Commit 9c49e5d
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: 4000e3d ("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]>1 parent 6840881 commit 9c49e5d
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1881 | 1881 | | |
1882 | 1882 | | |
1883 | 1883 | | |
1884 | | - | |
| 1884 | + | |
| 1885 | + | |
| 1886 | + | |
1885 | 1887 | | |
1886 | 1888 | | |
1887 | 1889 | | |
| |||
1892 | 1894 | | |
1893 | 1895 | | |
1894 | 1896 | | |
| 1897 | + | |
1895 | 1898 | | |
1896 | 1899 | | |
1897 | 1900 | | |
| |||
0 commit comments