On Wed, Nov 13, 2013 at 11:52:37AM +0000, Vikas Chaudhary wrote: > > > -----Original Message----- > From: Dan Carpenter <[email protected]> > Date: Wednesday, 13 November 2013 1:18 pm > To: Vikas <[email protected]>, Adheer Chandravanshi > <[email protected]> > Cc: Dept-Eng iSCSI Driver <[email protected]>, "James E.J. > Bottomley" <[email protected]>, scsi <[email protected]>, > "[email protected]" <[email protected]> > Subject: [patch] [SCSI] qla4xxx: overflow in qla4xxx_set_chap_entry() > > >We should cap the size of memcpy() because it comes from the network > >and can't be trusted. > > This patch is on assumption that data is coming from network, > but in this case data come from application (iscsiadm) with correct length. >
No, that doesn't work. We don't trust user space. regards, dan carpenter -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

