diff options
| author | Dmitry Antipov <dmantipov@yandex.ru> | 2026-10-19 11:22:14 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-10-20 19:35:16 -0700 |
| commit | 82e31923c0553fdbfcddcd910ca07952880ca9b9 (patch) | |
| tree | 34398aa961f72f1174f6c1c4a535a87498410e77 /tools/perf/scripts/python | |
| parent | d5d524f46974cdddacbebcf2e7874238355aa7f0 (diff) | |
tcp_bpf: propagate error code in tcp_bpf_sendmsg()
In tcp_bpf_sendmsg(), the value returned by sk_msg_memcopy_from_iter()
is checked for error but not propagated to 'out_err' label, so error
handling may not work as expected. Fix this by assigning error value
to 'err', thus making sure that error won't be silently ignored.
Reported-by: Sashiko <shodan.ai@mcst.ru>
Fixes: 5153a75ef34b ("tcp_bpf: Fix copied value in tcp_bpf_sendmsg")
Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Jason Xing <kerneljasonxing@gmail.com>
Reviewed-by: Eric Dumazet <edumazet@kernel.org>
Link: https://patch.msgid.link/20261019082214.102398-1-dmantipov@yandex.ru
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
