Messages in this thread | | | Subject | Re: [PATCH v4] block/scsi-ioctl: Fix kernel-infoleak in scsi_put_cdrom_generic_arg() | From | Jens Axboe <> | Date | Fri, 2 Oct 2020 12:02:03 -0600 |
| |
On 10/2/20 8:22 AM, Peilin Ye wrote: > scsi_put_cdrom_generic_arg() is copying uninitialized stack memory to > userspace, since the compiler may leave a 3-byte hole in the middle of > `cgc32`. Fix it by adding a padding field to `struct > compat_cdrom_generic_command`.
Applied, thanks.
-- Jens Axboe
| |