linux/net/core
Daniel Borkmann 14a3d3ef02 bpf: Remove MEM_UNINIT from skb/xdp MTU helpers
We can now undo parts of 4b3786a6c5 ("bpf: Zero former ARG_PTR_TO_{LONG,INT}
args in case of error") as discussed in [0].

Given the BPF helpers now have MEM_WRITE tag, the MEM_UNINIT can be cleared.

The mtu_len is an input as well as output argument, meaning, the BPF program
has to set it to something. It cannot be uninitialized. Therefore, allowing
uninitialized memory and zeroing it on error would be odd. It was done as
an interim step in 4b3786a6c5 as the desired behavior could not have been
expressed before the introduction of MEM_WRITE tag.

Fixes: 4b3786a6c5 ("bpf: Zero former ARG_PTR_TO_{LONG,INT} args in case of error")
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/a86eb76d-f52f-dee4-e5d2-87e45de3e16f@iogearbox.net [0]
Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20241021152809.33343-3-daniel@iogearbox.net
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2024-10-22 15:42:56 -07:00
..
bpf_sk_storage.c
datagram.c
dev.c net: add more sanity checks to qdisc_pkt_len_init() 2024-10-01 11:47:05 +02:00
dev.h
dev_addr_lists.c
dev_addr_lists_test.c
dev_ioctl.c
devmem.c
devmem.h
drop_monitor.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
dst.c net: do not delay dst_entries_add() in dst_release() 2024-10-10 11:28:17 +02:00
dst_cache.c
failover.c
fib_notifier.c
fib_rules.c
filter.c bpf: Remove MEM_UNINIT from skb/xdp MTU helpers 2024-10-22 15:42:56 -07:00
flow_dissector.c
flow_offload.c
gen_estimator.c
gen_stats.c
gro.c net: Add netif_get_gro_max_size helper for GRO 2024-10-01 10:48:51 +02:00
gro_cells.c
gso.c
hotdata.c
hwbm.c
ieee8021q_helpers.c
link_watch.c
lwt_bpf.c
lwtunnel.c
Makefile
mp_dmabuf_devmem.h
neighbour.c
net-procfs.c
net-sysfs.c
net-sysfs.h
net-traces.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
net_namespace.c struct fd layout change (and conversion to accessor helpers) 2024-09-23 09:35:36 -07:00
net_test.c
netclassid_cgroup.c
netdev-genl-gen.c
netdev-genl-gen.h
netdev-genl.c
netdev_rx_queue.c
netevent.c
netmem_priv.h
netpoll.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
netprio_cgroup.c
of_net.c
page_pool.c
page_pool_priv.h
page_pool_user.c
pktgen.c
ptp_classifier.c
request_sock.c
rtnetlink.c rtnetlink: Add bulk registration helpers for rtnetlink message handlers. 2024-10-10 15:39:35 +02:00
scm.c
secure_seq.c
selftests.c
skbuff.c
skmsg.c
sock.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
sock_destructor.h
sock_diag.c
sock_map.c bpf, sockmap: SK_DROP on attempted redirects of unsupported af_vsock 2024-10-17 13:02:54 +02:00
sock_reuseport.c
stream.c
sysctl_net_core.c
timestamping.c
tso.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
utils.c
xdp.c