Re: [PATCH net] rxrpc: Fix missing lower bound in rxrpc_resend_tlp()

From: Lin Ma

Date: Sun Nov 22 2026 - 22:41:40 EST


Hi,

Found by code inspection while reviewing the RACK/TLP retransmission
path, then reproduced on a KASAN kernel.

The symptom is a KASAN null-ptr-deref in the
rxrpc_resend_tlp() -> rxrpc_retransmit_data() path: a write of size 4 to
NULL+0x24 (txb->flags |= RXRPC_TXBUF_RESENT), because the TLP fast path
selects a slot below the tail queue segment's base. That happens when
rxrpc_transmit_fresh_data() advances tx_qtail/tx_top and
rxrpc_send_data_packet() then fails to allocate its wire header before
tx_transmitted is updated.

Thanks,
Lin Ma