aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorKaike Wan <[email protected]>2019-08-15 15:20:39 -0400
committerDoug Ledford <[email protected]>2019-08-20 13:44:44 -0400
commit35d5c8b82e2c32e8e29ca195bb4dac60ba7d97fc (patch)
tree356e53f60ec949c0c2982af66742a60a6c6074b3 /tools/perf/util/trace-event-scripting.c
parentd58c1834bf0d218a0bc00f8fb44874551b21da84 (diff)
IB/hfi1: Unsafe PSN checking for TID RDMA READ Resp packet
When processing a TID RDMA READ RESP packet that causes KDETH EFLAGS errors, the packet's IB PSN is checked against qp->s_last_psn and qp->s_psn without the protection of qp->s_lock, which is not safe. This patch fixes the issue by acquiring qp->s_lock first. Fixes: 9905bf06e890 ("IB/hfi1: Add functions to receive TID RDMA READ response") Cc: <[email protected]> Reviewed-by: Mike Marciniszyn <[email protected]> Signed-off-by: Kaike Wan <[email protected]> Signed-off-by: Dennis Dalessandro <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions