diff options
| author | 2017-10-04 10:50:37 +0300 | |
|---|---|---|
| committer | 2017-10-16 22:35:13 -0400 | |
| commit | 3e351275655d3c84dc28abf170def9786db5176d (patch) | |
| tree | 88f0f09591a36ad920c5020f4293f3fc27c977ae /scripts/Makefile.thinlto | |
| parent | scsi: libcxgbi: simplify task->hdr allocation for mgmt cmds (diff) | |
scsi: bfa: integer overflow in debugfs
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 13e2d5187f6b ("bna: integer overflow bug in debugfs").
Fixes: ab2a9ba189e8 ("[SCSI] bfa: add debugfs support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
