Re: [PATCH] bpf, sockmap: fix cork data loss after redirect

From: Alexei Starovoitov

Date: Sat Nov 14 2026 - 11:35:53 EST


On Sat, Nov 14, 2026 at 03:46 AM Ömer Mete Kaya <omermetekaya0@xxxxxxxxx> wrote:
> In tcp_bpf_send_verdict(), when a corked message is redirected via
> __SK_REDIRECT, the cork cleanup path unconditionally frees the entire
> message and sets msg to NULL, even when only a partial send was
> performed (tosend < total msg size due to apply_bytes).

It's fixed already. See bpf tree:
commit 13c41b87e4a7 ("bpf, sockmap: Keep the rest of the cork after a redirect")
tcp_bpf_send_verdict() puts the rest back into psock->cork
and goes to more_data.

pw-bot: cr