[lvc-project] [PATCH v2] tcp_bpf: propagate error code in tcp_bpf_sendmsg()

Jason Xing kerneljasonxing at gmail.com
Tue Oct 20 09:23:07 MSK 2026


On Mon, Oct 19, 2026 at 4:27 PM Dmitry Antipov <dmantipov at yandex.ru> 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: Jason Xing <kerneljasonxing at gmail.com>



More information about the lvc-project mailing list