Skip to content

Commit

Permalink
sys/linux: fix more netlink warnings
Browse files Browse the repository at this point in the history
Handle NLA_BITFIELD32.
Match string attribtues better.
Calculate and check min size for varlen structs.
Fix NLA_UNSPEC size check.
Fix some things in descriptions.

Update #590
  • Loading branch information
dvyukov committed Jan 23, 2020
1 parent 1906623 commit 46961c2
Show file tree
Hide file tree
Showing 42 changed files with 335 additions and 440 deletions.
12 changes: 6 additions & 6 deletions executor/defs.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

97 changes: 41 additions & 56 deletions sys/linux/gen/386.go

Large diffs are not rendered by default.

97 changes: 41 additions & 56 deletions sys/linux/gen/amd64.go

Large diffs are not rendered by default.

97 changes: 41 additions & 56 deletions sys/linux/gen/arm.go

Large diffs are not rendered by default.

97 changes: 41 additions & 56 deletions sys/linux/gen/arm64.go

Large diffs are not rendered by default.

97 changes: 41 additions & 56 deletions sys/linux/gen/mips64le.go

Large diffs are not rendered by default.

97 changes: 41 additions & 56 deletions sys/linux/gen/ppc64le.go

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions sys/linux/socket_netlink.txt
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ nl_generic_attr_data [
binary array[int8]
] [varlen]

type nla_bitfield32[FLAGS] {
value flags[FLAGS, int32]
selector flags[FLAGS, int32]
}

