Maciej Żenczykowski
705e3783b7
ANDROID: net: bpf: permit redirect from ingress L3 to egress L2 devices at near max mtu
...
__bpf_skb_max_len(skb) is used from:
bpf_skb_adjust_room
__bpf_skb_change_tail
__bpf_skb_change_head
but in the case of forwarding we're likely calling these functions
during receive processing on ingress and bpf_redirect()'ing at
a later point in time to egress on another interface, thus these
mtu checks are for the wrong device (input instead of output).
This is particularly problematic if we're receiving on an L3 1500 mtu
cellular interface, trying to add an L2 header and forwarding to
an L3 mtu 1500 mtu wifi/ethernet device (which is thus L2 1514).
The mtu check prevents us from adding the 14 byte ethernet header prior
to forwarding the packet.
After the packet has already been redirected, we'd need to add
an additional 2nd ebpf program on the target device's egress tc hook,
but then we'd also see non-redirected traffic and have no easy
way to tell apart normal egress with ethernet header packets
from forwarded ethernet headerless packets.
Link: https://patchwork.ozlabs.org/project/netdev/patch/[email protected] /
But note that a more thorough solution will be pursued.
CRs-Fixed: 2662725
Bug: 149816401
Change-Id: If55a144d7822e23bce85f65897bca7de4e0f9b24
Cc: Alexei Starovoitov <[email protected] >
Cc: Jakub Kicinski <[email protected] >
Signed-off-by: Maciej Żenczykowski <[email protected] >
Git-commit: af2b56c502d697a237757aa36b5d5523b29702fa
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Subash Abhinov Kasiviswanathan <[email protected] >
2020-06-15 08:09:10 -06:00
..
6lowpan
9p
802
8021q
vlan: vlan_changelink() should propagate errors
2020-01-12 12:21:50 +01:00
appletalk
atm
net: atm: Reduce the severity of logging in unlink_clip_vcc
2019-11-18 17:08:20 -08:00
ax25
batman-adv
batman-adv: Don't schedule OGM for disabled interface
2020-03-18 07:17:54 +01:00
bluetooth
Bluetooth: Fix race condition in hci_release_sock()
2020-02-05 21:22:42 +00:00
bpf
bpfilter
net/bpfilter: fix dprintf usage for /dev/kmsg
2020-04-01 11:01:33 +02:00
bridge
ANDROID: Remove default y on BRIDGE_IGMP_SNOOPING
2020-03-03 14:23:34 -08:00
caif
net: use skb_queue_empty_lockless() in poll() handlers
2019-10-28 13:33:41 -07:00
can
can: j1939: j1939_sk_bind(): take priv after lock is held
2019-12-31 16:45:56 +01:00
ceph
libceph: fix alloc_msg_with_page_vector() memory leaks
2020-04-02 15:11:02 +02:00
core
ANDROID: net: bpf: permit redirect from ingress L3 to egress L2 devices at near max mtu
2020-06-15 08:09:10 -06:00
dcb
dccp
net: ipv6: add net argument to ip6_dst_lookup_flow
2019-12-18 16:08:40 +01:00
decnet
net: add bool confirm_neigh parameter for dst_ops.update_pmtu
2020-01-04 19:18:58 +01:00
dns_resolver
dsa
net: dsa: tag_8021q: replace dsa_8021q_remove_header with __skb_vlan_pop
2020-04-01 11:01:34 +02:00
ethernet
net: add annotations on hh->hh_len lockless accesses
2020-01-09 10:20:06 +01:00
hsr
hsr: set .netnsok flag
2020-04-01 11:01:49 +02:00
ieee802154
nl802154: add missing attribute validation for dev_type
2020-03-18 07:17:44 +01:00
ife
ipv4
Merge android-5.4.30 ( 5cfdde5) into msm-5.4
2020-05-19 13:22:43 -07:00
ipv6
Merge android-5.4.30 ( 5cfdde5) into msm-5.4
2020-05-19 13:22:43 -07:00
iucv
kcm
key
l2tp
l2tp: Allow duplicate session creation with UDP
2020-02-11 04:35:04 -08:00
l3mdev
lapb
llc
llc2: Fix return statement of llc_stat_ev_rx_null_dsap_xid_c (and _test_c)
2020-01-12 12:21:45 +01:00
mac80211
mac80211: fix authentication with iwlwifi/mvm
2020-04-02 15:10:59 +02:00
mac802154
mpls
net: ipv6_stub: use ip6_dst_lookup_flow instead of ip6_dst_lookup
2019-12-18 16:08:42 +01:00
ncsi
netfilter
Merge android-5.4.30 ( 5cfdde5) into msm-5.4
2020-05-19 13:22:43 -07:00
netlabel
netlink
netlink: Use netlink header as base to calculate bad attribute offset
2020-03-18 07:17:40 +01:00
netrom
neuron
Merge "haven: dbl: Make hh_dbl_ functions wait for capid availability"
2020-05-03 01:19:18 -07:00
nfc
nfc: add missing attribute validation for vendor subcommand
2020-03-18 07:17:46 +01:00
nsh
openvswitch
net: openvswitch: don't unlock mutex when changing the user_features fails
2020-01-26 10:01:05 +01:00
packet
net/packet: tpacket_rcv: avoid a producer race condition
2020-04-01 11:01:35 +02:00
phonet
net: use skb_queue_empty_lockless() in poll() handlers
2019-10-28 13:33:41 -07:00
psample
net: psample: fix skb_over_panic
2019-12-04 22:30:54 +01:00
qrtr
net: qrtr: Use radix_tree_iter_delete
2020-06-09 10:41:40 -07:00
rds
rds: ib: update WR sizes when bringing up connection
2019-11-16 12:59:08 -08:00
rfkill
rfkill: Fix incorrect check to avoid NULL pointer dereference
2020-01-12 12:21:33 +01:00
rose
rxrpc
afs: Fix client call Rx-phase signal handling
2020-04-01 11:02:07 +02:00
sched
net: Fix CONFIG_NET_CLS_ACT=n and CONFIG_NFT_FWD_NETDEV={y, m} build
2020-04-01 11:02:18 +02:00
sctp
This is the 5.4.26 stable release
2020-03-18 08:19:15 +01:00
smc
net/smc: cancel event worker during device removal
2020-03-18 07:17:59 +01:00
strparser
sunrpc
sunrpc: Fix potential leaks in sunrpc_cache_unhash()
2020-02-24 08:36:55 +01:00
switchdev
tipc
tipc: add missing attribute validation for MTU property
2020-03-18 07:17:45 +01:00
tls
net/tls: Fix to avoid gettig invalid tls record
2020-03-05 16:43:32 +01:00
unix
af_unix: add compat_ioctl support
2020-01-17 19:48:52 +01:00
vmw_vsock
hv_sock: Remove the accept port restriction
2020-02-14 16:34:07 -05:00
wimax
wireless
Merge android-5.4.30 ( 5cfdde5) into msm-5.4
2020-05-19 13:22:43 -07:00
x25
net/x25: fix nonblocking connect
2020-01-29 16:45:33 +01:00
xdp
xsk: Add rcu_read_lock around the XSK wakeup
2020-01-12 12:21:41 +01:00
xfrm
This is the 5.4.29 stable release
2020-04-02 14:26:14 +02:00
compat.c
Kconfig
Merge android-5.4.30 ( 5cfdde5) into msm-5.4
2020-05-19 13:22:43 -07:00
Makefile
net: Add Neuron Framework
2020-03-30 21:44:24 -07:00
socket.c
This is the 5.4.13 stable release
2020-01-17 23:38:39 +01:00
sysctl_net.c