[PATCH v3] mbuf: fix packet copy

Kevin Traynor ktraynor at redhat.com
Thu Feb 26 11:01:03 CET 2026


On 25/02/2026 17:17, Morten Brørup wrote:
>> From: Kevin Traynor [mailto:ktraynor at redhat.com]
>> Sent: Wednesday, 25 February 2026 16.59
>>
>> On 10/02/2026 17:21, Thomas Monjalon wrote:
>>> 20/01/2026 08:24, Morten Brørup:
>>>> mbuf: fix packet copy
>>>>
>>>> Requests for copying the at the end of a packet incorrectly returned
>> NULL,
>>>> as if copying past the end of a packet.
>>>>
>>>> When allocating the mbuf for the copy from a mempool using pinned
>> external
>>>> buffers, the external flag in this mbuf was not preserved.
>>>>
>>>> Fixes: c3a90c381daa ("mbuf: add a copy routine")
>>>>
>>>> Signed-off-by: Morten Brørup <mb at smartsharesystems.com>
>>>> Acked-by: Konstantin Ananyev <konstantin.ananyev at huawei.com>
>>>
>>> Applied, thanks.
>>>
>>>
>>>
>> Hi All. I see this is not marked for stable release. Is it deliberate
>> because of the flags changes ?
> 
> IIRC, the consensus was that using pinned external buffers is considered exotic, so the bug is unlikely to occur in real applications. And if it did happen, we would have heard about it.
> 
> But, since you ask, we really should have left that decision to the stable tree maintainers.
> 

Thanks Morten. Background knowledge and context is important, so it's
fine you made a decision on it, I just wanted to check.

> -Morten
> 



More information about the stable mailing list