aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorSishuai Gong <[email protected]>2023-08-08 12:44:31 -0400
committerDominique Martinet <[email protected]>2023-10-24 13:52:37 +0900
commit58e3ce767307130e911408c75f054d6a6673c8a3 (patch)
tree62025555aaeea9eb2b9e2725a5e7f08e9d2198d5 /tools/testing/selftests/bpf/progs/test_autoload.c
parent05d3ef8bba77c1b5f98d941d8b2d4aeab8118ef1 (diff)
9p/trans_fd: avoid sending req to a cancelled conn
When a connection is cancelled by p9_conn_cancel(), all requests on it should be cancelled---mark req->status as REQ_STATUS_ERROR. However, because a race over m->err between p9_conn_cancel() and p9_fd_request(), p9_fd_request might see the old value of m->err, think that the connection is NOT cancelled, and then add new requests to this cancelled connection. Fixing this issue by lock-protecting the check on m->err. Signed-off-by: Sishuai Gong <[email protected]> Message-ID: <[email protected]> Signed-off-by: Dominique Martinet <[email protected]> Reviewed-by: Christian Schoenebeck <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions