diff options
author | Kevin Mitchell <[email protected]> | 2021-08-18 19:29:39 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2021-08-19 07:40:22 +0200 |
commit | d1f278da6b11585f05b2755adfc8851cbf14a1ec (patch) | |
tree | 0a9da526156ec396883436b917e8590644f76c77 /net/lapb/lapb_timer.c | |
parent | 5353dd72f99207e8118a766847df8d60bb559940 (diff) |
lkdtm: replace SCSI_DISPATCH_CMD with SCSI_QUEUE_RQ
When scsi_dispatch_cmd was moved to scsi_lib.c and made static, some
compilers (i.e., at least gcc 8.4.0) decided to compile this
inline. This is a problem for lkdtm.ko, which inserted a kprobe
on this function for the SCSI_DISPATCH_CMD crashpoint.
Move this crashpoint one function up the call chain to
scsi_queue_rq. Though this is also a static function, it should never be
inlined because it is assigned as a structure entry. Therefore,
kprobe_register should always be able to find it.
Fixes: 82042a2cdb55 ("scsi: move scsi_dispatch_cmd to scsi_lib.c")
Acked-by: Kees Cook <[email protected]>
Signed-off-by: Kevin Mitchell <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions