linux-stable/drivers/net
Kees Cook 20551ee45d net: ipa: Annotate struct ipa_power with __counted_by
Prepare for the coming implementation by GCC and Clang of the __counted_by
attribute. Flexible array members annotated with __counted_by can have
their accesses bounds-checked at run-time checking via CONFIG_UBSAN_BOUNDS
(for array indexing) and CONFIG_FORTIFY_SOURCE (for strcpy/memcpy-family
functions).

As found with Coccinelle[1], add __counted_by for struct ipa_power.

[1] https://github.com/kees/kernel-tools/blob/trunk/coccinelle/examples/counted_by.cocci

Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Link: https://lore.kernel.org/r/20230922172858.3822653-8-keescook@chromium.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-10-02 11:24:54 -07:00
..
appletalk
arcnet net: arcnet: Do not call kfree_skb() under local_irq_disable() 2023-08-25 10:10:52 +01:00
bonding Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-08-24 10:51:39 -07:00
caif tty: use u8 for flags 2023-08-11 21:12:45 +02:00
can TTY/Serial driver changes for 6.6-rc1 2023-09-01 09:38:00 -07:00
dsa net: dsa: sja1105: make read-only const arrays static 2023-09-21 16:12:12 +02:00
ethernet net: hisilicon: Annotate struct rcb_common_cb with __counted_by 2023-10-02 11:24:53 -07:00
fddi
fjes
hamradio hamradio: baycom: remove useless link in Kconfig 2023-09-22 08:17:05 +01:00
hippi
hyperv eth: add missing xdp.h includes in drivers 2023-08-03 08:38:07 -07:00
ieee802154 net: Explicitly include correct DT includes 2023-07-27 20:33:16 -07:00
ipa net: ipa: Annotate struct ipa_power with __counted_by 2023-10-02 11:24:54 -07:00
ipvlan ipvlan: Fix a reference count leak warning in ipvlan_ns_exit() 2023-08-18 19:38:44 -07:00
mctp tty: use u8 for flags 2023-08-11 21:12:45 +02:00
mdio net: mdio: xgene: Convert to platform remove callback returning void 2023-09-20 10:29:35 +01:00
netdevsim net: netdevsim: mimic tc-taprio offload 2023-08-09 15:59:21 -07:00
pcs net: pcs: xpcs: adapt Wangxun NICs for SGMII mode 2023-08-25 07:42:59 +01:00
phy net: sfp: add quirk for Fiberstone GPON-ONU-34-20BI 2023-09-28 09:16:59 +02:00
plip
ppp net: implement lockless SO_PRIORITY 2023-10-01 19:09:54 +01:00
pse-pd
slip tty: use u8 for flags 2023-08-11 21:12:45 +02:00
team team: fix null-ptr-deref when team device type is changed 2023-09-19 16:28:37 +02:00
thunderbolt net: thunderbolt: Fix TCPv6 GSO checksum calculation 2023-09-15 13:45:05 +01:00
usb r8152: check budget for r8152_poll() 2023-09-11 09:58:34 +01:00
vmxnet3 vmxnet3: Add XDP support. 2023-08-14 08:03:52 +01:00
vxlan vxlan: Add missing entries to vxlan_get_size() 2023-09-20 09:00:54 +01:00
wan
wireguard genetlink: use attrs from struct genl_info 2023-08-15 15:00:45 -07:00
wireless net: ethernet: mtk_wed: rename mtk_rxbm_desc in mtk_wed_bm_desc 2023-09-19 18:27:55 +02:00
wwan wwan: core: Use the bitmap API to allocate bitmaps 2023-09-12 11:49:22 +02:00
xen-netback xen/netback: Fix buffer overrun triggered by unusual packet 2023-08-03 09:04:08 +02:00
amt.c
bareudp.c
dummy.c
eql.c
geneve.c
gtp.c udp: annotate data-races around udp->encap_type 2023-09-14 16:16:36 +02:00
ifb.c
Kconfig netconsole: Enable compile time configuration 2023-08-17 19:25:42 -07:00
LICENSE.SRC
loopback.c
macsec.c net: add DEV_STATS_READ() helper 2023-10-01 16:33:01 +01:00
macvlan.c net: macvlan: convert to ndo_hwtstamp_get() / ndo_hwtstamp_set() 2023-08-02 19:11:06 -07:00
macvtap.c
Makefile
mdio.c
mhi_net.c net: mhi: Remove redundant initialization owner in mhi_net_driver 2023-08-10 17:29:42 -07:00
mii.c
net_failover.c
netconsole.c netconsole: Enable compile time configuration 2023-08-17 19:25:42 -07:00
nlmon.c
ntb_netdev.c ntb_netdev: Fix module_init problem 2023-07-08 11:03:53 -04:00
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c pull-request: bpf-next 2023-08-03 2023-08-03 15:34:36 -07:00
tun.c tun: add __exit annotations to module exit func tun_cleanup() 2023-08-17 19:11:10 -07:00
veth.c veth: Update XDP feature set when bringing up device 2023-09-12 16:32:56 +02:00
virtio_net.c virtio_net: avoid data-races on dev->stats fields 2023-10-01 16:33:01 +01:00
vrf.c sysctl-6.6-rc1 2023-08-29 17:39:15 -07:00
vsockmon.c
xen-netfront.c page_pool: split types and declarations from page_pool.h 2023-08-07 13:05:19 -07:00