🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
2 messages
2 total messages Started by Eric Dumazet Tue, 27 Oct 2026 06:41
Re: [PATCH net 1/3] igc: pad preemptible packets before reserving TX timestamps
#7751
Author: Eric Dumazet
Date: Tue, 27 Oct 2026 06:41
22 lines
10059 bytes
Le lun. 26 oct. 2026 à 10:16, Paul Moses <p@1g4.org> a écrit :
>
> Preemptible queues require software padding so hardware includes the
> padding bytes in the mCRC. Padding currently runs after TX timestamp
> reservation takes an extra skb reference. If padding needs to expand
> the skb, pskb_expand_head() rejects the shared skb.
>
> Commit c7d8bc3dd511 ("net: skbuff: don't BUG() on bad arguments to
> pskb_expand_head()") replaced the BUG_ON() with -EINVAL, exposing the
> padding error path. skb_padto() drops one reference on failure, and
> out_drop drops another. This can free the skb while the pending TX
> timestamp still holds its pointer.
>
> Move padding before TX timestamp reservation and use __skb_put_padto()
> with free_on_error set to false so out_drop handles the skb release.
> Preserve the VLAN flags in first->tx_flags when adding timestamp flags.
>
> Fixes: 17643482e9ff ("igc: add preemptible queue support in taprio")
> Signed-off-by: Paul Moses <p@1g4.org>

Reviewed-by: Eric Dumazet <edumazet@kernel.org>
Re: [PATCH net 1/3] igc: pad preemptible packets before reserving TX timestamps
#23985
Author: "Kadosh, MoriyaX"
Date: Sat, 28 Nov 2026 20:59
26 lines
21122 bytes

On 27/10/2026 8:41, Eric Dumazet wrote:
> Le lun. 26 oct. 2026 à 10:16, Paul Moses <p@1g4.org> a écrit :
>>
>> Preemptible queues require software padding so hardware includes the
>> padding bytes in the mCRC. Padding currently runs after TX timestamp
>> reservation takes an extra skb reference. If padding needs to expand
>> the skb, pskb_expand_head() rejects the shared skb.
>>
>> Commit c7d8bc3dd511 ("net: skbuff: don't BUG() on bad arguments to
>> pskb_expand_head()") replaced the BUG_ON() with -EINVAL, exposing the
>> padding error path. skb_padto() drops one reference on failure, and
>> out_drop drops another. This can free the skb while the pending TX
>> timestamp still holds its pointer.
>>
>> Move padding before TX timestamp reservation and use __skb_put_padto()
>> with free_on_error set to false so out_drop handles the skb release.
>> Preserve the VLAN flags in first->tx_flags when adding timestamp flags.
>>
>> Fixes: 17643482e9ff ("igc: add preemptible queue support in taprio")
>> Signed-off-by: Paul Moses <p@1g4.org>
> 
> Reviewed-by: Eric Dumazet <edumazet@kernel.org>
Tested-by: Moriya Kadosh <moriyax.kadosh@intel.com>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads