diff options
| author | Liu Jian <[email protected]> | 2022-09-07 07:13:11 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2022-09-26 15:48:05 +0000 |
| commit | bec217197b412d74168c6a42fc0f76d0cc9cad00 (patch) | |
| tree | e63d07ff0f00d7820945717090e7d6169a6313ee /tools/testing/selftests/bpf/prog_tests/sockmap_basic.c | |
| parent | selftests/bpf: Add wait send memory test for sockmap redirect (diff) | |
| download | kernel-bec217197b412d74168c6a42fc0f76d0cc9cad00.tar.gz kernel-bec217197b412d74168c6a42fc0f76d0cc9cad00.zip | |
skmsg: Schedule psock work if the cached skb exists on the psock
In sk_psock_backlog function, for ingress direction skb, if no new data
packet arrives after the skb is cached, the cached skb does not have a
chance to be added to the receive queue of psock. As a result, the cached
skb cannot be received by the upper-layer application. Fix this by reschedule
the psock work to dispose the cached skb in sk_msg_recvmsg function.
Fixes: 604326b41a6f ("bpf, sockmap: convert to generic sk_msg interface")
Signed-off-by: Liu Jian <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: John Fastabend <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/sockmap_basic.c')
0 files changed, 0 insertions, 0 deletions
