Commit Graph

1786 Commits

Author SHA1 Message Date
cgd 4493ba8058 fixed stupid typo (missing comma) in hand-applied diff 1993-04-09 17:19:02 +00:00
cgd a128c34f9c From: Guido van Rooij <guido@gvr.win.tue.nl>
when mmapping a file, permissions are checked as it should be. When
mprotect()-ing the address range afterwards, no protection was checked
regarding the protection of the file originally opened. So
when you open /usr/bin/su RDONLY and SHARED you could afterwards change
the mmapped region to READ|WRITE. This gave the possibility to obtain
root privs obviously.
1993-04-09 17:16:30 +00:00
cgd 202313150e changes, running on sef's machine to good effect, likely contributed
by torek.  (sef told me to get them, and their origin...)
1993-04-09 17:13:17 +00:00
cgd 827c75471f From: andrew@werple.apana.org.au (Andrew Herbert)
Here are some fixes I derived from the mach 3.0 VM system a couple of months
ago.  At the time, I was giving the memory object routines a good looking
at, trying to fix the long-standing problem where vm_object_collapse()
sometimes fails to collapse objects left over from the exit of a forked
child.  As bde has noted, the problem seems to occur when portions of the
parent are paged out.  These "lost" memory objects, which can eat up a huge
amount of swap space, are reclaimed when the parent responsible for the
fork()s is killed.
1993-04-09 16:53:46 +00:00
cgd fa76d62392 have probe return size of io space on successful return, rather
than simply 1.
1993-04-09 16:43:56 +00:00
cgd c2176edbac have probe return size of io space on successful return, rather
than simply 1.
1993-04-09 16:25:07 +00:00
cgd 2bbe287e49 make printing of i/o addresses a bit prettier, and fix off-by-one error. 1993-04-09 16:24:26 +00:00
cgd 3cac22992d from sean eric fagan:
it seems to keep the vm system from deadlocking the system when it runs
out of swap + physical memory.
prevents the system from giving the last page(s) to anything but the
referenced "processes" (especially important is the pager process,
which should never have to wait for a free page).
1993-04-09 15:54:56 +00:00
cgd cf15785585 from Rodney W. Grimes (rgrimes@agora.rain.com) (patchkit patch 117):
This patch adds the symbol names to icu.s that vmstat expects
the interrupt counters to be called.  It also adds code to config
so that the names of the interrupts are written at the end of vectors.s
so vmstat can report real device names.  It also cleans up and enables
the logging of stray interrupts.  The counters for false interrupts
are added but the fix for them is not (the fix I have is not done
very good.) A false interrupt is when a device asserts it's interrupt
signal, then removes it before the 8259 can latch it.  This is the number
one cause of stray IRQ7's and IRQ15's.

        Additional device probe information is now printed.  This includes
ending I/O address (many drivers do not return the correct value from a
probe this still needs to be fixed), memory address and size, driver
flags passed in by config.
1993-04-09 13:43:40 +00:00
cgd 9dc3975ffe from Rodney W. Grimes (rgrimes@agora.rain.com) (patchkit patch 117):
This patch adds the symbol names to icu.s that vmstat expects
the interrupt counters to be called.  It also adds code to config
so that the names of the interrupts are written at the end of vectors.s
so vmstat can report real device names.  It also cleans up and enables
the logging of stray interrupts.  The counters for false interrupts
are added but the fix for them is not (the fix I have is not done
very good.) A false interrupt is when a device asserts it's interrupt
signal, then removes it before the 8259 can latch it.  This is the number
one cause of stray IRQ7's and IRQ15's.

	Additional device probe information is now printed.  This includes
ending I/O address (many drivers do not return the correct value from a
probe this still needs to be fixed), memory address and size, driver
flags passed in by config.
1993-04-09 13:27:46 +00:00
cgd d9bc91c0ac fix from Chris Torek (patch 106):
386BSD inherits a bug from the 4.3 Reno port for contiguous block allocation.
1993-04-09 12:19:12 +00:00
cgd db622a7428 added netccitt, netiso, and netns support, from (currently
alpha) patch 126
1993-04-09 12:00:07 +00:00
glass 696d0f1953 fixes stupid piece of bpf code that duplicates cdefs.h's handling of
'inline' in such a way as to cause stupid warnings.
1993-04-09 11:02:51 +00:00
deraadt b9bd4b25de dmesg output at boottime now tries to print out information as
soon as it is available. The output looks much more like Sunos.
1993-04-08 08:26:46 +00:00
cgd 161d9cd1a9 to get scsi system, you now use "options SCSI" rather
than "controller scbus0" -- makes more sense
1993-04-08 04:08:00 +00:00
cgd 3c5df8a123 put scsi system file list in the right place (finally) 1993-04-08 04:05:33 +00:00
glass 0d718ac79e attempting to open an already opened tape drive should get you EBUSY, not
ENXIO.
1993-04-08 00:20:02 +00:00
deraadt fe6c03e9c7 /* ... /* ... */ problem in an include file 1993-04-07 09:15:28 +00:00
deraadt 76a489d2f4 wd7000 entry 1993-04-06 20:59:57 +00:00
deraadt de24d978d5 wd7000 device driver, put in IO_WDS entry in isa.h. You can now build a
kernel with it. Hope your dma works better than mine <grr>
1993-04-06 20:58:01 +00:00
cgd 5b67f9cea5 changed order of copyright/version notice (to match 4.4 boot string)... 1993-04-06 14:23:00 +00:00
deraadt a2b4863160 ripped out a message 1993-04-06 12:09:55 +00:00
deraadt 65ac2c0ded <no drive> message gone. 1993-04-06 12:04:04 +00:00
deraadt 5190737035 fd.c -- changed type=0 to correspond to "drive not found" 1993-04-06 11:52:35 +00:00
deraadt 5aa76ea692 Modified floppy and WD enties for mod-barsoom controller type. 1993-04-06 10:49:30 +00:00
glass 8d58080ba3 used by makesyscalls.sh to produce init_sysent.c, syscalls.c ../sys/syscall.h
edit this to add/delete/ifdef system calls
1993-04-06 10:39:51 +00:00
glass 2a0fbbf7d6 added 'makesyscalls.sh' from BNR/2. Edit only 'syscalls.master'
recreates init_sysent.c syscalls.c ../sys/syscall.h which should
then be checked back in.
1993-04-06 10:37:09 +00:00
deraadt 8ed3c049a1 deraadt@fsa.ca's kernel config file 1993-04-06 10:08:17 +00:00
deraadt 9b67a6d7ad Mod-barsoom wd additions. config program + kernel config files changed too.
fd support had to change slightly too.
1993-04-06 10:06:28 +00:00
deraadt c3d2e42be0 added: incomplete wd7000-asc scsi controller device driver. 1993-04-06 10:04:46 +00:00
deraadt bacbdac9c8 commit damnit! 1993-04-06 06:50:20 +00:00
deraadt d64d6e2c56 selwakeup() takes a "pid_t" rather than "struct proc *" now. 1993-04-05 22:04:09 +00:00
cgd e9e7ae8a6e now uses `maxfdescs' to bound `openfiles' resource limit. 1993-04-04 04:32:14 +00:00
cgd 8fe7f325cd added maxfdescs definition 1993-04-04 04:31:05 +00:00
cgd 95d13869d1 got rid of accidental extra newline 1993-04-03 11:19:42 +00:00
cgd 2633c2e52a added `options KTRACE' 1993-04-03 07:33:10 +00:00
cgd 086e97be7e converted date in kernel version to standard date output format. 1993-04-03 03:53:00 +00:00
cgd 5d07e08579 added changes from Steven Reiz <sreiz@aie.nl> (based on
those by Poul-Henning Kamp <phk@data.fls.dk>) to get the kernel
to compile properly when gcc2.* is cc.  (should still work
when gcc1.39 is in use.)
1993-04-03 02:15:18 +00:00
cgd fafe485efe change from make tinguely (tinguely@hookie.cs.ndsu.NoDak.edu) to make
opening running programs for writing return ETXTBUSY.
1993-04-03 01:56:45 +00:00
cgd a381c1fd17 now just prints out version. also, got rid of kernel_version,
and fixed wfj's trampling on UCB copyright notices.
1993-04-03 01:41:32 +00:00
cgd fe7517c914 added various things, to make kernel version info more useful 1993-04-03 01:40:55 +00:00
deraadt 6efd5159e0 getdomainname fix. had to declare get/setdomainname() implicitly extern. 1993-04-02 20:38:22 +00:00
cgd b02974b037 Jay Fenlason <hack@datacube.com>:
1: the fi_readers and fi_writers fields of the fifoinfo structure were not
being initialized to 0.  This caused the driver to not sleep the first
process to open the fifo--it thought there was already another process to
talk to (most of the time.)

2: fifo_open() was calling tsleep() without unlocking the inode of the fifo
file.  This caused *any* subsequent access to the file (even an ls (!)) to
hang forever.  Note that this bug was usually masked by bug #1 above.
1993-04-02 20:19:48 +00:00
deraadt 355265a866 added: the entire domainanme set. domainmame(1), domainname(2), and a spiffy
man page.
1993-04-02 12:24:21 +00:00
cgd f96d1b7f51 make when PARANOID wouldn't work, for mis-remembered field name 1993-04-02 12:20:13 +00:00
cgd 9483844857 changed value of NKMEMCLUSTERS, to help avoid kmem_map too small problem 1993-04-01 00:06:43 +00:00
cgd 2cfe39f580 changed value of bufpages, to avoid kmem_map too small problem 1993-04-01 00:06:04 +00:00
cgd 64354bb7c6 broke out panics for *_map too small, and tried to coalesce the maps more
often.
1993-03-31 21:53:56 +00:00
cgd d7743f6ac4 added . and .. 1993-03-30 05:16:56 +00:00
cgd 90c4f693aa added prompt for floppy root disk. 1993-03-29 22:30:55 +00:00
cgd cdbb68cef9 added ISOFS 1993-03-28 21:33:28 +00:00
cgd 942f89c21f if PANICWAIT defined, will always wait for a key press before reboot
after panic.  (note that this only makes a difference if DDB is not
installed.)
1993-03-28 08:40:33 +00:00
cgd c32e85d3c3 moved closing #endif to include comselect 1993-03-27 09:24:42 +00:00
cgd 91a1e3ca32 added cdevvp (after taking it out of vfs_subr.c) because realized
that it was only needed here.
1993-03-27 02:00:45 +00:00
cgd b9a4c9fc69 added ".." and support for "rrootdev" 1993-03-27 00:37:08 +00:00
cgd ea32437759 added default addresses for SCSI board I/O ports 1993-03-26 23:47:23 +00:00
cgd edca1943a4 fixed typo (in a comment) 1993-03-26 23:40:42 +00:00
glass e0cd0652b6 removed unnecessary #ifdefing, fixed conf/files appropriately 1993-03-26 22:16:30 +00:00
glass 7a7dea3ac1 test kernel config for 'options KTRACE' 1993-03-26 22:15:53 +00:00
glass ad3c80b352 ktrace is now optional 1993-03-26 22:15:25 +00:00
cgd 7c02b7340b fixed problem where you couldn't unmount after looking... 1993-03-25 17:34:52 +00:00
cgd d367597465 added bpfilter pseudo-device, and FDESC and KERNFS options 1993-03-25 10:58:20 +00:00
cgd a029deb322 one line got botched during bpf patch installation 1993-03-25 10:08:55 +00:00
cgd 320661fc58 changed copyright notice thanks to following statement:
Return-Path: jsp@compnews.co.uk
Received: from ben.uknet.ac.uk by postgres.Berkeley.EDU (5.61/1.29)
	id AA25983; Thu, 25 Mar 93 05:37:37 -0800
Received: from fennel.compnews.co.uk by ben.uknet.ac.uk via UKIP with SMTP (PP)
          id <g.05640-0@ben.uknet.ac.uk>; Thu, 25 Mar 1993 13:37:19 +0000
Received: from sage.compnews.co.uk by fennel.compnews.co.uk;
          Thu, 25 Mar 93 13:37:08 GMT
Message-Id: <28109.9303251337@sage.compnews.co.uk>
From: jsp@compnews.co.uk (Jan-Simon Pendry)
Date: Thu, 25 Mar 1993 13:37:05 +0100
In-Reply-To: cgd@postgres.berkeley.edu's message as of Mar 25, 5:32am.
Phone-Number-1: +44 430 432450
Phone-Number-2: +44 430 432480 x20
Fax-Number: +44 430 432022
X-Mailer: Mail User's Shell (7.2.5 10/14/92)
To: cgd@postgres.berkeley.edu
Subject: Re: fdesc/kernfs/etc code...

You may put this copyright message on the source code:

/*
 * Copyright (c) 1990, 1992 Jan-Simon Pendry
 * All rights reserved.
 *
 * This code is derived from software contributed to Berkeley by
 * Jan-Simon Pendry.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. All advertising materials mentioning features or use of this software
 *    must display the following acknowledgement:
 *      This product includes software developed by the University of
 *      California, Berkeley and its contributors.
 * 4. Neither the name of the University nor the names of its contributors
 *    may be used to endorse or promote products derived from this software
 *    without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 *
 */
1993-03-25 06:00:17 +00:00
cgd 73119bc337 added BPF support, as provided by David Greenman (davidg@implode.rain.com) 1993-03-25 00:27:49 +00:00
cgd bec78ceec5 added config file for the boat-anchor.cs.berkeley.edu,
a 386-20 with a 387 math coprocessor
1993-03-25 00:19:33 +00:00
cgd 8cfd6d23f2 changes made by David Greenman's (davidg@implode.rain.com) BPF package. 1993-03-24 23:55:29 +00:00
cgd fe88b8df06 brought in drivers from David Greenman's (davidg@implode.rain.com)
BPF package
1993-03-24 23:54:19 +00:00
sef 0be333bc99 Oops. Inserted at the wrong place. 1993-03-24 20:22:51 +00:00
sef e4eea462cf Handle one-word cases in word-erase. 1993-03-24 19:41:48 +00:00
cgd 8615983a25 now use absolute path for dbsym 1993-03-24 18:48:57 +00:00
cgd 74c188f554 added mount types for kernfs and fdesc fs. 1993-03-23 23:57:32 +00:00
cgd fa8ba8a3eb files which implement the kern filesystem. from Jan-Simon Pendry,
pendry@vangogh.cs.berkeley.edu
1993-03-23 23:56:50 +00:00
cgd e603545328 files which implement the fdesc filesystem. from Jan-Simon Pendry,
pendry@vangogh.cs.berkeley.edu
1993-03-23 23:56:31 +00:00
cgd 93156ce06e modified files to support kernfs and fdesc fs 1993-03-23 23:56:07 +00:00
cgd be757e0c2d config file for filesystem testing kernel (on boat-anchor) 1993-03-23 23:55:35 +00:00
cgd 6848ea77a0 added support for kernfs and fdesc filsystem files 1993-03-23 23:55:02 +00:00
cgd 690826b089 got rid of hightlighted test, and changed copyright/kernel version
string delcarations
1993-03-23 22:16:43 +00:00
cgd b6f6a2998a turned off option for WD8013. 1993-03-23 10:08:44 +00:00
cgd 5a8087833a fixed stupid extra space in kernel name 1993-03-23 08:59:30 +00:00
cgd 1fe24ceec0 initial creation of kernel config for sun-lamp.cs.berkeley.edu,
a 486-50 EISA machine.
1993-03-23 08:50:03 +00:00
cgd b11134a584 automatically run dbsym on kernel 1993-03-23 08:22:28 +00:00
cgd 6c85542377 added kernel ident to version string 1993-03-23 08:21:22 +00:00
cgd f23291fb78 added support for microtime routines by Steve McCanne (mccanne@ee.lbl.gov) 1993-03-23 08:12:09 +00:00
cgd e541169ce2 after 0.2.2 "stable" patches applied 1993-03-21 18:04:42 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00