aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorMike Marciniszyn <[email protected]>2019-01-17 12:42:16 -0800
committerJason Gunthorpe <[email protected]>2019-01-21 14:20:08 -0700
commit09ce351dff8e7636af0beb72cd4a86c3904a0500 (patch)
tree2d94b1e0d6fdccf24cbe3e78a50eed544ce215ec /net/lapb/lapb_subr.c
parent7709b0dc265f28695487712c45f02bbd1f98415d (diff)
IB/hfi1: Add limit test for RC/UC send via loopback
Fix potential memory corruption and panic in loopback for IB_WR_SEND variants. The code blindly assumes the posted length will fit in the fetched rwqe, which is not a valid assumption. Fix by adding a limit test, and triggering the appropriate send completion and putting the QP in an error state. This mimics the handling for non-loopback QPs. Fixes: 15703461533a ("IB/{hfi1, qib, rdmavt}: Move ruc_loopback to rdmavt") Cc: <[email protected]> #v4.20+ Reviewed-by: Michael J. Ruhl <[email protected]> Signed-off-by: Mike Marciniszyn <[email protected]> Signed-off-by: Dennis Dalessandro <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions