summaryrefslogtreecommitdiff
path: root/usr.bin/kdump
AgeCommit message (Collapse)Author
2022-09-08Support the sendmmsg and recvmmsg system calls.Moritz Buhl
Input guenther@ OK bluhm@
2022-07-30we mention interim BSD releases so change some 4.4BSD use to 4.3BSD-RenoJonathan Gray
ok jmc@ schwarze@
2022-07-20the _pad_ system calls from 2021/12/23 can go awayTheo de Raadt
ok guenther
2022-02-22MAXCOMLEN is no longer needed in these programs, so remove the annotationTheo de Raadt
from sys/param.h include lines, or remove the include lines entirely if it this was the least requirement. ok millert
2022-02-22Since ktr_comm is now a string, we do not need MAXCOMLEN to limit printf.Theo de Raadt
And thus, sys/param.h is not needed either. ok millert
2022-02-22repair sys/param.h namespace listTheo de Raadt
2022-02-22need a local nitems() definitionTheo de Raadt
2021-12-23Roll the syscalls that have an off_t argument to remove the explicit padding.Philip Guenther
Switch libc and ld.so to the generic stubs for these calls. WARNING: reboot to updated kernel before installing libc or ld.so! Time for a story... When gcc (back in 1.x days) first implemented long long, it didn't (always) pass 64bit arguments in 'aligned' registers/stack slots, with the result that argument offsets didn't match structure offsets. This affected the nine system calls that pass off_t arguments: ftruncate lseek mmap mquery pread preadv pwrite pwritev truncate To avoid having to do custom ASM wrappers for those, BSD put an explicit pad argument in so that the off_t argument would always start on a even slot and thus be naturally aligned. Thus those odd wrappers in lib/libc/sys/ that use __syscall() and pass an extra '0' argument. The ABIs for different CPUs eventually settled how things should be passed on each and gcc 2.x followed them. The only arch now where it helps is landisk, which needs to skip the last argument register if it would be the first half of a 64bit argument. So: add new syscalls without the pad argument and on landisk do that skipping directly in the syscall handler in the kernel. Keep compat support for the existing syscalls long enough for the transition. ok deraadt@
2021-09-17sys/param.h is only needed for MAXCOMLEN, but a few header filesTheo de Raadt
which must be manually included in userland were missing
2021-09-17the ioctl table generation does not require sys/param.hTheo de Raadt
2021-07-12Change the error reporting pattern throughout the tree when unveilBob Beck
fails to report the path that the failure occured on. Suggested by deraadt@ after some tech discussion. Work done and verified by Ashton Fagg <ashton@fagg.id.au> ok deraadt@ semarie@ claudio@
2020-12-21Show scope id when set; ok florian@Otto Moerbeek
2020-06-22plug the wireguard ioctls in.David Gwynne
2020-04-05Do not assume futex(2) is always returning an errno value.Martin Pieuchot
In the case of FUTEX_WAKE a number of woken threads is returned. ok guenther@
2020-04-05Declare pledgenames[] as const.Visa Hankala
OK deraadt@
2020-01-18kdump(1): give timestamp types real names; ok schwarze@cheloha
2019-11-27use _PATH_PROTOCOLS from netdb.h insteadTheo de Raadt
2019-11-26kdump reads /etc/protocols to translate proto numbers into names; ok sthen@ ↵Otto Moerbeek
gilles@
2019-05-15improve wrong markup and poor wording regarding the -t argumentIngo Schwarze
that was spotted by deraadt@; OK deraadt@ jmc@
2019-04-14path to i915_drm.h has changedJonathan Gray
2019-01-11mincore() is a relic from the past, exposing physical machine informationTheo de Raadt
about shared resources which no program should see. only a few pieces of software use it, generally poorly thought out. they are being fixed, so mincore() can be deleted. ok guenther tedu jca sthen, others
2018-12-12allow reading from stdin with -f -.Ted Unangst
ok kn
2018-11-17Be more careful when dumping cmsghdr struct. In the SCM_RIGHTS case anClaudio Jeker
extra check for a truncated cmsghdr needs to be done since the embeded lenght may be longer than the supplied buffer (MSG_CTRUNC case). OK deraadt@
2018-11-08Peldge and unveil can have struct data size 0. While there, fix "fds"Otto Moerbeek
handler; ok guenther@
2018-11-05trace struct flock; ok visa@anton
2018-10-21futex(2) returns an errno value to decodePhilip Guenther
ok otto@
2018-08-29recognize kcov ioctl commands; ok deraadt@ mpi@ visa@anton
2018-08-11the only fs access kdump(1) needs is to the tracefile which by default isRicardo Mestre
ktrace.out unless argument -f is used. We can just unveil(2) that file with read permissions before the pledge(2) call. OK deraadt@
2018-07-13Unveiling unveil(2).Bob Beck
This brings unveil into the tree, disabled by default - Currently this will return EPERM on all attempts to use it until we are fully certain it is ready for people to start using, but this now allows for others to do more tweaking and experimentation. Still needs to send the unveil's across forks and execs before fully enabling. Many thanks to robert@ and deraadt@ for extensive testing. ok deraadt@
2018-02-14Zero as (un)mount flag is valid; ok millert@Otto Moerbeek
2018-02-11fix madvise(2) flags matching; ok deraadt@ tom@Otto Moerbeek
2017-12-12pledge()'s 2nd argument becomes char *execpromises, which becomes theTheo de Raadt
pledge for a new execve image immediately upon start. Also introduces "error" which makes violations return -1 ENOSYS instead of killing the program ("error" may not be handed to a setuid/setgid program, which may be missing/ignoring syscall return values and would continue with inconsistant state) Discussion with many florian has used this to improve the strictness of a daemon
2017-11-29fcntl(F_GETOWN) doesn't have an argument, so don't display it. WhilePhilip Guenther
here, make it easier to extend the set of such fcntl() commands ok deraadt@
2017-11-28Need to remove fktrace here tooPhilip Guenther
Noted by Andreas Kusalananda Kähäri (andreas.kahari(at)icm.uu.se)
2017-10-07Format fktrace(2) argumentsPhilip Guenther
ok millert@
2017-10-07Delete pointless casts from void*Philip Guenther
ok otto@ millert@
2017-07-29Goodbye, sys/dkbad.h, you lost your last friend when sparc was removed.Vadim Zhukov
Spotted and diff provided by Andrey Bolkonskiy <andrey0bolkonsky@gmail.com>, thanks! okay deraadt@
2017-05-29zap scanio.h, found by deraadtTed Unangst
2017-04-28Display futex(2) operations and arguments.Martin Pieuchot
2016-10-08Add ktracing of the fds returned by pipe() and socketpair()Philip Guenther
ok deraadt@
2016-08-26Pull in <sys/select.h> for fd_setPhilip Guenther
ok deraadt@
2016-07-18Add 'p' trace point for KTRFAC_PLEDGE, as noted byPhilip Guenther
Michal Mazurek <akfaew@jasminek.net> While here, fix handling of -t+ in ltrace.
2016-06-07ktrace support for pollfd[] arraysTheo de Raadt
ok guenther
2016-06-07add a hack to avoid printing the long string format for times in the 70s.Ted Unangst
this is usually a result of a timestamp which hasn't been identified as "relative" and decoding them to precise dates long in the past is a distraction. (eagerly awaiting a cleaner, better diff to do the same.)
2016-06-02allow printing timestamps relative to beginnging of trace, -RT. ok bennoTed Unangst
2016-05-22On hppa, function pointer comparison can require dereferencing them.Philip Guenther
kdump can't do that for a sigaction sa_handler pointer from the trace, so cast to void* to suppress it. ok deraadt@
2016-04-25remove systrace supportTed Unangst
2016-03-30Handle error return by SYS_getlogin_r and SYS___thrsleep correct, andPhilip Guenther
parse args of SYS_getlogin_r
2016-03-24Display NAMI records and AF_UNIX socket paths with vis, usingPhilip Guenther
VIS_CSTYLE | VIS_DQ | VIS_TAB | VIS_NL; add the latter three flags to the existing vis encoding of exec argv/environ and pledge requests/paths. Delete local variables left unused when showbuf() and showbufc() were split ok otto@ millert@
2016-03-22Format the flags argument to sendsyslog()Philip Guenther
ok deraadt@ bluhm@