summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/interrupts.py
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2023-05-01 09:19:45 -0400
committerMike Snitzer <snitzer@kernel.org>2023-06-16 18:24:13 -0400
commit1d9a943898533e83f20370c0e1448d606627522e (patch)
treec7dbbe4101e1784fa27e4c9c5d387dad31b209ca /scripts/gdb/linux/interrupts.py
parent5054e778fcd9cd29ddaa8109077cd235527e4f94 (diff)
dm flakey: clone pages on write bio before corrupting them
dm-flakey has an option to corrupt write bios. It corrupts the memory that is being written. This can cause system crashes or security bugs - for example, if the user writes a shared library code with O_DIRECT flag to a dm-flakey device, it corrupts the memory for all users that have the shared library mapped. Fix this bug by cloning the bio and corrupting the clone rather than the original. Also drop the test for ZERO_PAGE(0) - it can't happen because we write the cloned pages. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/interrupts.py')
0 files changed, 0 insertions, 0 deletions