Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to setup syzkaller #17

Open
thealberto opened this issue Aug 2, 2024 · 1 comment
Open

Failed to setup syzkaller #17

thealberto opened this issue Aug 2, 2024 · 1 comment

Comments

@thealberto
Copy link

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
Copy link
Owner

plummm commented Aug 8, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants