lkdtm: replace ll_rw_block with submit_bh
authorYue Zhao <findns94@gmail.com>
Wed, 3 May 2023 16:29:44 +0000 (00:29 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 May 2023 19:26:57 +0000 (20:26 +0100)
commitb290df06811852d4cc36f4b8a2a30c2063197a74
tree788a1c5601f8e01dc7ecdadf6651ff8f14a933bc
parentc0b92cc56295af02410378b4f85957578d4ea1c6
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>
Documentation/fault-injection/provoke-crashes.rst
drivers/misc/lkdtm/core.c