Latest commit 3e00974 Sep 15, 2017 @hreinecke hreinecke committed with Martin K. Petersen scsi: sg: fixup infoleak when using SG_GET_REQUEST_TABLE
When calling SG_GET_REQUEST_TABLE ioctl only a half-filled table is
returned; the remaining part will then contain stale kernel memory
information.  This patch zeroes out the entire table to avoid this
issue.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Permalink
..
Failed to load latest commit information.
aacraid Merge branch 'fixes' into misc Sep 7, 2017
aic7xxx scsi: aic7xxx: regenerate firmware files Aug 10, 2017
aic94xx scsi: libsas: move bus_reset_handler() to target_reset_handler() Aug 25, 2017
arcmsr arcmsr: add const to bin_attribute structures Aug 10, 2017
arm scsi: acornscsi: fix build error Sep 15, 2017
be2iscsi scsi: be2iscsi: Replace PCI pool old API Aug 7, 2017
bfa scsi: bfa: move bus reset to target reset Aug 25, 2017
bnx2fc Merge branch 'fixes' into misc Sep 7, 2017
bnx2i scsi: bnx2i: Simplify cpu hotplug code Jul 27, 2017
csiostor Merge branch 'fixes' into misc Sep 7, 2017
cxgbi Merge branch 'fixes' into misc Sep 7, 2017
cxlflash scsi: cxlflash: Fix vlun resize failure in the shrink path Aug 25, 2017
device_handler scsi: scsi_dh_alua: remove synchronous STPG support Jun 26, 2017
dpt sched/wait: Rename wait_queue_t => wait_queue_entry_t Jun 20, 2017
esas2r scsi: esas2r: constify pci_device_id. Aug 25, 2017
fcoe scsi: make device_type const Aug 25, 2017
fnic scsi: fnic: do not call host reset from command abort Aug 25, 2017
hisi_sas scsi: libsas: move bus_reset_handler() to target_reset_handler() Aug 25, 2017
ibmvscsi scsi: ibmvfc: ibmvscsi: ibmvscsi_tgt: constify vio_device_id Aug 25, 2017
ibmvscsi_tgt scsi: ibmvfc: ibmvscsi: ibmvscsi_tgt: constify vio_device_id Aug 25, 2017
isci scsi: libsas: move bus_reset_handler() to target_reset_handler() Aug 25, 2017
libfc scsi: fc_fcp: do not call fc_block_scsi_eh() from host reset Aug 25, 2017
libsas scsi: scsi_transport_sas: switch to bsg-lib for SMP passthrough Aug 30, 2017
lpfc Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/gi… Sep 8, 2017
megaraid Merge branch 'fixes' into misc Sep 7, 2017
mpt3sas scsi: scsi_transport_sas: switch to bsg-lib for SMP passthrough Aug 30, 2017
mvsas scsi: libsas: move bus_reset_handler() to target_reset_handler() Aug 25, 2017
osd blk-map: call blk_queue_bounce from blk_rq_append_bio Jun 27, 2017
pcmcia scsi: qlogicfas: move bus_reset to host_reset Aug 25, 2017
pm8001 scsi: libsas: move bus_reset_handler() to target_reset_handler() Aug 25, 2017
qedf Merge branch 'fixes' into misc Sep 7, 2017
qedi Merge branch 'fixes' into misc Sep 7, 2017
qla2xxx Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/gi… Sep 8, 2017
qla4xxx scsi: qla4xxx: fix spelling mistake: "Tempalate" -> "Template" Apr 26, 2017
smartpqi scsi: smartpqi: remove the smp_handler stub Aug 30, 2017
snic scsi: snic: fix a couple of spelling mistakes/typos Jul 1, 2017
sym53c8xx_2 drivers/scsi/sym53c8xx_2/sym_hipd.c: convert to use memset32 Sep 9, 2017
ufs scsi: ufs: reqs and tasks were put in the wrong order Aug 25, 2017
.gitignore [SCSI] 53c7xx: fix removal fallout Jan 12, 2008
3w-9xxx.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally Dec 24, 2016
3w-9xxx.h scsi: Update 3ware driver email addresses Dec 14, 2016
3w-sas.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally Dec 24, 2016
3w-sas.h scsi: Update 3ware driver email addresses Dec 14, 2016
3w-xxxx.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally Dec 24, 2016
3w-xxxx.h scsi: Update 3ware driver email addresses Dec 14, 2016
53c700.c scsi: 53c700: move bus reset to host reset Aug 25, 2017
53c700.h scsi: remove current_cmnd field from struct scsi_device Jul 14, 2016
53c700.scr Fix common misspellings Mar 31, 2011
53c700_d.h_shipped Fix common misspellings Mar 31, 2011
BusLogic.c scsi: BusLogic: fix incorrect spelling of adatper_reset_req Apr 21, 2017
BusLogic.h scsi: BusLogic: fix incorrect spelling of adatper_reset_req Apr 21, 2017
FlashPoint.c FlashPoint: fix build warning Nov 10, 2015
Kconfig Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/gi… Sep 13, 2017
Makefile scsi: Implement blk_mq_ops.show_rq() Apr 26, 2017
NCR5380.c scsi: NCR5380: Move bus reset to host reset Aug 25, 2017
NCR5380.h scsi: ncr5380: Clean up dead code and redundant macro usage Feb 1, 2017
NCR53c406a.c scsi: Do not set cmd_per_lun to 1 in the host template Jun 1, 2015
NCR_D700.c Drivers: scsi: remove __dev* attributes. Jan 3, 2013
NCR_D700.h Linux-2.6.12-rc2 Apr 16, 2005
NCR_Q720.c dma-coherent: remove the DMA_MEMORY_MAP and DMA_MEMORY_IO flags Sep 1, 2017
NCR_Q720.h Linux-2.6.12-rc2 Apr 16, 2005
a100u2w.c scsi: a100u2w: trivial typo in printk Aug 7, 2015
a100u2w.h [SCSI] a100u2w: Convert into Linux style Jun 17, 2007
a2091.c scsi: drop bus reset for wd33c93-compatible boards Aug 25, 2017
a2091.h m68k/scsi: a2091 - Kill a2091_scsiregs typedef May 26, 2010
a3000.c scsi: drop bus reset for wd33c93-compatible boards Aug 25, 2017
a3000.h m68k/scsi: a3000 - Kill a3000_scsiregs typedef May 26, 2010
a4000t.c scsi: drop owner assignment from platform_drivers Oct 20, 2014
advansys.c scsi: advansys: fix uninitialized data access Apr 4, 2017
aha152x.c scsi: aha152x: drop host reset Aug 25, 2017
aha152x.h [SCSI] aha152x: fix debug mode symbol conflict Aug 4, 2007
aha1542.c scsi: aha1542: constify pnp_device_id Aug 25, 2017
aha1542.h aha1542: fix include guard and remove useless changelog Apr 10, 2015
aha1740.c scsi: Do not set cmd_per_lun to 1 in the host template Jun 1, 2015
aha1740.h scsi: Do not set cmd_per_lun to 1 in the host template Jun 1, 2015
am53c974.c am53c974: Fix crash during modprobe Apr 17, 2015
atari_scsi.c scsi: NCR5380: Move bus reset to host reset Aug 25, 2017
atp870u.c atp870u: Introduce atp870_init() Nov 26, 2015
atp870u.h atp870u: Remove scam_on from struct atp_unit Nov 26, 2015
bvme6000_scsi.c scsi: drop owner assignment from platform_drivers Oct 20, 2014
ch.c scsi: ch: add refcounting Aug 25, 2017
constants.c scsi: fix upper bounds check of sense key in scsi_sense_key_string() Aug 16, 2016
dc395x.c scsi: print single-character strings with seq_putc Feb 2, 2015
dc395x.h Fix common misspellings Mar 31, 2011
dmx3191d.c scsi: NCR5380: Move bus reset to host reset Aug 25, 2017
dpt_i2o.c scsi: dpt_i2o: remove redundant null check on array device Aug 10, 2017
dpti.h scsi: use 64-bit LUNs Jul 17, 2014
eata.c scsi: eata: remove 'arg_done' from eata2x_eh_host_reset() Aug 25, 2017
eata_generic.h [SCSI] eata_pio: Remove FALSE/TRUE defines Mar 20, 2007
eata_pio.c eata_pio: missing break statement May 11, 2016
eata_pio.h Linux-2.6.12-rc2 Apr 16, 2005
esp_scsi.c scsi: esp_scsi: Always clear msg_out_len after MESSAGE OUT phase Aug 10, 2017
esp_scsi.h scsi: esp_scsi: Clean up control flow and dead code Aug 10, 2017
fdomain.c scsi: fdomain: move bus reset to host reset Aug 25, 2017
fdomain.h scsi: fdomain: move bus reset to host reset Aug 25, 2017
g_NCR5380.c scsi: NCR5380: Move bus reset to host reset Aug 25, 2017
gdth.c scsi: gdth: avoid buffer overflow warning Aug 7, 2017
gdth.h gdth: switch to ->show_info() Apr 9, 2013
gdth_ioctl.h [SCSI] gdth: Convert to use regular kernel types. Jan 18, 2010
gdth_proc.c scsi: gdth: increase the procfs event buffer size Aug 7, 2017
gdth_proc.h gdth: switch to ->show_info() Apr 9, 2013
gvp11.c scsi: drop bus reset for wd33c93-compatible boards Aug 25, 2017
gvp11.h m68k: amiga - GVP Series II SCSI zorro_driver conversion May 26, 2010
hosts.c scsi: Remove Scsi_Host.uspace_req_q Sep 5, 2017
hpsa.c scsi: hpsa: remove the smp_handler stub Aug 30, 2017
hpsa.h scsi: hpsa: add support for legacy boards Aug 25, 2017
hpsa_cmd.h scsi: hpsa: update identify physical device structure Jun 13, 2017
hptiop.c scsi: hptiop: Simplify reset handling Aug 25, 2017
hptiop.h hptiop: Support HighPoint RR36xx HBAs and Support SAS tape and SAS me… Aug 12, 2015
imm.c scsi: imm: drop duplicate bus_reset handler Aug 25, 2017
imm.h Remove all inclusions of <linux/config.h> Oct 4, 2006
initio.c SCSI: initio: remove duplicate module device table Nov 20, 2015
initio.h Fix common misspellings Mar 31, 2011
ipr.c scsi: ipr: Set no_report_opcodes for RAID arrays Aug 23, 2017
ipr.h scsi: ipr: Fix scsi-mq lockdep issue Aug 8, 2017
ips.c sched/wait: Rename wait_queue_t => wait_queue_entry_t Jun 20, 2017
ips.h sched/wait: Rename wait_queue_t => wait_queue_entry_t Jun 20, 2017
iscsi_boot_sysfs.c ibft: Expose iBFT acpi header via sysfs May 16, 2016
iscsi_tcp.c scsi: iscsi_tcp: Remove a set-but-not-used variable Aug 25, 2017
iscsi_tcp.h iscsi_tcp: Use ahash Jan 27, 2016
jazz_esp.c scsi: drop owner assignment from platform_drivers Oct 20, 2014
lasi700.c parisc/scsi/lasi700: Fix section mismatches Aug 22, 2017
libiscsi.c scsi: libiscsi: Fix indentation Aug 25, 2017
libiscsi_tcp.c iscsi_tcp: Use ahash Jan 27, 2016
mac53c94.c scsi: Convert to using %pOF instead of full_name Aug 7, 2017
mac53c94.h Linux-2.6.12-rc2 Apr 16, 2005
mac_esp.c scsi: mac_esp: Fix PIO transfers for MESSAGE IN phase Aug 10, 2017
mac_scsi.c scsi: NCR5380: Move bus reset to host reset Aug 25, 2017
megaraid.c scsi: megaraid: fix format-overflow warning Aug 7, 2017
megaraid.h [SCSI] megaraid: simplify internal command handling Mar 27, 2014
mesh.c PCI: Remove includes of asm/pci-bridge.h Feb 5, 2016
mesh.h Linux-2.6.12-rc2 Apr 16, 2005
mvme147.c scsi: drop bus reset for wd33c93-compatible boards Aug 25, 2017
mvme147.h [SCSI] mvme147: Reindentation May 2, 2010
mvme16x_scsi.c scsi: drop owner assignment from platform_drivers Oct 20, 2014
mvumi.c scsi: mvumi: remove code handling zero scsi_sg_count(scmd) case Apr 24, 2017
mvumi.h [SCSI] mvumi: Use PCI_VENDOR_ID_MARVELL_EXT for 0x1b4b Apr 15, 2013
ncr53c8xx.c scsi: drop reason argument from ->change_queue_depth Nov 24, 2014
ncr53c8xx.h scsi: Remove CONFIG_SCSI_MULTI_LUN Jul 17, 2014
nsp32.c scsi: nsp32: drop bus reset Aug 25, 2017
nsp32.h Fix common misspellings Mar 31, 2011
nsp32_debug.c treewide: fix a few typos in comments May 10, 2011
nsp32_io.h Linux-2.6.12-rc2 Apr 16, 2005
osst.c scsi: osst: silence underflow warning in osst_verify_frame() Aug 25, 2017
osst.h Fix common misspellings Mar 31, 2011
osst_detect.h Linux-2.6.12-rc2 Apr 16, 2005
osst_options.h Linux-2.6.12-rc2 Apr 16, 2005
pmcraid.c scsi: pmcraid: fix duplicated code for different branches Aug 25, 2017
pmcraid.h scsi: pmcraid: Replace PCI pool old API Aug 7, 2017
ppa.c scsi: ppa: drop duplicate bus_reset handler Aug 25, 2017
ppa.h Remove all inclusions of <linux/config.h> Oct 4, 2006
ps3rom.c scsi: Do not set cmd_per_lun to 1 in the host template Jun 1, 2015
qla1280.c ia64, scsi: update references for the device-io book May 16, 2017
qla1280.h [SCSI] qla1280: error recovery rewrite May 20, 2009
qlogicfas.c scsi: qlogicfas: move bus_reset to host_reset Aug 25, 2017
qlogicfas408.c scsi: qlogicfas: move bus_reset to host_reset Aug 25, 2017
qlogicfas408.h scsi: qlogicfas: move bus_reset to host_reset Aug 25, 2017
qlogicpti.c scsi: qlogicpti: fixup qlogicpti_reset() definition Aug 29, 2017
qlogicpti.h qlogicpti: Fix compiler warnings Nov 28, 2016
raid_class.c [SCSI] raid_attrs: fix dependency problems Mar 3, 2010
script_asm.pl Linux-2.6.12-rc2 Apr 16, 2005
scsi.c Merge branch 'fixes' into misc Sep 7, 2017
scsi.h [SCSI] remove unnecessary includes of linux/config.h from drivers/scsi/ Aug 19, 2006
scsi_common.c scsi: always zero sshdr in scsi_normalize_sense Feb 23, 2017
scsi_debug.c treewide: make "nr_cpu_ids" unsigned Sep 9, 2017
scsi_debugfs.c scsi: Show .retries and .jiffies_at_alloc in debugfs Sep 1, 2017
scsi_debugfs.h scsi: Implement blk_mq_ops.show_rq() Apr 26, 2017
scsi_devinfo.c scsi: scsi_devinfo: remove synchronous ALUA for NETAPP devices Dec 7, 2016
scsi_dh.c scsi: use 'scsi_device_from_queue()' for scsi_dh Feb 22, 2017
scsi_error.c scsi: Use blk_mq_rq_to_pdu() to convert a request to a SCSI command p… Aug 25, 2017
scsi_ioctl.c scsi: Suppress gcc 7 fall-through warnings reported with W=1 Aug 25, 2017
scsi_lib.c scsi: scsi-mq: Always unprepare before requeuing a request Sep 1, 2017
scsi_lib_dma.c scsi: Add export.h for EXPORT_SYMBOL/THIS_MODULE as required Oct 31, 2011
scsi_logging.c scsi_logging: return void for dev_printk() functions Feb 4, 2015
scsi_logging.h scsi: simplify scsi_log_(send|completion) Nov 12, 2014
scsi_module.c Linux-2.6.12-rc2 Apr 16, 2005
scsi_netlink.c netlink: extended ACK reporting Apr 13, 2017
scsi_pm.c scsi: Set request queue runtime PM status back to active on resume Feb 19, 2016
scsi_priv.h scsi: Document which queue type a function is intended for Aug 25, 2017
scsi_proc.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally Dec 24, 2016
scsi_sas_internal.h scsi_transport_sas: add 'scsi_target_id' sysfs attribute Mar 15, 2016
scsi_scan.c scsi: Document which queue type a function is intended for Aug 25, 2017
scsi_sysctl.c scsi: convert use of typedef ctl_table to struct ctl_table Jun 6, 2014
scsi_sysfs.c scsi: Rework handling of scsi_device.vpd_pg8[03] Aug 30, 2017
scsi_trace.c scsi-trace: define ZBC_IN and ZBC_OUT Apr 11, 2016
scsi_transport_api.h [PATCH] SCSI: make scsi_implement_eh() generic API for SCSI transports May 20, 2006
scsi_transport_fc.c scsi: scsi_transport_fc: fix NULL pointer dereference in fc_bsg_job_t… Sep 15, 2017
scsi_transport_iscsi.c scsi: bsg-lib: pass the release callback through bsg_setup_queue Aug 30, 2017
scsi_transport_sas.c scsi: scsi_transport_sas: switch to bsg-lib for SMP passthrough Aug 30, 2017
scsi_transport_spi.c scsi: merge __scsi_execute into scsi_execute Feb 23, 2017
scsi_transport_srp.c scsi: scsi_transport_srp: Suppress a W=1 compiler warning Aug 25, 2017
scsi_typedefs.h [SCSI] remove scsi_request infrastructure Jun 10, 2006
scsicam.c scsi: fix some kernel-doc markups May 16, 2017
sd.c scsi: sd: Remove unnecessary condition in sd_read_block_limits() Sep 15, 2017
sd.h sd: add support for TCG OPAL self encrypting disks Jun 29, 2017
sd_dif.c scsi: sd: Move DIF protection types to t10-pi.h Sep 15, 2016
sd_zbc.c scsi: sd_zbc: Write unlock zone from sd_uninit_cmnd() Aug 17, 2017
sense_codes.h scsi: move Additional Sense Codes to separate file Apr 11, 2016
ses.c Merge branch 'fixes' into misc Sep 7, 2017
sg.c scsi: sg: fixup infoleak when using SG_GET_REQUEST_TABLE Sep 15, 2017
sgiwd93.c scsi: drop bus reset for wd33c93-compatible boards Aug 25, 2017
sim710.c scsi: sim710: fix build warning Feb 24, 2016
sni_53c710.c scsi: remove incorrect __exit markups Mar 15, 2017
sr.c scsi: sd: sr: Convert two assignments into warning statements Aug 25, 2017
sr.h scsi: introduce sdev_prefix_printk() Nov 12, 2014
sr_ioctl.c scsi: merge __scsi_execute into scsi_execute Feb 23, 2017
sr_vendor.c scsi: Implement sr_printk() Jul 17, 2014
st.c scsi: st: fix blk_get_queue usage Aug 8, 2017
st.h st: Remove obsolete scsi_tape.max_pfn Nov 18, 2015
st_options.h [SCSI] st: add option to use SILI in variable block reads Apr 7, 2008
stex.c scsi: stex: make S6flag static Apr 26, 2017
storvsc_drv.c scsi: storvsc: fix memory leak on ring buffer busy Aug 31, 2017
sun3_scsi.c scsi: NCR5380: Move bus reset to host reset Aug 25, 2017
sun3_scsi_vme.c scsi/NCR5380: merge sun3_scsi_vme.c into sun3_scsi.c May 28, 2014
sun3x_esp.c arch, drivers: don't include <asm/io.h> directly, use <linux/io.h> in… Aug 11, 2015
sun_esp.c scsi: sun_esp: fix device reference leaks Jun 28, 2017
sym53c416.c scsi: Do not set cmd_per_lun to 1 in the host template Jun 1, 2015
sym53c416.h SCSI host lock push-down Nov 16, 2010
virtio_scsi.c scsi: virtio: virtio_scsi: Set can_queue to the length of the virtqueue. Aug 25, 2017
vmw_pvscsi.c scsi: vmw_pvscsi: handle the return value from pci_alloc_irq_vectors … Mar 7, 2017
vmw_pvscsi.h scsi: vmw_pvscsi: switch to pci_alloc_irq_vectors Jan 12, 2017
wd33c93.c scsi: drop bus reset for wd33c93-compatible boards Aug 25, 2017
wd33c93.h switch wd33c93 to ->show_info() Apr 9, 2013
wd719x.c drivers/scsi/wd719x.c: remove last declaration using DEFINE_PCI_DEVIC… Sep 2, 2016
wd719x.h scsi: Do not set cmd_per_lun to 1 in the host template Jun 1, 2015
xen-scsifront.c scsi: xen-scsifront: Remove code that zeroes driver-private command data Jun 13, 2017
zalon.c parisc/scsi/zalon: Fix section mismatches Aug 22, 2017
zorro7xx.c zorro: ZTWO_VADDR() should return "void __iomem *" Nov 26, 2013