aboutsummaryrefslogtreecommitdiffstats
path: root/sys/fuchsia
Commit message (Collapse)AuthorAgeFilesLines
* pkg/ifuzz: fix generate/buildDmitry Vyukov2025-04-031-1/+1
| | | | | | | Currently the commands we have in go:generate first create an empty file and then write final contents. This breaks any parallel builds of the source. Even running go generate ./... does not work. Write output files atomically.
* Makefile: simplify Go generationDmitry Vyukov2025-04-022-7/+11
| | | | | | Make fidlgen non special and run go generate for all packages. This will avoid stale go:generate commands, and missed packages (like we had for pkg/ifuzz/{x86,arm64} for years).
* sys/syz-sysgen: serialize descriptions as gob and embedDmitry Vyukov2025-01-231-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of generating Go files with descriptions serialize them as gob and compress with flate. This significantly reduces build time, go vet time, and solves scalability problems with some static analysis tools. Reference times (all after rm -rf ~/.cache/go-build) before: TIME="%e %P %M" time go install ./syz-manager 48.29 577% 4824820 TIME="%e %P %M" time go test -c ./prog 56.28 380% 6973292 After: TIME="%e %P %M" time go install ./syz-manager 22.81 865% 859788 TIME="%e %P %M" time go test -c ./prog 12.74 565% 267760 syz-manager size before/after: 194712597 -> 83418407 -57% even provided we now embed all descriptions instead of just a single arch. Deflate/decoding time for a single Linux arch is ~330ms. Fixes #5542
* pkg/host: explicitly disable syz_execute_funcDmitry Vyukov2024-04-291-1/+1
| | | | | | | | | Disable the syscall in descriptions rather than in the code. This makes it more visible for users that it's disabled, and makes it less special (will not need to move this logic to host). Also change the condition in syz-sysgen to be more precise, otherwise syz_execute_func becomes unused function.
* sys/fuchsia: add test for stream syscall definitionsLaura Peskin2022-11-234-11/+66
| | | | | | | | Also added a `zx_offset` resource type to stream.txt, since the syscall interface uses a distinguished type for offsets here; used `intptr` for sizes and `flags` for options; updated const lists and definitions; corrected in/out direction for a few pointers.
* sys/fuchsia: add test for socket syscall descriptionsLaura Peskin2022-11-234-7/+44
| | | | | | Also updated the constant files and added 0x0 as a valid option for `zx_socket_read` (to consume buffered data, as opposed to 0x8 = ZX_SOCKET_PEEK)
* sys/fuchsia: add test for handle syscall descriptionsLaura Peskin2022-11-231-0/+48
|
* sys/fuchsia: add test for vmar syscall descriptionsLaura Peskin2022-11-172-5/+63
| | | | | | | | | | | Also made some small updates to the vmar descriptions: - In a few places, a `len` arg was incorrectly tagged as the length of another arg when it actually represents a region size; fixed. - The `buffer` and `buffer_size` args to `zx_vmar_op_range` must be null; replaced with constants. - Added a `zx_vaddr` resource type wrapping `intptr` and used it in place of `vma`, since it's not clear how to use `vma` as the pointee type of an outptr in a program.
* sys/fuchsia: add test for job syscallsLaura Peskin2022-11-152-2/+48
| | | | | | | This change also makes a couple of small updates to job.txt: - Express the documented limit of 1 policy struct when using the TIMER_SLACK option to set policy - Include padding in policy struct definition
* sys/fuchsia: fix date in vmar copyright headerLaura Peskin2022-11-081-1/+1
|
* sys/fuchsia: update vmar syscall definitionsLaura Peskin2022-11-073-28/+93
|
* sys/fuchsia: rename vmars.txt -> vmar.txtLaura Peskin2022-11-073-0/+0
|
* sys/fuchsia: rename timers.txt -> timer.txtLaura Peskin2022-11-073-0/+2
|
* sys/fuchsia: move and update cprng syscall definitionsLaura Peskin2022-11-074-3/+14
|
* sys/fuchsia: update guest syscalls definitionsAnge Albertini2022-11-035-5/+25
|
* sys/fuchsia: updated interrupt syscalls definitionsAnge Albertini2022-11-033-3/+26
|
* sys/fuchsia: updated iommu syscall definitionAnge Albertini2022-11-031-1/+1
|
* sys/fuchsia: add definitions for pager syscallsLaura Peskin2022-11-033-0/+31
|
* sys/fuchsia: update system syscall definitionsLaura Peskin2022-11-034-9/+96
| | | | | | | | | - `zx_system_get_version` is deprecated in favor of `zx_system_get_version_string`. - ARM-only feature options are replaced with cross- arch options. - All syscalls from `system.fidl` are now defined in `system.txt`.
* sys/fuchsia: updated object syscalls definitionsAnge Albertini2022-11-023-30/+54
|
* sys/fuchsia: move zx_rights definition and add compound rights constsLaura Peskin2022-11-024-4/+68
|
* sys/fuchsia: fixed copyright headerAnge Albertini2022-11-011-1/+1
|
* sys/fuchsia: updated cache syscalls definitionsAnge Albertini2022-11-014-9/+11
|
* sys/fuchsia: minor debuglog updateAnge Albertini2022-10-311-4/+2
|
* sys/fuchsia: updated misc syscalls definitionsAnge Albertini2022-10-311-1/+2
|
* sys/fuchsia: updated fifo syzkaller definitionsAnge Albertini2022-10-311-1/+1
|
* sys/fuchsia: updated job syscalls definitionsAnge Albertini2022-10-315-42/+93
|
* sys/fuchsia: updated msi syscalls definitionsAnge Albertini2022-10-311-3/+2
|
* sys/fuchsia: define the framebuffer system calls (#3472)Chris Palmer2022-10-261-0/+8
| | | Co-authored-by: Chris Palmer <palmer@google.com>
* sys/fuchsia: updated channel syscall definitionsAnge Albertini2022-10-254-26/+56
|
* sys/fuchsia: added exception syscalls definitions (#3449)Ange Albertini2022-10-212-1/+12
| | | | | | | | | * sys/fuchsia: removed obsolete comment * sys/fuchsia: added exception syscalls definitions * sys/fuchsia: disabled exception types * sys/fuchsia: refined exception handle types
* sys/fuchsia: reland bti, iommu, pmt syscallsChris Palmer2022-10-173-0/+39
|
* sys/fuchsia: fix object typo (#3447)Ange Albertini2022-10-171-1/+1
|
* sys/fuchsia: rename objects to object (#3445)Chris Palmer2022-10-173-0/+2
| | | Co-authored-by: Chris Palmer <palmer@google.com>
* sys/fuchsia: update objects syscallsAnge Albertini2022-10-143-3/+97
|
* sys/fuchsia: update objects and profile syscall definitionsAnge Albertini2022-10-132-3/+5
|
* sys/fuchsia: update the job syscall definitionsChris Palmer2022-10-121-0/+5
|
* sys/fuchsia: fixed profile syscalls definitionsAnge Albertini2022-10-111-5/+6
|
* sys/fuchsia: add the profile syscalls definitionsAnge Albertini2022-10-111-0/+16
|
* sys/fuchsia: update the port system calls (#3348)Marco Vanotti2022-08-316-20/+72
| | | | | Also adds a test for zx_port_* Co-authored-by: Aaron Green <aarongreen@google.com>
* sys/fuchsia: update event and eventpair system calls (#3320)Chris Palmer2022-08-294-2/+17
| | | | | events.txt is split between event.txt and eventpair.txt Co-authored-by: Aaron Green <aarongreen@google.com>
* sys/fuchsia: update the socket system calls (#3288)Ange Albertini2022-08-291-4/+4
|
* sys/fuchsia: add the pc syscalls definitions (#3299)Ange Albertini2022-08-291-0/+10
|
* sys/fuchsia: add the restricted syscalls definitions (#3300)Ange Albertini2022-08-291-0/+7
|
* sys/fuchsia: add the debug syscalls definitions (#3301)Ange Albertini2022-08-291-0/+10
| | | | | * sys/fuchsia: add the debug syscalls definitions * sys/fuchsia: update debug.txt
* sys/fuchsia: add the debuglog syscalls definitions (#3302)Ange Albertini2022-08-292-14/+16
| | | | | | | | | * sys/fuchsia: add the debuglog syscalls definitions * sys/fuchsia: correct data and length declarations * sys/fuchsia: update the debuglog definitions * sys/fuchsia: remove log.txt
* all: revert "sys/fuchsia: update system calls for bti, cache, iommu, pmt, ↵Aleksandr Nogikh2022-08-237-71/+17
| | | | | | | | | | | and process (#3321)" This has broken our CI tests: fatal error: 'lib/ddk/driver.h' file not found That's indeed an error and it needs to be fixed, but for now it just stops syzkaller development.
* sys/fuchsia: update system calls for bti, cache, iommu, pmt, and process (#3321)Nick Cano2022-08-187-17/+71
| | | Co-authored-by: Nick Cano <nickcano@google.com>
* sys/fuchsia: fix for clock system calls (#3322)Dzmitry2022-08-171-1/+2
|
* sys/fuchsia: update vcpu system calls (#3307)Marina Ciocea2022-08-171-0/+14
| | | Co-authored-by: Marina Ciocea <marinaciocea@google.com>