[Linux-kernel-mentees] [PATCH v4] block/scsi-ioctl: Fix kernel-infoleak in scsi_put_cdrom_generic_arg()

Jens Axboe axboe at kernel.dk
Fri Oct 2 18:02:03 UTC 2020

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

More information about the Linux-kernel-mentees mailing list