]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: aacraid: Don't copy uninitialized stack memory to userspace
authorSeth Forshee <seth.forshee@canonical.com>
Fri, 23 Jun 2017 14:04:22 +0000 (09:04 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 26 Jun 2017 19:01:03 +0000 (15:01 -0400)
commit207fec94e5d1f813ec9d211e78c6f3ca6190aa47
treecc0040a1faa1fee02a5c5f878f6cf28dc8af40e1
parent2ae2c94db5ee56907457b358c33a271978e6dfa8
scsi: aacraid: Don't copy uninitialized stack memory to userspace

Both aac_send_raw_srb() and aac_get_hba_info() may copy stack allocated
structs to userspace without initializing all members of these
structs. Clear out this memory to prevent information leaks.

Fixes: b2da317a8d54f ("scsi: aacraid: Include HBA direct interface")
Fixes: e786b34f5ce57 ("scsi: aacraid: Retrieve HBA host information ioctl")
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aacraid/commctrl.c