Commit Graph

5851 Commits

Author SHA1 Message Date
David Greenman
efc68ce10f Fixed bmap run-length brokeness.
Use bmap run-length extension when doing clustered paging.

Submitted by:	John Dyson
1995-02-03 06:46:28 +00:00
Bill Paul
2700d33c07 Added ${.CURDIR}s to afterinstall target. 1995-02-03 03:44:41 +00:00
Bill Paul
4efbdedee3 Put ${.CURDIR}s in front of Makefile.yp and mknetid in the required places.
Also took out uneeded BINDIR & BINMODE stuff.
1995-02-03 03:41:38 +00:00
David Greenman
ef762baa88 Removed a pile of vfs_unbusy_pages()...both unnecessary and wrong - resulted
in serious system instability. Changed a B_INVAL to a B_NOCACHE so that
buffer data is properly disposed of.

Submitted by:	John Dyson, Rick Macklin, and ohki@gssm.otsuka.tsukuba.ac.jp
1995-02-03 03:40:08 +00:00
David Greenman
b82c50c4e6 Make B_NOCACHE and B_INVAL buffers work correctly - throw away the data in
the page cache.

Submitted by:	John Dyson
1995-02-03 03:35:56 +00:00
Bill Paul
3e03108763 Removed reference in comments to -o option of yppasswdd: -o option
no longer exists.
1995-02-03 01:11:57 +00:00
Bill Paul
a393cc06f5 Fixed a rather serious bug that presents itself when FreeBSD is configured
as an NIS client. The pw_breakout_yp routines that are used to populate the
_pw_passwd structire only do anything if the bits in the pw_fields member
_pw_passwd are cleared. Unfortunately, we can get into a state where
pw_fields has garbage in it right before the YP lookup functions are
called, which causes the breakout functions to screw up in a big way.
Here's how to duplicate the problem:

- Configure FreeBSD as an NIS client
- Log in as a user who's password database records reside only in
  the NIS passwd maps.
- Type ps -aux

Result: your processes appear to be owned by 'root' or 'deamon.'
/bin/ls can exhibit the same problem.

The reason this happens:

- When ps(1) needs to match a username to a UID, it calls getpwuid().

- root is in the local password file, so getpwuid() calls  __hashpw()
  and __hashpw() populates the _pw_passwd struct, including the pw_fields
  member. This happens before NIS lookups take place because, by coincidence,
  ps(1) tends to display processes owned by root before it happens upon
  a proccess owned by you.

- When your UID comes up, __hashpw() fails to find your entry in the
  local password database, so it bails out, BUT THE BITS IN THE pw_fields
  STRUCTURE OF _pw_passwd ARE NEVER CLEARED AND STILL CONTAIN INFORMATION
  FROM THE PREVIOUS CALL TO __hash_pw()!!

- If we have NIS enabled, the NIS lookup functions are called.

- The pw_breakout_yp routines see that the pw_fields bits are set and
  decline to place the data retrieved from the NIS passwd maps into the
  _pw_passwd structure.

- getpwuid() returns the results of the last __hashpw() lookup instead
  of the valid NIS data.

- Hijinxs ensue when user_from_uid() caches this bogus information and
  starts handing out the wrong usernames.

AAAARRRRRRRRRGGGGGGHHHHHHHHHH!!!

*Please* don't tell me I'm the only person to have noticed this.

Fixed by having __hashpw() check the state of pw_fields just before
bailing out on a failed lookup and clearing away any leftover garbage.
What a fun way to spend an afternoon.
1995-02-03 01:09:35 +00:00
Jordan K. Hubbard
0c808a575d Give the user a chance to specify all the network setup parameters again 1995-02-03 00:42:27 +00:00
Jordan K. Hubbard
1787b78f70 Whoops, actually DO the last config! 1995-02-02 23:39:44 +00:00
Jordan K. Hubbard
f3c9629d8e Get ready for the XFree86 3.1.1 distribution (next snapshot),
compat1x -> compat1xdist
1995-02-02 23:13:26 +00:00
Jordan K. Hubbard
2c6a122277 Put the release number in the first banner - makes it easier to quickly
tell if I've muffed it.
1995-02-02 23:09:30 +00:00
Stefan Eßer
3f624a0187 Removed misleading copyright note. This file contains just
definitions taken from the PCI specs. Part of them were typed
in by Wolfgang Stanglmeier, the (at that time unneeded) rest
by Charles Hannum (thanks !).
1995-02-02 22:01:40 +00:00
Jordan K. Hubbard
98a72d261a Fix some last boners in the setup script. 1995-02-02 20:46:40 +00:00
Bruce Evans
dc3c30d9be Look for files to install first in the object directory, then in the
source directory.

Don't create target directories at install time.  mtree already handles
them correctly.
1995-02-02 17:44:02 +00:00
Bill Paul
cf7979fba5 Cleaned up and updated the yppasswdd man page to reflect FreeBSD-specific
changes and new options. (more new man pages and an NIS tutorial to follow)
1995-02-02 17:25:58 +00:00
Stefan Eßer
ea6ecb4e52 Disable disconnect after drive timeouts, since these
may be the result of reselect following too fast for
the driver to notice. Not the final solution, but the
problem has been seen only with very few devices.

Reviewed by:	se
Submitted by:	wolf (Wolfgang Stanglmeier)
1995-02-02 15:50:57 +00:00
Jordan K. Hubbard
b78f244004 Why not give user a chance to start it, too? 1995-02-02 14:30:36 +00:00
Jordan K. Hubbard
3b138fe08b Make this a bit more aggressive.. :-) 1995-02-02 14:21:46 +00:00
Jordan K. Hubbard
f98ec7d321 Here's the _real_ XFree86 3.1.1 installation script. I'm ready.. :-) 1995-02-02 14:18:04 +00:00
David Greenman
6398cf3113 Reapplied all of Stefan's changes. What a mess - the files were modified
and moved at the same time. This made it *very* difficult to fix the
revision log lossage that happend when the files were moved. SIGH.
1995-02-02 13:12:18 +00:00
David Greenman
77e50733d8 Fixed up include paths after copying these in the repository. 1995-02-02 12:36:19 +00:00
Jordan K. Hubbard
c6949047a4 A better clean rule. 1995-02-02 12:29:03 +00:00
David Greenman
a1f6d91cc2 swap_pager.c:
Fixed long standing bug in freeing swap space during object collapses.
Fixed 'out of space' messages from printing out too often.
Modified to use new kmem_malloc() calling convention.
Implemented an additional stat in the swap pager struct to count the
amount of space allocated to that pager. This may be removed at some
point in the future.
Minimized unnecessary wakeups.

vm_fault.c:
Don't try to collect fault stats on 'swapped' processes - there aren't
any upages to store the stats in.
Changed read-ahead policy (again!).

vm_glue.c:
Be sure to gain a reference to the process's map before swapping.
Be sure to lose it when done.

kern_malloc.c:
Added the ability to specify if allocations are at interrupt time or
are 'safe'; this affects what types of pages can be allocated.

vm_map.c:
Fixed a variety of map lock problems; there's still a lurking bug that
will eventually bite.

vm_object.c:
Explicitly initialize the object fields rather than bzeroing the struct.
Eliminated the 'rcollapse' code and folded it's functionality into the
"real" collapse routine.
Moved an object_unlock() so that the backing_object is protected in
the qcollapse routine.
Make sure nobody fools with the backing_object when we're destroying it.
Added some diagnostic code which can be called from the debugger that
looks through all the internal objects and makes certain that they
all belong to someone.

vm_page.c:
Fixed a rather serious logic bug that would result in random system
crashes. Changed pagedaemon wakeup policy (again!).

vm_pageout.c:
Removed unnecessary page rotations on the inactive queue.
Changed the number of pages to explicitly free to just free_reserved
level.

Submitted by:	John Dyson
1995-02-02 09:09:15 +00:00
David Greenman
8e95996cd7 Calling semantics for kmem_malloc() have been changed...and the third
argument is now more than just a single flag.

Submitted by:	John Dyson
1995-02-02 08:49:45 +00:00
David Greenman
9f518539fd Calling semantics for kmem_malloc() have been changed...and the third
argument is now more than just a single flag. (kern_malloc.c)
Used new M_KERNEL value for socket allocations that previous were
"M_NOWAIT". Note that this will change when we clean up the M_ namespace
mess.

Submitted by:	John Dyson
1995-02-02 08:49:08 +00:00
David Greenman
87bc4e696d Mostly cosmetic changes. Use KERNBASE instead of UPT_MAX_ADDRESS in
some comparisons as it is more correct (we want the kernel page tables
included).
Reorganized some of the expressions for efficiency.
Fixed the new pmap_prefault() routine - it would sometimes pick up the
wrong page if the page in the shadow was present but the page in object
was paged out. The routine remains unused and commented out, however.
Explicitly free zero reference count page tables (rather than waiting
for the pagedaemon to do it).

Submitted by:	John Dyson
1995-02-02 08:45:14 +00:00
Jordan K. Hubbard
097416da01 Bump the date to February 2nd. 1995-02-02 08:32:11 +00:00
Jordan K. Hubbard
24c120144b Clean these up a bunch more - gee I'm glad I do these snapshots, they uncover
*so many problems*.. Too bad the snaps themselves don't get made as a
consequence.. :-)

Bump the date forward Yet Another Day.  David has some changes he wants to
see rolled in, so I guess we're down for Feb 2nd as the snap date!
1995-02-02 08:31:38 +00:00
Andrey A. Chernov
d5cf6f6056 Create directory symlinks neccesary for locale because mtree
can't create symlinks.
Suggested by Rod.
1995-02-02 08:03:24 +00:00
Jordan K. Hubbard
59ed2d66e2 Mkdir() now takes two flags. 1995-02-02 05:49:06 +00:00
Jordan K. Hubbard
9e44a9d701 This was misleading - you select OK to continue, not Cancel! ;-) 1995-02-02 05:44:14 +00:00
Jordan K. Hubbard
dcca65bed0 Since the pci directory has moved, this required updating. 1995-02-02 05:42:47 +00:00
Poul-Henning Kamp
86abb05569 Make dirs for msdos fs's. 1995-02-02 05:35:36 +00:00
Jordan K. Hubbard
a184b0e325 We no longer need a welcome telling us to take a floppy out - it's already
out.
1995-02-02 04:57:05 +00:00
Jordan K. Hubbard
5143382afe Create an obj symlink when necessary.
Submitted by:	"Remy CARD" <Remy.Card@masi.ibp.fr>
1995-02-02 04:53:30 +00:00
Jordan K. Hubbard
4aed3d5f76 Clean up the documentation in light of a few recent changes. 1995-02-02 04:13:22 +00:00
Jordan K. Hubbard
5134cfac45 We don't need to go back to the first screen again - optimize this. 1995-02-02 04:08:13 +00:00
Jordan K. Hubbard
31c448c24a Argh! I left the setup script off the floppy. Time to re-roll it. 1995-02-02 04:07:51 +00:00
Paul Richards
048aaeebef Fixed problem passing received packets to bpf.
Implemented all the devconf code properly.
1995-02-02 04:07:45 +00:00
Jordan K. Hubbard
e9400e0561 Cosmetic fix.
Submitted by:	Christoph Kukulies <kuku@gilberto.physik.rwth-aachen.de>
1995-02-02 03:36:51 +00:00
Atsushi Murai
bf8a83a027 PPP does not find config files (Wrong path name not a /etc/ppp)
Submitted by:	Michael Reifenberger <root@rz-wb.fh-sw.de>
1995-02-02 01:54:27 +00:00
Bill Paul
9e9a89bb1f cleaned up and modified slightly to reflect changes 1995-02-01 23:47:04 +00:00
Bill Paul
87a8966828 Cleaned up Makefile a little, added man page links from ypchsh.1 ypchfn.1
and ypchpass.1 to yppasswd.1. Also fixed a typo: ypshfn != ypchfn.
1995-02-01 23:46:20 +00:00
Bill Paul
e0f276ea94 Need to set a umask to avoid security problems (/var/yp/passwd
world-writable).
1995-02-01 23:30:02 +00:00
Bill Paul
e26ae5b13a Cleaned up usage() -- removed bogus references to opassfile, which isn't
used anymore (/var/yp/Makefile creates a new /var/yp/passwd file from
/var/yp/master.passwd using awk, so yppasswdd doesn't have to make it
anymore).
1995-02-01 23:27:46 +00:00
Jordan K. Hubbard
770f05c102 Add tun to list of devices.
Submitted by:	mr
1995-02-01 23:15:11 +00:00
Stefan Eßer
fe90a500af Reviewed by: se
Submitted by:	wolf (Wolfgang Stanglmeier)
PCI specific code moved to /sys/pci.
1995-02-01 23:11:38 +00:00
Stefan Eßer
ac19f91802 Reviewed by: se
Submitted by:	wolf (Wolfgang Stanglmeier)
New ISA dependend file for PCI bus support.
Replaces sys/i386/pci/pcibios.c.
1995-02-01 23:06:58 +00:00
Bill Paul
7870fc7fdb /var/yp/Makefile doesn't create passwd file from master.passwd file
correctly (specified wrong fields to awk). Note that the files in question
are noe the local /etc/master.passwd and /etc/passwd files: this Makefile
expects there to be a seperate master.passwd file under /var/yp for NIS
database creation.
1995-02-01 23:05:36 +00:00
Stefan Eßer
70008bb125 Reviewed by: se
Submitted by:	wolf (Wolfgang Stanglmeier)
Most PCI specific files moved from sys/i386/pci to sys/pci.
One PC specific file (pcibus.c) new in sys/i386/isa.
1995-02-01 23:02:24 +00:00