On Wed, May 20, 2020 at 8:37 PM Maxime Villard <
m...@m00nbsd.net> wrote:
>
> Le 20/05/2020 à 19:41, Dmitry Vyukov a écrit :
> > On Wed, May 20, 2020 at 7:18 PM Maxime Villard <
m...@m00nbsd.net> wrote:
> >>
> >> > executor build succeeded now.
> >>
> >> Thank you. I would like to submit an updated vusb.txt but am unable to get
> >> "make extract" to work.
> >>
> >> $ make extract TARGETOS=netbsd SOURCEDIR=/netbsd-syz/src/
> >> GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X
github.com/google/syzkaller/prog.GitRevision=4afdfa205b55633e7eb9db03a9d099d7aa324801 -X '
github.com/google/syzkaller/prog.gitRevisionDate=Wed May 20 15:39:22 2020 +0200'" -o bin/syz-extract ./sys/syz-extract
> >> bin/syz-extract -build -os=netbsd -sourcedir=/netbsd-syz/src/
> >> generating netbsd/amd64...
> >> fs.txt: input file sys/netbsd/fs.txt is missing
> >> ipc.txt: input file sys/netbsd/ipc.txt is missing
> >> lwp.txt: input file sys/netbsd/lwp.txt is missing
> >> mm.txt: input file sys/netbsd/mm.txt is missing
> >> socket.txt: input file sys/netbsd/socket.txt is missing
> >> socket_inet.txt: input file sys/netbsd/socket_inet.txt is missing
> >> socket_inet6.txt: input file sys/netbsd/socket_inet6.txt is missing
> >> socket_unix.txt: input file sys/netbsd/socket_unix.txt is missing
> >> sys.txt: input file sys/netbsd/sys.txt is missing
> >> vnet.txt: input file sys/netbsd/vnet.txt is missing
> >> vusb.txt: input file sys/netbsd/vusb.txt is missing
> >> make: *** [Makefile:204: extract] Error 1
> >>
> >> The input files are _not_ missing. What am I supposed to do here?
> >>
> >> Thanks
> >
> > Turns out I broke it recently.
> > Please sync to head to pick up:
> >
https://github.com/google/syzkaller/commit/204f4fde068172170c5bc22bcffd60753d583c35
> > it should fix it.
>
> Thanks, it indeed fixed it. I'll push the new vusb.txt once the current PR is
> closed.
>
> We will have to add the "vhci" pseudo-device in the instances. The commands
> to create it are:
>
> # cd /dev
> # ./MAKEDEV vhci
>
> I suspect this has to be done manually?
I hope you don't mean that for every VM booted by the fuzzer after
each crash, the process needs to halt and wait for a human to ssh,
type some commands and resume the process :)
Here we do some image setup:
https://github.com/google/syzkaller/blob/master/pkg/build/netbsd.go#L135-L140
That's the plece to do it, right? Please send a PR.