Hello,
I assume I am missing some simple configuration step so I apologize in advance, but any help would be appreciated.
Why am I getting missing file errors if I am on the right kernel tree with matching commits and configs to syzbot?
Following the instructions to update a descriptor here: https://github.com/google/syzkaller/blob/master/docs/syscall_descriptions.md I run the make extract command seen below. On running the command I get errors noted by the instructions "make extract complains about missing header files or constants undefined on all architectures, try to use the latest linux-next tree (or if it happens to be broken at the moment, try a slightly older linux-next tree)." but I am using the commits and configs directly from syzbot so by my understanding there is no chance for mismatch.
Specifically:
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git on at 53d061c19dc4 and syzkaller at d2ee9228
These commits/configs were pulled from syzbot on 14JUN23
ci2-upstream-usb now 22h21m 2325 62076 33 1693770 53d061c19dc4 .config 1d08h d2ee9228 1d00h
In the kernel source at that commit I can see that the folder drivers/crypto/qat is indeed missing.
Thanks again,
Nigel
$ make extract TARGETOS=linux SOURCEDIR=/home/dev/vm_share/fuzzing/usb
Makefile:32: run command via tools/syz-env for best compatibility, see:
Makefile:33: https://github.com/google/syzkaller/blob/master/docs/contributing.md#using-syz-env
GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/prog.GitRevision=d2ee9228555a1697ea8957f68403df8e4c55f42d+ -X 'github.com/google/syzkaller/prog.gitRevisionDate=20230613-18
1115'" -o bin/syz-extract ./sys/syz-extract
bin/syz-extract -build -os=linux -sourcedir=/home/dev/vm_share/fuzzing/usb
make mrproper ARCH=i386 generating linux/386... dev_qat_adf_ctl.txt: failed to run compiler: x86_64-linux-gnu-gcc [-nostdinc -w -fmessage-length=0 -O3 -I. -D__KERNEL__ -DKBUILD_MODNAME="-" -I/home/dev/vm_share/fuzzing/usb/arch/x86/include -I/tmp/syzkaller-kernel-build1826289015/arch/x86/include/generated/uapi -I/tmp/syzkaller-kernel-build1826289015/arch/x86/include/generated -I/home/dev/vm_share/fuzzing/usb/arch/x86/include/asm/mach-malta -I/home/dev/vm_share/fuzzing/usb/arch/x86/include/asm/mach-generic -I/tmp/syzkaller-kernel-build1826289015/include -I/home/dev/vm_share/fuzzing/usb/include -I/home/dev/vm_share/fuzzing/usb/arch/x86/include/uapi -I/
tmp/syzkaller-kernel-build1826289015/arch/x86/include/generated/uapi -I/home/dev/vm_share/fuzzing/usb/include/uapi -I/tmp/syzkaller-kernel-build1826289015/include/generated/uapi -I/home/dev/vm_share/fuzz
ing/usb -I/home/dev/vm_share/fuzzing/usb/include/linux -I/tmp/syzkaller-kernel-build1826289015/syzkaller -include /home/dev/vm_share/fuzzing/usb/include/linux/kconfig.h -m32 -O2 -pthread -Wall -Werror -W
parentheses -Wframe-larger-than=16384]
exit status 1
<stdin>:9:10: fatal error: drivers/crypto/qat/qat_common/adf_cfg_user.h: No such file or directory
compilation terminated.
...
sys.txt: failed to run compiler: s390x-linux-gnu-gcc [-nostdinc -w -fmessage-length=0 -O3 -I. -D__KERNEL__ -DKBUILD_MODNAME="-" -I/home/dev/vm_share/fuzzing/usb/arch/s390/include -I/tmp/syzkaller-kernel-build3801004866/arch/s390/include/generated/uapi -I/tmp/syzkaller-kernel-build3801004866/arch/s390/include/generated -I/home/dev/vm_share/fuzzing/usb/arch/s390/include/asm/mach-malta -I/home/dev/vm_share/fuzzing/usb/arch/s390/include/asm/mach-generic -I/tmp/syzkaller-kernel-build3801004866/include -I/home/dev/vm_share/fuzzing/usb/include -I/home/dev/vm_share/fuzzing/usb/arch/s390/include/uapi -I/tmp/syzkaller-kernel-build3801004866/arch/s390/include/generated/uapi -I/home/dev/vm_share/fuzzing/usb/include/uapi -I/tmp/syzkaller-kernel-build3801004866/include/generated/uapi -I/home/dev/vm_share/fuzzing/usb -I/home/dev/vm_share/fuzzing/usb/include/linux -I/tmp/syzkaller-kernel-build3801004866/syzkaller -include /home/dev/vm_share/fuzzing/usb/include/linux/kconfig.h -fPIE -O2 -pthread -Wall -Werror -Wparentheses -Wframe-larger-than=16384]
exit status 1
<stdin>:117:10: fatal error: fs/cifs/cifsglob.h: No such file or directory
compilation terminated.
make: *** [Makefile:239: extract] Error 1
