Centos-kernel-stream-9/net/tipc
Xin Long 3ed8c646fa net: tipc: resize nlattr array to correct size
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2221401
Tested: compile only

commit 44194cb1b6045dea33ae9a0d54fb7e7cd93a2e09
Author: Lin Ma <linma@zju.edu.cn>
Date:   Wed Jun 14 20:06:04 2023 +0800

    net: tipc: resize nlattr array to correct size

    According to nla_parse_nested_deprecated(), the tb[] is supposed to the
    destination array with maxtype+1 elements. In current
    tipc_nl_media_get() and __tipc_nl_media_set(), a larger array is used
    which is unnecessary. This patch resize them to a proper size.

    Fixes: 1e55417d8f ("tipc: add media set to new netlink api")
    Fixes: 46f15c6794 ("tipc: add media get/dump to new netlink api")
    Signed-off-by: Lin Ma <linma@zju.edu.cn>
    Reviewed-by: Florian Westphal <fw@strlen.de>
    Reviewed-by: Tung Nguyen <tung.q.nguyen@dektech.com.au>
    Link: https://lore.kernel.org/r/20230614120604.1196377-1-linma@zju.edu.cn
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Signed-off-by: Xin Long <lxin@redhat.com>
2023-07-08 14:44:09 -04:00
..
Kconfig
Makefile
addr.c tipc: introduce new unified address type for internal use 2021-03-17 11:51:04 -07:00
addr.h tipc: introduce new unified address type for internal use 2021-03-17 11:51:04 -07:00
bcast.c net: tipc: fix FB_MTU eat two pages 2021-06-28 13:31:57 -07:00
bcast.h
bearer.c net: tipc: resize nlattr array to correct size 2023-07-08 14:44:09 -04:00
bearer.h tipc: add tipc_bearer_min_mtu to calculate min mtu 2023-05-15 14:36:00 -04:00
core.c tipc: fix use-after-free Read in tipc_named_reinit 2022-07-11 11:35:21 -04:00
core.h tipc: simplify the finalize work queue 2021-05-18 13:22:09 -07:00
crypto.c tipc: re-fetch skb cb after tipc_msg_validate 2022-12-05 15:53:20 -05:00
crypto.h
diag.c
discover.c treewide: Convert del_timer*() to timer_shutdown*() 2023-05-08 15:02:53 -03:00
discover.h
eth_media.c tipc: constify dev_addr passing 2021-11-19 11:49:48 -05:00
group.c
group.h
ib_media.c tipc: constify dev_addr passing 2021-11-19 11:49:48 -05:00
link.c tipc: do not update mtu if msg_max is too small in mtu negotiation 2023-05-15 14:36:12 -04:00
link.h tipc: simplify the finalize work queue 2021-05-18 13:22:09 -07:00
monitor.c treewide: Convert del_timer*() to timer_shutdown*() 2023-05-08 15:02:53 -03:00
monitor.h
msg.c net: tipc: replace align() with ALIGN in msg.c 2021-06-28 13:31:57 -07:00
msg.h net: tipc: remove unused static inlines 2022-04-29 11:53:07 -04:00
name_distr.c tipc: rate limit warning for received illegal binding update 2022-04-29 11:53:07 -04:00
name_distr.h
name_table.c tipc: Fix end of loop tests for list_for_each_entry() 2022-04-29 11:53:08 -04:00
name_table.h tipc: simplify handling of lookup scope during multicast message reception 2021-06-03 14:06:39 -07:00
net.c tipc: simplify the finalize work queue 2021-05-18 13:22:09 -07:00
net.h
netlink.c genetlink: start to validate reserved header bytes 2023-03-06 15:42:45 +01:00
netlink.h
netlink_compat.c genetlink: start to validate reserved header bytes 2023-03-06 15:42:45 +01:00
node.c tipc: fix unexpected link reset due to discovery messages 2023-01-12 14:03:26 -05:00
node.h
socket.c tipc: fix kernel warning when sending SYN message 2023-07-08 14:44:09 -04:00
socket.h
subscr.c tipc:subscr.c: fix a spelling mistake 2021-06-10 13:48:43 -07:00
subscr.h tipc: fix htmldoc and smatch warnings 2021-03-29 16:28:50 -07:00
sysctl.c
topsrv.c tipc: add an extra conn_get in tipc_conn_alloc 2023-01-12 14:03:24 -05:00
topsrv.h
trace.c
trace.h
udp_media.c tipc: add tipc_bearer_min_mtu to calculate min mtu 2023-05-15 14:36:00 -04:00
udp_media.h