android_kernel_samsung_msm8976/drivers/scsi
Alexander Potapenko 42dbadbf63 scsi: sg: allocate with __GFP_ZERO in sg_build_indirect()
commit a45b599ad808c3c982fdcdc12b0b8611c2f92824 upstream.

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
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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2019-07-27 21:51:41 +02:00
..
aacraid aacraid: Fix memory leak in aac_fib_map_free 2016-06-07 10:42:45 +02:00
aic7xxx
aic7xxx_old
aic94xx
arcmsr
arm
be2iscsi be2iscsi: set the boot_kset pointer to NULL in case of failure 2016-06-07 10:42:45 +02:00
bfa
bnx2fc
bnx2i
csiostor
cxgbi
device_handler BACKPORT: block: add blk_rq_set_block_pc() 2017-04-22 23:03:01 +02:00
dpt
fcoe
fnic
ibmvscsi
isci
libfc libfc: Fix fc_fcp_cleanup_each_cmd() 2015-09-13 09:07:59 -07:00
libsas
lpfc lpfc: fix misleading indentation 2016-06-07 10:42:52 +02:00
megaraid megaraid_sas : SMAP restriction--do not access user memory from IOCTL code 2016-03-03 15:06:20 -08:00
mpt2sas
mpt3sas
mvsas mvsas: Fix NULL pointer dereference in mvs_slot_task_free 2015-11-09 10:12:59 -08:00
osd BACKPORT: block: add blk_rq_set_block_pc() 2017-04-22 23:03:01 +02:00
pcmcia
pm8001
qla2xxx qla2xxx: Mark port lost when we receive an RSCN for it. 2015-08-03 09:29:47 -07:00
qla4xxx
sym53c8xx_2
ufs scsi: ufs: Fix off-by-one bug in ufs debugfs driver 2018-01-23 21:21:55 -08:00
.gitignore
3w-9xxx.c 3w-9xxx: don't unmap bounce buffered commands 2015-10-22 14:37:53 -07:00
3w-9xxx.h
3w-sas.c
3w-sas.h
3w-xxxx.c
3w-xxxx.h
53c700.c
53c700.h
53c700.scr
53c700_d.h_shipped
a100u2w.c
a100u2w.h
a2091.c
a2091.h
a3000.c
a3000.h
a4000t.c
advansys.c
aha152x.c
aha152x.h
aha1542.c
aha1542.h
aha1740.c
aha1740.h
aic7xxx_old.c
atari_NCR5380.c
atari_scsi.c
atari_scsi.h
atp870u.c
atp870u.h
BusLogic.c
BusLogic.h
bvme6000_scsi.c
ch.c
constants.c
dc395x.c
dc395x.h
dmx3191d.c
dpt_i2o.c
dpti.h
dtc.c
dtc.h
eata.c
eata_generic.h
eata_pio.c
eata_pio.h
esp_scsi.c
esp_scsi.h
fdomain.c
fdomain.h
FlashPoint.c
g_NCR5380.c
g_NCR5380.h
g_NCR5380_mmio.c
gdth.c
gdth.h
gdth_ioctl.h
gdth_proc.c
gdth_proc.h
gvp11.c
gvp11.h
hosts.c Fix a memory leak in scsi_host_dev_release() 2016-02-25 11:57:47 -08:00
hpsa.c hpsa: add missing pci_set_master in kdump path 2015-07-03 19:48:09 -07:00
hpsa.h
hpsa_cmd.h
hptiop.c
hptiop.h
imm.c
imm.h
in2000.c
in2000.h
initio.c
initio.h
ipr.c ipr: Clear interrupt on croc/crocodile when running with LSI 2019-07-27 21:41:58 +02:00
ipr.h ipr: Fix incorrect trace indexing 2015-08-16 20:51:36 -07:00
ips.c
ips.h
iscsi_boot_sysfs.c
iscsi_tcp.c
iscsi_tcp.h
jazz_esp.c
Kconfig
lasi700.c
libiscsi.c
libiscsi_tcp.c
libsrp.c
mac53c94.c
mac53c94.h
mac_esp.c
mac_scsi.c
mac_scsi.h
Makefile
megaraid.c
megaraid.h
mesh.c
mesh.h
mvme16x_scsi.c
mvme147.c
mvme147.h
mvumi.c
mvumi.h
ncr53c8xx.c
ncr53c8xx.h
NCR53c406a.c
NCR5380.c
NCR5380.h
NCR_D700.c
NCR_D700.h
NCR_Q720.c
NCR_Q720.h
nsp32.c
nsp32.h
nsp32_debug.c
nsp32_io.h
osst.c BACKPORT: block: add blk_rq_set_block_pc() 2017-04-22 23:03:01 +02:00
osst.h
osst_detect.h
osst_options.h
pas16.c
pas16.h
pmcraid.c
pmcraid.h
ppa.c
ppa.h
ps3rom.c
qla1280.c
qla1280.h
qlogicfas.c
qlogicfas408.c
qlogicfas408.h
qlogicpti.c
qlogicpti.h
raid_class.c
script_asm.pl
scsi.c
scsi.h
scsi_debug.c scsi: scsi_debug: Fix memory leak if LBP enabled and module is unloaded 2019-07-27 21:42:19 +02:00
scsi_devinfo.c
scsi_error.c scsi: fix race between simultaneous decrements of ->host_failed 2019-07-27 21:41:57 +02:00
scsi_ioctl.c
scsi_lib.c scsi: use dma_get_cache_alignment() as minimum DMA alignment 2019-07-27 21:46:11 +02:00
scsi_lib_dma.c
scsi_logging.h
scsi_module.c
scsi_netlink.c
scsi_pm.c
scsi_priv.h
scsi_proc.c
scsi_sas_internal.h
scsi_scan.c scsi: Fix use-after-free 2019-07-27 21:42:18 +02:00
scsi_sysctl.c
scsi_sysfs.c scsi: avoid a permanent stop of the scsi device's request queue 2019-07-27 21:43:37 +02:00
scsi_tgt_if.c
scsi_tgt_lib.c
scsi_tgt_priv.h
scsi_trace.c
scsi_transport_api.h
scsi_transport_fc.c
scsi_transport_fc_internal.h
scsi_transport_iscsi.c
scsi_transport_sas.c
scsi_transport_spi.c
scsi_transport_srp.c
scsi_transport_srp_internal.h
scsi_typedefs.h
scsicam.c
sd.c UPSTREAM: block: disable entropy contributions for nonrot devices 2019-07-27 21:47:56 +02:00
sd.h Import latest Samsung release 2017-04-18 03:43:52 +02:00
sd_dif.c
ses.c ses: fix additional element traversal bug 2016-03-03 15:06:22 -08:00
sg.c scsi: sg: allocate with __GFP_ZERO in sg_build_indirect() 2019-07-27 21:51:41 +02:00
sgiwd93.c
sim710.c
sni_53c710.c
sr.c scsi: sr: Sanity check returned mode data 2019-07-27 21:43:39 +02:00
sr.h
sr_ioctl.c
sr_vendor.c
st.c BACKPORT: block: add blk_rq_set_block_pc() 2017-04-22 23:03:01 +02:00
st.h
st_options.h
stex.c
storvsc_drv.c scsi: storvsc: properly set residual data length on errors 2019-07-27 21:43:39 +02:00
sun3_NCR5380.c
sun3_scsi.c
sun3_scsi.h
sun3_scsi_vme.c
sun3x_esp.c
sun_esp.c
sym53c416.c
sym53c416.h
t128.c
t128.h
tmscsim.c
tmscsim.h
u14-34f.c
ultrastor.c
ultrastor.h
virtio_scsi.c
vmw_pvscsi.c
vmw_pvscsi.h
wd33c93.c
wd33c93.h
wd7000.c
zalon.c
zorro7xx.c