[lvc-project] [PATCH v2] tcp_bpf: propagate error code in tcp_bpf_sendmsg()
Eric Dumazet
edumazet at kernel.org
Tue Oct 20 10:50:19 MSK 2026
Le mar. 20 oct. 2026 à 08:23, Jason Xing <kerneljasonxing at gmail.com> a écrit :
>
> 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>
Reviewed-by: Eric Dumazet <edumazet at kernel.org>
More information about the lvc-project
mailing list