Re: [PATCH] scsi: sr: fix unintentional arithmetic wraparound

2024-05-07 Thread Kees Cook
On Wed, May 08, 2024 at 12:02:27AM +, Justin Stitt wrote: > Running syzkaller with the newly reintroduced signed integer overflow > sanitizer produces this report: > > [ 65.194362] [ cut here ] > [ 65.197752] UBSAN: signed-integer-overflow in >

[PATCH] scsi: sr: fix unintentional arithmetic wraparound

2024-05-07 Thread Justin Stitt
Running syzkaller with the newly reintroduced signed integer overflow sanitizer produces this report: [ 65.194362] [ cut here ] [ 65.197752] UBSAN: signed-integer-overflow in ../drivers/scsi/sr_ioctl.c:436:9 [ 65.203607] -2147483648 * 177 cannot be represented in