-
Notifications
You must be signed in to change notification settings - Fork 5
bpf, sockmap: Fix tp->copied_seq update in, tcp_bpf_strp_read_sock #6310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpf, sockmap: Fix tp->copied_seq update in, tcp_bpf_strp_read_sock #6310
Conversation
|
Upstream branch: b54a8e1 |
03f9e36 to
97961e6
Compare
|
Upstream branch: 6f1f4c1 |
6958a8f to
5a05120
Compare
97961e6 to
2456350
Compare
|
Upstream branch: f8c67d8 |
5a05120 to
2b6365f
Compare
2456350 to
4eb9670
Compare
|
Upstream branch: 026bcf9 |
2b6365f to
592cc1c
Compare
4eb9670 to
e1b05fd
Compare
|
Upstream branch: f1d8c65 |
592cc1c to
d424a8f
Compare
e1b05fd to
b1af442
Compare
|
Upstream branch: 93ce3be |
d424a8f to
05d0128
Compare
b1af442 to
67d3dd3
Compare
|
Upstream branch: 93ce3be |
05d0128 to
4eb4d0d
Compare
67d3dd3 to
488318d
Compare
|
Upstream branch: c1da3df |
4eb4d0d to
2d5335a
Compare
488318d to
728ac5f
Compare
|
Upstream branch: fea3f5e |
2d5335a to
fc3a544
Compare
728ac5f to
4fcc7e1
Compare
1aeb398 to
f68d848
Compare
|
Upstream branch: ef2c0b2 |
99bf32c to
6dab6b2
Compare
f68d848 to
3fd24de
Compare
|
Upstream branch: a4d31f4 |
6dab6b2 to
f86fd48
Compare
3fd24de to
22f76ea
Compare
|
Upstream branch: 4f7bc83 |
f86fd48 to
376e183
Compare
22f76ea to
d766c2f
Compare
|
Upstream branch: 6cc73f3 |
376e183 to
88a1573
Compare
d766c2f to
86f62c3
Compare
|
Upstream branch: 4722981 |
88a1573 to
e2de108
Compare
86f62c3 to
c8a7e22
Compare
|
Upstream branch: 7dc211c |
e2de108 to
3847b57
Compare
c8a7e22 to
c919396
Compare
|
Upstream branch: ec12ab2 |
3847b57 to
15025cd
Compare
c919396 to
73c6b0b
Compare
|
Upstream branch: d6ec090 |
15025cd to
54f8495
Compare
73c6b0b to
0bdd2b9
Compare
|
Upstream branch: d6ec090 |
In the tcp_read_sock_noack function, received packets may be destined for either the current sk or another sk. In my test case, the first packet of the connection is sent to the current sk, while subsequent packets are sent to another sk. When the first packet is forwarded, tp->copied_seq is updated in tcp_bpf_recvmsg_parser. However, since psock->copied_seq accumulates the length of every processed packet, using psock->copied_seq to update tp->copied_seq when processing the second packet would lead to incorrect behavior. Therefore, we only need to update tp->copied_seq in cases where packets are forwarded to another sk. Signed-off-by: GuoYong Zheng <[email protected]>
54f8495 to
33aeccb
Compare
Pull request for series with
subject: bpf, sockmap: Fix tp->copied_seq update in, tcp_bpf_strp_read_sock
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1020412