linux/drivers/infiniband
Roland Dreier eabc77935d IB/umad: make sure write()s have sufficient data
Make sure that userspace passes in enough data when sending a MAD.  We
always copy at least sizeof (struct ib_user_mad) + IB_MGMT_RMPP_HDR
bytes from userspace, so anything less is definitely invalid.  Also,
if the length is less than this limit, it's possible for the second
copy_from_user() to get a negative length and trigger a BUG().

Signed-off-by: Roland Dreier <rolandd@cisco.com>
2005-11-18 14:18:26 -08:00
..
core IB/umad: make sure write()s have sufficient data 2005-11-18 14:18:26 -08:00
hw/mthca IB/mthca: Safer max_send_sge/max_recv_sge calculation 2005-11-18 14:11:17 -08:00
ulp [IB] srp: don't post receive if no send buf available 2005-11-15 00:19:21 -08:00
Kconfig IB: Add SCSI RDMA Protocol (SRP) initiator 2005-11-02 14:07:13 -08:00
Makefile IB: Add SCSI RDMA Protocol (SRP) initiator 2005-11-02 14:07:13 -08:00