aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/host/syscalls_linux.go
Commit message (Collapse)AuthorAgeFilesLines
* prog: introduce Field typeDmitry Vyukov2020-05-021-10/+10
| | | | | | | | | | | | | Remvoe FieldName from Type and add a separate Field type that holds field name. Use Field for struct fields, union options and syscalls arguments, only these really have names. Reduces size of sys/linux/gen/amd64.go from 5665583 to 5201321 (-8.2%). Allows to not create new type for squashed any pointer. But main advantages will follow, e.g. removing StructDesc, using TypeRef in Arg, etc. Update #1580
* prog: rename {PtrType,ArrayType}.Type to ElemDmitry Vyukov2020-05-011-1/+1
| | | | | | | Name "Type" is confusing when referring to pointer/array element type. Frequently there are too many Type/typ/typ1/t and typ.Type is not very informative. It _is_ a type, but what's usually more relevant is that it's an _element_ type. Let's leave type checking to compiler and give it a more meaningful name.
* csource, executor: add usb emulation featureAndrey Konovalov2020-04-031-2/+2
| | | | | | | | | The feature gets enabled when /dev/raw-gadget is present and accessible. With this feature enabled, executor will do chmod 0666 /dev/raw-gadget on startup, which makes it possible to do USB fuzzing in setuid and namespace sandboxes. There should be no backwards compatibility issues with syz reproducers that don't explicitly enable this feature, as they currently only work in none sandbox.
* sys/linux: don't use syz_open_dev when openat is enoughDmitry Vyukov2020-03-241-1/+3
|
* executor, sys/linux: add ath9k usb descriptionsAndrey Konovalov2020-03-131-1/+2
| | | | | | | Among other things this changes timeout for USB programs from 2 to 3 seconds. ath9k fuzzing also requires ath9k firmware to be present, so system images need to be regenerated with the updated script.
* pkg/host: fix detection of enabled LSMsDmitry Vyukov2020-01-051-1/+5
| | | | securityfs may not be mounted, but it does not mean that no LSMs are enabled.
* pkg/host: detect unsupported LSMsDmitry Vyukov2020-01-051-0/+31
|
* Implement basic support for MIPS64LEJouni Hogander2019-12-171-0/+2
| | | | | | | | | Add basic stuff to enable MIPS64ELR2 target: - build - make extract - make generate - qemu execution - system call parsing from /proc/kallsyms
* pkg/host: rename some featuresDmitry Vyukov2019-11-161-1/+1
| | | | | Rename some features in preparation for subsequent changes which will align names across the code base.
* pkg/host: split files into syscalls/featuresDmitry Vyukov2019-11-161-0/+375
pkg/host does 2 things: detects supported syscalls and supported features. There is enough code for each for a separate file.