Commit Graph

209927 Commits

Author SHA1 Message Date
wiz
ca57fd067f Use Lk. 2012-03-17 11:09:29 +00:00
jruoho
4608dbc06e PR kern/46077 was fixed; remove xfail. 2012-03-17 08:37:08 +00:00
jruoho
a43eb6ed04 PR bin/42179 was fixed; remove xfail. 2012-03-17 08:34:55 +00:00
christos
b654a04427 PR/46077: M. Nunberg: Stat should not fial on connecting socket. 2012-03-17 02:48:51 +00:00
christos
c583007244 PR/43141: Tobias Nygren: Print an error on unknown interfaces. 2012-03-17 02:25:08 +00:00
christos
e101c08658 PR/42179: Christoph Badura: Be a little friendlier about missing args. 2012-03-17 02:13:44 +00:00
jakllsch
cc443ff60b Prevent access beyond end of PUFFS file on read,
similar to as is done for NFS.
2012-03-16 23:13:48 +00:00
joerg
ba562931eb This version of __diagssert13 is dead. 2012-03-16 11:44:54 +00:00
matt
a030baf591 Allow testing of exec pages on PowerPC BookE.
Make return_one actually do the right thing.
2012-03-16 08:51:47 +00:00
hannken
88f39ca44e Fix last commit that broke lookup for dot with op DELETE.
Reviewed by: David Holland <dholland@netbsd.org>
2012-03-16 08:39:54 +00:00
matt
e04c99d5d7 This is no longer expected to fail. 2012-03-16 08:14:11 +00:00
matt
9e3fcedeae Add CPU_EXECPROT sysctl so that atf can enable exec permission tests for
PPC Booke.
2012-03-16 07:41:54 +00:00
matt
7ca5266964 Make sure to have copyinstr return ENAMETOOLONG if the string was too long. 2012-03-16 07:23:38 +00:00
matt
d35b5e4f3f Fix PR/49150.
Make listen(2) match the opengroup specification for what what errno to
return if the socket is connected when a listen(2) is attempted.
2012-03-16 06:47:37 +00:00
matt
ae11ed12ab Don't rely on INT_MAX being unmapped. Use mmap to get a page and then unmap
it.  Then use that address for msync.
2012-03-16 06:15:17 +00:00
jkoshy
936bd63786 Add an entry for myself. 2012-03-16 05:43:09 +00:00
njoly
d0e00679ff Use Lk macro when dealing with URLs. While here update or remove some
dead URL links. Another part of PR/29238.
2012-03-15 22:35:02 +00:00
njoly
a973b36486 Use Lk macro when dealing with URLs. Another part of PR/29238. 2012-03-15 19:04:46 +00:00
bouyer
867f16169f Revert previous; needs more work 2012-03-15 18:52:02 +00:00
bouyer
5ade347d8f Use the right marcro for loop bound, avoids read past array end. Found by
gcc -03
2012-03-15 18:49:49 +00:00
bouyer
eaba10165e Also print and bail out if the hardware returned a too large bSamFreqType,
instead of reading past descriptor array. Found by gcc -O3
2012-03-15 18:40:32 +00:00
bouyer
22a92de5f8 Always init *val; some callers of zyd_read*() do not check the return
value for error. Found by gcc -O3
2012-03-15 18:39:21 +00:00
bouyer
38a537f636 Do not read array before detecting array overflow, found by gcc -O3 2012-03-15 18:38:37 +00:00
bouyer
f0112171b7 Do not read past array end, found by gcc -O3.
This could cause to HWRITE4() a bad value, but maybe last 2 bytes are
probably ignored by hardware anyway.
2012-03-15 18:37:43 +00:00
bouyer
02c4438c8c Do not read past array end; found by gcc -O3 2012-03-15 18:35:20 +00:00
bouyer
de1b145cd5 Fix array overflow, found by gcc -O3. 2012-03-15 18:34:40 +00:00
christos
526d942790 - ansify, knf.
- no functional changes
2012-03-15 18:22:30 +00:00
christos
815317212f missed one (thanks joerg) 2012-03-15 16:47:38 +00:00
bouyer
5358272642 always set *data to appease gcc -03 (some users of cx24227_readreg() don't
check return value for error).
2012-03-15 16:20:36 +00:00
bouyer
e15100e94c Do not use uninitialized level if fujitsu_bp_get_brightness() returned
an error; from gcc -O3 (completely harmless in this case though).
2012-03-15 16:19:02 +00:00
bouyer
44cd46846c Do not read past end of array. Found by gcc -03 2012-03-15 16:17:48 +00:00
wiz
7fd6e7037d Remove trailing whitespace. 2012-03-15 15:49:59 +00:00
christos
21ae83057a Fix obsolete example (that referred to letters in process state that are
not set anymore), and clarify their meaning.
2012-03-15 15:43:43 +00:00
joerg
f03aabbcc7 Don't error out for non-literal format strings with Clang until the rest
of the __printflike changes are in the tree.
2012-03-15 15:04:23 +00:00
gson
0ee056ffda Fix random kernel memory corruption by algo_doublehash(). And by
"random" I don't mean just "arbitary" as in using an uninitialized
pointer, but random as in corrupting the contents of memory addresses
chosen using a crypto-strength random number generator.

