* [PATCH] tcp_bpf: propagate error code in tcp_bpf_sendmsg()
@ 2026-10-12 16:36 Dmitry Antipov
2026-10-12 16:40 ` netdev-bot+sinfo
0 siblings, 1 reply; 2+ messages in thread
From: Dmitry Antipov @ 2026-10-12 16:36 UTC (permalink / raw)
To: Eric Dumazet, Daniel Borkmann, Jakub Kicinski, Levi Zim
Cc: netdev, bpf, lvc-project, Dmitry Antipov
In tcp_bpf_sendmsg(), propagate error code possibly returned
by sk_msg_memcopy_from_iter() so that the former can handle
it properly at 'out_err' label.
Assisted-by: Sashiko:[unknown LLM model]
Fixes: 5153a75ef34b ("tcp_bpf: Fix copied value in tcp_bpf_sendmsg")
Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
---
net/ipv4/tcp_bpf.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/ipv4/tcp_bpf.c b/net/ipv4/tcp_bpf.c
index 2e234d155b5e..0ce583f68d3b 100644
--- a/net/ipv4/tcp_bpf.c
+++ b/net/ipv4/tcp_bpf.c
@@ -581,6 +581,7 @@ static int tcp_bpf_sendmsg(struct sock *sk, struct msghdr *msg, size_t size)
copy);
if (ret < 0) {
sk_msg_trim(sk, msg_tx, osize);
+ err = ret;
goto out_err;
}
--
2.56.0
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] tcp_bpf: propagate error code in tcp_bpf_sendmsg()
2026-10-12 16:36 [PATCH] tcp_bpf: propagate error code in tcp_bpf_sendmsg() Dmitry Antipov
@ 2026-10-12 16:40 ` netdev-bot+sinfo
0 siblings, 0 replies; 2+ messages in thread
From: netdev-bot+sinfo @ 2026-10-12 16:40 UTC (permalink / raw)
To: Dmitry Antipov
Cc: Eric Dumazet, Daniel Borkmann, Jakub Kicinski, Levi Zim, netdev,
bpf, lvc-project
Hi!
This is an automated message. This series looks like a fix, but its
commit messages seem to be missing some information:
- How the issue was discovered, e.g. hit in production, hit during
development, syzbot report, manual code inspection, LLM or static
analysis tool scan.
- Whether the issue was actually triggered, or is only theoretical
(e.g. found by code inspection). If it was triggered please include
the symptoms, like the stack trace or error messages.
Please do not repost the series just to address the above. Instead,
reply to this email with the missing information, so that reviewers
can take it into account. If the series needs another revision for
other reasons, please include the information in the commit messages
then.
The evaluation is done by an LLM so it may be wrong, if you think
that is the case please reply and explain.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-10-12 16:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-12 16:36 [PATCH] tcp_bpf: propagate error code in tcp_bpf_sendmsg() Dmitry Antipov
2026-10-12 16:40 ` netdev-bot+sinfo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox