freebsd-dev/gnu/usr.bin
Bruce Evans 9bb4a86cf0 Fixed accesses to addresses between VM_MAXUSER_ADDRESS (normally
0xefbfe000) and kernel_start (normally 0xf0100000).

Things are unnecessarily (?) difficult because procfs is used to
access user addresses in the live-kernel case although we must have
access to /dev/mem to work at all, and whatever works for the
dead-kernel case should work in all cases (modulo volatility of
live kernel variables).  We used the wrong range [0, kernel_start)
for user addresses.  Procfs should only work up to VM_MAXUSER_ADDRESS,
but it bogusly works for reads up to the address 2 pages higher
(the user area, including the kernel stack, is mapped to where the
user area used to be (WTUAUTB)).  Procfs can not work at all for
addresses between WTUAUTB and kernel_start.

Now we use procfs only to access addresses up to VM_MAXUSER_ADDRESS.
Higher addresses are translated normally using kvtophys(), so the
user ptd is used for addresses below the real kernel start (0xf0000000;
see INKERNEL()) and nothing is found WTUAUTB.

Strange accesses that cross the user-kernel boundary are now handled,
but such ranges are currently always errors because they necessarily
overlap the hole WTUAUTB.

Short reads are still not handled.
1998-01-19 15:27:56 +00:00
..
as Make the ".set" directive copy the aux field when the expression 1998-01-10 05:36:35 +00:00
awk Remove yet another superfluous file. 1997-10-26 12:53:16 +00:00
bc Fix the getopt() prototype to match the system one. 1997-03-11 17:14:37 +00:00
binutils Fixed accesses to addresses between VM_MAXUSER_ADDRESS (normally 1998-01-19 15:27:56 +00:00
bison change bin to BINOWN and BINGRP 1997-08-21 03:28:07 +00:00
cc More i386 -> ${MACHINE} changes to make this Makefile machine 1998-01-11 04:13:25 +00:00
cpio Added to RELENG_2_2 via tagging. 1997-08-21 08:26:55 +00:00
cvs Fixed missing dependency on version.c. 1997-12-18 15:22:12 +00:00
dc Make makewhatis(1) happy. 1997-03-21 20:59:44 +00:00
dialog fix misspelling 1997-08-30 11:08:06 +00:00
diff Define PR_PROGRAM properly 1997-10-29 17:35:54 +00:00
diff3 Switch to contrib version 1997-10-29 16:50:42 +00:00
gdb Fixed accesses to addresses between VM_MAXUSER_ADDRESS (normally 1998-01-19 15:27:56 +00:00
genclass Add a genclass.1 manpage. 1997-09-15 19:18:59 +00:00
gperf Revert $FreeBSD$ to $Id$ 1997-02-22 15:48:31 +00:00
grep When called as `zgrep', the -Z argument is assumed. Make a 1997-12-21 19:15:12 +00:00
groff Use BINOWN, etc. instead of bin, etc. so that (this part of) 1997-12-17 12:04:53 +00:00
gzip Check argument filename length before copying. 1997-12-27 03:38:39 +00:00
ld Removed /etc/ld.so.conf reference from FILES section (people get 1998-01-01 02:31:47 +00:00
man Remove manpath.[ch] here and use the ones in ../manpath instead. 1997-11-30 20:08:27 +00:00
patch Upgrade to 2.5 (contrib version) 1998-01-04 21:41:46 +00:00
perl Sigh, there's always one more buffer overflow. :-( 1997-09-16 08:33:52 +00:00
ptx Same deal. 1997-01-11 03:50:21 +00:00
rcs Add missing *roff macros to correct display about -V option. 1997-08-23 15:50:53 +00:00
sdiff Switch to contrib version 1997-10-29 16:58:20 +00:00
send-pr Added a sparc category to the list. 1997-12-20 18:54:22 +00:00
sort Add (unsigned char) cast to ctype macros 1997-10-23 02:22:51 +00:00
tar PR: gnu/4385 1998-01-05 11:32:39 +00:00
texinfo Real skeleton manpage for install-info 1997-08-29 09:10:22 +00:00
Makefile Don't descend into the perl directory if it isn't there (eg: cvsup 1997-04-12 07:19:09 +00:00
Makefile.inc Revert $FreeBSD$ to $Id$ 1997-02-22 15:48:31 +00:00