aboutsummaryrefslogtreecommitdiffstats
path: root/sys/test/exec.txt
Commit message (Collapse)AuthorAgeFilesLines
* pkg/compiler: add out_overlay field attributeDmitry Vyukov2022-01-111-35/+75
|
* sys/test/test: add a hanging testDmitry Vyukov2020-09-121-0/+1
| | | | Ensure that we can handle hanging syscalls in all modes.
* pkg/compiler: fix crash on fmt[flags]Dmitry Vyukov2020-07-231-0/+6
| | | | | | | Flags with only 1 value 0 are transformed to ConstType. Fmt did not expect that. Fixes #1965
* pkg/compiler: refactor attribute handlingDmitry Vyukov2020-04-191-3/+3
| | | | | | | | | | | | Introduce common infrastructure for describing and parsing attribute instead of custom per-attribute code scattered across several locations. Change align attribute syntax from the weird align_N to align[N]. This also allows to use literal constants as N. Introduce notion of builtin constants. Currently we have only PTR_SIZE, which is needed to replace align_ptr with align[PTR_SIZE].
* sys/linux: fix 2 netlink data layout bugsDmitry Vyukov2020-01-071-0/+33
| | | | | | | | | | | 1. Turns out that NLA_F_NESTED is actually used and checked (nla_parse_nested checks it, while nla_parse_nested_deprecated does not). Similarly, ipset extensively checks NLA_F_NET_BYTEORDER. So we need these bits. 2. nla_len must not account for the trailing alighnment padding. This means we set wrong len for payloads that are not multiple of 4 (int8/int16/strings/arrays/some structs/etc).
* pkg/compiler: fix another bitfield layout bugDmitry Vyukov2020-01-071-0/+10
| | | | See the added test for details.
* sys/test: and another set of bitfield testsDmitry Vyukov2019-12-201-0/+79
| | | | | | Just trying to get my head around it (and fix this in tests). Update #1542
* sys/test: and another bitfield testDmitry Vyukov2019-12-191-0/+7
| | | | | | Just trying to get my head around it (and fix this in tests). Update #1542
* sys/test: add few other tests for tricky bitfieldsDmitry Vyukov2019-12-181-0/+33
| | | | Update #1542
* sys/test: add more tests for bitfieldsDmitry Vyukov2019-12-131-0/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add tests for issue #1542 The correct results are obtained with the following program: struct foo { unsigned char f0; unsigned int f1:4; unsigned short f2:4; }; struct bar { char f0; struct foo foo; }; int main() { struct bar y; memset(&y, 0, sizeof(y)); y.f0 = 0x12; y.foo.f0 = 0x34; y.foo.f1 = 0x56; y.foo.f2 = 0x78; int i; for (i = 0; i < sizeof(y); i++) printf("%02x", ((unsigned char*)&y)[i]); printf("\n"); }
* sys/test/test: add tests for test exiting in the middle of executionDmitry Vyukov2019-01-311-0/+1
|
* pkg/csource: use 0 for missing syscall argsDmitry Vyukov2018-12-271-0/+3
| | | | | | | | | | | | | | We don't specify trailing unused args for some syscalls (e.g. ioctl that does not use its arg). Executor always filled tailing unsed args with 0's but pkg/csource didn't. Some such syscalls actually check that the unsed arg is 0 and as the result failed with C repro. We could statically check and eliminate all such cases, but it turns out the warning fires in 1500+ cases: https://gist.githubusercontent.com/dvyukov/e59ba1d9a211ee32fa0ba94fab86a943/raw/a3ace5a63f7281f0298f51ea9842ead1e4713418/gistfile1.txt So instead fill such args with 0's in pkg/csource too.
* prog, pkg/csource: more readable serialization for stringsDmitry Vyukov2018-12-151-1/+4
| | | | | | | Always serialize strings in readable format (non-hex). Serialize binary data in readable format in more cases. Fixes #792
* executor: fix handling of big-endian bitfieldsDmitry Vyukov2018-12-081-0/+4
| | | | | Currently we apply big-endian-ness and bitfield-ness in the wrong order in copyin. This leads to totally bogus result. Fix this.
* sys/test: add more testsDmitry Vyukov2018-08-031-0/+18
Add syz_errno syscall which sets errno to the argument, and add a test with different errno values. This mostly tests the testing infrastructure itself. Add syz_compare syscall which compare two blobs, this can be used for testing of argument memory layout. Implement syz_mmap and fix Makefile to allow building syz-execprog for test OS. Useful for debugging. Update #603