Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-09-13 | Rename __sysctl syscall to just sysctl, as the userland wrapper is no longer | Philip Guenther | |
necessary ok deraadt@ jsing@ | |||
2015-09-11 | add some missing .Cm macros and drop some redundant .Bk while here | Ingo Schwarze | |
2015-09-07 | Delete ktracing of context switches: it's unused, and not particularly useful, | Philip Guenther | |
and doing VOP_WRITE() from inside tsleep/msleep makes the locking too complicated, making it harder to move forward on MP changes. ok deraadt@ kettenis@ | |||
2015-07-28 | Add ktracing of structs iovec, msghdr, and cmsghdr for {,p}{read,write}v(), | Philip Guenther | |
sendmsg(), and recvmsg(). For cmsghdr, the len, level, and type are always shown, and for SOL_SOCKET,SCM_RIGHTS the fd numbers being passed are shown. ok millert@ deraadt@ | |||
2015-07-19 | Make KTR_SYSRET records variables variables sized, leaving out the | Philip Guenther | |
retval on error, including a long long retval on successful lseek(), and including a register_t retval for other successes. This fixes lseek reporting on ILP32 archs. While here, reworking internal kern_ktrace.c bits to be able to pass two buffers to ktrwriteraw(), so we can avoid mallocing a buffer in some cases and so that KTR_GENIO logs are split at PAGE_SIZE, not PAGE_SIZE-sizeof(struct ktrgenio) ok miod@ | |||
2015-07-19 | Figure out the tty width using TIOCGWINSZ early on. Will make tame(2) | Theo de Raadt | |
integration easier in the future. | |||
2015-05-17 | isatty() is used by stdio to determine the buffering mode. Add a F_ISATTY | Theo de Raadt | |
option to fcntl(), so that isatty() can use this rather than than the bloated ioctl() interface. Reducing uses of ioctl() by libc makes it easier to constrain programs with various kinds of systrace sandboxes. ok guenther, previously discussed as a concept with nicm | |||
2015-04-18 | Convert many atoi() calls to strtonum(), adding range checks and failure | Theo de Raadt | |
handling along the way. Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert | |||
2015-04-17 | oops, started expecting sockoptlevelname() to handle two arguments | Philip Guenther | |
but never actually did so. Fix that so that we stop losing the second argument to {get,set}sockopt(). Handling of levels other than SOL_SOCKET could be improved. | |||
2015-04-17 | The first argument to socket/socketpair is an address family, not a protocol | Philip Guenther | |
family. (sysctl(3) is practically the only place where PF_* is correct) | |||
2015-01-26 | Oops: symlinkat()'s 'atfd' argument is its second, not its first | Philip Guenther | |
2015-01-18 | Eliminate a gcc warnings by not #defining _KERNEL when pulling in | Philip Guenther | |
<sys/socket.h>: it doesn't expose anything kdump cares about. Also, COMPAT_43 is dead warning noted by deraadt@ | |||
2015-01-16 | Replace <sys/param.h> with <limits.h> and other less dirty headers where | Theo de Raadt | |
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol) | |||
2014-12-28 | With revision 1.93 a space character got lost when printing the | Alexander Bluhm | |
signal action. Print the space again. OK jsg@ | |||
2014-12-16 | Don't display formatted time if localtime() fails. | Jonathan Gray | |
Avoids a crash in strftime() found with the afl fuzzer. ok guenther@ | |||
2014-12-15 | remove -r from usage(); | Jason McIntyre | |
2014-12-15 | Eliminate the -r option and always do sysctl OID, username, groupname, | Philip Guenther | |
and ctime presentation, but combined with the numeric form ala 0<"root">. Do username and groupname presentation on syscall arguments and retvals. ok millert@ otto@ | |||
2014-12-11 | Make quotactlcmd formatting consistent with others | Philip Guenther | |
Fix some indentation in the generated .c file | |||
2014-12-09 | Add some additional sanity checks to kdump. | Jonathan Gray | |
Fixes a variety of crashes found with the afl fuzzer. ok miod@ on an earlier version. | |||
2014-12-08 | Convert syscall argument handling from a giant switch to a giant table. | Philip Guenther | |
While at it, use formatters for fds, counts, ids of all types, and "small buffer sizes" that always show them in decimal, while paths, pointers, and "big buffer sizes" get formatters that always show them in hex. The -d option only affects args when the -n option is used or for unknown syscalls, as well as syscall return values, and unrecognized ioctls. ok otto@ millert@ | |||
2014-11-20 | Be more POSIXy by using blksize_t (a.k.a. int32) for st_blksize, rather than ↵ | Kenneth R Westerback | |
the current uint32_t. ok guenther@ deraadt@ | |||
2014-10-13 | Add dumping of struct dqblk done by quotactl(2) | Philip Guenther | |
ok millert@ | |||
2014-10-08 | userland reallocarray audit. | Doug Hogan | |
Replace malloc() and realloc() calls that may have integer overflow in the multiplication of the arguments with reallocarray(). ok deraadt@ | |||
2014-09-17 | Add display of the flags to pipe2, dup3, and accept4, display of | Philip Guenther | |
MSG_CMSG_CLOEXEC in recvmsg, and display of SOCK_{CLOEXEC,NONBLOCK} in socket and socketpair. Do _not_ display the O_ACCMODE bits in the arg to fcntl(F_SETFD) ok miod@ | |||
2014-08-20 | Remove userland bits related to the crypto(4) interface; ok deraadt | Mike Belopuhov | |
2014-08-18 | Add fancy printing of ktrace()'s ops argument | Philip Guenther | |
mquery() has the exact same argument layout as mmap(), so share the case Fix a couple brace placement glitches | |||
2014-08-17 | Use %#o instead of %#x for mode_t | Philip Guenther | |
2014-08-17 | Display symbolicly the mode argument of mkdir, mkfifo, mknod, and umask | Philip Guenther | |
2014-07-11 | remove (commented) bluetooth reference | Ted Unangst | |
2014-07-11 | Grok the new /dev/klog LIOCSFD ioctl associated with sendsyslog(2) | Theo de Raadt | |
ok matthew guenther miod tedu | |||
2014-07-02 | properly process minherit(2) flags; ok guenther@ matthew@ | Otto Moerbeek | |
2014-06-27 | Cleanup support for legacy mmap flags | Matthew Dempsky | |
Move all legacy MAP_FOO values behind #ifndef _KERNEL and redefine them to either be aliases for existing flags (e.g., MAP_COPY -> MAP_PRIVATE) or 0. Also, add MAP_OLDFOO defines (behind #ifndef _KERNEL) so the kernel and kdump can remain compatible with current OpenBSD binaries. ok deraadt | |||
2014-06-22 | Negative time{spec,val}s with non-zero subsecond parts require extra | Philip Guenther | |
handling. E.g., a timeval of { -1, 1 } is -0.999999, as the subsecond part is always positive. Also, update the list of sockaddr_* types that we might add support for | |||
2014-03-18 | <sys/agpio.h> is gone; pointed out by Benoit Lecocq. | Mark Kettenis | |
2014-01-24 | exit1() needs to do a final aggregation of the thread's [us]ticks | Philip Guenther | |
and runtime to the process totals. Also, add ktracing of struct rusage in wait4() and getrusage(). problem pointed out by tedu@ ok deraadt@ | |||
2013-12-21 | Recognize itimer and ktrace facility names to {get,set}itimer() and ktrace() | Philip Guenther | |
ok otto@ | |||
2013-12-21 | Refer to the kernel headers consistently via ../../sys, even for mkioctl | Philip Guenther | |
and mksubr ok otto@ | |||
2013-12-13 | 4.3BSD tty compatibility and the associated ioctls are gone | Christian Weisgerber | |
2013-11-22 | Teach kdump(1) about USB, VIDIOC and generic DRM ioctls. | Martin Pieuchot | |
ok deraadt@, guenther@ | |||
2013-09-09 | Recognize the UTIME_OMIT and UTIME_NOW values when printing timespecs | Philip Guenther | |
ok otto@ | |||
2013-09-09 | Rename the 'pid' global to eliminate compiler warnings about shadowing | Philip Guenther | |
ok otto@ | |||
2013-08-22 | Split out from kdump.c the ktrstruct.c bits into ktrstruct.c | Philip Guenther | |
Reduce the #includes to take advantage of that. ok millert@ otto@ | |||
2013-07-16 | Tighten the pattern for matching ioctl definitions in header files and | Philip Guenther | |
recognize the PTMGET ioctl() ok millert@ (earlier version ok otto@) | |||
2013-07-04 | add some missing prototypes; ok guenther@ | Otto Moerbeek | |
2013-07-03 | For consistency, move the functions that aren't generated at build-time | Philip Guenther | |
from mksubr to kdump.c ok otto@ millert@ | |||
2013-07-03 | Use WAIT_* for the first argument to wait4(), and otherwise treat it (and | Philip Guenther | |
the first argument to kill) as signed 32bit ints. ok millert@ otto@ | |||
2013-07-01 | Tweak regexp so that RUSAGE_CHILDREN will be matched and displayed | Philip Guenther | |
2013-06-17 | Add support for the _POSIX_CPUTIME and _POSIX_THREAD_CPUTIME options, | Philip Guenther | |
including CLOCK_{PROCESS,THREAD}_CPUTIME_ID constants and {clock,pthread}_getcpuclockid() functions. Worked out at t2k13 with help from tedu@ and matthew@ and testing by aja@ ok matthew@ | |||
2013-06-01 | Userland bits for utrace record handling; from otto@ | Miod Vallat | |
2013-04-23 | simple large ino_t handling | Theo de Raadt | |