summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorZhang Yi <yi.zhang@huawei.com>2026-07-14 16:00:38 +0800
committerTheodore Ts'o <tytso@mit.edu>2026-07-22 12:57:15 -0400
commit705a3fd3bac167f1dabe3d3bba46cd484c5528dd (patch)
tree8577af62c70f568403f3c8737aae2736883f2777 /tools/perf/scripts/python
parent2fff82f081401a61a47e8171f6392d2b0cde5a30 (diff)
ext4: check return value of ext4_get_block() in ext4_load_tail_bh()
ext4_load_tail_bh() ignores the return value of ext4_get_block(), so an I/O or allocation failure is silently discarded. buffer_mapped(bh) stays false and the function returns NULL, which callers such as ext4_block_do_zero_range() treat as "nothing to do" and return success. This can mask real failures during zero-range, truncate, or punch-hole operations, potentially exposing stale data if the block was not actually a hole and needed zeroing. So propagate the error to the callers. Signed-off-by: Zhang Yi <yi.zhang@huawei.com> Reviewed-by: Jan Kara <jack@suse.cz> Link: https://patch.msgid.link/20260714080044.4038124-4-yi.zhang@huaweicloud.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions