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

2024-05-20 Thread Martin K. Petersen
On Wed, 08 May 2024 17:22:51 +, 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 > ../drivers/scsi/sr_ioctl.

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

2024-05-15 Thread Martin K. Petersen
Justin, > 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 cann

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

2024-05-08 Thread Kees Cook
On Wed, May 08, 2024 at 05:22:51PM +, 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 > ../drivers/scsi/sr_i

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

2024-05-08 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 typ