OpenBSD CVS

CVS log for src/usr.sbin/procmap/procmap.c


[BACK] Up to [local] / src / usr.sbin / procmap

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.72 / (download) - annotate - [select for diffs], Fri Mar 29 06:54:13 2024 UTC (2 months ago) by deraadt
Branch: MAIN
CVS Tags: HEAD
Changes since 1.71: +5 -9 lines
Diff to previous 1.71 (colored)

Stop printing the "syscall" bit related to msyscall(2), since the subsystem
is being deleted.

Revision 1.71 / (download) - annotate - [select for diffs], Thu Nov 10 08:17:53 2022 UTC (18 months, 3 weeks ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.70: +2 -2 lines
Diff to previous 1.70 (colored)

change default output to -a format; ok tb

Revision 1.70 / (download) - annotate - [select for diffs], Fri Oct 7 15:22:10 2022 UTC (19 months, 3 weeks ago) by deraadt
Branch: MAIN
Changes since 1.69: +10 -6 lines
Diff to previous 1.69 (colored)

Show the entry immutable bit in the various output formats.

Revision 1.69 / (download) - annotate - [select for diffs], Tue Feb 22 17:35:01 2022 UTC (2 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.68: +1 -2 lines
Diff to previous 1.68 (colored)

MAXCOMLEN is no longer needed in these programs, so remove the annotation
from sys/param.h include lines, or remove the include lines entirely if
it this was the least requirement.
ok millert

Revision 1.68 / (download) - annotate - [select for diffs], Sun Feb 20 00:09:29 2022 UTC (2 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.67: +2 -1 lines
Diff to previous 1.67 (colored)

sys/proc.h requires sys/signal.h (will become visible when sys/param.h
is removed)

Revision 1.67 / (download) - annotate - [select for diffs], Fri Nov 29 19:56:40 2019 UTC (4 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.66: +2 -2 lines
Diff to previous 1.66 (colored)

correct order of region bits for -a case: rwxSepc

Revision 1.66 / (download) - annotate - [select for diffs], Fri Nov 29 06:34:46 2019 UTC (4 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.65: +19 -9 lines
Diff to previous 1.65 (colored)

Repurpose the "syscalls must be on a writeable page" mechanism to
enforce a new policy: system calls must be in pre-registered regions.
We have discussed more strict checks than this, but none satisfy the
cost/benefit based upon our understanding of attack methods, anyways
let's see what the next iteration looks like.

This is intended to harden (translation: attackers must put extra
effort into attacking) against a mixture of W^X failures and JIT bugs
which allow syscall misinterpretation, especially in environments with
polymorphic-instruction/variable-sized instructions.  It fits in a bit
with libc/libcrypto/ld.so random relink on boot and no-restart-at-crash
behaviour, particularily for remote problems. Less effective once on-host
since someone the libraries can be read.

For static-executables the kernel registers the main program's
PIE-mapped exec section valid, as well as the randomly-placed sigtramp
page.  For dynamic executables ELF ld.so's exec segment is also
labelled valid; ld.so then has enough information to register libc's
exec section as valid via call-once msyscall(2)

For dynamic binaries, we continue to to permit the main program exec
segment because "go" (and potentially a few other applications) have
embedded system calls in the main program.  Hopefully at least go gets
fixed soon.

We declare the concept of embedded syscalls a bad idea for numerous
reasons, as we notice the ecosystem has many of
static-syscall-in-base-binary which are dynamically linked against
libraries which in turn use libc, which contains another set of
syscall stubs.  We've been concerned about adding even one additional
syscall entry point... but go's approach tends to double the entry-point
attack surface.

This was started at a nano-hackathon in Bob Beck's basement 2 weeks
ago during a long discussion with mortimer trying to hide from the SSL
scream-conversations, and finished in more comfortable circumstances
next to a wood-stove at Elk Lakes cabin with UVM scream-conversations.

ok guenther kettenis mortimer, lots of feedback from others
conversations about go with jsing tb sthen

Revision 1.65 / (download) - annotate - [select for diffs], Tue Feb 5 02:17:32 2019 UTC (5 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.64: +5 -5 lines
Diff to previous 1.64 (colored)

dev_t is signed to permit passing -1 as an invalid condition, but the
decomposition into major and minor is unsigned, so we should print them
with %u instead of %d.
ok guenther

Revision 1.64 / (download) - annotate - [select for diffs], Sat Mar 31 17:26:13 2018 UTC (6 years, 2 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.63: +11 -1 lines
Diff to previous 1.63 (colored)

Fix description of -v and implement -v for -a showing holes; ok deraadt@

Revision 1.63 / (download) - annotate - [select for diffs], Fri Sep 16 04:45:35 2016 UTC (7 years, 8 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.62: +31 -16 lines
Diff to previous 1.62 (colored)

procmap fumbles with uvm_map_addr structures, which are now in RBTs

it also does proper traversal of the tree (ie, it does FOREACH)
which in turn uses MIN and NEXT operations to iterate over the whole
tree. theyre complicated and need code.

so for now this pulls in subr_tree.c from the kernel and builds it
as part of procmap. that allows for traversal of the RBT using the
same code that the kernel uses.

it is a bit ugly though because procmap updates the pointers between
items in the tree so they point at local copies instead of kernel
addresses. its made worse because RBT code has pointers between
rb_entry structs, not between the nodes.

im putting this in now to unbreak the tree. it can be polished after
coffee/naps.

Revision 1.62 / (download) - annotate - [select for diffs], Thu May 26 17:23:50 2016 UTC (8 years ago) by stefan
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.61: +70 -4 lines
Diff to previous 1.61 (colored)

Re-introduce vnode-to-filename mapping

The name cache walking code got adapted to the new name cache layout.
Along with the previous commit, procmap is now able to map a vnode
to a filename as long as it is in the name cache.

"nice stuff" deraadt@

Revision 1.61 / (download) - annotate - [select for diffs], Wed May 25 15:45:53 2016 UTC (8 years ago) by stefan
Branch: MAIN
Changes since 1.60: +11 -3 lines
Diff to previous 1.60 (colored)

Must extract uvm_vnode from uvm_object first before reading the vnode

Otherwise procmap interprets the uvm_vnode contents as a vnode,
yielding bogus values. This should cure the
"procmap: invalid address (ffffffffffffffff) == -1 vs. 656 @ ffffffffffffffff"
error messages that appear sporadically.

ok deraadt@

Revision 1.60 / (download) - annotate - [select for diffs], Sat Apr 16 18:39:30 2016 UTC (8 years, 1 month ago) by stefan
Branch: MAIN
Changes since 1.59: +2 -7 lines
Diff to previous 1.59 (colored)

Remove am_maxslot from amap.

am_maxslot represents the total number of slots an amap can be extended
to. Since we do not extend amaps, this field as well as rounding the
number of slots to the next malloc bucket is not useful.

This also removes the corresponding output from procmap(1).

ok kettenis@

Revision 1.59 / (download) - annotate - [select for diffs], Mon Jan 19 19:25:28 2015 UTC (9 years, 4 months ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.58: +4 -2 lines
Diff to previous 1.58 (colored)

Also print the fspace member of map entries when PRINT_VM_MAP_ENTRY is
requested.

ok deraadt@

Revision 1.58 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:19 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
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)

Revision 1.57 / (download) - annotate - [select for diffs], Sun Nov 16 12:31:01 2014 UTC (9 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.56: +20 -20 lines
Diff to previous 1.56 (colored)

Replace a plethora of historical protection options with just
PROT_NONE, PROT_READ, PROT_WRITE, and PROT_EXEC from mman.h.
PROT_MASK is introduced as the one true way of extracting those bits.
Remove UVM_ADV_* wrapper, using the standard names.
ok doug guenther kettenis

Revision 1.56 / (download) - annotate - [select for diffs], Mon Sep 8 01:47:06 2014 UTC (9 years, 8 months ago) by guenther
Branch: MAIN
Changes since 1.55: +1 -2 lines
Diff to previous 1.55 (colored)

Delete procfs; it's always had races and is now unused: no one noticed for
months that I broke it before the 5.5 release.

confirmed as not being required by ports by sthen@, ajacoutot@, dcoppa@

Revision 1.55 / (download) - annotate - [select for diffs], Tue Jul 8 17:19:26 2014 UTC (9 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.54: +4 -1 lines
Diff to previous 1.54 (colored)

decouple struct uvmexp into a new file, so that uvm_extern.h and sysctl.h
don't need to be married.
ok guenther miod beck jsing kettenis

Revision 1.54 / (download) - annotate - [select for diffs], Tue Jul 8 10:15:16 2014 UTC (9 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.53: +1 -4 lines
Diff to previous 1.53 (colored)

There really isn't a strict "heap" anymore, so just call everything like
that an anon.  Useful change since BRKSIZ will soon leave the namespace.
ok kettenis

Revision 1.53 / (download) - annotate - [select for diffs], Tue May 20 01:25:24 2014 UTC (10 years ago) by guenther
Branch: MAIN
Changes since 1.52: +2 -3 lines
Diff to previous 1.52 (colored)

Use errc/warnc to simplify code.
Also, in 'ftp', always put the error message last, after the hostname/ipaddr.

ok jsing@ krw@ millert@

Revision 1.52 / (download) - annotate - [select for diffs], Thu Feb 13 21:17:13 2014 UTC (10 years, 3 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.51: +1 -4 lines
Diff to previous 1.51 (colored)

remove tendrils of namei dumping code

Revision 1.51 / (download) - annotate - [select for diffs], Thu Feb 13 21:07:42 2014 UTC (10 years, 3 months ago) by tedu
Branch: MAIN
Changes since 1.50: +5 -2 lines
Diff to previous 1.50 (colored)

use strtonum

Revision 1.50 / (download) - annotate - [select for diffs], Mon Aug 12 05:41:01 2013 UTC (10 years, 9 months ago) by otto
Branch: MAIN
Changes since 1.49: +4 -3 lines
Diff to previous 1.49 (colored)

get ready for big ino_t; ok gunther@

Revision 1.49 / (download) - annotate - [select for diffs], Tue May 14 20:18:52 2013 UTC (11 years ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.48: +3 -1 lines
Diff to previous 1.48 (colored)

Don't bother printing vm_swrss of a process, the current uvm accounting
logic never sets this value.

Revision 1.48 / (download) - annotate - [select for diffs], Wed Apr 24 14:29:00 2013 UTC (11 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.47: +9 -7 lines
Diff to previous 1.47 (colored)

pretty-print bigger ino_t variables

Revision 1.47 / (download) - annotate - [select for diffs], Sun Apr 21 00:40:08 2013 UTC (11 years, 1 month ago) by tedu
Branch: MAIN
Changes since 1.46: +21 -47 lines
Diff to previous 1.46 (colored)

revert 1.45. it depended on a kernel change we will not be making, and
the old code was cleaner

Revision 1.46 / (download) - annotate - [select for diffs], Tue Mar 26 08:58:00 2013 UTC (11 years, 2 months ago) by tedu
Branch: MAIN
Changes since 1.45: +1 -79 lines
Diff to previous 1.45 (colored)

for the sake of argument, let's pretend this #if 0 code isn't wanted

Revision 1.45 / (download) - annotate - [select for diffs], Sat Mar 23 10:46:04 2013 UTC (11 years, 2 months ago) by tedu
Branch: MAIN
Changes since 1.44: +47 -21 lines
Diff to previous 1.44 (colored)

rework the main loop so we can drop kmem privs a little later,
prepping for a coming kernel change. we need to call sysctl for
all the procs to get their vmspace pointer, then we drop, then
we go grovelling. ok deraadt

Revision 1.44 / (download) - annotate - [select for diffs], Wed Mar 20 15:24:17 2013 UTC (11 years, 2 months ago) by tedu
Branch: MAIN
Changes since 1.43: +1 -4 lines
Diff to previous 1.43 (colored)

revert, that restriction is already enforced the right way

Revision 1.43 / (download) - annotate - [select for diffs], Wed Mar 20 14:53:35 2013 UTC (11 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.42: +4 -1 lines
Diff to previous 1.42 (colored)

Only root can look at the kernel address space.

Revision 1.42 / (download) - annotate - [select for diffs], Wed Jan 16 00:13:23 2013 UTC (11 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.41: +3 -2 lines
Diff to previous 1.41 (colored)

document a safe cast, which should be (unsigned int) instead of simply
(unsigned)

Revision 1.41 / (download) - annotate - [select for diffs], Fri Mar 9 13:02:45 2012 UTC (12 years, 2 months ago) by ariane
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.40: +107 -70 lines
Diff to previous 1.40 (colored)

Userspace counterpart of new vmmap.

Allows memory walks to function.

Revision 1.40 / (download) - annotate - [select for diffs], Mon Jun 6 17:18:26 2011 UTC (12 years, 11 months ago) by ariane
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.39: +70 -107 lines
Diff to previous 1.39 (colored)

Userland counterpart of the vmmap backout; cranks major version of libkvm.

Revision 1.39 / (download) - annotate - [select for diffs], Tue May 24 15:27:36 2011 UTC (13 years ago) by ariane
Branch: MAIN
Changes since 1.38: +107 -70 lines
Diff to previous 1.38 (colored)

Reimplement uvm/uvm_map.

vmmap is designed to perform address space randomized allocations,
without letting fragmentation of the address space go through the roof.

Some highlights:
- kernel address space randomization
- proper implementation of guardpages
- roughly 10% system time reduction during kernel build

Tested by alot of people on tech@ and developers.
Theo's machines are still happy.

Revision 1.38 / (download) - annotate - [select for diffs], Sat Apr 23 01:01:34 2011 UTC (13 years, 1 month ago) by tedu
Branch: MAIN
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)

BRKSIZ is the right constant now, so I don't get lots of teeny tiny heaps
mixed up in my address space.

Revision 1.37 / (download) - annotate - [select for diffs], Sun Apr 10 03:20:59 2011 UTC (13 years, 1 month ago) by guenther
Branch: MAIN
Changes since 1.36: +6 -6 lines
Diff to previous 1.36 (colored)

Switch back from KERN_PROC2/kinfo_proc2 to KERN_PROC/kinfo_proc now
that we've got name we want for the API we want

"ZAP!" deraadt@

Revision 1.36 / (download) - annotate - [select for diffs], Wed Apr 6 11:36:26 2011 UTC (13 years, 1 month ago) by miod
Branch: MAIN
Changes since 1.35: +3 -7 lines
Diff to previous 1.35 (colored)

Avoid using NULL in non-pointer contexts: use 0 for integer values and '\0'
for chars.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Apr 5 18:51:26 2011 UTC (13 years, 2 months ago) by thib
Branch: MAIN
Changes since 1.34: +0 -3 lines
Diff to previous 1.34 (colored)

Remove portalfs.

While it is a terribly cool idea, it's just awful and since noone has stepped
up to the plate to keep it up with the current vop state, retire it to the
attic.

ok krw@, deraadt@, guenther@, miod@.
comments from jmc@

Revision 1.34 / (download) - annotate - [select for diffs], Wed Aug 12 20:13:12 2009 UTC (14 years, 9 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.33: +7 -14 lines
Diff to previous 1.33 (colored)

Update nlist array and uncomment a few things to pave the way for upcoming
new name cache information gathering code.

Revision 1.33 / (download) - annotate - [select for diffs], Wed Aug 12 16:42:24 2009 UTC (14 years, 9 months ago) by beck
Branch: MAIN
Changes since 1.32: +9 -1 lines
Diff to previous 1.32 (colored)

Namecache revamp.

This eliminates the large single namecache hash table, and implements
the name cache as a global lru of entires, and a redblack tree in each
vnode. It makes cache_purge actually purge the namecache entries associated
with a vnode when a vnode is recycled (very important for later on actually being
able to resize the vnode pool)

This commit does #if 0 out a bunch of procmap code that was
already broken before this change, but needs to be redone completely.

Tested by many, including in thib's nfs test setup.

ok oga@,art@,thib@,miod@

Revision 1.32 / (download) - annotate - [select for diffs], Thu Jun 4 22:38:53 2009 UTC (15 years ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.31: +2 -28 lines
Diff to previous 1.31 (colored)

No longer consider kernel pointers invalid if pointing under the kernel
load address (hello, PMAP_DIRECT architectures). Makes procmap walk the
kernel name cache correctly.
ok art@

Revision 1.31 / (download) - annotate - [select for diffs], Thu Sep 18 08:02:53 2008 UTC (15 years, 8 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)

document -A and include in usage

Revision 1.30 / (download) - annotate - [select for diffs], Thu Sep 18 07:50:39 2008 UTC (15 years, 8 months ago) by art
Branch: MAIN
Changes since 1.29: +72 -11 lines
Diff to previous 1.29 (colored)

Add a flag to print amap usage.
otto@ ok

Revision 1.29 / (download) - annotate - [select for diffs], Thu Jun 26 05:42:21 2008 UTC (15 years, 11 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.28: +1 -8 lines
Diff to previous 1.28 (colored)

First pass at removing clauses 3 and 4 from NetBSD licenses.

Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.

OK deraadt@

Revision 1.28 / (download) - annotate - [select for diffs], Mon Jun 9 20:30:25 2008 UTC (15 years, 11 months ago) by miod
Branch: MAIN
Changes since 1.27: +7 -4 lines
Diff to previous 1.27 (colored)

Define a new flag, UVM_FLAG_HOLE, for uvm_map to create a vm_map_entry of
a new etype, UVM_ET_HOLE, meaning it has no backend.

UVM_ET_HOLE entries (which should be created as UVM_PROT_NONE and with
UVM_FLAG_NOMERGE and UVM_FLAG_HOLE) are skipped in uvm_unmap_remove(), so
that pmap_{k,}remove() is not called on the entry.

This is intended to save time, and behave better, on pmaps with MMU holes
at process exit time.

ok art@, kettenis@ provided feedback as well.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Oct 2 14:50:49 2007 UTC (16 years, 8 months ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.26: +8 -7 lines
Diff to previous 1.26 (colored)

Use kinfo_proc2 instead of kinfo_proc.

ok art@

Revision 1.26 / (download) - annotate - [select for diffs], Sun Sep 2 15:19:40 2007 UTC (16 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg

Revision 1.25 / (download) - annotate - [select for diffs], Thu May 31 18:22:25 2007 UTC (17 years ago) by thib
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.24: +1 -3 lines
Diff to previous 1.24 (colored)

Zap a bunch of unused VT_* tags.

ok tedu@,pedro@

Revision 1.24 / (download) - annotate - [select for diffs], Thu Apr 26 04:59:39 2007 UTC (17 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.23: +30 -58 lines
Diff to previous 1.23 (colored)

kill some commented "struct proc *", and knf while there; ok ray

Revision 1.23 / (download) - annotate - [select for diffs], Sat Jul 1 22:02:02 2006 UTC (17 years, 11 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.22: +4 -1 lines
Diff to previous 1.22 (colored)

Don't warn for kernel_text being zero on (some) m68k systems.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Dec 6 20:18:57 2005 UTC (18 years, 5 months ago) by pedro
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.21: +1 -2 lines
Diff to previous 1.21 (colored)

Remove fdescfs

Revision 1.21 / (download) - annotate - [select for diffs], Thu Nov 24 12:08:17 2005 UTC (18 years, 6 months ago) by pedro
Branch: MAIN
Changes since 1.20: +1 -2 lines
Diff to previous 1.20 (colored)

Remove kernfs, okay deraadt@.

Revision 1.20 / (download) - annotate - [select for diffs], Thu May 26 05:22:15 2005 UTC (19 years ago) by pedro
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.19: +1 -4 lines
Diff to previous 1.19 (colored)

kill stackable filesystems ghosts

Revision 1.19 / (download) - annotate - [select for diffs], Tue May 3 03:41:11 2005 UTC (19 years, 1 month ago) by djm
Branch: MAIN
Changes since 1.18: +9 -7 lines
Diff to previous 1.18 (colored)

setresgid; ok deraadt@

Revision 1.18 / (download) - annotate - [select for diffs], Fri Mar 25 16:54:17 2005 UTC (19 years, 2 months ago) by jaredy
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

Use the return value from getopt() instead of optopt in non-error
cases since optopt is not set in these cases, and it is not required
by POSIX that it should be.

ok millert otto

Revision 1.17 / (download) - annotate - [select for diffs], Fri Jul 9 19:30:52 2004 UTC (19 years, 10 months ago) by tdeval
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.16: +4 -7 lines
Diff to previous 1.16 (colored)

[From: Joris Vink]
Use strtonum(3) instead of strtol(3). ok deraadt@ & me

Revision 1.16 / (download) - annotate - [select for diffs], Thu Apr 1 23:17:11 2004 UTC (20 years, 2 months ago) by tdeval
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

Off by 1 !   OK millert@, tedu@

Revision 1.15 / (download) - annotate - [select for diffs], Mon Mar 15 09:13:10 2004 UTC (20 years, 2 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.14: +2 -4 lines
Diff to previous 1.14 (colored)

more accurate msg, pr3713 from Andre Lucas

Revision 1.14 / (download) - annotate - [select for diffs], Mon Feb 23 21:01:22 2004 UTC (20 years, 3 months ago) by tedu
Branch: MAIN
Changes since 1.13: +5 -1 lines
Diff to previous 1.13 (colored)

make sure we don't backwards before buffer

Revision 1.13 / (download) - annotate - [select for diffs], Mon Feb 23 20:53:21 2004 UTC (20 years, 3 months ago) by tedu
Branch: MAIN
Changes since 1.12: +7 -6 lines
Diff to previous 1.12 (colored)

buffer len paranoia

Revision 1.12 / (download) - annotate - [select for diffs], Mon Feb 23 19:48:40 2004 UTC (20 years, 3 months ago) by tedu
Branch: MAIN
Changes since 1.11: +7 -8 lines
Diff to previous 1.11 (colored)

if the heap is non-exec, it makes it hard to find by looking for an exec
mapping.  much better heuristic.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Feb 23 04:34:31 2004 UTC (20 years, 3 months ago) by tedu
Branch: MAIN
Changes since 1.10: +4 -4 lines
Diff to previous 1.10 (colored)

unknown is less ugly than ??, and not a trigraph.  requested by deraadt

Revision 1.10 / (download) - annotate - [select for diffs], Mon Feb 23 03:21:23 2004 UTC (20 years, 3 months ago) by tedu
Branch: MAIN
Changes since 1.9: +15 -1 lines
Diff to previous 1.9 (colored)

no peeking at kernel or other processes for normal users.  ok deraadt@

Revision 1.9 / (download) - annotate - [select for diffs], Thu Feb 19 08:22:34 2004 UTC (20 years, 3 months ago) by tedu
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

pedro martelletto tells me stroul returns an unsigned long which
may be bigger than a pid_t

Revision 1.8 / (download) - annotate - [select for diffs], Wed Feb 18 04:32:17 2004 UTC (20 years, 3 months ago) by tedu
Branch: MAIN
Changes since 1.7: +20 -9 lines
Diff to previous 1.7 (colored)

strtoul for getting pid.  ok and numerous hints from deraadt@
also correct errbuf size

Revision 1.7 / (download) - annotate - [select for diffs], Wed Feb 18 04:07:35 2004 UTC (20 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +15 -1 lines
Diff to previous 1.6 (colored)

revoke privs asap; tedu ok

Revision 1.6 / (download) - annotate - [select for diffs], Wed Feb 18 03:58:35 2004 UTC (20 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +138 -142 lines
Diff to previous 1.5 (colored)

a pinch of knf

Revision 1.5 / (download) - annotate - [select for diffs], Wed Feb 18 03:27:22 2004 UTC (20 years, 3 months ago) by tedu
Branch: MAIN
Changes since 1.4: +20 -9 lines
Diff to previous 1.4 (colored)

little cleanup.  strlcat.  usage.  don't call atoi on non-numbers.
mostly spotted by deraadt@

Revision 1.4 / (download) - annotate - [select for diffs], Wed Feb 18 00:46:25 2004 UTC (20 years, 3 months ago) by tedu
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

printing (null) is not so useful.  instead print names of missing symbols
with a useful message.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Feb 17 20:13:53 2004 UTC (20 years, 3 months ago) by tedu
Branch: MAIN
Changes since 1.2: +7 -4 lines
Diff to previous 1.2 (colored)

malloc checks, strlcpy.  based on patch from Vink Joris <nimadeus@pandora.be>

Revision 1.2 / (download) - annotate - [select for diffs], Mon Feb 16 08:57:58 2004 UTC (20 years, 3 months ago) by tedu
Branch: MAIN
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)

catch all vnode types

Revision 1.1 / (download) - annotate - [select for diffs], Mon Feb 16 08:54:34 2004 UTC (20 years, 3 months ago) by tedu
Branch: MAIN

rough cut of netbsd's pmap process memory map inspector.
initially from drahn@, renamed to procmap to avoid conflict with
unrelated pmap(9).
works more or less as advertised, could definitely use some work though.
would be really nice if somebody made it use sysctl and not kmem.
more or less ok deraadt@ drahn@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.