diff options
| author | Peter Wang <[email protected]> | 2022-03-07 19:17:52 +0800 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2022-03-08 22:52:09 -0500 |
| commit | 2bd3b6b75946db2ace06e145d53988e10ed7e99a (patch) | |
| tree | 266f499d309c14ed839180a60339acef75b35675 /tools/perf/scripts/python/syscall-counts.py | |
| parent | 296559d41e0f8e7c8f198dd3946e288255088cef (diff) | |
scsi: ufs: core: scsi_get_lba() error fix
When ufs initializes without scmd->device->sector_size set, scsi_get_lba()
will get a wrong shift number and trigger an ubsan error. The shift
exponent 4294967286 is too large for the 64-bit type 'sector_t' (aka
'unsigned long long').
Call scsi_get_lba() only when opcode is READ_10/WRITE_10/UNMAP.
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Bart Van Assche <[email protected]>
Signed-off-by: Peter Wang <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions