bde
e0f62a1bbb
Fixed breakage of binary compatibility of the kern.clockrate sysctl in
...
sys/time.h rev.1.53, etc. Zero out the entire struct clkinfo and not
just the new spare part of it so that there is no possibility of leaking
kernel stack context to userland.
2002-05-05 04:33:09 +00:00
bde
e129a7f152
Fixed checking for VM86 mode in doreti which I broke in rev.1.30. Only
...
the case of VM86 calls from the kernel was broken, so this bug was not
a security hole.
PR: 36710
Submitted by: David Xu <davidx@viasoft.com.cn> (version for RELENG_4)
MFC after: 3 days
2002-05-05 03:19:48 +00:00
jeff
926e98b719
Use pages instead of uz_maxpages, which has not been initialized yet, when
...
creating the vm_object. This was broken after the code was rearranged to
grab giant itself.
Spotted by: alc
2002-05-04 21:49:29 +00:00
alc
c281c83bd5
o Make _vm_object_allocate() and vm_object_allocate() callable
...
without holding Giant.
o Begin documenting the trivial cases of the locking protocol
on vm_object.
2002-05-04 20:23:48 +00:00
obrien
8ffbddb82f
Use -ffreestanding for kernel bits unconditionally.
2002-05-04 20:07:33 +00:00
mux
7856f6d21c
Fix a typo.
...
Submitted by: dwmalone
2002-05-04 19:50:09 +00:00
phk
da37a8841f
Shake unused stuff out of the flags in struct buf->b_flags.
2002-05-04 19:40:34 +00:00
phk
536c2f0f78
Remove a six year old undocumented #ifdef : NO_B_MALLOC.
2002-05-04 19:24:55 +00:00
phk
513854afbc
The struct buf->b_act was not used anywere.
2002-05-04 19:06:32 +00:00
fenner
4a04ef1ff8
Restore the ability interrupt dumps on i386, based on
...
the old kern_shutdown.c . Other archs might be able to
use similar code but I don't have anything to test on.
2002-05-04 17:45:48 +00:00
dillon
226cd40e3d
Remove obsolete code (that was already #if 0'd out).
...
Requested by: Hiten Pandya <hitmaster2k@yahoo.com>
2002-05-04 17:10:15 +00:00
mux
9b62981e97
When a program launched on the local console exits, the shell will
...
call read() to get the next command, and scread() disables the
screensaver. We don't want this behaviour in the sc_saver_keybonly
case.
Submitted by: Olivier Houchard <doginou@ci0.org>
2002-05-04 15:42:38 +00:00
dfr
430e2d7701
Use region 7 addresses for the slabs in the PV and PT zones so that we
...
don't confuse the zone allocater by translating region 5 addresses to
region 7 addresses (which is unavoidable for PTEs).
2002-05-04 12:21:32 +00:00
phk
d0e80b0946
Do not call nge_tick() if we get an PHY interrupt, nge_tick() calls
...
mii_tick() which should only be called once per second.
Our current MII/PHY state-engine is not able to deal with PHY
interrupts as far as I can tell, and most net drivers don't seem
to use the link/status change call-back mechanism. It seems that
MII/PHY was orphaned before it grew up.
2002-05-04 11:15:33 +00:00
phk
18774e5c4c
Increase gigE negotiation timeout to 17 seconds.
...
10 seconds is not enough to negotiate a gigE link with a cisco switch which
holds carrier off for several seconds between tries.
2002-05-04 11:08:49 +00:00
phk
2bdcfd0c1c
Clean up mii/phy drivers: Remove the MIIF_DOINGAUTO which doesn't really
...
do anything at the end of the day except bloat the drivers which has
copy&pasted it.
2002-05-04 11:00:30 +00:00
marcel
4d32ac8688
Make sure we don't index the pm_rid array out of bounds in
...
pmap_ensure_rid(). This can happen because the function is
called for both user and kernel addresses, while the rid array
only has room for user addresses. This bug got exposed by rev
1.58 of ia64/ia64/pmap.c and rev 1.8 of ia64/include/pmap.h.
2002-05-04 08:04:28 +00:00
alfred
1d5057f893
style(9): 'if' and 'while' need a space after them.
2002-05-04 07:40:49 +00:00
jeff
86e123b512
Include systm.h so panic(9) is defined when doing DEBUG_ALL_VFS_LOCKS.
2002-05-04 02:40:37 +00:00
jeff
726c505bb9
Include systm.h for panic(9) so that DEBUG_ALL_VFS_LOCKS compiles.
2002-05-04 02:37:00 +00:00
jeff
7b732400ba
include systm.h in vnode_if.c so that panic is defined when we're doing
...
DEBUG_ALL_VFS_LOCKS.
2002-05-04 02:35:13 +00:00
alc
d44b3a12b3
o Remove GIANT_REQUIRED from vm_map_lookup_entry() and
...
vm_map_check_protection().
o Call vm_map_check_protection() without Giant held in munmap().
2002-05-04 02:07:36 +00:00
phk
e32f487207
HPFS picks up the vop_stdgetpages and vop_stdputpages member functions
...
via the default entry and the default vop vector.
2002-05-03 18:23:29 +00:00
jmallett
e977af0eb9
Typo fix: detects -> detect.
...
Reviewed by: phk
2002-05-03 17:59:25 +00:00
phk
569efacf66
Fix a memory-leak when configuring a vnode backed md(4) device fails.
...
Submitted by: Martin Faxér <gmh003532@brfmasthugget.se>
MFC after: 4 weeks
2002-05-03 17:55:10 +00:00
des
4b86ef0e32
s/pfs_badop/vop_eopnotsupp/
...
Submitted by: phk
2002-05-03 14:58:25 +00:00
phk
d26e256ae9
Initialize time_second to 1 instead of zero to pacify slightly bogus arp code.
...
Various minor style fixes from BDE.
2002-05-03 08:46:03 +00:00
phk
8c21a84e58
Don't grab the lock until somewhat later in attach to avoid a lock
...
reversal.
2002-05-03 08:44:53 +00:00
phk
a1f99d3509
Name ufs_vop_[gs]etextattr() consistently with the rest of our VOPs and
...
put then in the ufs_vnops where they belong, rather than in the ffs_vnops.
Ok'ed by: rwatson
Sponsored by: DARPA & NAI Labs.
2002-05-03 08:40:33 +00:00
tanimura
101b936bbc
As malloc(9) and free(9) are now Giant-free, remove the Giant lock
...
across malloc(9) and free(9) of a pgrp or a session.
2002-05-03 07:46:59 +00:00
tanimura
ba261cf2ed
The first argument of pgsigio() is now struct sigio **.
2002-05-03 07:45:26 +00:00
tanimura
58f1f5c532
Fix the lock order reversal between the sigio lock and a process/pgrp lock in
...
funsetownlst() by locking the sigio lock across funsetownlst().
2002-05-03 05:32:25 +00:00
marcel
20d0f94ddc
Adjust KINFO_PROC_SIZE due to segsz_t being changed from a 32-bit to
...
a 64-bit integral.
2002-05-03 01:41:37 +00:00
scottl
4bd83f2387
bzero out the sync command buffer when sending commands. This was causing
...
problems when enumerating multiple arrays.
This is an MFC candidate.
2002-05-03 00:07:50 +00:00
joe
b44cd51e3e
MFNetBSD:
...
revision 1.94
date: 2001/12/30 20:26:59; author: augustss; state: Exp; lines: +5 -2
Make sure we don't have any pending softintrs when entering polling mode.
Thanks to Darrin for finding and fixing this problem when using USB
keyboards in DDB.
2002-05-02 22:47:37 +00:00
peter
ab041d4f7c
Retire makeobjops.pl - replaced by ../tools/makeobjops.awk.
2002-05-02 22:21:59 +00:00
pdeuskar
d2285cecc5
Make em driver compilable on IA64/alpha.
...
Submitted by: peter
MFC after: 3 days
2002-05-02 22:21:01 +00:00
peter
eee1c0968b
Retire makeLINT.pl
2002-05-02 22:20:40 +00:00
peter
91d051e18d
Makefile uses genwakecode.sh now.
2002-05-02 22:17:35 +00:00
alfred
7abfc9c5e6
Cleanup, quote:
...
This leaves some vestiges of the old locking, including style
bugs in it. I've only noticed anachronisms in socketvar.h so far
(I've merged net* but not kern or all of sys). The patch also
has old fixes for style bugs in accf stuff and namespace pollution
in uma... The largest style bugs are line continued backslashes
in column 80 and (these are fixed), and starting the do-while
code for the new macros in column 40, which is quite unlike the
usual indentation (see sys/queue.h) and not even like the indentation
for the old macros (column 32) (this is not fixed).
Submitted by: bde
2002-05-02 22:03:19 +00:00
phk
8cabbc69f8
As promised make the hack for sizeof(struct disklabel) on alpha annoying.
...
Run make world (or recompile whatever program whines) to get rid of warning.
Compat bits will be removed entirely in about two weeks.
2002-05-02 21:53:39 +00:00
mux
85b0c22bf2
Convert devfs to nmount.
...
Reviewed by: phk
2002-05-02 20:27:42 +00:00
mux
bd5dc603e6
Convert the pseudofs framework to nmount (thus procfs and linprocfs).
...
Reviewed by: des (some time ago), phk
2002-05-02 20:25:55 +00:00
mux
587c11370f
Convert fdescfs to nmount.
...
Reviewed by: phk
2002-05-02 20:24:50 +00:00
scottl
ca957593cb
Don't reference vop_std* since they are already implicitly
...
referenced through the VOP_DEFAULT vector
Submitted by: phk
2002-05-02 20:23:47 +00:00
obrien
083e8c7872
Revert rev 1.1018. rp(4) and dgb(4) are deemed MI, while the rest of the
...
drivers for simular hardware are i386-specific. That is why I did not
find the information here.
2002-05-02 19:42:38 +00:00
phk
860ddc59bc
Use vop_panic() instead of our home-rolled version.
2002-05-02 19:15:52 +00:00
phk
3685df09b1
Use vop_panic() instead of rolling our own.
2002-05-02 19:13:44 +00:00
alc
e8eb438f94
o Change the implementation of vm_map locking to use exclusive locks
...
exclusively. The interface still, however, distinguishes
between a shared lock and an exclusive lock.
2002-05-02 17:32:27 +00:00
des
afc18879ad
Join the pissing contest: generate LINT with a single sed(1) command.
...
Smaller script, smaller (though equivalent) output.
2002-05-02 16:34:47 +00:00