linux/net/core
Jakub Kicinski 0de6a472c3 net/neighbor: clear error in case strict check is not set
Commit 51183d233b ("net/neighbor: Update neigh_dump_info for strict
data checking") added strict checking. The err variable is not cleared,
so if we find no table to dump we will return the validation error even
if user did not want strict checking.

I think the only way to hit this is to send an buggy request, and ask
for a table which doesn't exist, so there's no point treating this
as a real fix. I only noticed it because a syzbot repro depended on it
to trigger another bug.

Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20241115003221.733593-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-11-18 18:42:21 -08:00
..
Makefile net: Implement fault injection forcing skb reallocation 2024-11-12 12:05:33 +01:00
bpf_sk_storage.c
datagram.c
dev.c net: Add control functions for irq suspension 2024-11-11 18:45:06 -08:00
dev.h net: Add napi_struct parameter irq_suspend_timeout 2024-11-11 18:45:05 -08:00
dev_addr_lists.c
dev_addr_lists_test.c
dev_ioctl.c ipv4: Convert devinet_ioctl to per-netns RTNL. 2024-10-29 11:54:58 +01:00
devmem.c
devmem.h
drop_monitor.c
dst.c
dst_cache.c
failover.c
fib_notifier.c
fib_rules.c net: convert to nla_get_*_default() 2024-11-11 10:32:06 -08:00
filter.c bpf-next-for-netdev 2024-11-14 19:08:05 -08:00
flow_dissector.c
flow_offload.c
gen_estimator.c
gen_stats.c
gro.c
gro_cells.c
gso.c
hotdata.c
hwbm.c
ieee8021q_helpers.c
link_watch.c
lwt_bpf.c bpf: lwtunnel: Prepare bpf_lwt_xmit_reroute() to future .flowi4_tos conversion. 2024-11-14 19:07:49 -08:00
lwtunnel.c
mp_dmabuf_devmem.h
neighbour.c net/neighbor: clear error in case strict check is not set 2024-11-18 18:42:21 -08:00
net-procfs.c
net-sysfs.c
net-sysfs.h
net-traces.c
net_namespace.c rtnetlink: Remove __rtnl_link_register() 2024-11-11 17:26:51 -08:00
net_test.c
netclassid_cgroup.c
netdev-genl-gen.c net: Add napi_struct parameter irq_suspend_timeout 2024-11-11 18:45:05 -08:00
netdev-genl-gen.h
netdev-genl.c netdev-genl: Hold rcu_read_lock in napi_set 2024-11-15 14:21:00 -08:00
netdev_rx_queue.c
netevent.c
netmem_priv.h
netpoll.c net: netpoll: flush skb pool during cleanup 2024-11-15 16:25:34 -08:00
netprio_cgroup.c
of_net.c
page_pool.c net: page_pool: do not count normal frag allocation in stats 2024-11-12 18:26:58 -08:00
page_pool_priv.h
page_pool_user.c
pktgen.c
ptp_classifier.c
request_sock.c
rtnetlink.c ndo_fdb_del: Add a parameter to report whether notification was sent 2024-11-15 16:39:18 -08:00
rtnl_net_debug.c
scm.c
secure_seq.c
selftests.c
skb_fault_injection.c net: Implement fault injection forcing skb reallocation 2024-11-12 12:05:33 +01:00
skbuff.c mm: page_frag: avoid caller accessing 'page_frag_cache' directly 2024-11-11 10:56:27 -08:00
skmsg.c
sock.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-11-14 11:29:15 -08:00
sock_destructor.h
sock_diag.c
sock_map.c sock_map: fix a NULL pointer dereference in sock_map_link_update_prog() 2024-10-28 18:44:14 -07:00
sock_reuseport.c
stream.c
sysctl_net_core.c net: sysctl: allow dump_cpumask to handle higher numbers of CPUs 2024-10-23 10:28:26 +02:00
timestamping.c
tso.c
utils.c
xdp.c