Commit Graph

117630 Commits

Author SHA1 Message Date
itojun
143464d11e realloc mistake 2003-09-19 05:41:33 +00:00
itojun
57e4de6099 add warning on realloc() size de-synchronization. from openbsd 2003-09-19 05:36:59 +00:00
itojun
6e4e427990 realloc mistake. from openbsd 2003-09-19 05:33:15 +00:00
itojun
c747caaab9 make signal range check consistent. 2003-09-19 05:31:11 +00:00
jonathan
5923dedaeb Fast-ipsec can call ip_output() with a null 'struct socket *so'
argument.  So check so is non-NULL before doing the pointer-chasing
dance to find the PCB. (Unless and until we rework fast-ipsec and
KAME, to pass a struct in_pcbhdr * instead of the struct socket *).
2003-09-19 00:27:56 +00:00
cl
b826d7b216 add MD part of SA/pthread pagefault handling on powerpc 2003-09-19 00:16:34 +00:00
mrg
f9975d193b add a HAVE_GDB53 switch. defaults to no one yet. 2003-09-18 23:17:55 +00:00
cl
4fb604b287 add MD part of SA/pthread pagefault handling on sh5 2003-09-18 22:40:04 +00:00
cl
0882aaed34 add MD part of SA/pthread pagefault handling on vax 2003-09-18 22:38:36 +00:00
cl
2c1366cfee add MD part of SA/pthread pagefault handling on arm 2003-09-18 22:37:38 +00:00
cl
c32b8e7a57 add MD part of SA/pthread pagefault handling on alpha 2003-09-18 22:36:32 +00:00
keihan
2dbdce50d1 Sort entries. 2003-09-18 21:59:27 +00:00
skd
3736d609a5 Fix for ioapic irq routing. This fixes kern/22728.
Approved by fvdl.
2003-09-18 19:31:19 +00:00
ragge
3fc53f17c5 Remove ; after setrunqueue/remrunqueue macro. 2003-09-18 18:38:48 +00:00
lonewolf
b06ea56eff Fix mistake in previous. 2003-09-18 15:01:33 +00:00
lonewolf
ae33e68d84 Correct offsets for HPC_PBUS_CHx_{BP,DP} and add HPC_PBUS_DMACTL_* definitions. 2003-09-18 15:00:26 +00:00
pooka
ec398e6f4d regen 2003-09-18 14:50:07 +00:00
pooka
3e2a629fec Add a good enuf emulation of the MAP_STACK flag to the mmap()
syscall.  This allows programs which use MAP_STACK to work instead
of failing in weird and wonderous ways.
2003-09-18 14:44:09 +00:00
drochner
da03a1c8cf Fix a reversed logic in swap deallocation which could lead to
uvm_swap_free() being called with a zero slot; this might have been
the reason for crashes with sysvshm and heavy swapping.
(PR kern/22752 by Tom Spindler)
Confirmed by Chuck Silvers.
2003-09-18 13:48:05 +00:00
itojun
28c3d43114 typo. markus@openbsd 2003-09-18 12:42:33 +00:00
salo
f7f6feea75 Add missing ". From Tim Goodwin via PR misc/22843. 2003-09-18 11:25:00 +00:00
agc
4fe63c7eb9 Let pkg_admin(1) have a -S argument - some vendors' xargs(1) don't pass
a null ("") argument properly (hi, Sun), so make -S a synonym for -s "".

Don't dump core if no command is given to pkg_admin(1).

Print usage message to stderr, not stdout, and use the program name by
which it was invoked.

Bump pkg_install version to 20030918.
2003-09-18 09:56:20 +00:00
jdolecek
bb21f0beb4 remove pw_dup() 2003-09-18 09:24:35 +00:00
grant
0faf575771 wait for compression program to finish before exiting.
fix races condition resulting in a zero length archive after pax
exits.

