Skip to content
Commit a45b599a authored by Alexander Potapenko's avatar Alexander Potapenko Committed by Martin K. Petersen
Browse files

scsi: sg: allocate with __GFP_ZERO in sg_build_indirect()



This shall help avoid copying uninitialized memory to the userspace when
calling ioctl(fd, SG_IO) with an empty command.

Reported-by: default avatar <syzbot+7d26fc1eea198488deab@syzkaller.appspotmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarAlexander Potapenko <glider@google.com>
Acked-by: default avatarDouglas Gilbert <dgilbert@interlog.com>
Reviewed-by: default avatarJohannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent a406b0a0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment