sys/linux: fix warnings in template definition

Update #590
This commit is contained in:
Dmitry Vyukov 2019-12-22 11:39:02 +01:00
parent c5907f7c7a
commit 8b96726707
15 changed files with 1971 additions and 1524 deletions

12
executor/defs.h generated
View File

@ -70,7 +70,7 @@
#if GOARCH_386
#define GOARCH "386"
#define SYZ_REVISION "8b59fa724ce019cb865cb8be1f5fe457b049659e"
#define SYZ_REVISION "6731c378f4e573c0807c0fc7c6afed17912b4e16"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@ -80,7 +80,7 @@
#if GOARCH_amd64
#define GOARCH "amd64"
#define SYZ_REVISION "c721541ceeda6e5e0ca71ad315d2147d4ac6e7c7"
#define SYZ_REVISION "1d2d6dd73570f078b6823d2790d906d5d796d86f"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@ -90,7 +90,7 @@
#if GOARCH_arm
#define GOARCH "arm"
#define SYZ_REVISION "cb2168ceb87ba3e2ae0a43da4ce73bbb5dbf3ea8"
#define SYZ_REVISION "99828391f13923e61362a42ccfcca3f48c4662a7"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@ -100,7 +100,7 @@
#if GOARCH_arm64
#define GOARCH "arm64"
#define SYZ_REVISION "4d57592d210cd2431673a5bdec07d7321104d043"
#define SYZ_REVISION "ba8bfd0c58c56def53ff61cc4a1b6984fd1083a6"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@ -110,7 +110,7 @@
#if GOARCH_mips64le
#define GOARCH "mips64le"
#define SYZ_REVISION "510b4d1659a9048eba41c0a15c77b86e6f5af8e2"
#define SYZ_REVISION "0a0db0f007b06a958bd2d34ca62fd23612f7aa52"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@ -120,7 +120,7 @@
#if GOARCH_ppc64le
#define GOARCH "ppc64le"
#define SYZ_REVISION "966d820862eaed253a758add3a445c2781490928"
#define SYZ_REVISION "8ff57772ddcb2845ba2cac5890e5041c4f840cc9"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096

569
sys/linux/gen/386.go generated

File diff suppressed because it is too large Load Diff

569
sys/linux/gen/amd64.go generated

File diff suppressed because it is too large Load Diff

569
sys/linux/gen/arm.go generated

File diff suppressed because it is too large Load Diff

569
sys/linux/gen/arm64.go generated

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

569
sys/linux/gen/ppc64le.go generated

File diff suppressed because it is too large Load Diff

View File

@ -481,7 +481,7 @@ type fib_rule_hdr[FAMILY] {
table int8
res1 const[0, int8]
res2 const[0, int8]
action flags[fr_actions, int32]
action flags[fr_actions, int8]
flags flags[fr_flags, int32]
}

View File

@ -1,7 +1,3 @@
struct ifla_info_policy_t: no corresponding struct in kernel
struct fib_rule_hdr: bad size: syz=16 kernel=12
field fib_rule_hdr.action: bad offset: syz=8 kernel=7
field fib_rule_hdr.action: bad size: syz=4 kernel=1
field fib_rule_hdr.flags: bad offset: syz=12 kernel=8
struct ifla_vf_mac: bad number of fields: syz=3 kernel=2
field ifla_vf_mac.mac: bad size: syz=6 kernel=32

View File

@ -57,7 +57,7 @@ netlink_msg_route_sched [
type tcmsg[FAMILY] {
family const[FAMILY, int8]
tcm__pad1 const[0, int16]
tcm__pad1 const[0, int8]
tcm__pad2 const[0, int16]
ifindex ifindex
tcm_handle tcm_handle
@ -1259,21 +1259,25 @@ tcf_ematch_tree_hdr {
}
tca_ematch_tree_list [
TCF_EM_CONTAINER nlattr_t[int32, tcf_ematch_hdr[TCF_EM_CONTAINER, array[int8]]]
TCF_EM_CMP nlattr_t[int32, tcf_ematch_hdr[TCF_EM_CMP, tcf_em_cmp]]
TCF_EM_NBYTE nlattr_t[int32, tcf_ematch_hdr[TCF_EM_NBYTE, tcf_em_nbyte]]
TCF_EM_U32 nlattr_t[int32, tcf_ematch_hdr[TCF_EM_U32, tc_u32_key]]
TCF_EM_META nlattr_t[int32, tcf_ematch_hdr[TCF_EM_META, array[tcf_em_meta_policy]]]
TCF_EM_CANID nlattr_t[int32, tcf_ematch_hdr[TCF_EM_CANID, can_filter]]
TCF_EM_IPSET nlattr_t[int32, tcf_ematch_hdr[TCF_EM_IPSET, xt_set_info]]
TCF_EM_IPT nlattr_t[int32, tcf_ematch_hdr[TCF_EM_IPT, array[tcf_em_ipt_policy]]]
TCF_EM_CONTAINER nlattr_t[int32, tcf_ematch_hdr_t[TCF_EM_CONTAINER, array[int8]]]
TCF_EM_CMP nlattr_t[int32, tcf_ematch_hdr_t[TCF_EM_CMP, tcf_em_cmp]]
TCF_EM_NBYTE nlattr_t[int32, tcf_ematch_hdr_t[TCF_EM_NBYTE, tcf_em_nbyte]]
TCF_EM_U32 nlattr_t[int32, tcf_ematch_hdr_t[TCF_EM_U32, tc_u32_key]]
TCF_EM_META nlattr_t[int32, tcf_ematch_hdr_t[TCF_EM_META, array[tcf_em_meta_policy]]]
TCF_EM_CANID nlattr_t[int32, tcf_ematch_hdr_t[TCF_EM_CANID, can_filter]]
TCF_EM_IPSET nlattr_t[int32, tcf_ematch_hdr_t[TCF_EM_IPSET, xt_set_info]]
TCF_EM_IPT nlattr_t[int32, tcf_ematch_hdr_t[TCF_EM_IPT, array[tcf_em_ipt_policy]]]
] [varlen]
type tcf_ematch_hdr[KIND, PAYLOAD] {
type tcf_ematch_hdr[KIND] {
matchid int16
kind const[KIND, int16]
flags int16
pad const[0, int16]
} [align_4]
type tcf_ematch_hdr_t[KIND, PAYLOAD] {
header tcf_ematch_hdr[KIND]
payload PAYLOAD
} [align_4]

View File

@ -1,11 +1,3 @@
struct tcmsg: bad size: syz=24 kernel=20
field tcmsg.tcm__pad1: bad offset: syz=2 kernel=1
field tcmsg.tcm__pad1: bad size: syz=2 kernel=1
field tcmsg.tcm__pad2: bad offset: syz=4 kernel=2
field tcmsg.ifindex/tcm_ifindex: bad offset: syz=8 kernel=4
field tcmsg.tcm_handle: bad offset: syz=12 kernel=8
field tcmsg.tcm_parent: bad offset: syz=16 kernel=12
field tcmsg.tcm_info: bad offset: syz=20 kernel=16
struct tcm_handle: no corresponding struct in kernel
struct tca_kind_options_t: no corresponding struct in kernel
struct m_ctinfo_options: no corresponding struct in kernel
@ -45,9 +37,5 @@ field tc_tunnel_key.t_action/capab: bad offset: syz=20 kernel=4
struct tc_vlan: bad number of fields: syz=2 kernel=6
field tc_vlan.tc_gen/index: bad size: syz=20 kernel=4
field tc_vlan.v_action/capab: bad offset: syz=20 kernel=4
struct tcf_ematch_hdr: bad number of fields: syz=5 kernel=4
struct tcf_ematch_hdr: bad size: syz=12 kernel=8
struct tcf_ematch_hdr: bad size: syz=16 kernel=8
struct tcf_ematch_hdr: bad size: syz=20 kernel=8
struct tcf_ematch_hdr: bad size: syz=24 kernel=8
struct tcf_ematch_hdr_t: no corresponding struct in kernel
struct tc_estimator: no corresponding struct in kernel

View File

@ -31,14 +31,18 @@ sendmsg$TIPC_CMD_DISABLE_BEARER(fd sock_nl_generic, msg ptr[in, msghdr_nl_tipc[T
sendmsg$TIPC_CMD_RESET_LINK_STATS(fd sock_nl_generic, msg ptr[in, msghdr_nl_tipc[TIPC_CMD_RESET_LINK_STATS, tipc_tlv_desc[TIPC_TLV_LINK_NAME, string[tipc_links]]]], f flags[send_flags])
sendmsg$TIPC_CMD_SET_NETID(fd sock_nl_generic, msg ptr[in, msghdr_nl_tipc[TIPC_CMD_SET_NETID, tipc_tlv_desc[TIPC_TLV_UNSIGNED, int32be]]], f flags[send_flags])
type msghdr_nl_tipc[CMD, DATA] msghdr_netlink[netlink_msg_t[genl_tipc_family_id, tipc_genlmsghdr[CMD, DATA], void]]
type msghdr_nl_tipc[CMD, DATA] msghdr_netlink[netlink_msg_t[genl_tipc_family_id, tipc_genlmsghdr_t[CMD, DATA], void]]
type tipc_genlmsghdr[CMD, DATA] {
hdr genlmsghdr_t[TIPC_GENL_CMD]
type tipc_genlmsghdr[CMD] {
dest const[0, int32]
cmd const[CMD, int16]
reserved const[0, int16]
data DATA
} [packed]
type tipc_genlmsghdr_t[CMD, DATA] {
hdr genlmsghdr_t[TIPC_GENL_CMD]
tipc tipc_genlmsghdr[CMD]
data DATA
} [packed]
type tipc_tlv_desc[TYP, DATA] {

View File

@ -1,7 +1,2 @@
struct tipc_genlmsghdr: bad number of fields: syz=5 kernel=3
struct tipc_genlmsghdr: bad size: syz=12 kernel=8
struct tipc_genlmsghdr: bad size: syz=20 kernel=8
struct tipc_genlmsghdr: bad size: syz=32 kernel=8
field tipc_genlmsghdr.dest/cmd: bad size: syz=4 kernel=2
field tipc_genlmsghdr.cmd/reserved: bad offset: syz=8 kernel=6
struct tipc_genlmsghdr_t: no corresponding struct in kernel
struct tipc_tlv_desc: no corresponding struct in kernel

View File

@ -967,12 +967,12 @@ include <uapi/linux/erspan.h>
type erspan_base_hdr[VER] {
vlan_upper int8:4
ver const[VER, int8:4]
vlan int8
vlan int8:8
session_id_upper int8:2
t int8:1
en int8:2
cos int8:3
session_id int8
session_id int8:8
} [packed]
erspan_md1 {

View File

@ -40,8 +40,6 @@ struct tcp_timestamp_option: no corresponding struct in kernel
struct tcp_md5sig_option: no corresponding struct in kernel
struct tcp_exp_smc_option: no corresponding struct in kernel
struct gre_packet_erspan: no corresponding struct in kernel
field erspan_base_hdr.vlan: bad bit size/offset: syz=0/0 kernel=8/0
field erspan_base_hdr.session_id: bad bit size/offset: syz=0/0 kernel=8/0
struct erspan_md1: no corresponding struct in kernel
struct erspan_md1_msg: no corresponding struct in kernel
field erspan_md2.hwid: bad bit size/offset: syz=1/4 kernel=4/4