linux-stable/net/tipc
Gustavo A. R. Silva 2506a91734 tipc: Use size_add() in calls to struct_size()
If, for any reason, the open-coded arithmetic causes a wraparound,
the protection that `struct_size()` adds against potential integer
overflows is defeated. Fix this by hardening call to `struct_size()`
with `size_add()`.

Fixes: e034c6d23b ("tipc: Use struct_size() helper")
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-09-18 09:38:32 +01:00
..
addr.c
addr.h tipc: Remove unused function declarations 2023-08-03 12:51:45 +02:00
bcast.c
bcast.h
bearer.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-06-15 22:19:41 -07:00
bearer.h tipc: Remove unused function declarations 2023-08-03 12:51:45 +02:00
core.c
core.h minmax: add in_range() macro 2023-08-24 16:20:18 -07:00
crypto.c tipc: check return value of pskb_trim() 2023-07-27 10:46:05 +02:00
crypto.h
diag.c
discover.c treewide: Convert del_timer*() to timer_shutdown*() 2022-12-25 13:38:09 -08:00
discover.h
eth_media.c
group.c
group.h
ib_media.c
Kconfig
link.c tipc: Use size_add() in calls to struct_size() 2023-09-18 09:38:32 +01:00
link.h tipc: Remove unused declaration tipc_link_build_bc_sync_msg() 2023-08-09 13:03:14 -07:00
Makefile
monitor.c treewide: Convert del_timer*() to timer_shutdown*() 2022-12-25 13:38:09 -08:00
monitor.h
msg.c
msg.h
name_distr.c
name_distr.h tipc: Remove unused function declarations 2023-08-03 12:51:45 +02:00
name_table.c
name_table.h
net.c
net.h tipc: Remove unused function declarations 2023-08-03 12:51:45 +02:00
netlink.c
netlink.h
netlink_compat.c genetlink: use attrs from struct genl_info 2023-08-15 15:00:45 -07:00
node.c genetlink: use attrs from struct genl_info 2023-08-15 15:00:45 -07:00
node.h
socket.c genetlink: use attrs from struct genl_info 2023-08-15 15:00:45 -07:00
socket.h
subscr.c
subscr.h
sysctl.c
topsrv.c net/sock: Introduce trace_sk_data_ready() 2023-01-23 11:26:50 +00:00
topsrv.h
trace.c
trace.h
udp_media.c genetlink: use attrs from struct genl_info 2023-08-15 15:00:45 -07:00
udp_media.h