summaryrefslogtreecommitdiff
path: root/usr.bin/kdump
AgeCommit message (Collapse)Author
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@
2016-03-21Handle kbind()'s third argument correctlyPhilip Guenther
2016-03-13Recognize ipmi, vscsi, pvbus, udl, fuse, trunk, pipex and memrangenatano
ioctl requests.
2016-03-06Improve display of unknown and KTR_START recordsPhilip Guenther
request and ok naddy@
2016-03-06No more compat emulations, so remove ktrace EMUL records and the baggagePhilip Guenther
for generating and parsing them. ok mpi@ naddy@ millert@ deraadt@
2016-03-05Make the fd_set* passed to FD_ISSET() non-const: the non-macro version isPhilip Guenther
stricter (per POSIX, dang it)
2016-02-28drop the support for Linux emulation; ok guenther@ visa@Christian Weisgerber
2016-02-28Support for running Linux binaries under emulation is going away.Christian Weisgerber
Remove "option COMPAT_LINUX" and everything directly tied to it from the kernel and the corresponding man page documentation. ok visa@ guenther@
2016-02-26there is no emulation "bsd", our default is "native"; ok deraadt@ millert@Christian Weisgerber
2016-01-14Display struct event more like other structs: show all members and use cppPhilip Guenther
define names. Use the mksubr infrastructure for EVFILT_*, EV_*, and (with some kludging) NOTE_* values. If EV_ERROR is set, include the errno string for the data member. Also, do MSG_* parsing on the msg_flags member of struct msghdr. ok millert@
2016-01-06print more info about keventTed Unangst
2016-01-05include all i915 drm ioctls on top of the common drm onesRobert Nagy
ok deraadt@, kettenos@, guenther@
2015-12-25very basic kevent printingTed Unangst
2015-11-10Split the intra-thread functionality from kill(2) into its own syscallPhilip Guenther
thrkill(2), rolling the kill(2) syscall number with the ABI change to avoid breaking binaries during during the transition. thrkill(2) includes a 'tcb' argument that eliminates the need for locking in pthread_kill() and simplifies pthread_cancel(). Switch __stack_smash_handler() to use thrkill(2) and explicitly unblock SIGABRT. Minor bump to both libc and libpthread: make sure you install a new kernel! ok semarie@
2015-10-28remove knowledge of dnssocket/dnsconnectTheo de Raadt
2015-10-26If the system call is entirely unpermitted, code will be 0, and there isTheo de Raadt
no pledge to recommend.
2015-10-25Fold "malloc" into "stdio" and -- recognizing that no program so far hasTheo de Raadt
used less than "stdio" -- include all the "self" operations. Instead of different defines, use regular PLEDGE_* in the "p_pledgenote" variable (which indicates the operation subtype a system call is performing). Many checks before easier to understand. p_pledgenote can often be passed directly to ktrace, so that kdump says: 15565 test CALL pledge(0xa9a3f804c51,0) 15565 test STRU pledge request="stdio" 15565 test RET pledge 0 15565 test CALL open(0xa9a3f804c57,0x2<O_RDWR>) 15565 test NAMI "/tmp/testfile" 15565 test PLDG open, "wpath", errno 1 Operation not permitted with help from semarie, ok guenther