Networking fixes for 5.18-rc8, including fixes from can, xfrm and
netfilter subtrees.

Notably this reverts a recent TCP/DCCP netns-related change
to address a possible UaF.

Current release - regressions:
  - tcp: revert "tcp/dccp: get rid of inet_twsk_purge()"

  - xfrm: set dst dev to blackhole_netdev instead of loopback_dev in ifdown

Previous releases - regressions:
  - netfilter: flowtable: fix TCP flow teardown

  - can: revert "can: m_can: pci: use custom bit timings for Elkhart Lake"

  - xfrm: check encryption module availability consistency

  - eth: vmxnet3: fix possible use-after-free bugs in vmxnet3_rq_alloc_rx_buf()

  - eth: mlx5: initialize flow steering during driver probe

  - eth: ice: fix crash when writing timestamp on RX rings

Previous releases - always broken:
  - mptcp: fix checksum byte order

  - eth: lan966x: fix assignment of the MAC address

  - eth: mlx5: remove HW-GRO from reported features

  - eth: ftgmac100: disable hardware checksum on AST2600

Signed-off-by: Paolo Abeni <>
net: bridge: Clear offload_fwd_mark when passing frame up bridge interface.

It is possible to stack bridges on top of each other. Consider the
following which makes use of an Ethernet switch:

     /    \
    /      \
   /        \
 br0.11    wlan0
 /  |  \
p1  p2  p3

br0 is offloaded to the switch. Above br0 is a vlan interface, for
vlan 11. This vlan interface is then a slave of br1. br1 also has a
wireless interface as a slave. This setup trunks wireless lan traffic
over the copper network inside a VLAN.

A frame received on p1 which is passed up to the bridge has the
skb->offload_fwd_mark flag set to true, indicating that the switch has
dealt with forwarding the frame out ports p2 and p3 as needed. This
flag instructs the software bridge it does not need to pass the frame
back down again. However, the flag is not getting reset when the frame
is passed upwards. As a result br1 sees the flag, wrongly interprets
it, and fails to forward the frame to wlan0.

When passing a frame upwards, clear the flag. This is the Rx
equivalent of br_switchdev_frame_unmark() in br_dev_xmit().

Fixes: f1c2eddf4cb6 ("bridge: switchdev: Use an helper to clear forward mark")
Signed-off-by: Andrew Lunn <>
Reviewed-by: Ido Schimmel <>
Tested-by: Ido Schimmel <>
Acked-by: Nikolay Aleksandrov <>
Signed-off-by: Paolo Abeni <>
1 file changed