Peilin Ye 6d53a9fe5a block/scsi-ioctl: Fix kernel-infoleak in scsi_put_cdrom_generic_arg()
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`.

Cc: stable@vger.kernel.org
Fixes: f3ee6e63a9df ("compat_ioctl: move CDROM_SEND_PACKET handling into scsi")
Suggested-by: Dan Carpenter <dan.carpenter@oracle.com>
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Reported-by: syzbot+85433a479a646a064ab3@syzkaller.appspotmail.com
Signed-off-by: Peilin Ye <yepeilin.cs@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-10-02 12:01:47 -06:00
..
2020-08-18 07:48:08 -07:00
2020-08-18 07:48:08 -07:00
2020-08-18 07:48:08 -07:00
2020-08-21 17:14:27 -06:00
2020-08-21 17:09:22 -06:00
2020-08-03 11:57:03 -07:00
2020-03-17 20:55:21 +01:00
2020-05-29 16:30:39 -06:00
2020-08-16 20:07:12 -07:00
2020-01-03 09:33:21 +01:00
2020-07-31 16:29:47 -06:00
2019-07-15 09:20:27 -03:00
2020-07-08 16:16:20 +02:00
2020-01-06 20:59:04 -07:00