On Wed, Dec 23, 2015 at 11:24 PM, Dmitry Vyukov <
dvy...@google.com> wrote:
> On Wed, Dec 23, 2015 at 2:43 PM, Xin Long <
lucie...@gmail.com> wrote:
>> Hi Dmitry:
>>
>> I built the syzkaller, but every time when i run it, all the syscalls
>> will be tested, even I configure disable_syscalls or enable_syscalls
>> in my.cfg.
>> "disable_syscalls": [
>> "alarm",
>> "bpf",
>> "capget",
>> "capset",
>> "chmod",
>> "chown",
>> "clock_adjtime",
>> "clock_getres",
>> "clock_gettime",
>> "clock_nanosleep",
>> "clock_settime",
>> "creat"
>> ]
>>
>> it still cannot work. do you know why? if i just want to test only
>> one syscall like 'connnect', what should i do?
>
> +syzkaller mailing list
>
> Hi Xin,
>
> disable_syscalls should work. Why do you think that all syscalls are used?
>
cause in the website report:
manager new inputs: 64/min
vm restarts: 7/hour
accept inputs:930 cover:8393 prio
accept4 inputs:911 cover:8309 prio
acct inputs:1 cover:13 prio
add_key inputs:30 cover:1011 prio
alarm inputs:3 cover:88 prio
bind inputs:1010 cover:8403 prio
bpf inputs:39 cover:1747 prio
capget inputs:4 cover:69 prio
capset inputs:6 cover:119 prio
chmod inputs:14 cover:816 prio
chown inputs:11 cover:1564 prio
clock_adjtime inputs:4 cover:154 prio
clock_getres inputs:10 cover:637 prio
clock_gettime inputs:31 cover:1137 prio
clock_nanosleep inputs:5 cover:219 prio
clock_settime inputs:1 cover:29 prio
....
does it prove these syscalls are used ?
if not, how should i check the used syscalls ?
> If you want to test only connect, then specify:
>
> "enable_syscalls": [
> "connect"
> ]
>
what if the configure that, and also, I add "disable_syscalls":
does that mean "disable_syscalls" options will be useless ?
> However, note that for connect you most likely also want at least
> socket syscall. Otherwise syzkaller will always pass -1 as fd to
> connect, which is probably not very useful.
got you.