android_kernel_sony_sdm845/net
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Lorenz Bauer b0fcf8a405 BACKPORT: bpf: Allow specifying a BTF ID per argument in function protos
Function prototypes using ARG_PTR_TO_BTF_ID currently use two ways to signal
which BTF IDs are acceptable. First, bpf_func_proto.btf_id is an array of
IDs, one for each argument. This array is only accessed up to the highest
numbered argument that uses ARG_PTR_TO_BTF_ID and may therefore be less than
five arguments long. It usually points at a BTF_ID_LIST. Second, check_btf_id
is a function pointer that is called by the verifier if present. It gets the
actual BTF ID of the register, and the argument number we're currently checking.
It turns out that the only user check_arg_btf_id ignores the argument, and is
simply used to check whether the BTF ID has a struct sock_common at it's start.

Replace both of these mechanisms with an explicit BTF ID for each argument
in a function proto. Thanks to btf_struct_ids_match this is very flexible:
check_arg_btf_id can be replaced by requiring struct sock_common.

Change-Id: I04d5adc4574380e9a67e7a688b98611158bb7102
Signed-off-by: Lorenz Bauer <lmb@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20200921121227.255763-5-lmb@cloudflare.com
Signed-off-by: Sorayukii <sorayukii69@gmail.com>
2026-05-15 17:59:31 +07:00
..
6lowpan 6lowpan: Off by one handling ->nexthdr 2020-01-29 10:24:22 +01:00
9p net/9p: Fix a potential socket leak in p9_socket_open 2022-12-08 11:15:41 +01:00
802 mrp: introduce active flags to prevent UAF when applicant uninit 2023-01-07 12:07:32 +01:00
8021q vlan: fix memory leak in vlan_dev_set_egress_priority 2020-01-12 11:24:27 +01:00
appletalk appletalk: Fix skb allocation size in loopback case 2021-04-07 12:05:39 +02:00
atm BACKPORT: net: Work around lockdep limitation in sockets that use sockets 2026-05-15 17:56:15 +07:00
ax25 BACKPORT: net: Make sock protocol value checks more specific 2026-05-15 17:59:24 +07:00
batman-adv batman-adv: Don't expect inter-netns unique iflink indices 2022-03-16 12:49:01 +01:00
bluetooth BACKPORT: net: Work around lockdep limitation in sockets that use sockets 2026-05-15 17:56:15 +07:00
bpf UPSTREAM: bpf: Allow to change skb mark in test_run 2026-05-15 17:59:21 +07:00
bpfilter UPSTREAM: net: bpfilter: disallow to remove bpfilter module while being used 2026-05-15 17:58:54 +07:00
bridge BACKPORT: audit: use inline function to get audit context 2026-05-15 17:59:18 +07:00
caif net: caif: fix double disconnect client in chnl_net_open() 2022-11-25 17:35:39 +01:00
can can: bcm: check the result of can_send() in bcm_can_tx() 2022-10-26 13:15:46 +02:00
ceph treewide: Backport new vmalloc for large performance benefits 2026-05-15 17:48:25 +07:00
core BACKPORT: bpf: Allow specifying a BTF ID per argument in function protos 2026-05-15 17:59:31 +07:00
dcb net: dcb: disable softirqs in dcbnl_flush_dev() 2022-03-08 19:00:59 +01:00
dccp UPSTREAM: net: Introduce sk_clone_lock() error path routine 2026-05-15 17:57:10 +07:00
decnet BACKPORT: net: fix sleeping for sk_wait_event() 2026-05-15 17:57:09 +07:00
dns_resolver
dsa net: dsa: tag_brcm: Fix skb->fwd_offload_mark location 2020-04-13 10:32:53 +02:00
embms_kernel
ethernet BACKPORT: net: plumb network namespace into __skb_flow_dissect 2026-05-15 17:58:50 +07:00
hsr net: hsr: Fix potential use-after-free 2022-12-08 11:15:41 +01:00
ieee802154 net: ieee802154: fix error return code in dgram_bind() 2022-11-03 23:49:17 +09:00
ipc_router net: ipc_router: Add bounds check on tx path 2023-01-04 21:42:04 -08:00
ipv4 BACKPORT: bpf: Allow specifying a BTF ID per argument in function protos 2026-05-15 17:59:31 +07:00
ipv6 UPSTREAM: bpf: Allow sk_lookup with IPv6 module 2026-05-15 17:57:31 +07:00
ipx
irda BACKPORT: net: Work around lockdep limitation in sockets that use sockets 2026-05-15 17:56:15 +07:00
iucv BACKPORT: net: Work around lockdep limitation in sockets that use sockets 2026-05-15 17:56:15 +07:00
kcm BACKPORT: strparser: initialize all callbacks 2026-05-15 17:55:20 +07:00
key Merge remote-tracking branch 'common/android-4.9-q' into android13-4.9-sdm845 2022-12-20 19:52:09 +02:00
l2tp This is the 4.9.320 stable release 2022-06-28 16:46:38 +00:00
l3mdev
lapb net: lapb: Copy the skb before sending a packet 2021-02-10 09:09:25 +01:00
llc BACKPORT: net: fix sleeping for sk_wait_event() 2026-05-15 17:57:09 +07:00
mac80211 Merge remote-tracking branch 'common/android-4.9-q' into android13-4.9-sdm845 2022-12-20 19:52:09 +02:00
mac802154 mac802154: fix missing INIT_LIST_HEAD in ieee802154_if_add() 2022-12-14 11:24:34 +01:00
mpls net: avoid infinite loop in mpls_gso_segment when mpls_hlen == 0 2021-03-17 16:10:13 +01:00
ncsi net/ncsi: Use real net-device for response handler 2021-01-12 19:49:01 +01:00
netfilter BACKPORT: audit: use inline function to get audit context 2026-05-15 17:59:18 +07:00
netlabel BACKPORT: audit: use inline function to get audit context 2026-05-15 17:59:18 +07:00
netlink netlink: do not reset transport header in netlink_recvmsg() 2022-05-18 09:15:43 +02:00
netrom BACKPORT: net: Work around lockdep limitation in sockets that use sockets 2026-05-15 17:56:15 +07:00
nfc BACKPORT: net: Work around lockdep limitation in sockets that use sockets 2026-05-15 17:56:15 +07:00
openvswitch BACKPORT: treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 295 2026-05-15 17:57:45 +07:00
packet BACKPORT: dev: packet: make packet_direct_xmit a common function 2026-05-15 17:59:25 +07:00
phonet BACKPORT: net: fix sleeping for sk_wait_event() 2026-05-15 17:57:09 +07:00
qrtr Merge branch 'android-4.9-q' of https://android.googlesource.com/kernel/common into lineage-18.1-caf-sdm845 2021-04-26 01:27:02 +03:00
rds BACKPORT: net: Work around lockdep limitation in sockets that use sockets 2026-05-15 17:56:15 +07:00
rfkill This is the 4.9.209 stable release 2020-01-12 12:14:52 +01:00
rmnet_data net: rmnet_data: Fix incorrect UL checksum offload logic 2020-07-23 05:24:00 -07:00
rose BACKPORT: net: Work around lockdep limitation in sockets that use sockets 2026-05-15 17:56:15 +07:00
rxrpc BACKPORT: atomics/treewide: Rename __atomic_add_unless() => atomic_fetch_add_unless() 2026-05-15 17:56:39 +07:00
sched BACKPORT: sched: consistently handle layer3 header accesses in the presence of VLANs 2026-05-15 17:57:03 +07:00
sctp BACKPORT: net: Work around lockdep limitation in sockets that use sockets 2026-05-15 17:56:15 +07:00
strparser BACKPORT: bpf: sockmap, strparser, and tls are reusing qdisc_skb_cb and colliding 2026-05-15 17:58:46 +07:00
sunrpc UPSTREAM: treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 363 2026-05-15 17:57:46 +07:00
switchdev
tipc BACKPORT: net: Work around lockdep limitation in sockets that use sockets 2026-05-15 17:56:15 +07:00
tls BACKPORT: bpf: helper to pop data from messages 2026-05-15 17:58:38 +07:00
unix BACKPORT: net: Work around lockdep limitation in sockets that use sockets 2026-05-15 17:56:15 +07:00
vmw_vsock BACKPORT: net: fix sleeping for sk_wait_event() 2026-05-15 17:57:09 +07:00
wimax
wireless cfg80211/nl80211: macro: Switch to COUNT_ARGS macro 2026-05-15 17:55:41 +07:00
x25 BACKPORT: net: Work around lockdep limitation in sockets that use sockets 2026-05-15 17:56:15 +07:00
xdp UPSTREAM: xsk: Make xskmap flush_list common for all map instances 2026-05-15 17:59:22 +07:00
xfrm BACKPORT: gro_cells: move to net/core/gro_cells.c 2026-05-15 17:54:38 +07:00
compat.c net: Return the correct errno code 2021-06-30 08:49:12 -04:00
Kconfig BACKPORT: net: initial AF_XDP skeleton 2026-05-15 17:57:46 +07:00
Makefile UPSTREAM: net: add skeleton of bpfilter kernel module 2026-05-15 17:56:31 +07:00
socket.c UPSTREAM: bpf: implement getsockopt and setsockopt hooks 2026-05-15 17:58:00 +07:00
sysctl_net.c