diff options
| author | Benjamin Marzinski <[email protected]> | 2025-04-22 23:47:38 +0000 |
|---|---|---|
| committer | Mikulas Patocka <[email protected]> | 2025-05-04 09:35:05 +0000 |
| commit | 13e79076c89f6e96a6cca8f6df38b40d025907b4 (patch) | |
| tree | 763c48dbb090619c6df3fbd62dee31c5947c5451 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
| parent | dm-flakey: remove useless ERROR_READS check in flakey_end_io (diff) | |
| download | kernel-13e79076c89f6e96a6cca8f6df38b40d025907b4.tar.gz kernel-13e79076c89f6e96a6cca8f6df38b40d025907b4.zip | |
dm-flakey: make corrupting read bios work
dm-flakey corrupts the read bios in the endio function. However, the
corrupt_bio_* functions checked bio_has_data() to see if there was data
to corrupt. Since this was the endio function, there was no data left to
complete, so bio_has_data() was always false. Fix this by saving a copy
of the bio's bi_iter in flakey_map(), and using this to initialize the
iter for corrupting the read bios. This patch also skips cloning the bio
for write bios with no data.
Reported-by: Kent Overstreet <[email protected]>
Fixes: a3998799fb4df ("dm flakey: add corrupt_bio_byte feature")
Signed-off-by: Benjamin Marzinski <[email protected]>
Signed-off-by: Mikulas Patocka <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions
