[lvc-project] [PATCH v2] tcp_bpf: propagate error code in tcp_bpf_sendmsg()
Kuniyuki Iwashima
kuniyu at google.com
Tue Oct 20 07:44:25 MSK 2026
On Mon, 19 Oct 2026 11:22:14 +0300, Dmitry Antipov wrote:
> 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 at mcst.ru>
> Fixes: 5153a75ef34b ("tcp_bpf: Fix copied value in tcp_bpf_sendmsg")
> Signed-off-by: Dmitry Antipov <dmantipov at yandex.ru>
Reviewed-by: Kuniyuki Iwashima <kuniyu at google.com>
More information about the lvc-project
mailing list