From 0e8428d26ffd80789aa83442676e6fb800e9c0ff Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 23 Jan 2020 14:07:01 +0100 Subject: tools/syz-check: add limited checking of varlen structs Stop at the fist varlen field, but check the preceeding ones. Frequently the varlen array is the last field, so we should get good checking for these cases. Update #590 --- sys/linux/socket.txt.warn | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'sys/linux/socket.txt.warn') diff --git a/sys/linux/socket.txt.warn b/sys/linux/socket.txt.warn index 2da534fc9..905da402f 100644 --- a/sys/linux/socket.txt.warn +++ b/sys/linux/socket.txt.warn @@ -1,9 +1,5 @@ compiler: unsupported syscall: accept due to missing const __NR_accept [386] no-such-struct: sock_pair -bad-field-number: sockaddr: syz=19 kernel=2 -bad-field-size: sockaddr.in/sa_family: syz=16 kernel=2 -bad-field-offset: sockaddr.ax25/sa_data: syz=16 kernel=2 -bad-field-size: sockaddr.ax25/sa_data: syz=16 kernel=14 no-such-struct: sockaddr_storage no-such-struct: sockaddr_generic no-such-struct: sockaddr_storage_generic @@ -23,12 +19,6 @@ no-such-struct: vlan_args no-such-struct: vlan_args_u no-such-struct: devname_mask no-such-struct: ifs_ifsu -bad-field-size: ifconf.req/ifc_len: syz=16 kernel=4 [amd64,arm64] -bad-field-size: ifconf.req/ifc_len: syz=8 kernel=4 [386,arm] -bad-field-offset: ifconf.buf/ifc_ifcu: syz=16 kernel=8 [amd64,arm64] -bad-field-offset: ifconf.buf/ifc_ifcu: syz=8 kernel=4 [386,arm] -bad-field-size: ifconf.buf/ifc_ifcu: syz=16 kernel=8 [amd64,arm64] -bad-field-size: ifconf.buf/ifc_ifcu: syz=8 kernel=4 [386,arm] no-such-struct: ifconf_buf no-such-struct: ifconf_req no-such-struct: brctl_arg @@ -39,3 +29,5 @@ no-such-struct: ethtool_flow_union no-such-struct: ethtool_rx_ntuple no-such-struct: ethtool_rx_ntuple_flow_spec no-such-struct: ethtool_rx_ntuple_flow_spec_union +bad-field-size: ethtool_per_queue_op.queue_mask: syz=16384 kernel=512 +bad-field-size: ethtool_link_settings.reserved/transceiver: syz=32 kernel=1 -- cgit mrf-deployment