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

Fedor Pchelkin pchelkin at ispras.ru
Mon Oct 19 17:56:01 MSK 2026


On Mon, 19. Oct 12:52, Dmitry Antipov wrote:
> No upstream commit exists for this patch.
> 
> 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>
> ---
> Upstream commit is on the way at
> https://lore.kernel.org/bpf/179239853943.3290.3841022911205774928@kernel.org/T/#t.

В стабильные ветки межд. сообщества принимают только патчи, эквивалент
которых присутсвует в апстриме.  Даже когда патч под апстрим дойдёт до
апстрима, вас попросят перепослать, указав в данном бэкпорте отсылку к
апстрим-коммиту.

Поэтому до сих пор просил отправлять в lvc-patches at linuxtesting.org.  В
международный stable по крайней мере этот патч пока рано.



More information about the lvc-project mailing list