patch from OpenBSD, provided by Joerg Sonnenberger in PR bin/22740.
2003-09-18 09:18:24 +00:00
jdolecek
ef84f2357f update for pw_dup(3) removal 2003-09-18 09:16:27 +00:00
jdolecek
430f0af1db remove pw_dup(3), for now at least
follows discussion on mailing lists, discussed in private e-mail with Itojun
2003-09-18 09:13:14 +00:00
itojun
841f7944e5 protect against double free; #660; zardoz at users.sf.net
from openbsd
2003-09-18 08:16:40 +00:00
itojun
c2011dbc01 missing buffer_free(&encrypted); #662; zardoz at users.sf.net
from openbsd
2003-09-18 08:16:15 +00:00
mycroft
e80260e91f Whoops, make sure 6-byte commands work again. 2003-09-18 06:55:53 +00:00
skd
f5c4ea935a Added kernel support for single stepping, adapted from FreeBSD.
Approved by christos.
2003-09-18 05:26:41 +00:00
mycroft
f96fe2cc8a Don't print junk if an INQUIRY fails (usually with an ILLEGAL REQUEST due to
an unused LUN).  Also, if the qualifier says the LUN is non-existant, don't
try to attach a device here.
2003-09-18 05:06:53 +00:00
christos
898af9fa6c make sure we init nalloc. 2003-09-18 01:41:56 +00:00
christos
3171afa413 fix problem in previous patch 2003-09-18 01:35:07 +00:00
mycroft
9fa456e7b6 nluns should be 8, not 7. 2003-09-18 01:33:58 +00:00
mycroft
9dbb8c86d4 Merge the geometry and cache handling code for all direct access and optical
devices, as it's general to all SCSI MMC devices.  In the process, remove
PQUIRK_NO_FLEX_PAGE.
2003-09-18 00:06:31 +00:00
mycroft
e873dbd7ad If READ CAPACITY fails, try a READ FORMAT CAPACITIES. Separate this into
another function, always doing a page 0 MODE SENSE to get the block
descriptor if we use READ CAPACITY, and use SMS_DBD on the page 4/5 MODE
SENSE.  This does one extra command in some cases, but it separates and
simplifies the code a little.

Why do we prefer READ CAPACITY over READ FORMAT CAPACITIES?  Two reasons:
1) It's much older and is much less likely to have had its command code
abused, and is thus "safer" to try first.  2) ALL of my USB flash readers
and pen drives screw up their capacity descriptors -- mostly off-by-one
errors in the size (they return the maximum LBA number instead, a la READ
CAPACITY, which has *never* been how READ FORMAT CAPACITIES was documented
in the MMC spec), and one returns the "no media" code on slots that have
media inserted (despite returning almost-correct data otherwise)!

F*** me with a chainsaw.
2003-09-17 23:33:43 +00:00
christos
d4d840dd36 More buffer size adjusted before allocation succeeded fixes. Bump to 20030917.
From FreeBSD (with an additional one from me).
2003-09-17 23:19:02 +00:00
cl
3c10927ebe add MD part of SA/pthread pagefault handling on all m68k ports 2003-09-17 23:17:39 +00:00
yamt
9eeb053922 redo the previous in a different way; use vm_map_min/max macros. 2003-09-17 22:06:50 +00:00
yamt
4a1d5a0332 update lockdebug detection to follow uvm_map.h rev.1.35.
(vm_map.header.{start,end} was swapped.)
2003-09-17 21:59:52 +00:00
enami
69fc84d695 Need to write entire sector. 2003-09-17 21:09:18 +00:00
tron
71261af8cc Bump version number after parse8.359.2.8 patch has been applied. 2003-09-17 20:23:00 +00:00
cl
c6de69ee49 fix pt_trapuc handling errors:
- movl to address register doesn't set flags (add explicit test)
- clr only clears a word (use clrl)
2003-09-17 20:08:07 +00:00
mycroft
b2d9db1002 Remove PQUIRK_BYTE5_ZERO. 2003-09-17 19:14:56 +00:00
grant
9bf724618c put flags in a list with descriptions. add proper description of -w. 2003-09-17 18:24:47 +00:00
jmmv
4c79e7620f Drop equal signs from rule definitions; they cause problems with "bison -y". 2003-09-17 17:33:36 +00:00
bouyer
65b0588afd Add back support for the legacy VT8237 IDE controller.
This wasn't an error, on this chipset we have the SATA controller on function
0 of the IDE controller, not the pcib bridge.
Fix provided by Stephen Degler.
2003-09-17 16:55:20 +00:00
christos
4dcb41ae2c PR/22640: Paul Jarc: sh mishandles positional parameters in case. Fixed
from FreeBSD PR 56147.
2003-09-17 16:01:19 +00:00
itojun
4d7e624b6d fix prescan() bug (potentially remotely exploitable), CAN-2003-0694 2003-09-17 14:16:22 +00:00
agc
54f9bdba40 Remove the names of arguments from function prototypes. 2003-09-17 13:27:42 +00:00