plummm / SyzScope

SyzScope is a research project that aims to reveal high-risk security bugs on Syzbot. Learn more details in our paper.
MIT License
72 stars 12 forks source link

Failed to setup syzkaller #17

Open thealberto opened 1 month ago

thealberto commented 1 month ago

Hi, when I run python syzscope -i case I got an error because I cannot compile syzkaller. Any idea on how to fix it?

2024-08-02 16:51:43,025 [0] b'In file included from executor/common_linux.h:1463,\n'
2024-08-02 16:51:43,025 [0] b'                 from executor/common.h:394,\n'
2024-08-02 16:51:43,025 [0] b'                 from executor/executor.cc:133:\n'
2024-08-02 16:51:43,025 [0] b'In function \xe2\x80\x98bool lookup_connect_response_in(int, const vusb_connect_descriptors*, const usb_ctrlrequest*, char**, uint32*)\xe2\x80\x99,\n'
2024-08-02 16:51:43,025 [0] b'    inlined from \xe2\x80\x98volatile long int syz_usb_connect_impl(uint64, uint64, const char*, const vusb_connect_descriptors*, lookup_connect_response_t)\xe2\x80\x99 at executor/common_usb.h:965:4:\n'
2024-08-02 16:51:43,025 [0] b'executor/common_usb.h:801:66: error: array subscript \xe2\x80\x98usb_qualifier_descriptor[0]\xe2\x80\x99 is partly outside array bounds of \xe2\x80\x98char [8]\xe2\x80\x99 [-Werror=array-bounds]\n'
2024-08-02 16:51:43,025 [0] b'  801 |                                         qual->bNumConfigurations = index->dev->bNumConfigurations;\n'
2024-08-02 16:51:43,026 [0] b'      |                                         ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n'
2024-08-02 16:51:43,026 [0] b'executor/common_usb.h: In function \xe2\x80\x98volatile long int syz_usb_connect_impl(uint64, uint64, const char*, const vusb_connect_descriptors*, lookup_connect_response_t)\xe2\x80\x99:\n'
2024-08-02 16:51:43,026 [0] b'executor/common_usb.h:960:23: note: object \xe2\x80\x98response_data\xe2\x80\x99 of size 8\n'
2024-08-02 16:51:43,026 [0] b'  960 |                 char* response_data = NULL;\n'
2024-08-02 16:51:43,026 [0] b'      |                       ^~~~~~~~~~~~~\n'
2024-08-02 16:51:43,026 [0] b'In function \xe2\x80\x98bool lookup_connect_response_in(int, const vusb_connect_descriptors*, const usb_ctrlrequest*, char**, uint32*)\xe2\x80\x99,\n'
2024-08-02 16:51:43,026 [0] b'    inlined from \xe2\x80\x98volatile long int syz_usb_connect_impl(uint64, uint64, const char*, const vusb_connect_descriptors*, lookup_connect_response_t)\xe2\x80\x99 at executor/common_usb.h:965:4:\n'
2024-08-02 16:51:43,026 [0] b'executor/common_usb.h:802:57: error: array subscript \xe2\x80\x98usb_qualifier_descriptor[0]\xe2\x80\x99 is partly outside array bounds of \xe2\x80\x98char [8]\xe2\x80\x99 [-Werror=array-bounds]\n'
2024-08-02 16:51:43,026 [0] b'  802 |                                         qual->bRESERVED = 0;\n'
2024-08-02 16:51:43,026 [0] b'      |                                         ~~~~~~~~~~~~~~~~^~~\n'
2024-08-02 16:51:43,026 [0] b'executor/common_usb.h: In function \xe2\x80\x98volatile long int syz_usb_connect_impl(uint64, uint64, const char*, const vusb_connect_descriptors*, lookup_connect_response_t)\xe2\x80\x99:\n'
2024-08-02 16:51:43,026 [0] b'executor/common_usb.h:960:23: note: object \xe2\x80\x98response_data\xe2\x80\x99 of size 8\n'
2024-08-02 16:51:43,026 [0] b'  960 |                 char* response_data = NULL;\n'
2024-08-02 16:51:43,026 [0] b'      |                       ^~~~~~~~~~~~~\n'
2024-08-02 16:51:43,296 [0] b'cc1plus: all warnings being treated as errors\n'
2024-08-02 16:51:43,299 [0] b'make[1]: *** [Makefile:129: executor] Error 1\n'

Thanks

plummm commented 1 month ago

Can you provide information about the command you run, OS, python version? Are running in SyzScope docker or in your own environment?