Skip to content

Commit

Permalink
sys/linux: add ethtool netlink descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
dvyukov committed Jan 28, 2020
1 parent 0692a58 commit 5e48183
Show file tree
Hide file tree
Showing 30 changed files with 3,432 additions and 143 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.

42 changes: 42 additions & 0 deletions executor/syscalls.h
Original file line number Diff line number Diff line change
Expand Up @@ -4314,6 +4314,12 @@ const call_t syscalls[] = {
{"sendmsg$DEVLINK_CMD_PORT_GET", 370},
{"sendmsg$DEVLINK_CMD_PORT_SET", 370},
{"sendmsg$DEVLINK_CMD_RELOAD", 370},
{"sendmsg$ETHTOOL_MSG_LINKINFO_GET", 370},
{"sendmsg$ETHTOOL_MSG_LINKINFO_SET", 370},
{"sendmsg$ETHTOOL_MSG_LINKMODES_GET", 370},
{"sendmsg$ETHTOOL_MSG_LINKMODES_SET", 370},
{"sendmsg$ETHTOOL_MSG_LINKSTATE_GET", 370},
{"sendmsg$ETHTOOL_MSG_STRSET_GET", 370},
{"sendmsg$FOU_CMD_ADD", 370},
{"sendmsg$FOU_CMD_DEL", 370},
{"sendmsg$FOU_CMD_GET", 370},
Expand Down Expand Up @@ -4968,6 +4974,7 @@ const call_t syscalls[] = {
{"syz_genetlink_get_family_id$SEG6", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$batadv", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$devlink", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$ethtool", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$fou", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$gtp", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$ipvs", 0, (syscall_t)syz_genetlink_get_family_id},
Expand Down Expand Up @@ -7601,6 +7608,12 @@ const call_t syscalls[] = {
{"sendmsg$DEVLINK_CMD_PORT_GET", 46},
{"sendmsg$DEVLINK_CMD_PORT_SET", 46},
{"sendmsg$DEVLINK_CMD_RELOAD", 46},
{"sendmsg$ETHTOOL_MSG_LINKINFO_GET", 46},
{"sendmsg$ETHTOOL_MSG_LINKINFO_SET", 46},
{"sendmsg$ETHTOOL_MSG_LINKMODES_GET", 46},
{"sendmsg$ETHTOOL_MSG_LINKMODES_SET", 46},
{"sendmsg$ETHTOOL_MSG_LINKSTATE_GET", 46},
{"sendmsg$ETHTOOL_MSG_STRSET_GET", 46},
{"sendmsg$FOU_CMD_ADD", 46},
{"sendmsg$FOU_CMD_DEL", 46},
{"sendmsg$FOU_CMD_GET", 46},
Expand Down Expand Up @@ -8254,6 +8267,7 @@ const call_t syscalls[] = {
{"syz_genetlink_get_family_id$SEG6", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$batadv", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$devlink", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$ethtool", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$fou", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$gtp", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$ipvs", 0, (syscall_t)syz_genetlink_get_family_id},
Expand Down Expand Up @@ -10840,6 +10854,12 @@ const call_t syscalls[] = {
{"sendmsg$DEVLINK_CMD_PORT_GET", 296},
{"sendmsg$DEVLINK_CMD_PORT_SET", 296},
{"sendmsg$DEVLINK_CMD_RELOAD", 296},
{"sendmsg$ETHTOOL_MSG_LINKINFO_GET", 296},
{"sendmsg$ETHTOOL_MSG_LINKINFO_SET", 296},
{"sendmsg$ETHTOOL_MSG_LINKMODES_GET", 296},
{"sendmsg$ETHTOOL_MSG_LINKMODES_SET", 296},
{"sendmsg$ETHTOOL_MSG_LINKSTATE_GET", 296},
{"sendmsg$ETHTOOL_MSG_STRSET_GET", 296},
{"sendmsg$FOU_CMD_ADD", 296},
{"sendmsg$FOU_CMD_DEL", 296},
{"sendmsg$FOU_CMD_GET", 296},
Expand Down Expand Up @@ -11492,6 +11512,7 @@ const call_t syscalls[] = {
{"syz_genetlink_get_family_id$SEG6", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$batadv", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$devlink", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$ethtool", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$fou", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$gtp", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$ipvs", 0, (syscall_t)syz_genetlink_get_family_id},
Expand Down Expand Up @@ -14058,6 +14079,12 @@ const call_t syscalls[] = {
{"sendmsg$DEVLINK_CMD_PORT_GET", 211},
{"sendmsg$DEVLINK_CMD_PORT_SET", 211},
{"sendmsg$DEVLINK_CMD_RELOAD", 211},
{"sendmsg$ETHTOOL_MSG_LINKINFO_GET", 211},
{"sendmsg$ETHTOOL_MSG_LINKINFO_SET", 211},
{"sendmsg$ETHTOOL_MSG_LINKMODES_GET", 211},
{"sendmsg$ETHTOOL_MSG_LINKMODES_SET", 211},
{"sendmsg$ETHTOOL_MSG_LINKSTATE_GET", 211},
{"sendmsg$ETHTOOL_MSG_STRSET_GET", 211},
{"sendmsg$FOU_CMD_ADD", 211},
{"sendmsg$FOU_CMD_DEL", 211},
{"sendmsg$FOU_CMD_GET", 211},
Expand Down Expand Up @@ -14704,6 +14731,7 @@ const call_t syscalls[] = {
{"syz_genetlink_get_family_id$SEG6", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$batadv", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$devlink", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$ethtool", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$fou", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$gtp", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$ipvs", 0, (syscall_t)syz_genetlink_get_family_id},
Expand Down Expand Up @@ -17183,6 +17211,12 @@ const call_t syscalls[] = {
{"sendmsg$DEVLINK_CMD_PORT_GET", 5045},
{"sendmsg$DEVLINK_CMD_PORT_SET", 5045},
{"sendmsg$DEVLINK_CMD_RELOAD", 5045},
{"sendmsg$ETHTOOL_MSG_LINKINFO_GET", 5045},
{"sendmsg$ETHTOOL_MSG_LINKINFO_SET", 5045},
{"sendmsg$ETHTOOL_MSG_LINKMODES_GET", 5045},
{"sendmsg$ETHTOOL_MSG_LINKMODES_SET", 5045},
{"sendmsg$ETHTOOL_MSG_LINKSTATE_GET", 5045},
{"sendmsg$ETHTOOL_MSG_STRSET_GET", 5045},
{"sendmsg$FOU_CMD_ADD", 5045},
{"sendmsg$FOU_CMD_DEL", 5045},
{"sendmsg$FOU_CMD_GET", 5045},
Expand Down Expand Up @@ -17836,6 +17870,7 @@ const call_t syscalls[] = {
{"syz_genetlink_get_family_id$SEG6", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$batadv", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$devlink", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$ethtool", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$fou", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$gtp", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$ipvs", 0, (syscall_t)syz_genetlink_get_family_id},
Expand Down Expand Up @@ -20423,6 +20458,12 @@ const call_t syscalls[] = {
{"sendmsg$DEVLINK_CMD_PORT_GET", 341},
{"sendmsg$DEVLINK_CMD_PORT_SET", 341},
{"sendmsg$DEVLINK_CMD_RELOAD", 341},
{"sendmsg$ETHTOOL_MSG_LINKINFO_GET", 341},
{"sendmsg$ETHTOOL_MSG_LINKINFO_SET", 341},
{"sendmsg$ETHTOOL_MSG_LINKMODES_GET", 341},
{"sendmsg$ETHTOOL_MSG_LINKMODES_SET", 341},
{"sendmsg$ETHTOOL_MSG_LINKSTATE_GET", 341},
{"sendmsg$ETHTOOL_MSG_STRSET_GET", 341},
{"sendmsg$FOU_CMD_ADD", 341},
{"sendmsg$FOU_CMD_DEL", 341},
{"sendmsg$FOU_CMD_GET", 341},
Expand Down Expand Up @@ -21074,6 +21115,7 @@ const call_t syscalls[] = {
{"syz_genetlink_get_family_id$SEG6", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$batadv", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$devlink", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$ethtool", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$fou", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$gtp", 0, (syscall_t)syz_genetlink_get_family_id},
{"syz_genetlink_get_family_id$ipvs", 0, (syscall_t)syz_genetlink_get_family_id},
Expand Down
4 changes: 4 additions & 0 deletions sys/linux/dev_dri.txt.warn
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
bad-struct-size: drm_mode_fb_cmd2: syz=84 kernel=100 [386]
bad-struct-size: drm_mode_fb_cmd2: syz=84 kernel=104 [amd64,arm,arm64]
bad-field-offset: drm_mode_fb_cmd2.modifier: syz=68 kernel=72 [amd64,arm,arm64]
bad-field-size: drm_mode_fb_cmd2.modifier: syz=16 kernel=32
no-such-struct: drm_unique_in
no-such-struct: drm_unique_out
no-such-struct: drm_map
Expand Down
10 changes: 2 additions & 8 deletions sys/linux/dev_infiniband_rdma.txt.warn
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,9 @@ bad-field-number: ib_uverbs_flow_spec_action_count: syz=5 kernel=3
bad-field-size: ib_uverbs_flow_spec_action_count.type/: syz=4 kernel=8
bad-field-offset: ib_uverbs_flow_spec_action_count.size/handle: syz=4 kernel=8
bad-field-size: ib_uverbs_flow_spec_action_count.size/handle: syz=2 kernel=4
bad-field-offset: ib_uverbs_flow_spec_action_count.reserved0/reserved1: syz=6 kernel=12
bad-field-size: ib_uverbs_flow_spec_action_count.reserved0/reserved1: syz=2 kernel=4
bad-field-offset: ib_uverbs_flow_spec_action_count.reserved/reserved1: syz=6 kernel=12
bad-field-size: ib_uverbs_flow_spec_action_count.reserved/reserved1: syz=2 kernel=4
no-such-struct: union_ib_flow_spec
bad-field-size: ib_uverbs_flow_attr.reserved1/reserved: syz=1 kernel=2
bad-field-offset: ib_uverbs_flow_attr.reserved2/port: syz=10 kernel=11
bad-field-offset: ib_uverbs_flow_attr.port/flags: syz=11 kernel=12
bad-field-size: ib_uverbs_flow_attr.port/flags: syz=1 kernel=4
bad-field-offset: ib_uverbs_flow_attr.flags/flow_specs: syz=12 kernel=16
bad-field-size: ib_uverbs_flow_attr.flags/flow_specs: syz=4 kernel=0
no-such-struct: create_flow_resp
no-such-struct: destroy_flow_cmd
no-such-struct: ib_uverbs_create_counters_cmd
Expand Down
6 changes: 6 additions & 0 deletions sys/linux/dev_ptmx.txt.warn
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
compiler: unsupported syscall: ioctl$TIOCGETP due to missing const TIOCGETP
compiler: unsupported syscall: ioctl$TIOCSETP due to missing const TIOCSETP
compiler: unsupported syscall: ioctl$TIOCGETC due to missing const TIOCGETC
compiler: unsupported syscall: ioctl$TIOCSETC due to missing const TIOCSETC
compiler: unsupported syscall: ioctl$TIOCGLTC due to missing const TIOCGLTC
compiler: unsupported syscall: ioctl$TIOCSLTC due to missing const TIOCSLTC
no-such-struct: io_cmap
no-such-struct: unimapdesc_in
no-such-struct: unimapdesc_out
Expand Down
Loading

0 comments on commit 5e48183

Please sign in to comment.