linux/drivers/net
Ioana Ciornei c42dbdcde7 dpaa2-eth: fix the pointer passed to PTR_ALIGN on Tx path
[ Upstream commit 902e81e679 ]

The blamed commit increased the needed headroom to account for
alignment. This means that the size required to always align a Tx buffer
was added inside the dpaa2_eth_needed_headroom() function. By doing
that, a manual adjustment of the pointer passed to PTR_ALIGN() was no
longer correct since the 'buffer_start' variable was already pointing
to the start of the skb's memory.

The behavior of the dpaa2-eth driver without this patch was to drop
frames on Tx even when the headroom was matching the 128 bytes
necessary. Fix this by removing the manual adjust of 'buffer_start' from
the PTR_MODE call.

Closes: https://lore.kernel.org/netdev/70f0dcd9-1906-4d13-82df-7bbbbe7194c6@app.fastmail.com/T/#u
Fixes: f422abe3f2 ("dpaa2-eth: increase the needed headroom to account for alignment")
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Tested-by: Mathew McBride <matt@traverse.com.au>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20251016135807.360978-1-ioana.ciornei@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-10-29 14:03:11 +01:00
..
appletalk make legacy ISA probe optional 2021-08-03 13:05:26 +01:00
arcnet arcnet: Add NULL check in com20020pci_probe() 2025-04-10 14:32:05 +02:00
bonding bonding: update LACP activity flag after setting lacp_active 2025-08-28 16:24:38 +02:00
caif caif_virtio: fix wrong pointer check in cfv_probe() 2025-03-13 12:51:04 +01:00
can can: m_can: m_can_plat_remove(): add missing pm_runtime_disable() 2025-10-29 14:03:07 +01:00
dsa net: dsa: lantiq_gswip: suppress -EINVAL errors for bridge FDB entries added to the CPU port 2025-10-02 13:39:12 +02:00
ethernet dpaa2-eth: fix the pointer passed to PTR_ALIGN on Tx path 2025-10-29 14:03:11 +01:00
fddi net: defxx: Fix missing err handling in dfx_init() 2022-12-31 13:14:18 +01:00
fjes minmax: make generic MIN() and MAX() macros available everywhere 2025-10-19 16:21:52 +02:00
hamradio hamradio: baycom_epp: Fix return type of baycom_send_packet() 2022-12-31 13:14:41 +01:00
hippi drivers: net: hippi: Fix deadlock in rr_close() 2022-05-09 09:14:40 +02:00
hyperv hv_netvsc: Fix panic during namespace deletion with VF 2025-08-28 16:24:31 +02:00
ieee802154 ieee802154: ca8210: Use proper setters and getters for bitwise types 2025-06-04 14:37:58 +02:00
ipa net: ipa: compute DMA pool size properly 2023-04-05 11:24:57 +02:00
ipvlan ipvlan: Dont Use skb->sk in ipvlan_process_v{4,6}_outbound 2024-06-16 13:39:52 +02:00
mctp mctp: Add initial driver infrastructure 2021-07-29 15:06:50 +01:00
mdio net: mdiobus: fix an OF node reference leak 2025-01-09 13:28:32 +01:00
netdevsim netdevsim: print human readable IP address 2025-03-13 12:50:46 +01:00
pcs net: pcs: xpcs: Return EINVAL in the internal methods 2024-04-13 13:01:43 +02:00
phy phy: mscc: Stop taking ts_lock for tx_queue and use its own lock 2025-09-09 18:50:20 +02:00
plip net: plip: fix break; causing plip to never transmit 2024-11-01 01:52:36 +01:00
ppp ppp: fix memory leak in pad_compress_skb 2025-09-09 18:50:20 +02:00
slip slip: make slhc_remember() more robust against malicious packets 2024-10-17 15:11:58 +02:00
team team: better TEAM_OPTION_TYPE_STRING validation 2025-03-13 12:50:35 +01:00
usb net: usb: lan78xx: fix use of improperly initialized dev->chipid in lan78xx_reset 2025-10-29 14:03:09 +01:00
vmxnet3 vmxnet3: update MTU after device quiesce 2025-09-09 18:50:23 +02:00
vxlan vxlan: Do not treat dst cache initialization errors as fatal 2025-06-27 11:05:32 +01:00
wan drivers/net: process the result of hdlc_open() and add call of hdlc_close() in uhdlc_close() 2023-10-10 21:59:06 +02:00
wireguard wireguard: device: enable threaded NAPI 2025-06-27 11:05:18 +01:00
wireless wifi: ath10k: avoid unnecessary wait for service ready message 2025-10-19 16:21:35 +02:00
wwan net: wwan: mhi_wwan_mbim: Silence sequence number glitch errors 2025-04-10 14:31:51 +02:00
xen-netback net/xen-netback: prevent UAF in xenvif_flush_hash() 2024-10-17 15:11:24 +02:00
bareudp.c bareudp: Pull inner IP header on xmit. 2024-10-17 15:10:47 +02:00
dummy.c net: bonding, dummy, ifb, team: advertise NETIF_F_GSO_SOFTWARE 2020-11-03 16:53:55 -08:00
eql.c eql: use ndo_siocdevprivate 2021-07-27 20:11:43 +01:00
geneve.c geneve: Suppress list corruption splat in geneve_destroy_tunnels(). 2025-03-13 12:50:52 +01:00
gtp.c gtp: Suppress list corruption splat in gtp_net_exit_batch_rtnl(). 2025-03-13 12:50:52 +01:00
ifb.c ifb: fix building without CONFIG_NET_CLS_ACT 2021-11-18 19:16:04 +01:00
Kconfig lib/crypto: blake2s: include as built-in 2022-05-30 09:28:59 +02:00
LICENSE.SRC Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
loopback.c net: loopback: Avoid sending IP packets without an Ethernet header 2025-03-13 12:50:56 +01:00
macsec.c macsec: MACsec SCI assignment for ES = 0 2025-06-27 11:05:20 +01:00
macvlan.c macvlan: Don't propagate promisc change to lower dev in passthru 2023-11-28 16:56:25 +00:00
macvtap.c macvtap: advertise link netns via netlink 2022-04-13 20:59:07 +02:00
Makefile net: Always descend into dsa/ folder with CONFIG_NET_DSA enabled 2024-06-16 13:39:46 +02:00
mdio.c net: mdio: Correct function name mdio45_links_ok() in comment 2021-03-29 13:42:44 -07:00
mhi_net.c net: mhi: Fix memory leak in mhi_net_dellink() 2022-11-26 09:24:40 +01:00
mii.c net: mii: make mii_ethtool_gset() return void 2021-08-19 13:06:53 +01:00
net_failover.c net/net_failover: fix txq exceeding warning 2023-04-05 11:24:55 +02:00
netconsole.c net: netconsole: Disable target before netpoll cleanup 2024-08-19 05:45:11 +02:00
nlmon.c net: don't include ethtool.h from netdevice.h 2020-11-23 17:27:04 -08:00
ntb_netdev.c ntb_netdev: Use dev_kfree_skb_any() in interrupt context 2022-12-31 13:14:20 +01:00
rionet.c rionet: Fix use correct return type for ndo_start_xmit() 2020-04-30 12:15:13 -07:00
sb1000.c sb1000: use ndo_siocdevprivate 2021-07-27 20:11:44 +01:00
Space.c wan: remove sbni/granch driver 2021-08-03 13:05:26 +01:00
sungem_phy.c net: sungem_phy: Add of_node_put() for reference returned by of_get_parent() 2022-08-03 12:03:48 +02:00
tap.c tap: add missing verification for short frame 2024-07-27 10:46:18 +02:00
thunderbolt.c net: thunderbolt: Fix the parameter passing of tb_xdomain_enable_paths()/tb_xdomain_disable_paths() 2025-08-28 16:24:21 +02:00
tun.c tun: revert fix group permission check 2025-03-13 12:50:23 +01:00
veth.c net: veth: do not manipulate GRO when using XDP 2024-03-26 18:21:35 -04:00
virtio_net.c virtio-net: ensure the received length does not exceed allocated size 2025-07-17 18:30:50 +02:00
vrf.c vrf: Drop existing dst reference in vrf_ip6_input_dst 2025-08-28 16:24:09 +02:00
vsockmon.c net: don't include ethtool.h from netdevice.h 2020-11-23 17:27:04 -08:00
xen-netfront.c xen/netfront: Fix TX response spurious interrupts 2025-08-28 16:24:19 +02:00