aboutsummaryrefslogtreecommitdiffstats
path: root/lib/raid6/algos.c
diff options
context:
space:
mode:
authorLizhi Xu <[email protected]>2025-06-16 01:31:40 +0000
committerAndrew Morton <[email protected]>2025-07-10 05:57:53 +0000
commit2ae826799932ff89409f56636ad3c25578fe7cf5 (patch)
tree5999e4c91e927016809a99da1d270d7373059a63 /lib/raid6/algos.c
parentuprobes: revert ref_ctr_offset in uprobe_unregister error path (diff)
downloadkernel-2ae826799932ff89409f56636ad3c25578fe7cf5.tar.gz
kernel-2ae826799932ff89409f56636ad3c25578fe7cf5.zip
ocfs2: reset folio to NULL when get folio fails
The reproducer uses FAULT_INJECTION to make memory allocation fail, which causes __filemap_get_folio() to fail, when initializing w_folios[i] in ocfs2_grab_folios_for_write(), it only returns an error code and the value of w_folios[i] is the error code, which causes ocfs2_unlock_and_free_folios() to recycle the invalid w_folios[i] when releasing folios. Link: https://lkml.kernel.org/r/[email protected] Reported-by: [email protected] Closes: https://syzkaller.appspot.com/bug?extid=c2ea94ae47cd7e3881ec Signed-off-by: Lizhi Xu <[email protected]> Reviewed-by: Joseph Qi <[email protected]> Cc: Mark Fasheh <[email protected]> Cc: Joel Becker <[email protected]> Cc: Junxiao Bi <[email protected]> Cc: Changwei Ge <[email protected]> Cc: Jun Piao <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/raid6/algos.c')
0 files changed, 0 insertions, 0 deletions