linux/drivers/scsi/bfa
Dan Carpenter a114af87c0 scsi: bfa: integer overflow in debugfs
[ Upstream commit 3e35127565 ]

We could allocate less memory than intended because we do:

	bfad->regdata = kzalloc(len << 2, GFP_KERNEL);

The shift can overflow leading to a crash.  This is debugfs code so the
impact is very small.  I fixed the network version of this in March with
commit 13e2d5187f ("bna: integer overflow bug in debugfs").

Fixes: ab2a9ba189 ("[SCSI] bfa: add debugfs support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-12-20 10:05:01 +01:00
..
bfa_core.c [SCSI] bfa: Fix for bcu or hcm faa query hang 2013-12-19 07:39:05 -08:00
bfa_cs.h
bfa_defs_fcs.h
bfa_defs_svc.h
bfa_defs.h [SCSI] bfa: Firmware patch simplification 2013-12-19 07:39:04 -08:00
bfa_fc.h [SCSI] bfa: change FC_ELS_TOV to 20sec 2013-12-19 07:39:05 -08:00
bfa_fcbuild.c
bfa_fcbuild.h
bfa_fcpim.c
bfa_fcpim.h
bfa_fcs_fcpim.c
bfa_fcs_lport.c [SCSI] bfa: LUN discovery issue in direct attach mode 2013-12-19 07:39:05 -08:00
bfa_fcs_rport.c
bfa_fcs.c bfa: use ARRAY_SIZE instead of sizeof/sizeof[0] 2014-07-25 17:16:55 -04:00
bfa_fcs.h [SCSI] bfa: Fix crash when symb name set for offline vport 2013-12-03 06:56:49 -08:00
bfa_hw_cb.c
bfa_hw_ct.c
bfa_ioc_cb.c [SCSI] bfa: Firmware patch simplification 2013-12-19 07:39:04 -08:00
bfa_ioc_ct.c
bfa_ioc.c bfa: Fix incorrect de-reference of pointer 2015-09-06 11:39:53 -07:00
bfa_ioc.h bfa: Fix undefined bit shift on big-endian architectures with 32-bit DMA address 2014-07-25 17:16:54 -04:00
bfa_modules.h
bfa_plog.h
bfa_port.c
bfa_port.h
bfa_svc.c [SCSI] bfa: Observed auto D-port mode instead of manual 2013-12-19 07:39:05 -08:00
bfa_svc.h
bfa.h
bfad_attr.c [SCSI] bfa: Fix crash when symb name set for offline vport 2013-12-03 06:56:49 -08:00
bfad_bsg.c bfa: remove useless return variables 2014-07-25 17:16:55 -04:00
bfad_bsg.h [SCSI] bfa: Firmware patch simplification 2013-12-19 07:39:04 -08:00
bfad_debugfs.c scsi: bfa: integer overflow in debugfs 2017-12-20 10:05:01 +01:00
bfad_drv.h [SCSI] bfa: Driver version upgrade to 3.2.23.0 2013-12-19 07:39:06 -08:00
bfad_im.c scsi: use host wide tags by default 2015-11-09 17:11:57 -08:00
bfad_im.h
bfad.c bfs: bfad_worker cleanup 2015-04-17 09:04:09 -04:00
bfi_ms.h
bfi_reg.h
bfi.h [SCSI] bfa: Observed auto D-port mode instead of manual 2013-12-19 07:39:05 -08:00
Makefile