1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-21 07:15:49 +00:00
freebsd/sys/net
Gleb Smirnoff dae64402b3 rtsock: fix panic in rtsock_msg_buffer()
The rtsock_msg_buffer() can be called without walkarg, just to calculate
required length.  It can also be called with a degenerate walkarg, that
doesn't have a w_req.  The latter happens when the function is called from
update_rtm_from_info() for the second time.

Zero init walkarg in update_rtm_from_info() and don't pass random stack
garbage as w_req.

In rtsock_msg_buffer() initialize compat32 boolean only once and take of
possible empty w_req.  Simplify the rest of code once compat32 is already
set.

Reviewed by:		melifaro
Differential Revision:	https://reviews.freebsd.org/D47662
Reported-by: syzbot+d4a2682059e23179e76e@syzkaller.appspotmail.com
Reported-by: syzbot+66d7c9b3062e27a56f3f@syzkaller.appspotmail.com
2024-11-18 14:12:42 -08:00
..
altq
route Fix failure to add an interface prefix route when route with the same 2024-11-12 23:36:50 +00:00
bpf_buffer.c
bpf_buffer.h
bpf_filter.c
bpf_jitter.c
bpf_jitter.h
bpf_zerocopy.c
bpf_zerocopy.h
bpf.c
bpf.h
bpfdesc.h
bridgestp.c
bridgestp.h
debugnet_inet.c
debugnet_int.h
debugnet.c
debugnet.h
dlt.h
dummymbuf.c dummymbuf: Explicitly include if_private.h 2024-11-13 14:30:58 -05:00
ethernet.h
firewire.h
ieee8023ad_lacp.c net: if_media for 1000Base-BX BiDi 2024-11-12 22:27:32 -07:00
ieee8023ad_lacp.h
ieee_oui.h
if_arp.h
if_bridge.c if_bridge: Mask MEXTPG if some members don't support it 2024-10-28 15:14:21 +00:00
if_bridgevar.h
if_clone.c
if_clone.h
if_dead.c
if_disc.c
if_dl.h
if_edsc.c
if_enc.c
if_enc.h
if_epair.c
if_ethersubr.c
if_fwsubr.c
if_gif.c
if_gif.h
if_gre.c
if_gre.h
if_infiniband.c
if_ipsec.c
if_ipsec.h
if_lagg.c
if_lagg.h
if_llatbl.c
if_llatbl.h
if_llc.h
if_loop.c
if_me.c
if_media.c
if_media.h net: if_media for 1000Base-BX BiDi 2024-11-12 22:27:32 -07:00
if_mib.c
if_mib.h
if_ovpn.c
if_ovpn.h
if_pflog.h
if_pfsync.h
if_private.h
if_stf.c
if_stf.h
if_strings.h
if_tap.h
if_tun.h
if_tuntap.c if_tuntap: Enable MEXTPG support 2024-10-28 15:14:36 +00:00
if_types.h
if_var.h IfAPI: Remove temporary inclusion of if_private.h 2024-11-13 14:31:20 -05:00
if_vlan_var.h
if_vlan.c
if_vxlan.c
if_vxlan.h
if.c
if.h
ifdi_if.m
iflib.c
iflib.h
ifq.c
ifq.h
infiniband.h
mp_ring.c
mp_ring.h
mppc.h
mppcc.c
mppcd.c
netisr_internal.h
netisr.c
netisr.h
netmap_legacy.h
netmap_user.h
netmap_virt.h
netmap.h
paravirt.h
pfil.c
pfil.h
pfkeyv2.h
pflow.h
pfvar.h pf: Fix handling of v6 loopback connections with pf syncookies enabled 2024-10-29 15:01:20 +00:00
ppp_defs.h
radix.c
radix.h
rndis.h
route.c
route.h
rss_config.c
rss_config.h
rtsock.c rtsock: fix panic in rtsock_msg_buffer() 2024-11-18 14:12:42 -08:00
sff8436.h
sff8472.h
slcompress.c
slcompress.h
toeplitz.c
toeplitz.h
vnet.c
vnet.h