linux/drivers/net
Eric Woudstra 7717fbb140 net: pppoe: avoid zero-length arrays in struct pppoe_hdr
Jakub Kicinski reported following issue in upcoming patches:

W=1 C=1 GCC build gives us:

net/bridge/netfilter/nf_conntrack_bridge.c: note: in included file (through
../include/linux/if_pppox.h, ../include/uapi/linux/netfilter_bridge.h,
../include/linux/netfilter_bridge.h): include/uapi/linux/if_pppox.h:
153:29: warning: array of flexible structures

sparse doesn't like that hdr has a zero-length array which overlaps
proto. The kernel code doesn't currently need those arrays.

PPPoE connection is functional after applying this patch.

Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Reviewed-by: Kees Cook <kees@kernel.org>
Signed-off-by: Eric Woudstra <ericwouds@gmail.com>
Link: https://patch.msgid.link/20260224155030.106918-1-ericwouds@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-02-25 19:25:08 -08:00
..
arcnet net: arcnet: com20020-pci: fix support for 2.5Mbit cards 2026-02-17 12:14:21 +01:00
bonding bonding: Optimise is_netpoll_tx_blocked(). 2026-02-24 18:13:38 -08:00
caif serial: caif: fix use-after-free in caif_serial ldisc_close() 2026-02-10 15:23:11 +01:00
can mm.git review status for linus..mm-nonmm-stable 2026-02-12 12:13:01 -08:00
dsa net: dsa: MxL862xx: don't force-enable MAXLINEAR_GPHY 2026-02-17 17:10:28 -08:00
ethernet net/ibmveth: fix comment typos in ibmveth.c 2026-02-25 19:23:04 -08:00
fddi
fjes
hamradio net: remove unnecessary module_init/exit functions 2026-02-02 17:25:23 -08:00
hyperv
ieee802154
ipa
ipvlan ipvlan: remove ipvlan_ht_addr_lookup() 2026-01-25 14:35:19 -08:00
mctp
mdio
netdevsim mm.git review status for linus..mm-nonmm-stable 2026-02-12 12:13:01 -08:00
ovpn ovpn: tcp - don't deref NULL sk_socket member after tcp_close() 2026-02-17 11:40:36 +01:00
pcs
phy net: phy: phy_port: Correctly recompute the port's linkmodes 2026-02-12 17:44:55 -08:00
plip
ppp net: pppoe: avoid zero-length arrays in struct pppoe_hdr 2026-02-25 19:25:08 -08:00
pse-pd
slip
team
thunderbolt
usb Including fixes from Netfilter. 2026-02-19 10:39:08 -08:00
vmxnet3
vxlan vxlan: vnifilter: fix memcpy with u64_stats 2026-01-25 13:14:11 -08:00
wan Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2026-02-11 15:14:35 +01:00
wireguard
wireless Including fixes from Netfilter. 2026-02-19 10:39:08 -08:00
wwan net: wwan: mhi_wwan_ctrl: Add NMEA channel support 2026-01-30 18:27:00 -08:00
xen-netback xen-netback: reject zero-queue configuration from guest 2026-02-17 11:57:57 +01:00
Kconfig printk: add CONFIG_PRINTK dependency for netconsole 2026-02-17 13:04:20 +01:00
LICENSE.SRC
Makefile
Space.c
amt.c
bareudp.c
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
loopback.c
macsec.c macsec: fix memcpy with u64_stats 2026-01-25 13:14:11 -08:00
macvlan.c macvlan: observe an RCU grace period in macvlan_common_newlink() error path 2026-02-17 17:14:17 -08:00
macvtap.c
mdio.c
mhi_net.c
mii.c
net_failover.c net: remove unnecessary module_init/exit functions 2026-02-02 17:25:23 -08:00
netconsole.c mm.git review status for linus..mm-nonmm-stable 2026-02-12 12:13:01 -08:00
netkit.c
nlmon.c
ntb_netdev.c
pfcp.c
rionet.c
sungem_phy.c
tap.c
tun.c
tun_vnet.h
veth.c
virtio_net.c
vrf.c
vsockmon.c
xen-netfront.c