Age | Commit message (Collapse) | Author |
|
this patch only changes two bits, note that '\011' != '9' == '\071'.
Bug introduced by the original author, Michael Rendell, and
committed by Keith Bostic on May 22, 1990 (CSRG SCCS rev. 5.1).
The following operating systems are affected: 4.3BSD Reno, BSD Net/2,
4.4BSD, 4.4BSD Lite1, 4.4BSD Lite2, and all versions of 386BSD,
NetBSD, OpenBSD, FreeBSD, DragonFly, Debian GNU/Linux (package
bsdmainutils) and probably many others.
"that's a fun one" millert@, "nice find" deraadt@
|
|
The half line feed escape codes are decimal 8 and 9 (octal 010 and 011).
While here, make it clear that the numbers are ASCII, and consistently
use lower cases character names in the first column and decimal numbers
in the parentheses at the end of the second column.
OK millert@
|
|
OK nicm@
|
|
sys/arch/i386/i386/bios.c, ok deraadt
|
|
bus_space(9) diff.
ok sthen@
|
|
storing them in struct person since they are only used for output.
Uses reallocarray() for overflow detection. OK deraadt@
|
|
|
|
| i386/bus_space.c:1.5->1.6
| i386/machdep.c:1.551->1.552
| include/bus.h:1.61->1.62
|
|
Do not include sys/param.h.
OK nicm@
|
|
ok deraadt@, armani@
|
|
|
|
hiding, it is a lot of other systems too.
|
|
MD code needs excess #ifndef SMALL_KERNEL
|
|
DragonFly, NetBSD and GNU coreutils, even though it's not POSIX.
Actually, this simplifies the code rather than complicating it.
Because -a and -d need not be mutually exclusive (as observed by
millert@) and -s is identical to -d 0, -a and -s are no longer
mutually exclusive, but -as and -sa are now the same as -s.
That is explicitly allowed by POSIX.
Based on a patch from William Orr <will at worrbase dot com>,
but extensively massaged and HISTORY added by me.
feedback and ok millert@
|
|
ok dcoppa@ deraadt@
|
|
oddly if it reaches the end of buffer before completing all
iterations. This diff makes the kill-paragraph and forward-paragraph
commands stop once they can go no further. ok florian@
|
|
its value with the body of the if. No functional change.
'increase' was orphaned when r1.139 eliminated support for 'medium'
statements in dhclient.conf.
Stumbled over while looking into a problem for weerd@.
|
|
ok deraadt@
|
|
|
|
|
|
|
|
|
|
tricky, but note the remembered size is in bss.
|
|
reallocarray() where it helps.
ok doug
|
|
|
|
with an ihandle instead of a phandle. And also the comparison was the
wrong way around.
This bug was causing an exception. Because -1 is returned to indicate
failure and because the comparison is the wrong way around, the bad logic
led to believing that SUNW,retain exists which is why this currently
works on some PROMs.
On E250/E450 machines, this didn't work so there was a hack to detect
these machines and work-around the problem. After this fix that hack is
now removed.
Tested on an E450 by sebastia@ and confirmed that his dmesg is now
retained after a reboot. nick@ promises to complain if his E250 is any
worse off.
ok kettenis@
|
|
|
|
|
|
instead. this effectively kills -C, though the option is kept for compat.
|
|
introduce a new sysctl, hw.perfpolicy, that governs the policy.
when set to anything other than manual, hw.setperf then becomes read only.
phessler was heading in this direction, but this is slightly different. :)
|
|
src/sys/arch/amd64/amd64/bus_space.c r1.22
src/sys/arch/amd64/include/bus.h r1.27
instead of using the tag as an identifier for IO or memory mappings
that was checked inside the api, turn it into a pointer to a structure
of function pointers. the api then generally becomes a set of macros
that deref the function pointers on the callers behalf. the idea
is that following a pointer to very small functions is cheap compared
to doing compares continuously.
the kernel is smaller and the api is more cache friendly now.
the porting of this code from amd64 to i386 was done by kimberley manning
requested by and ok tedu@
|
|
pfsync_sendout. more specifically, move the reset of sc->sc_len to
PFSYNC_MINPKT above ip_output.
this prevents a situation where ipsec via ip_output calls
pfsync_update_tdb for syncing the ipsec flow to a peer, which
accounts for the tdb in the next pfsync packet, before unwinding
back to pfsync_output which resets the accounting we just did.
the next pfsync packet to be sent out will be allocated with a short
length because sc_len is wrong, and the long lists of things (eg,
the tdb) can overwrite memory after the mbuf. this manifests as
incorrect poisoning or xsimpleq entry corruption in mbufs still in
a pool, or random corruption of m->m_next on other mbufs in the
system.
bug found, fix tested, and ok stsp@
|
|
|
|
Pointed out by Mark Cave-Ayland.
|
|
|
|
ok deraadt
|
|
ok deraadt@
|
|
Discussed with guenther.
|
|
putting a LID into the global list of LIDs if we encounter an error writing
to _PSW for that LID. Needed for another upcoming diff.
ok deraadt, phessler
|
|
both AMD and Intel CPUs. Previously, the encoding was causing illegal
instruction exceptions on AMD, causing hibernate resume to fail.
|
|
in the region, but my time is limited...
|
|
OK deraadt@
|
|
and existing implementations vary as to whether it returns time for
the calling thread or the entire process. OK kettenis@
|
|
|
|
backspace characters beyond column MAX_SHRT, overflowing c_column.
2) Fix imcomplete initialization of the final element of the *count
array by adding a missing pair of parentheses.
3) For code clarity and extra safety, change all variables dealing
with column numbers from int to size_t such that they cannot overflow.
Found while reviewing the patch from deraadt@'s reallocarray() rampage.
Feedback and OK millert@.
|
|
|
|
|
|
ok jsing@
|
|
OK nicm@
|
|
hibernate anymore.
|