android_kernel_samsung_msm8226/drivers/scsi
Alexander Potapenko 5f72c29b29 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.

Change-Id: Ifb94a9a9e9b39a96308f2c0acb6fd0c9d56bbac6
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>
CVE-2018-1000204
Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
2020-01-06 08:40:50 +01:00
..
aacraid Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
aic7xxx Documentation: remove references to /etc/modprobe.conf 2012-03-30 16:03:15 -07:00
aic7xxx_old
aic94xx Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
arcmsr Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
arm Disintegrate and delete asm/system.h 2012-03-28 15:58:21 -07:00
be2iscsi Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
bfa Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
bnx2fc Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
bnx2i Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
cxgbi SCSI updates on 20120319 2012-03-22 12:55:29 -07:00
device_handler BACKPORT: block: add blk_rq_set_block_pc() 2019-08-06 12:26:35 +02:00
dpt
fcoe random32: rename random32 to prandom 2019-08-08 15:08:50 +02:00
fnic
ibmvscsi Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
isci Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
libfc Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
libsas Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
lpfc Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
megaraid Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
mpt2sas Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
mvsas Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
osd BACKPORT: block: add blk_rq_set_block_pc() 2019-08-06 12:26:35 +02:00
pcmcia
pm8001 SCSI updates on 20120331 2012-03-31 13:31:23 -07:00
qla2xxx Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
qla4xxx SCSI updates on 20120331 2012-03-31 13:31:23 -07:00
sym53c8xx_2 Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
ufs scsi: ufs: fix ufs error on shoutdown 2014-01-24 05:51:23 -08:00
.gitignore
3w-9xxx.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
3w-9xxx.h Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
3w-sas.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
3w-sas.h Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
3w-xxxx.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
3w-xxxx.h Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
53c700.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
53c700.h
53c700.scr
53c700_d.h_shipped
BusLogic.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
BusLogic.h
FlashPoint.c
Kconfig SCSI updates on 20120331 2012-03-31 13:31:23 -07:00
Makefile SCSI updates on 20120331 2012-03-31 13:31:23 -07:00
NCR53c406a.c
NCR5380.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
NCR5380.h
NCR_D700.c
NCR_D700.h
NCR_Q720.c
NCR_Q720.h
a100u2w.c
a100u2w.h
a2091.c
a2091.h
a3000.c
a3000.h
a4000t.c
advansys.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
aha152x.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
aha152x.h
aha1542.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
aha1542.h
aha1740.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
aha1740.h
aic7xxx_old.c
atari_NCR5380.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
atari_scsi.c
atari_scsi.h
atp870u.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
atp870u.h
bvme6000_scsi.c
ch.c
constants.c
dc395x.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
dc395x.h
dmx3191d.c
dpt_i2o.c
dpti.h
dtc.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
dtc.h
eata.c
eata_generic.h
eata_pio.c
eata_pio.h
esp_scsi.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
esp_scsi.h Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
fd_mcs.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
fdomain.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
fdomain.h
g_NCR5380.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
g_NCR5380.h
g_NCR5380_mmio.c
gdth.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
gdth.h
gdth_ioctl.h
gdth_proc.c
gdth_proc.h
gvp11.c
gvp11.h
hosts.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
hpsa.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
hpsa.h Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
hpsa_cmd.h Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
hptiop.c
hptiop.h
ibmmca.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
imm.c
imm.h
in2000.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
in2000.h
initio.c
initio.h
ipr.c [SCSI] libsas, libata: fix start of life for a sas ata_port 2012-04-23 12:11:47 +01:00
ipr.h Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
ips.c scsi: remove the second argument of k[un]map_atomic() 2012-03-20 21:48:19 +08:00
ips.h
iscsi_boot_sysfs.c
iscsi_tcp.c
iscsi_tcp.h
jazz_esp.c
lasi700.c
libiscsi.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
libiscsi_tcp.c SCSI updates on 20120319 2012-03-22 12:55:29 -07:00
libsrp.c
mac53c94.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
mac53c94.h
mac_esp.c
mac_scsi.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
mac_scsi.h
megaraid.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
megaraid.h
mesh.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
mesh.h
mvme16x_scsi.c
mvme147.c
mvme147.h
mvumi.c
mvumi.h
ncr53c8xx.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
ncr53c8xx.h
nsp32.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
nsp32.h
nsp32_debug.c
nsp32_io.h
osst.c BACKPORT: block: add blk_rq_set_block_pc() 2019-08-06 12:26:35 +02:00
osst.h
osst_detect.h
osst_options.h
pas16.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
pas16.h
pmcraid.c
pmcraid.h
ppa.c
ppa.h
ps3rom.c
qla1280.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
qla1280.h
qlogicfas.c
qlogicfas408.c
qlogicfas408.h
qlogicpti.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
qlogicpti.h
raid_class.c
script_asm.pl
scsi.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
scsi.h
scsi_debug.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
scsi_devinfo.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
scsi_error.c BACKPORT: block: add blk_rq_set_block_pc() 2019-08-06 12:26:35 +02:00
scsi_ioctl.c
scsi_lib.c BACKPORT: block: add blk_rq_set_block_pc() 2019-08-06 12:26:35 +02:00
scsi_lib_dma.c
scsi_logging.h
scsi_module.c
scsi_netlink.c
scsi_pm.c sd: change to auto suspend mode 2013-07-01 10:23:29 +05:30
scsi_priv.h Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
scsi_proc.c
scsi_sas_internal.h
scsi_scan.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
scsi_sysctl.c
scsi_sysfs.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +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] iscsi class: fix gfp use in ping compl and host event 2012-03-27 08:26:36 +01:00
scsi_transport_sas.c
scsi_transport_spi.c
scsi_transport_srp.c
scsi_transport_srp_internal.h
scsi_typedefs.h
scsi_wait_scan.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
scsicam.c
sd.c mm: Backport ZRAM/ZSMALLOC from Google kernel 2019-08-06 08:17:38 +02:00
sd.h Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
sd_dif.c scsi: remove the second argument of k[un]map_atomic() 2012-03-20 21:48:19 +08:00
ses.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
sg.c scsi: sg: allocate with __GFP_ZERO in sg_build_indirect() 2020-01-06 08:40:50 +01:00
sgiwd93.c
sim710.c
sni_53c710.c
sr.c
sr.h
sr_ioctl.c
sr_vendor.c
st.c BACKPORT: block: add blk_rq_set_block_pc() 2019-08-06 12:26:35 +02:00
st.h [SCSI] st: expand ability to write immediate filemarks 2012-03-27 08:26:34 +01:00
st_options.h
stex.c
storvsc_drv.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
sun3_NCR5380.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
sun3_scsi.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
sun3_scsi.h
sun3_scsi_vme.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
sun3x_esp.c
sun_esp.c
sym53c416.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
sym53c416.h
t128.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
t128.h
tmscsim.c
tmscsim.h
u14-34f.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
ultrastor.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
ultrastor.h
virtio_scsi.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
vmw_pvscsi.c [SCSI] vmw_pvscsi: Try setting host->max_id as suggested by the device. 2012-03-27 08:26:36 +01:00
vmw_pvscsi.h [SCSI] vmw_pvscsi: Try setting host->max_id as suggested by the device. 2012-03-27 08:26:36 +01:00
wd33c93.c
wd33c93.h
wd7000.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
zalon.c
zorro7xx.c