diff options
author | Alexander Potapenko <glider@google.com> | 2018-05-18 16:23:18 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-05-18 10:26:01 -0400 |
commit | a45b599ad808c3c982fdcdc12b0b8611c2f92824 (patch) | |
tree | d040e498b435b3a9b17c7c2569bf1d7993f8dd7f /virt | |
parent | a406b0a0693eafc6f6b3a633d25749370bf40d8c (diff) |
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: syzbot+7d26fc1eea198488deab@syzkaller.appspotmail.com
Cc: stable@vger.kernel.org
Signed-off-by: Alexander Potapenko <glider@google.com>
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions