aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/auto.txt.info
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-12-02 10:57:36 +0100
committerDmitry Vyukov <dvyukov@google.com>2024-12-11 15:22:17 +0000
commitb2c5a234aeb69e981c6e7ad120b49d37a86c6cae (patch)
treed2e575e4c5dd3f044d43a71231c50c1b1459e35a /sys/linux/auto.txt.info
parentbfb4b3275371a3b53cd6562fa06e5a9dfb5627b7 (diff)
tools/syz-declextract: rewrite
syz-declextract accumulated a bunch of code health problems so that now it's hard to change/extend it, lots of new features can only be added in in hacky ways and cause lots of code duplication. It's also completly untested. Rewrite the tool to: - move as much code as possible to Go (working with the clang tool is painful for a number of reasons) - allow testing and add unit tests (first layer of tests test what information is produced by the clang tool, second layer of tests test how that information is transformed to descriptions) - allow extending the clang tool output to export arbitrary info in non-hacky way (now it produces arbitrary JSON instead of a mix of incomplete descriptions and interfaces) - remove code duplication in the clang tool and provide common infrastructure to add new analysis w/o causing more duplication - provide more convinient primitives in the clang tool - improve code style consistency and stick to the LLVM code style (in particular, variable names must start with a capital letter, single-statement blocks are not surrounded with {}) - remove intermixing of code that works on different levels (currently we have AST analysis + busness logic + printfs all intermixed with each other) - provide several helper Go packages for better code structuring (e.g. pkg/clangtool just runs the tool on source files in parallel and returns results, this already separates a bunch of low-level logic from the rest of the code under a simple abstraction) I've tried to make the output match the current output as much as possible so that the diff is managable (in some cases at the cost of code quality, this should be fixed in future commits). There are still some differences, but hopefully they are managable for review (more includes/defines, reordered some netlink attributes). Fixed minor bugs are fixed along the way, but mostly NFC: 1. Some unions were incorrectly emitted as [varlen] (C unions are never varlen). 2. Only a of [packed], [align[N]] attributes was emitted for struct (both couldn't be emitted).
Diffstat (limited to 'sys/linux/auto.txt.info')
-rw-r--r--sys/linux/auto.txt.info18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/linux/auto.txt.info b/sys/linux/auto.txt.info
index 813f809b3..3ee32e87f 100644
--- a/sys/linux/auto.txt.info
+++ b/sys/linux/auto.txt.info
@@ -76,8 +76,8 @@ NETLINK BATADV_CMD_TP_METER func:batadv_netlink_tp_meter_start access:ns_admin m
NETLINK BATADV_CMD_TP_METER_CANCEL func:batadv_netlink_tp_meter_cancel access:ns_admin manual_desc:true auto_desc:true file:net/batman-adv/netlink.c subsystem:batman
NETLINK CGROUPSTATS_CMD_GET func:cgroupstats_user_cmd access:user manual_desc:false auto_desc:true file:kernel/taskstats.c subsystem:kernel
NETLINK CIFS_GENL_CMD_SWN_NOTIFY func:cifs_swn_notify access:user manual_desc:false auto_desc:true file:fs/smb/client/netlink.c subsystem:cifs
-NETLINK CTRL_CMD_GETFAMILY func:ctrl_dumpfamily access:user manual_desc:false auto_desc:true file:net/netlink/genetlink.c subsystem:net
-NETLINK CTRL_CMD_GETPOLICY func:ctrl_dumppolicy_done access:user manual_desc:false auto_desc:true file:net/netlink/genetlink.c subsystem:net
+NETLINK CTRL_CMD_GETFAMILY func:ctrl_getfamily access:user manual_desc:false auto_desc:true file:net/netlink/genetlink.c subsystem:net
+NETLINK CTRL_CMD_GETPOLICY func:ctrl_dumppolicy_start access:user manual_desc:false auto_desc:true file:net/netlink/genetlink.c subsystem:net
NETLINK ETHTOOL_MSG_CABLE_TEST_ACT func:ethnl_act_cable_test access:ns_admin manual_desc:false auto_desc:true file:net/ethtool/netlink.c subsystem:net
NETLINK ETHTOOL_MSG_CABLE_TEST_TDR_ACT func:ethnl_act_cable_test_tdr access:ns_admin manual_desc:false auto_desc:true file:net/ethtool/netlink.c subsystem:net
NETLINK ETHTOOL_MSG_CHANNELS_GET func:ethnl_default_doit access:user manual_desc:true auto_desc:true file:net/ethtool/netlink.c subsystem:net
@@ -225,21 +225,21 @@ NETLINK NCSI_CMD_SET_INTERFACE func:ncsi_set_interface_nl access:admin manual_de
NETLINK NCSI_CMD_SET_PACKAGE_MASK func:ncsi_set_package_mask_nl access:admin manual_desc:false auto_desc:true file:net/ncsi/ncsi-netlink.c subsystem:net
NETLINK NETDEV_CMD_BIND_RX func:netdev_nl_bind_rx_doit access:admin manual_desc:false auto_desc:true file:net/core/netdev-genl-gen.c subsystem:net
NETLINK NETDEV_CMD_DEV_GET func:netdev_nl_dev_get_doit access:user manual_desc:false auto_desc:true file:net/core/netdev-genl-gen.c subsystem:net
-NETLINK NETDEV_CMD_NAPI_GET func:netdev_nl_napi_get_dumpit access:user manual_desc:false auto_desc:true file:net/core/netdev-genl-gen.c subsystem:net
+NETLINK NETDEV_CMD_NAPI_GET func:netdev_nl_napi_get_doit access:user manual_desc:false auto_desc:true file:net/core/netdev-genl-gen.c subsystem:net
NETLINK NETDEV_CMD_NAPI_SET func:netdev_nl_napi_set_doit access:admin manual_desc:false auto_desc:true file:net/core/netdev-genl-gen.c subsystem:net
NETLINK NETDEV_CMD_PAGE_POOL_GET func:netdev_nl_page_pool_get_doit access:user manual_desc:false auto_desc:true file:net/core/netdev-genl-gen.c subsystem:net
NETLINK NETDEV_CMD_QSTATS_GET func:netdev_nl_qstats_get_dumpit access:user manual_desc:false auto_desc:true file:net/core/netdev-genl-gen.c subsystem:net
-NETLINK NETDEV_CMD_QUEUE_GET func:netdev_nl_queue_get_dumpit access:user manual_desc:false auto_desc:true file:net/core/netdev-genl-gen.c subsystem:net
+NETLINK NETDEV_CMD_QUEUE_GET func:netdev_nl_queue_get_doit access:user manual_desc:false auto_desc:true file:net/core/netdev-genl-gen.c subsystem:net
NETLINK NET_DM_CMD_CONFIG func:net_dm_cmd_config access:admin manual_desc:false auto_desc:true file:net/core/drop_monitor.c subsystem:net
NETLINK NET_DM_CMD_CONFIG_GET func:net_dm_cmd_config_get access:user manual_desc:false auto_desc:true file:net/core/drop_monitor.c subsystem:net
NETLINK NET_DM_CMD_START func:net_dm_cmd_trace access:admin manual_desc:true auto_desc:true file:net/core/drop_monitor.c subsystem:net
NETLINK NET_DM_CMD_STATS_GET func:net_dm_cmd_stats_get access:user manual_desc:false auto_desc:true file:net/core/drop_monitor.c subsystem:net
NETLINK NET_DM_CMD_STOP func:net_dm_cmd_trace access:admin manual_desc:true auto_desc:true file:net/core/drop_monitor.c subsystem:net
-NETLINK NET_SHAPER_CMD_CAP_GET func:net_shaper_nl_cap_post_dumpit access:user manual_desc:false auto_desc:true file:net/shaper/shaper_nl_gen.c subsystem:net
-NETLINK NET_SHAPER_CMD_DELETE func:net_shaper_nl_post_doit access:admin manual_desc:false auto_desc:true file:net/shaper/shaper_nl_gen.c subsystem:net
-NETLINK NET_SHAPER_CMD_GET func:net_shaper_nl_post_dumpit access:user manual_desc:false auto_desc:true file:net/shaper/shaper_nl_gen.c subsystem:net
-NETLINK NET_SHAPER_CMD_GROUP func:net_shaper_nl_post_doit access:admin manual_desc:false auto_desc:true file:net/shaper/shaper_nl_gen.c subsystem:net
-NETLINK NET_SHAPER_CMD_SET func:net_shaper_nl_post_doit access:admin manual_desc:false auto_desc:true file:net/shaper/shaper_nl_gen.c subsystem:net
+NETLINK NET_SHAPER_CMD_CAP_GET func:net_shaper_nl_cap_pre_doit access:user manual_desc:false auto_desc:true file:net/shaper/shaper_nl_gen.c subsystem:net
+NETLINK NET_SHAPER_CMD_DELETE func:net_shaper_nl_pre_doit access:admin manual_desc:false auto_desc:true file:net/shaper/shaper_nl_gen.c subsystem:net
+NETLINK NET_SHAPER_CMD_GET func:net_shaper_nl_pre_doit access:user manual_desc:false auto_desc:true file:net/shaper/shaper_nl_gen.c subsystem:net
+NETLINK NET_SHAPER_CMD_GROUP func:net_shaper_nl_pre_doit access:admin manual_desc:false auto_desc:true file:net/shaper/shaper_nl_gen.c subsystem:net
+NETLINK NET_SHAPER_CMD_SET func:net_shaper_nl_pre_doit access:admin manual_desc:false auto_desc:true file:net/shaper/shaper_nl_gen.c subsystem:net
NETLINK NFC_CMD_ACTIVATE_TARGET func:nfc_genl_activate_target access:admin manual_desc:true auto_desc:true file:net/nfc/netlink.c subsystem:net subsystem:nfc
NETLINK NFC_CMD_DEACTIVATE_TARGET func:nfc_genl_deactivate_target access:admin manual_desc:true auto_desc:true file:net/nfc/netlink.c subsystem:net subsystem:nfc
NETLINK NFC_CMD_DEP_LINK_DOWN func:nfc_genl_dep_link_down access:admin manual_desc:true auto_desc:true file:net/nfc/netlink.c subsystem:net subsystem:nfc