nl_mmap_req {
bsize int32
bnumber int32
Expand Down
13 changes: 8 additions & 5 deletions sys/linux/socket_netlink_generic_80211.txt
Original file line number Diff line number Diff line change
Expand Up @@ -224,17 +224,17 @@ nl80211_policy_station [
NL80211_ATTR_MGMT_SUBTYPE nlattr[NL80211_ATTR_MGMT_SUBTYPE, flags[ieee80211_mgmt_subtype, int8]]
NL80211_ATTR_REASON_CODE nlattr[NL80211_ATTR_REASON_CODE, int16]
NL80211_ATTR_STA_AID nlattr[NL80211_ATTR_STA_AID, int16[1:IEEE80211_MAX_AID]]
NL80211_ATTR_VLAN_ID nlattr[NL80211_ATTR_VLAN_ID, int16[0:4]]
NL80211_ATTR_VLAN_ID nlattr[NL80211_ATTR_VLAN_ID, int16[1:4]]
NL80211_ATTR_STA_LISTEN_INTERVAL nlattr[NL80211_ATTR_STA_LISTEN_INTERVAL, int16]
NL80211_ATTR_STA_SUPPORT_P2P_PS nlattr[NL80211_ATTR_STA_SUPPORT_P2P_PS, int8[0:NUM_NL80211_P2P_PS_STATUS]]
NL80211_ATTR_STA_SUPPORT_P2P_PS nlattr[NL80211_ATTR_STA_SUPPORT_P2P_PS, bool8]
NL80211_ATTR_STA_SUPPORTED_RATES nlattr[NL80211_ATTR_STA_SUPPORTED_RATES, array[int8, 0:NL80211_MAX_SUPP_RATES]]
NL80211_ATTR_STA_CAPABILITY nlattr[NL80211_ATTR_STA_CAPABILITY, int16]
NL80211_ATTR_STA_EXT_CAPABILITY nlattr[NL80211_ATTR_STA_EXT_CAPABILITY, array[int8]]
NL80211_ATTR_STA_FLAGS nlnest[NL80211_ATTR_STA_FLAGS, array[sta_flags_policy]]
NL80211_ATTR_STA_FLAGS2 nlattr[NL80211_ATTR_STA_FLAGS2, nl80211_sta_flag_update]
NL80211_ATTR_STA_PLINK_ACTION nlattr[NL80211_ATTR_STA_PLINK_ACTION, int8[0:NUM_NL80211_PLINK_ACTIONS]]
NL80211_ATTR_STA_PLINK_STATE nlattr[NL80211_ATTR_STA_PLINK_STATE, int8[0:NUM_NL80211_PLINK_STATES]]
NL80211_ATTR_LOCAL_MESH_POWER_MODE nlattr[NL80211_ATTR_LOCAL_MESH_POWER_MODE, int32[NL80211_MESH_POWER_UNKNOWN:NL80211_MESH_POWER_MAX]]
NL80211_ATTR_STA_PLINK_ACTION nlattr[NL80211_ATTR_STA_PLINK_ACTION, int8[0:NUM_NL80211_PLINK_ACTIONS_1]]
NL80211_ATTR_STA_PLINK_STATE nlattr[NL80211_ATTR_STA_PLINK_STATE, int8[0:NUM_NL80211_PLINK_STATES_1]]
NL80211_ATTR_LOCAL_MESH_POWER_MODE nlattr[NL80211_ATTR_LOCAL_MESH_POWER_MODE, int32[1:NL80211_MESH_POWER_MAX]]
NL80211_ATTR_OPMODE_NOTIF nlattr[NL80211_ATTR_OPMODE_NOTIF, int8]
NL80211_ATTR_AIRTIME_WEIGHT nlattr[NL80211_ATTR_AIRTIME_WEIGHT, int16]
NL80211_ATTR_STA_TX_POWER_SETTING nlattr[NL80211_ATTR_STA_TX_POWER_SETTING, int8[NL80211_TX_POWER_AUTOMATIC:NL80211_TX_POWER_FIXED]]
Expand All @@ -247,6 +247,9 @@ nl80211_policy_station [
NL80211_ATTR_STA_VLAN nlattr[NL80211_ATTR_STA_VLAN, ifindex]
] [varlen]

define NUM_NL80211_PLINK_ACTIONS_1 NUM_NL80211_PLINK_ACTIONS - 1
define NUM_NL80211_PLINK_STATES_1 NUM_NL80211_PLINK_STATES - 1

ieee80211_mgmt_subtype = 0xa, 0xc

sta_flags_policy [
Expand Down
18 changes: 0 additions & 18 deletions sys/linux/socket_netlink_generic_80211.txt.warn
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
no-such-struct: nl80211_wdev
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
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_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_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
no-such-netlink-policy: nl80211_rates_policy
6 changes: 2 additions & 4 deletions sys/linux/socket_netlink_generic_80211_386.const
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR = 21
NL80211_MESHCONF_TTL = 6
NL80211_MESH_POWER_ACTIVE = 1
NL80211_MESH_POWER_MAX = 3
NL80211_MESH_POWER_UNKNOWN = 0
NL80211_MESH_SETUP_AUTH_PROTOCOL = 8
NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC = 2
NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL = 1
Expand Down Expand Up @@ -289,9 +288,8 @@ NL80211_VHT_NSS_MAX = 8
NL80211_WPA_VERSION_1 = 1
NL80211_WPA_VERSION_2 = 2
NL80211_WPA_VERSION_3 = 4
NUM_NL80211_P2P_PS_STATUS = 2
NUM_NL80211_PLINK_ACTIONS = 3
NUM_NL80211_PLINK_STATES = 7
NUM_NL80211_PLINK_ACTIONS_1 = 2
NUM_NL80211_PLINK_STATES_1 = 6
WLAN_AKM_SUITE_8021X = 1027073
WLAN_AKM_SUITE_8021X_SHA256 = 1027077
WLAN_AKM_SUITE_8021X_SUITE_B = 1027083
Expand Down
6 changes: 2 additions & 4 deletions sys/linux/socket_netlink_generic_80211_amd64.const
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR = 21
NL80211_MESHCONF_TTL = 6
NL80211_MESH_POWER_ACTIVE = 1
NL80211_MESH_POWER_MAX = 3
NL80211_MESH_POWER_UNKNOWN = 0
NL80211_MESH_SETUP_AUTH_PROTOCOL = 8
NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC = 2
NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL = 1
Expand Down Expand Up @@ -289,9 +288,8 @@ NL80211_VHT_NSS_MAX = 8
NL80211_WPA_VERSION_1 = 1
NL80211_WPA_VERSION_2 = 2
NL80211_WPA_VERSION_3 = 4
NUM_NL80211_P2P_PS_STATUS = 2
NUM_NL80211_PLINK_ACTIONS = 3
NUM_NL80211_PLINK_STATES = 7
NUM_NL80211_PLINK_ACTIONS_1 = 2
NUM_NL80211_PLINK_STATES_1 = 6
WLAN_AKM_SUITE_8021X = 1027073
WLAN_AKM_SUITE_8021X_SHA256 = 1027077
WLAN_AKM_SUITE_8021X_SUITE_B = 1027083
Expand Down
6 changes: 2 additions & 4 deletions sys/linux/socket_netlink_generic_80211_arm.const
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR = 21
NL80211_MESHCONF_TTL = 6
NL80211_MESH_POWER_ACTIVE = 1
NL80211_MESH_POWER_MAX = 3
NL80211_MESH_POWER_UNKNOWN = 0
NL80211_MESH_SETUP_AUTH_PROTOCOL = 8
NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC = 2
NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL = 1
Expand Down Expand Up @@ -289,9 +288,8 @@ NL80211_VHT_NSS_MAX = 8
NL80211_WPA_VERSION_1 = 1
NL80211_WPA_VERSION_2 = 2
NL80211_WPA_VERSION_3 = 4
NUM_NL80211_P2P_PS_STATUS = 2
NUM_NL80211_PLINK_ACTIONS = 3
NUM_NL80211_PLINK_STATES = 7
NUM_NL80211_PLINK_ACTIONS_1 = 2
NUM_NL80211_PLINK_STATES_1 = 6
WLAN_AKM_SUITE_8021X = 1027073
WLAN_AKM_SUITE_8021X_SHA256 = 1027077
WLAN_AKM_SUITE_8021X_SUITE_B = 1027083
Expand Down
6 changes: 2 additions & 4 deletions sys/linux/socket_netlink_generic_80211_arm64.const
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR = 21
NL80211_MESHCONF_TTL = 6
NL80211_MESH_POWER_ACTIVE = 1
NL80211_MESH_POWER_MAX = 3
NL80211_MESH_POWER_UNKNOWN = 0
NL80211_MESH_SETUP_AUTH_PROTOCOL = 8
NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC = 2
NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL = 1
Expand Down Expand Up @@ -289,9 +288,8 @@ NL80211_VHT_NSS_MAX = 8
NL80211_WPA_VERSION_1 = 1
NL80211_WPA_VERSION_2 = 2
NL80211_WPA_VERSION_3 = 4
NUM_NL80211_P2P_PS_STATUS = 2
NUM_NL80211_PLINK_ACTIONS = 3
NUM_NL80211_PLINK_STATES = 7
NUM_NL80211_PLINK_ACTIONS_1 = 2
NUM_NL80211_PLINK_STATES_1 = 6
WLAN_AKM_SUITE_8021X = 1027073
WLAN_AKM_SUITE_8021X_SHA256 = 1027077
WLAN_AKM_SUITE_8021X_SUITE_B = 1027083
Expand Down
6 changes: 2 additions & 4 deletions sys/linux/socket_netlink_generic_80211_mips64le.const
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR = 21
NL80211_MESHCONF_TTL = 6
NL80211_MESH_POWER_ACTIVE = 1
NL80211_MESH_POWER_MAX = 3
NL80211_MESH_POWER_UNKNOWN = 0
NL80211_MESH_SETUP_AUTH_PROTOCOL = 8
NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC = 2
NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL = 1
Expand Down Expand Up @@ -289,9 +288,8 @@ NL80211_VHT_NSS_MAX = 8
NL80211_WPA_VERSION_1 = 1
NL80211_WPA_VERSION_2 = 2
NL80211_WPA_VERSION_3 = 4
NUM_NL80211_P2P_PS_STATUS = 2
NUM_NL80211_PLINK_ACTIONS = 3
NUM_NL80211_PLINK_STATES = 7
NUM_NL80211_PLINK_ACTIONS_1 = 2
NUM_NL80211_PLINK_STATES_1 = 6
WLAN_AKM_SUITE_8021X = 1027073
WLAN_AKM_SUITE_8021X_SHA256 = 1027077
WLAN_AKM_SUITE_8021X_SUITE_B = 1027083
Expand Down
6 changes: 2 additions & 4 deletions sys/linux/socket_netlink_generic_80211_ppc64le.const
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR = 21
NL80211_MESHCONF_TTL = 6
NL80211_MESH_POWER_ACTIVE = 1
NL80211_MESH_POWER_MAX = 3
NL80211_MESH_POWER_UNKNOWN = 0
NL80211_MESH_SETUP_AUTH_PROTOCOL = 8
NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC = 2
NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL = 1
Expand Down Expand Up @@ -289,9 +288,8 @@ NL80211_VHT_NSS_MAX = 8
NL80211_WPA_VERSION_1 = 1
NL80211_WPA_VERSION_2 = 2
NL80211_WPA_VERSION_3 = 4
NUM_NL80211_P2P_PS_STATUS = 2
NUM_NL80211_PLINK_ACTIONS = 3
NUM_NL80211_PLINK_STATES = 7
NUM_NL80211_PLINK_ACTIONS_1 = 2
NUM_NL80211_PLINK_STATES_1 = 6
WLAN_AKM_SUITE_8021X = 1027073
WLAN_AKM_SUITE_8021X_SHA256 = 1027077
WLAN_AKM_SUITE_8021X_SUITE_B = 1027083
Expand Down
2 changes: 0 additions & 2 deletions sys/linux/socket_netlink_generic_fou.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ fou_nl_policy [
FOU_ATTR_TYPE nlattr[FOU_ATTR_TYPE, flags[fou_types, int8]]
FOU_ATTR_REMCSUM_NOPARTIAL nlattr[FOU_ATTR_REMCSUM_NOPARTIAL, void]
FOU_ATTR_LOCAL_V4 nlattr[FOU_ATTR_LOCAL_V4, ipv4_addr]
FOU_ATTR_LOCAL_V6 nlattr[FOU_ATTR_LOCAL_V6, ipv6_addr]
FOU_ATTR_PEER_V4 nlattr[FOU_ATTR_PEER_V4, ipv4_addr]
FOU_ATTR_PEER_V6 nlattr[FOU_ATTR_PEER_V6, ipv6_addr]
FOU_ATTR_PEER_PORT nlattr[FOU_ATTR_PEER_PORT, sock_port]
FOU_ATTR_IFINDEX nlattr[FOU_ATTR_IFINDEX, ifindex]
] [varlen]
Expand Down
2 changes: 0 additions & 2 deletions sys/linux/socket_netlink_generic_fou.txt.warn

This file was deleted.

2 changes: 0 additions & 2 deletions sys/linux/socket_netlink_generic_fou_386.const
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ FOU_ATTR_AF = 2
FOU_ATTR_IFINDEX = 11
FOU_ATTR_IPPROTO = 3
FOU_ATTR_LOCAL_V4 = 6
FOU_ATTR_LOCAL_V6 = 7
FOU_ATTR_PEER_PORT = 10
FOU_ATTR_PEER_V4 = 8
FOU_ATTR_PEER_V6 = 9
FOU_ATTR_PORT = 1
FOU_ATTR_REMCSUM_NOPARTIAL = 5
FOU_ATTR_TYPE = 4
Expand Down
2 changes: 0 additions & 2 deletions sys/linux/socket_netlink_generic_fou_amd64.const
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ FOU_ATTR_AF = 2
FOU_ATTR_IFINDEX = 11
FOU_ATTR_IPPROTO = 3
FOU_ATTR_LOCAL_V4 = 6
FOU_ATTR_LOCAL_V6 = 7
FOU_ATTR_PEER_PORT = 10
FOU_ATTR_PEER_V4 = 8
FOU_ATTR_PEER_V6 = 9
FOU_ATTR_PORT = 1
FOU_ATTR_REMCSUM_NOPARTIAL = 5
FOU_ATTR_TYPE = 4
Expand Down
2 changes: 0 additions & 2 deletions sys/linux/socket_netlink_generic_fou_arm.const
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ FOU_ATTR_AF = 2
FOU_ATTR_IFINDEX = 11
FOU_ATTR_IPPROTO = 3
FOU_ATTR_LOCAL_V4 = 6
FOU_ATTR_LOCAL_V6 = 7
FOU_ATTR_PEER_PORT = 10
FOU_ATTR_PEER_V4 = 8
FOU_ATTR_PEER_V6 = 9
FOU_ATTR_PORT = 1
FOU_ATTR_REMCSUM_NOPARTIAL = 5
FOU_ATTR_TYPE = 4
Expand Down
2 changes: 0 additions & 2 deletions sys/linux/socket_netlink_generic_fou_arm64.const
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ FOU_ATTR_AF = 2
FOU_ATTR_IFINDEX = 11
FOU_ATTR_IPPROTO = 3
FOU_ATTR_LOCAL_V4 = 6
FOU_ATTR_LOCAL_V6 = 7
FOU_ATTR_PEER_PORT = 10
FOU_ATTR_PEER_V4 = 8
FOU_ATTR_PEER_V6 = 9
FOU_ATTR_PORT = 1
FOU_ATTR_REMCSUM_NOPARTIAL = 5
FOU_ATTR_TYPE = 4
Expand Down
2 changes: 0 additions & 2 deletions sys/linux/socket_netlink_generic_fou_mips64le.const
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ FOU_ATTR_AF = 2
FOU_ATTR_IFINDEX = 11
FOU_ATTR_IPPROTO = 3
FOU_ATTR_LOCAL_V4 = 6
FOU_ATTR_LOCAL_V6 = 7
FOU_ATTR_PEER_PORT = 10
FOU_ATTR_PEER_V4 = 8
FOU_ATTR_PEER_V6 = 9
FOU_ATTR_PORT = 1
FOU_ATTR_REMCSUM_NOPARTIAL = 5
FOU_ATTR_TYPE = 4
Expand Down
2 changes: 0 additions & 2 deletions sys/linux/socket_netlink_generic_fou_ppc64le.const
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ FOU_ATTR_AF = 2
FOU_ATTR_IFINDEX = 11
FOU_ATTR_IPPROTO = 3
FOU_ATTR_LOCAL_V4 = 6
FOU_ATTR_LOCAL_V6 = 7
FOU_ATTR_PEER_PORT = 10
FOU_ATTR_PEER_V4 = 8
FOU_ATTR_PEER_V6 = 9
FOU_ATTR_PORT = 1
FOU_ATTR_REMCSUM_NOPARTIAL = 5
FOU_ATTR_TYPE = 4
Expand Down
1 change: 0 additions & 1 deletion sys/linux/socket_netlink_route.txt.warn
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ no-such-struct: ifla_info_policy_t
no-such-struct: peer_info
bad-field-number: ifla_vf_mac: syz=3 kernel=2
bad-field-size: ifla_vf_mac.mac: syz=6 kernel=32
bad-netlink-attr: ifla_port_policy.IFLA_PORT_HOST_UUID: expect string
11 changes: 4 additions & 7 deletions sys/linux/socket_netlink_route_sched.txt
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ tc_u32_sel {
off int16
offoff int16
hoff int16
hmast int32be
hmask int32be
keys array[tc_u32_key, 0:128]
}

Expand Down Expand Up @@ -1099,10 +1099,12 @@ tcf_action_policy_kind_index [
] [varlen]

tcaa_policy [
TCA_ROOT_FLAGS nlattr[TCA_ROOT_FLAGS, nla_bitfield32]
TCA_ROOT_FLAGS nlattr[TCA_ROOT_FLAGS, nla_bitfield32[tcaa_policy_root_flags]]
TCA_ROOT_TIME_DELTA nlattr[TCA_ROOT_TIME_DELTA, int32]
] [varlen]

tcaa_policy_root_flags = TCA_FLAG_LARGE_DUMP_ON

action_dump_policy [
action_gd action_gd_policy
action_dump_flags tcaa_policy
Expand All @@ -1123,11 +1125,6 @@ tc_connmark {
zone int16
}

nla_bitfield32 {
value int32[0:1]
selector int32[0:1]
}

tc_csum {
tc_gen tc_gen
update_flags int32[0:128]
Expand Down
7 changes: 0 additions & 7 deletions sys/linux/socket_netlink_route_sched.txt.warn
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,9 @@ no-such-netlink-policy: tca_kind_options_t
no-such-netlink-policy: qdisc_kind_options
no-such-netlink-policy: netem_loss_policy
no-such-netlink-policy: tclass_kind_options
bad-netlink-attr: bpf_policy.TCA_BPF_NAME: expect string
bad-netlink-attr: u32_policy.TCA_U32_SEL: bad size -1, expect 16
no-such-netlink-policy: tca_actions
bad-netlink-attr: act_bpf_policy.TCA_ACT_BPF_NAME: expect string
no-such-netlink-policy: tca_ife_meta_policy
bad-netlink-attr: ipt_policy.TCA_IPT_TARG: bad size -1, expect 32
bad-netlink-attr: mpls_policy.TCA_MPLS_TTL: bad min value 0, expect 1
bad-netlink-attr: pedit_policy.TCA_PEDIT_PARMS: bad size -1, expect 24
no-such-netlink-policy: action_gd_policy
bad-netlink-attr: tcaa_policy.TCA_ROOT_FLAGS: unhandled type 16
no-such-struct: tc_gen
bad-field-number: tc_connmark: syz=2 kernel=6
bad-field-size: tc_connmark.tc_gen/index: syz=20 kernel=4
Expand Down
1 change: 1 addition & 0 deletions sys/linux/socket_netlink_route_sched_386.const
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ TCA_EM_META_HDR = 1
TCA_EM_META_LVALUE = 2
TCA_EM_META_RVALUE = 3
TCA_ETF_PARMS = 1
TCA_FLAG_LARGE_DUMP_ON = 1
TCA_FLOWER_ACT = 3
TCA_FLOWER_CLASSID = 1
TCA_FLOWER_FLAGS = 22
Expand Down
1 change: 1 addition & 0 deletions sys/linux/socket_netlink_route_sched_amd64.const
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ TCA_EM_META_HDR = 1
TCA_EM_META_LVALUE = 2
TCA_EM_META_RVALUE = 3
TCA_ETF_PARMS = 1
TCA_FLAG_LARGE_DUMP_ON = 1
TCA_FLOWER_ACT = 3
TCA_FLOWER_CLASSID = 1
TCA_FLOWER_FLAGS = 22
Expand Down
Loading

0 comments on commit 46961c2

Please sign in to comment.