Re: [PATCH 01/10] xfrm: propagate -EINPROGRESS from validate_xmit_xfrm()
From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-07-11 11:00:44
Hello: This series was applied to netdev/net.git (main) by Steffen Klassert [off-list ref]: On Fri, 10 Jul 2026 11:03:14 +0200 you wrote:
From: Petr Wozniak <redacted>
validate_xmit_xfrm() returns NULL both when a packet is dropped and
when it is stolen by async crypto (-EINPROGRESS from ->xmit()).
Callers cannot distinguish the two cases.
f53c723902d1 ("net: Add asynchronous callbacks for xfrm on layer 2.")
changed the semantics of a NULL return from "dropped" to "stolen or
dropped", but __dev_queue_xmit() was not updated. On virtual/bridge
interfaces (noqueue qdisc) __dev_queue_xmit() initialises rc=-ENOMEM
and jumps to out: when skb is NULL, returning -ENOMEM to the caller
even though the packet will be delivered correctly via xfrm_dev_resume().
[...]
Here is the summary with links:
- [01/10] xfrm: propagate -EINPROGRESS from validate_xmit_xfrm()
https://git.kernel.org/netdev/net/c/6860b467f569
- [02/10] xfrm: fix stale skb->prev after async crypto steals a GSO segment
https://git.kernel.org/netdev/net/c/3f4c3919baf0
- [03/10] xfrm: nat_keepalive: avoid double free on send error
https://git.kernel.org/netdev/net/c/226f4a490d1a
- [04/10] xfrm: fix sk_dst_cache double-free in xfrm_user_policy()
https://git.kernel.org/netdev/net/c/c283e9ada7fc
- [05/10] xfrm: cache the offload ifindex for netlink dumps
https://git.kernel.org/netdev/net/c/c4a5f0071cc6
- [06/10] xfrm: reject optional IPTFS templates in outbound policies
https://git.kernel.org/netdev/net/c/ea528f18231e
- [07/10] xfrm: clear mode callbacks after failed mode setup
https://git.kernel.org/netdev/net/c/2538bd3cd1ff
- [08/10] xfrm: iptfs: propagate SKBFL_SHARED_FRAG in iptfs_skb_add_frags()
https://git.kernel.org/netdev/net/c/430ea57d6daf
- [09/10] xfrm6: clear dst.dev on error to avoid double netdev_put in xfrm6_fill_dst()
https://git.kernel.org/netdev/net/c/136992de9bb9
- [10/10] xfrm: policy: preallocate inexact bins before xfrm_hash_rebuild reinsert
https://git.kernel.org/netdev/net/c/f38f8cce2f7e
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html