aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/test.txt
Commit message (Collapse)AuthorAgeFilesLines
* sys: move test syscalls to a separate targetDmitry Vyukov2017-12-171-547/+0
| | | | | | We have them in linux solely for historical reasons. Fixes #462
* prog: fix hints of data argsDmitry Vyukov2017-12-081-0/+4
| | | | | | | | | | | | Hints for data args don't work. We do all the work, but at the final stage we patch arg in the _old_ program, not in the _new_ one. So programs passed to the callback are all the same and don't contain any mutations. Tests did not catch this because they work right before that point (don't test the actual interface function MutateWithHints). Fix that and add a test that catches this.
* prog: support bytesizeN for vmaDmitry Vyukov2017-11-291-1/+1
| | | | | | I guess this is currently unused, but ignoring bytesizeN for vma looks wrong. If user asks for bytesizeN for vma, divide vma size by N.
* prog: repair arrays/buffers with incorrect size in DeserializeDmitry Vyukov2017-11-281-0/+8
| | | | | | | | | | | | | For string[N] we successfully deserialize a string of any length. Similarly for a fixed-size array[T, N] we successfully deserialize an array of any size. Such programs later crash in foreachSubargOffset because static size Type.Size() does not match what we've calculated iterating over fields. The crash happens only in SerializeForExec in syz-fuzzer, which is especially bad. Fix this from both sides: 1. Validate sizes of arrays/buffers in Validate. 2. Repair incorrect sizes in Deserialize.
* sys: move linux descriptions to sys/linuxDmitry Vyukov2017-09-151-0/+535