diff options
author | Cong Wang <[email protected]> | 2024-08-11 19:21:53 -0700 |
---|---|---|
committer | Paolo Abeni <[email protected]> | 2024-08-15 12:07:04 +0200 |
commit | 69139d2919dd4aa9a553c8245e7c63e82613e3fc (patch) | |
tree | 072eafbdd97a3d7ed4981ac2f89eef90974a8582 /scripts/rustdoc_test_builder.rs | |
parent | b2ca1661c7db9693095cee7991c55d67c3b5d346 (diff) |
vsock: fix recursive ->recvmsg calls
After a vsock socket has been added to a BPF sockmap, its prot->recvmsg
has been replaced with vsock_bpf_recvmsg(). Thus the following
recursiion could happen:
vsock_bpf_recvmsg()
-> __vsock_recvmsg()
-> vsock_connectible_recvmsg()
-> prot->recvmsg()
-> vsock_bpf_recvmsg() again
We need to fix it by calling the original ->recvmsg() without any BPF
sockmap logic in __vsock_recvmsg().
Fixes: 634f1a7110b4 ("vsock: support sockmap")
Reported-by: [email protected]
Tested-by: [email protected]
Cc: Bobby Eshleman <[email protected]>
Cc: Michael S. Tsirkin <[email protected]>
Cc: Stefano Garzarella <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Acked-by: Michael S. Tsirkin <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'scripts/rustdoc_test_builder.rs')
0 files changed, 0 insertions, 0 deletions