I believe this is the likely cause of multiple reports of random
crashes over the last six months, including kern/45677 and kern/46096.
2012-03-15 13:25:46 +00:00
christos
16b0f218f0 fix signature. 2012-03-15 13:23:10 +00:00
njoly
a3a0bab7f9 Add another testcase that check setting file times with unprivileged
credentials.
2012-03-15 12:57:27 +00:00
njoly
874d053d0b Use puffs_access() return value in the VA_UTIMES_NULL case. 2012-03-15 12:49:36 +00:00
njoly
a01e8f8ae6 Use VOP va_vaflags attribute for genfs_can_chtimes(), not rumpfs node
one.
2012-03-15 12:42:28 +00:00
christos
504754efd0 ansi prototypes. 2012-03-15 11:46:08 +00:00
macallan
529c07d228 adjust the backlight control interface to match the other drivers ( genfb,
r128fb, voyagerfb etc. ) so the lid_switch script does the right thing
noticed by riz, I thought I fixed that a long time ago
2012-03-15 05:47:19 +00:00
joerg
93f9555bb0 Add __printflike where needed. Fix various format string issues. 2012-03-15 04:06:54 +00:00
macallan
131fa2f6f2 we need to zap the glyph cache when re-initializing after X 2012-03-15 03:12:51 +00:00
dholland
d4bd1c2d11 Tidy up: we no longer need FIRSTVALID for its original purpose, so change
the name of the symbol to something that applies to the remaining use.
2012-03-15 03:04:05 +00:00
dholland
6eb9e0a428 When the wtmp file is empty, for the "wtmp[x] begins..." output, use
the last mod time of the wtmp file (in practice, the time it was last
rotated, which is when it begins) instead of the current time, which
wasn't ever particularly useful. PR 39444.
2012-03-15 03:01:03 +00:00
dholland
ce683a0035 Keep track of the timestamp of the last (thus oldest) record seen and use
it to print "wtmp[x] begins" at the end, instead of knowing where to look
in the final utmp buffer to get a final timestamp out. This is both tidier
and fixes a problem with wtmpx files, which is that if the header record
is missing (which it seems to be on my machines) it would fetch the wrong
time out, and if you happened to have a one-record wtmp file it would use
the current time instead. This change restores the traditional behavior
of printing the time of the oldest record in the file, and if no records
are present to use the current time.

It might be a bug that wtmpx files don't seem to have the header
record they supposedly ought to.
2012-03-15 02:55:02 +00:00
joerg
66dd2755f5 Add __printflike attribution to use vprintf and friends with an argument
as format string.
2012-03-15 02:02:20 +00:00
joerg
17cb70e7b4 Decouple HAVE_LLVM from HAVE_GCC. For GCC, add -Wno-format-zero-length
when -Wformat is used.
2012-03-15 02:00:52 +00:00
joerg
a42982fe46 Fix format strings to properly quote %. 2012-03-15 01:44:44 +00:00
joerg
861f8848de Mark w_printf as __printflike and fix a format string error. 2012-03-15 01:44:07 +00:00