diff options
author | Ryusuke Konishi <[email protected]> | 2023-08-05 22:20:38 +0900 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2023-08-21 13:07:21 -0700 |
commit | f83913f8c5b882a312e72b7669762f8a5c9385e4 (patch) | |
tree | 6076dbd4064da7d78d992a687b7ca58712c5d483 /scripts/generate_rust_analyzer.py | |
parent | 5805192c7b7257d290474cb1a3897d0567281bbc (diff) |
nilfs2: fix general protection fault in nilfs_lookup_dirty_data_buffers()
A syzbot stress test reported that create_empty_buffers() called from
nilfs_lookup_dirty_data_buffers() can cause a general protection fault.
Analysis using its reproducer revealed that the back reference "mapping"
from a page/folio has been changed to NULL after dirty page/folio gang
lookup in nilfs_lookup_dirty_data_buffers().
Fix this issue by excluding pages/folios from being collected if, after
acquiring a lock on each page/folio, its back reference "mapping" differs
from the pointer to the address space struct that held the page/folio.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Ryusuke Konishi <[email protected]>
Reported-by: [email protected]
Closes: https://lkml.kernel.org/r/[email protected]
Tested-by: Ryusuke Konishi <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions