From 9d4f14f879d34d715f61d84f4b1144e9fa8ca236 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 17 Jan 2025 10:39:52 +0100 Subject: pkg/declextract: infer syscall commands Use function scope information extracted in the previous commit to infer multiplexed syscalls (fcntl, prctl, ...) and infer their arguments. Descriptions generated on Linux commit c4b9570cfb63501. --- tools/syz-declextract/testdata/scopes.c.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tools') diff --git a/tools/syz-declextract/testdata/scopes.c.txt b/tools/syz-declextract/testdata/scopes.c.txt index aec7f7f2d..3a0c20709 100644 --- a/tools/syz-declextract/testdata/scopes.c.txt +++ b/tools/syz-declextract/testdata/scopes.c.txt @@ -4,4 +4,15 @@ meta automatic type auto_todo int8 +include + scopes0$auto(x int32, cmd intptr, aux intptr) +scopes0$auto_100(x int32, cmd const[100], aux intptr) +scopes0$auto_101(x int32, cmd const[101], aux intptr) +scopes0$auto_102(x int32, cmd const[102], aux intptr) +scopes0$auto_1074291461(x int32, cmd const[1074291461], aux intptr) +scopes0$auto_1074291462(x int32, cmd const[1074291462], aux intptr) +scopes0$auto_FOO_IOCTL1(x int32, cmd const[FOO_IOCTL1], aux intptr) +scopes0$auto_FOO_IOCTL2(x int32, cmd const[FOO_IOCTL2], aux intptr) +scopes0$auto_FOO_IOCTL3(x int32, cmd const[FOO_IOCTL3], aux intptr) +scopes0$auto_FOO_IOCTL4(x int32, cmd const[FOO_IOCTL4], aux intptr) -- cgit mrf-deployment