From e4c56f390e76bddfd2911006d7036e2970b3f5d1 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 22 Jan 2020 16:38:55 +0100 Subject: tools/syz-check: improve matching netlink attributes 1. Match policies that has a _suffix in our descriptions (we frequently do this to improve precision or avoid dup names). 2. Rename policies in descriptions to match kernel names. 3. Match policy if there are several such names in kernel. 4. Recognize policies with helper sub-policies. Update #590 --- sys/linux/socket_tipc_netlink.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/linux/socket_tipc_netlink.txt') diff --git a/sys/linux/socket_tipc_netlink.txt b/sys/linux/socket_tipc_netlink.txt index e55ec18c3..38c10d425 100644 --- a/sys/linux/socket_tipc_netlink.txt +++ b/sys/linux/socket_tipc_netlink.txt @@ -135,7 +135,7 @@ tipc_nl_bearer_policy [ TIPC_NLA_BEARER_NAME nlattr[TIPC_NLA_BEARER_NAME, tipc_bearer_name] TIPC_NLA_BEARER_PROP nlattr[TIPC_NLA_BEARER_PROP, array[tipc_nl_prop_policy]] TIPC_NLA_BEARER_DOMAIN nlattr[TIPC_NLA_BEARER_DOMAIN, int32] - TIPC_NLA_BEARER_UDP_OPTS nlattr[TIPC_NLA_BEARER_UDP_OPTS, tipc_bearer_udp] + TIPC_NLA_BEARER_UDP_OPTS nlattr[TIPC_NLA_BEARER_UDP_OPTS, tipc_nl_udp_policy] ] [varlen] tipc_nl_sock_policy [ @@ -178,7 +178,7 @@ tipc_nl_prop_policy [ TIPC_NLA_PROP_MTU nlattr[TIPC_NLA_PROP_MTU, int32] ] [varlen] -tipc_bearer_udp { +tipc_nl_udp_policy { TIPC_NLA_UDP_LOCAL nlattr[TIPC_NLA_UDP_LOCAL, sockaddr_tipc_udp] TIPC_NLA_UDP_REMOTE nlattr[TIPC_NLA_UDP_REMOTE, sockaddr_tipc_udp] } [packed] -- cgit mrf-deployment