syzkaller
syzkaller copied to clipboard
sys/fuchsia: update the socket system calls
We also need updated .const files along with .txt files.
.const files is how syzkaller knows actual integer values of all these literal constants (e.g. what is ZX_SOCKET_PEEK?).
To generate them you need to run something along the lines of make extract TARGETOS=fuchsia SOURCEDIR=....
I see that extract utility had support for fuchsia:
https://github.com/google/syzkaller/blob/master/sys/syz-extract/fuchsia.go
But I guess it may got rotten.
The format of the files has changed as well. Now instead of per-arch files sockets_amd64.const and sockets_arm64.const, extract will generate a single sockets.txt.const file. So you will need to check-in new files and remove the old ones.
You may add .const file changes per PR. But taking into account the number of PRs for fuchsia, I think we can have a separate PR that updates all files at once.