Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1515989
| From | Cyril Hrubis <chrubis@suse.cz> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: Formal description of system call interface |
| Date | 2016-11-07 11:40 +0100 |
| Message-ID | <sAPvj-1Se-11@gated-at.bofh.it> (permalink) |
| References | <sAEqd-308-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi! > We identified a surprisingly large number of potential users for such > descriptions: > - fuzzers (syzkaller, trinity, iknowthis) > - strace/syscall tracepoints (capturing indirect arguments and > printing human-readable info) > - generation of entry points for C libraries (glibc, liblinux > (raw syscalls), Go runtime, clang/gcc sanitizers) > - valgrind/sanitizers checking of input/output values of syscalls > - seccomp filters (minijail, libseccomp) need to know interfaces > to generate wrappers > - safety certification (requires syscall specifications) > - man pages (could provide actual syscall interface rather than > glibc wrapper interface, it was noted that possible errno values > is an important part here) > - generation of syscall argument validation in kernel (fast version > is enabled all the time, extended is optional) I was thinking of generating LTP testcases from a well defined format for quite some time. Maybe that would be a good way how to keep the descriptions to match the reality. LTP test would however need a bit more information that just syscall parameter anotation. We would need also description of the expected return value in some cases, annotating it as "returns fd" or "zero on success" would be good enough for basic tests. Better testing would need to describe the "side efect" as well (file was created, filesystem mounted, etc.) then we could write a classes of verify functions, something as check_file_exits() and use them to check the results accordingly. I'm not sure if something like this is really doable or in the scope of this project, but it may be worth a try. -- Cyril Hrubis chrubis@suse.cz
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Formal description of system call interface Dmitry Vyukov <dvyukov@google.com> - 2016-11-06 23:50 +0100 Re: Formal description of system call interface Szabolcs Nagy <nsz@port70.net> - 2016-11-07 01:40 +0100 Re: Formal description of system call interface Cyril Hrubis <chrubis@suse.cz> - 2016-11-07 11:40 +0100 Re: Formal description of system call interface Andy Lutomirski <luto@amacapital.net> - 2016-11-11 18:20 +0100
csiph-web