Commit 557e6425 authored by Mike Christie's avatar Mike Christie Committed by Jiri Slaby
Browse files

be2iscsi: check ip buffer before copying

commit a41a9ad3 upstream.

Dan Carpenter found a issue where be2iscsi would copy the ip
from userspace to the driver buffer before checking the len
of the data being copied:
http://marc.info/?l=linux-scsi&m=140982651504251&w=2



This patch just has us only copy what we the driver buffer
can support.

Tested-by: default avatarJohn Soni Jose <sony.john-n@emulex.com>
Signed-off-by: default avatarMike Christie <michaelc@cs.wisc.edu>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
parent a0b8d8d9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment