Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

lkdtm: replace ll_rw_block with submit_bh

Function ll_rw_block was removed in commit 79f597842069 ("fs/buffer:
remove ll_rw_block() helper"). There is no unified function to sumbit
read or write buffer in block layer for now. Consider similar sematics,
we can choose submit_bh() to replace ll_rw_block() as predefined crash
point. In submit_bh(), it also takes read or write flag as the first
argument and invoke submit_bio() to submit I/O request to block layer.

Fixes: 79f597842069 ("fs/buffer: remove ll_rw_block() helper")
Signed-off-by: Yue Zhao <findns94@gmail.com>
Acked-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20230503162944.3969-1-findns94@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Yue Zhao and committed by
Greg Kroah-Hartman
b290df06 c0b92cc5

+2 -2
+1 -1
Documentation/fault-injection/provoke-crashes.rst
··· 29 29 cpoint_name 30 30 Where in the kernel to trigger the action. It can be 31 31 one of INT_HARDWARE_ENTRY, INT_HW_IRQ_EN, INT_TASKLET_ENTRY, 32 - FS_DEVRW, MEM_SWAPOUT, TIMERADD, SCSI_QUEUE_RQ, or DIRECT. 32 + FS_SUBMIT_BH, MEM_SWAPOUT, TIMERADD, SCSI_QUEUE_RQ, or DIRECT. 33 33 34 34 cpoint_type 35 35 Indicates the action to be taken on hitting the crash point.
+1 -1
drivers/misc/lkdtm/core.c
··· 79 79 CRASHPOINT("INT_HARDWARE_ENTRY", "do_IRQ"), 80 80 CRASHPOINT("INT_HW_IRQ_EN", "handle_irq_event"), 81 81 CRASHPOINT("INT_TASKLET_ENTRY", "tasklet_action"), 82 - CRASHPOINT("FS_DEVRW", "ll_rw_block"), 82 + CRASHPOINT("FS_SUBMIT_BH", "submit_bh"), 83 83 CRASHPOINT("MEM_SWAPOUT", "shrink_inactive_list"), 84 84 CRASHPOINT("TIMERADD", "hrtimer_start"), 85 85 CRASHPOINT("SCSI_QUEUE_RQ", "scsi_queue_rq"),