-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
47 changed files
with
11,552 additions
and
11,037 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
bad-netlink-attr: nbd_attr_policy.NBD_ATTR_SOCKETS: should be nlnest [amd64] | ||
bad-netlink-attr: nbd_attr_policy.NBD_ATTR_SOCKETS: should be nlnest | ||
no-such-struct: nbd_sock_pair |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
bad-netlink-attr: ip_vs_cmd_policy.IPVS_CMD_ATTR_SERVICE: should be nlnest [amd64] | ||
bad-netlink-attr: ip_vs_cmd_policy.IPVS_CMD_ATTR_DEST: should be nlnest [amd64] | ||
bad-netlink-attr: ip_vs_cmd_policy.IPVS_CMD_ATTR_DAEMON: should be nlnest [amd64] | ||
bad-netlink-attr: ip_vs_dest_policy.IPVS_DEST_ATTR_FWD_METHOD: bad size 2, expect 4 [amd64] | ||
bad-netlink-attr: ip_vs_cmd_policy.IPVS_CMD_ATTR_SERVICE: should be nlnest | ||
bad-netlink-attr: ip_vs_cmd_policy.IPVS_CMD_ATTR_DEST: should be nlnest | ||
bad-netlink-attr: ip_vs_cmd_policy.IPVS_CMD_ATTR_DAEMON: should be nlnest | ||
bad-netlink-attr: ip_vs_dest_policy.IPVS_DEST_ATTR_FWD_METHOD: bad size 2, expect 4 | ||
no-such-struct: ip_vs_svcdest_user |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,45 @@ | ||
no-such-struct: nl80211_wdev | ||
no-such-netlink-policy: nl80211_dev_policy [amd64] | ||
no-such-netlink-policy: nl80211_wiphy_policy [amd64] | ||
no-such-netlink-policy: nl80211_setns_policy [amd64] | ||
no-such-netlink-policy: nl80211_interface_policy [amd64] | ||
no-such-netlink-policy: nl80211_cmd_key_policy [amd64] | ||
bad-netlink-attr: nl80211_key_policy.NL80211_KEY_DEFAULT_TYPES: should be nlnest [amd64] | ||
no-such-netlink-policy: nl80211_beacon_policy [amd64] | ||
no-such-netlink-policy: nl80211_tx_rates_policy [amd64] | ||
no-such-netlink-policy: nl80211_station_policy [amd64] | ||
no-such-netlink-policy: nl80211_mpath_policy [amd64] | ||
no-such-netlink-policy: nl80211_bss_policy [amd64] | ||
no-such-netlink-policy: nl80211_reg_policy [amd64] | ||
no-such-netlink-policy: nl80211_mesh_policy [amd64] | ||
no-such-netlink-policy: nl80211_join_mesh_policy [amd64] | ||
bad-netlink-attr: nl80211_meshconf_params_policy.NL80211_MESHCONF_TTL: bad min value 0, expect 1 [amd64] | ||
bad-netlink-attr: nl80211_meshconf_params_policy.NL80211_MESHCONF_ELEMENT_TTL: bad min value 0, expect 1 [amd64] | ||
bad-netlink-attr: nl80211_meshconf_params_policy.NL80211_MESHCONF_MIN_DISCOVERY_TIMEOUT: bad min value 0, expect 1 [amd64] | ||
bad-netlink-attr: nl80211_meshconf_params_policy.NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL: bad min value 0, expect 1 [amd64] | ||
bad-netlink-attr: nl80211_meshconf_params_policy.NL80211_MESHCONF_HWMP_PERR_MIN_INTERVAL: bad min value 0, expect 1 [amd64] | ||
bad-netlink-attr: nl80211_meshconf_params_policy.NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME: bad min value 0, expect 1 [amd64] | ||
bad-netlink-attr: nl80211_meshconf_params_policy.NL80211_MESHCONF_HWMP_RANN_INTERVAL: bad min value 0, expect 1 [amd64] | ||
bad-netlink-attr: nl80211_meshconf_params_policy.NL80211_MESHCONF_HWMP_ROOT_INTERVAL: bad min value 0, expect 1 [amd64] | ||
bad-netlink-attr: nl80211_meshconf_params_policy.NL80211_MESHCONF_HWMP_CONFIRMATION_INTERVAL: bad min value 0, expect 1 [amd64] | ||
no-such-netlink-policy: nl80211_scan_policy [amd64] | ||
no-such-netlink-policy: nl80211_rates_policy [amd64] | ||
bad-netlink-attr: nl80211_match_policy.NL80211_SCHED_SCAN_MATCH_PER_BAND_RSSI: should be nlnest [amd64] | ||
bad-netlink-attr: nl80211_policy_wiphy.NL80211_ATTR_WIPHY_TXQ_PARAMS: should be nlnest | ||
bad-netlink-attr: nl80211_policy_wiphy.NL80211_ATTR_WIPHY_RETRY_SHORT: bad min value 0, expect 1 | ||
bad-netlink-attr: nl80211_policy_wiphy.NL80211_ATTR_WIPHY_RETRY_LONG: bad min value 0, expect 1 | ||
bad-netlink-attr: nl80211_policy_cmd_key.NL80211_ATTR_KEY_DEFAULT_TYPES: should be nlnest | ||
bad-netlink-attr: nl80211_policy_cmd_key.NL80211_ATTR_KEY: should be nlnest | ||
bad-netlink-attr: nl80211_policy_key.NL80211_KEY_DATA_WEP40: bad size 5, expect 4 | ||
bad-netlink-attr: nl80211_policy_key.NL80211_KEY_DATA_WEP104: bad size 13, expect 4 | ||
bad-netlink-attr: nl80211_policy_key.NL80211_KEY_IDX: expect string | ||
bad-netlink-attr: nl80211_policy_key.NL80211_KEY_SEQ: expect string | ||
bad-netlink-attr: nl80211_policy_key.NL80211_KEY_DEFAULT: bad size 0, expect 4 | ||
bad-netlink-attr: nl80211_policy_key.NL80211_KEY_DEFAULT_MGMT: bad size 0, expect 6 | ||
bad-netlink-attr: nl80211_policy_key.NL80211_KEY_DEFAULT_TYPES: bad size -1, expect 1 | ||
bad-netlink-attr: nl80211_policy_key.NL80211_KEY_MODE: bad size 1, expect 4 | ||
bad-netlink-attr: nl80211_policy_beacon.NL80211_ATTR_FTM_RESPONDER: should be nlnest | ||
bad-netlink-attr: nl80211_policy_beacon.NL80211_ATTR_TX_RATES: should be nlnest | ||
bad-netlink-attr: nl80211_policy_beacon.NL80211_ATTR_MAC_ADDRS: should be nlnest | ||
no-such-netlink-policy: nl80211_tx_rates_policy | ||
bad-netlink-attr: nl80211_policy_station.NL80211_ATTR_VLAN_ID: bad min value 0, expect 1 | ||
bad-netlink-attr: nl80211_policy_station.NL80211_ATTR_STA_SUPPORT_P2P_PS: bad max value 2, expect 1 | ||
bad-netlink-attr: nl80211_policy_station.NL80211_ATTR_STA_FLAGS: should be nlnest | ||
bad-netlink-attr: nl80211_policy_station.NL80211_ATTR_STA_PLINK_ACTION: bad max value 3, expect 2 | ||
bad-netlink-attr: nl80211_policy_station.NL80211_ATTR_STA_PLINK_STATE: bad max value 7, expect 6 | ||
bad-netlink-attr: nl80211_policy_station.NL80211_ATTR_LOCAL_MESH_POWER_MODE: bad min value 0, expect 1 | ||
bad-netlink-attr: nl80211_policy_station.NL80211_ATTR_AIRTIME_WEIGHT: bad min value 0, expect 1 | ||
bad-netlink-attr: nl80211_policy_bss.NL80211_STA_WME_MAX_SP: expect string | ||
bad-netlink-attr: nl80211_policy_reg.NL80211_ATTR_REG_RULES: should be nlnest | ||
bad-netlink-attr: nl80211_policy_mesh.NL80211_ATTR_MESH_CONFIG: should be nlnest | ||
bad-netlink-attr: nl80211_policy_join_mesh.NL80211_ATTR_MESH_CONFIG: should be nlnest | ||
bad-netlink-attr: nl80211_policy_join_mesh.NL80211_ATTR_TX_RATES: should be nlnest | ||
bad-netlink-attr: nl80211_meshconf_params_policy.NL80211_MESHCONF_TTL: bad min value 0, expect 1 | ||
bad-netlink-attr: nl80211_meshconf_params_policy.NL80211_MESHCONF_ELEMENT_TTL: bad min value 0, expect 1 | ||
bad-netlink-attr: nl80211_meshconf_params_policy.NL80211_MESHCONF_MIN_DISCOVERY_TIMEOUT: bad min value 0, expect 1 | ||
bad-netlink-attr: nl80211_meshconf_params_policy.NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL: bad min value 0, expect 1 | ||
bad-netlink-attr: nl80211_meshconf_params_policy.NL80211_MESHCONF_HWMP_PERR_MIN_INTERVAL: bad min value 0, expect 1 | ||
bad-netlink-attr: nl80211_meshconf_params_policy.NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME: bad min value 0, expect 1 | ||
bad-netlink-attr: nl80211_meshconf_params_policy.NL80211_MESHCONF_HWMP_RANN_INTERVAL: bad min value 0, expect 1 | ||
bad-netlink-attr: nl80211_meshconf_params_policy.NL80211_MESHCONF_HWMP_ROOT_INTERVAL: bad min value 0, expect 1 | ||
bad-netlink-attr: nl80211_meshconf_params_policy.NL80211_MESHCONF_HWMP_CONFIRMATION_INTERVAL: bad min value 0, expect 1 | ||
bad-netlink-attr: nl80211_policy_scan.NL80211_ATTR_SCAN_FREQUENCIES: should be nlnest | ||
bad-netlink-attr: nl80211_policy_scan.NL80211_ATTR_SCAN_SSIDS: should be nlnest | ||
bad-netlink-attr: nl80211_policy_scan.NL80211_ATTR_SCAN_SUPP_RATES: should be nlnest | ||
bad-netlink-attr: nl80211_policy_scan.NL80211_ATTR_SCHED_SCAN_MATCH: should be nlnest | ||
no-such-netlink-policy: nl80211_rates_policy | ||
bad-netlink-attr: nl80211_match_policy.NL80211_SCHED_SCAN_MATCH_PER_BAND_RSSI: should be nlnest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
no-such-struct: devlink_devname | ||
no-such-netlink-policy: devlink_handle_nsim | ||
no-such-netlink-policy: devlink_handle_pci | ||
no-such-netlink-policy: devlink_reload_arg [amd64] | ||
no-such-struct: devlink_nl_policy_nsim | ||
bad-netlink-attr: devlink_nl_policy_nsim.DEVLINK_ATTR_DEV_NAME: expect string | ||
no-such-struct: devlink_nl_policy_pci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
bad-netlink-attr: fou_nl_policy.FOU_ATTR_LOCAL_V6: unhandled type 16 [amd64] | ||
bad-netlink-attr: fou_nl_policy.FOU_ATTR_PEER_V6: unhandled type 16 [amd64] | ||
bad-netlink-attr: fou_nl_policy.FOU_ATTR_LOCAL_V6: unhandled type 16 | ||
bad-netlink-attr: fou_nl_policy.FOU_ATTR_PEER_V6: unhandled type 16 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
bad-netlink-attr: netlbl_cipsov4_genl_policy.NLBL_CIPSOV4_A_TAGLST: should be nlnest [amd64] | ||
bad-netlink-attr: netlbl_cipsov4_genl_policy.NLBL_CIPSOV4_A_MLSLVLLST: should be nlnest [amd64] | ||
bad-netlink-attr: netlbl_cipsov4_genl_policy.NLBL_CIPSOV4_A_MLSCATLST: should be nlnest [amd64] | ||
no-such-netlink-policy: netlbl_cipsov4_mlslvl_policy [amd64] | ||
no-such-netlink-policy: netlbl_cipsov4_mlscat_policy [amd64] | ||
bad-netlink-attr: netlbl_cipsov4_genl_policy.NLBL_CIPSOV4_A_TAGLST: should be nlnest | ||
bad-netlink-attr: netlbl_cipsov4_genl_policy.NLBL_CIPSOV4_A_MLSLVLLST: should be nlnest | ||
bad-netlink-attr: netlbl_cipsov4_genl_policy.NLBL_CIPSOV4_A_MLSCATLST: should be nlnest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
bad-netlink-attr: team_nl_policy.TEAM_ATTR_LIST_OPTION: should be nlnest [amd64] | ||
bad-netlink-attr: team_nl_policy.TEAM_ATTR_LIST_OPTION: should be nlnest | ||
no-such-struct: team_nl_option_policy | ||
no-such-struct: team_nl_option_policy_per_port | ||
no-such-struct: team_nl_option_policy_array |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
bad-netlink-attr: ct_nla_policy.CTA_TUPLE_ORIG: should be nlnest [amd64] | ||
bad-netlink-attr: ct_nla_policy.CTA_TUPLE_REPLY: should be nlnest [amd64] | ||
bad-netlink-attr: ct_nla_policy.CTA_PROTOINFO: should be nlnest [amd64] | ||
bad-netlink-attr: ct_nla_policy.CTA_HELP: should be nlnest [amd64] | ||
bad-netlink-attr: ct_nla_policy.CTA_NAT_SRC: should be nlnest [amd64] | ||
bad-netlink-attr: ct_nla_policy.CTA_NAT_DST: should be nlnest [amd64] | ||
bad-netlink-attr: ct_nla_policy.CTA_TUPLE_MASTER: should be nlnest [amd64] | ||
bad-netlink-attr: tuple_nla_policy.CTA_TUPLE_IP: should be nlnest [amd64] | ||
bad-netlink-attr: tuple_nla_policy.CTA_TUPLE_PROTO: should be nlnest [amd64] | ||
no-such-netlink-policy: cta_ip_nla_policy4 | ||
no-such-netlink-policy: cta_ip_nla_policy6 | ||
bad-netlink-attr: protoinfo_policy.CTA_PROTOINFO_TCP: should be nlnest [amd64] | ||
bad-netlink-attr: protoinfo_policy.CTA_PROTOINFO_DCCP: should be nlnest [amd64] | ||
bad-netlink-attr: protoinfo_policy.CTA_PROTOINFO_SCTP: should be nlnest [amd64] | ||
bad-netlink-attr: nat_nla_policy.CTA_NAT_PROTO: should be nlnest [amd64] | ||
bad-netlink-attr: ct_nla_policy.CTA_TUPLE_ORIG: should be nlnest | ||
bad-netlink-attr: ct_nla_policy.CTA_TUPLE_REPLY: should be nlnest | ||
bad-netlink-attr: ct_nla_policy.CTA_PROTOINFO: should be nlnest | ||
bad-netlink-attr: ct_nla_policy.CTA_HELP: should be nlnest | ||
bad-netlink-attr: ct_nla_policy.CTA_NAT_SRC: should be nlnest | ||
bad-netlink-attr: ct_nla_policy.CTA_NAT_DST: should be nlnest | ||
bad-netlink-attr: ct_nla_policy.CTA_TUPLE_MASTER: should be nlnest | ||
bad-netlink-attr: tuple_nla_policy.CTA_TUPLE_IP: should be nlnest | ||
bad-netlink-attr: tuple_nla_policy.CTA_TUPLE_PROTO: should be nlnest | ||
no-such-struct: cta_ip_nla_policy_ipv4 | ||
no-such-struct: cta_ip_nla_policy_ipv6 | ||
bad-netlink-attr: protoinfo_policy.CTA_PROTOINFO_TCP: should be nlnest | ||
bad-netlink-attr: protoinfo_policy.CTA_PROTOINFO_DCCP: should be nlnest | ||
bad-netlink-attr: protoinfo_policy.CTA_PROTOINFO_SCTP: should be nlnest | ||
bad-netlink-attr: nat_nla_policy.CTA_NAT_PROTO: should be nlnest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
bad-netlink-attr: exp_nla_policy.CTA_EXPECT_MASTER: should be nlnest [amd64] | ||
bad-netlink-attr: exp_nla_policy.CTA_EXPECT_TUPLE: should be nlnest [amd64] | ||
bad-netlink-attr: exp_nla_policy.CTA_EXPECT_MASK: should be nlnest [amd64] | ||
bad-netlink-attr: exp_nla_policy.CTA_EXPECT_NAT: should be nlnest [amd64] | ||
bad-netlink-attr: exp_nat_nla_policy.CTA_EXPECT_NAT_TUPLE: should be nlnest [amd64] | ||
bad-netlink-attr: exp_nla_policy.CTA_EXPECT_MASTER: should be nlnest | ||
bad-netlink-attr: exp_nla_policy.CTA_EXPECT_TUPLE: should be nlnest | ||
bad-netlink-attr: exp_nla_policy.CTA_EXPECT_MASK: should be nlnest | ||
bad-netlink-attr: exp_nla_policy.CTA_EXPECT_NAT: should be nlnest | ||
bad-netlink-attr: exp_nat_nla_policy.CTA_EXPECT_NAT_TUPLE: should be nlnest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
no-such-struct: ip_set_req_get_set_byname | ||
no-such-struct: ip_set_req_get_set_byindex | ||
no-such-netlink-policy: ip_set_type_create_policy [amd64] | ||
no-such-netlink-policy: ip_set_type_adt_policy [amd64] | ||
no-such-netlink-policy: ip_set_type_create_policy | ||
no-such-netlink-policy: ip_set_type_adt_policy |
Oops, something went wrong.