Commit Graph

257272 Commits

Author SHA1 Message Date
knakahara
e7acdb682b comment out confusing (and incorrect) code and add comment. Pointed out by maxv@n.o, thanks. 2018-03-13 03:05:12 +00:00
mrg
f0a3006c1d use CLEANFILES+= not CLEANFILES= to avoid overriding what was already
setup before now.
2018-03-13 03:03:33 +00:00
kamil
a1788664a1 Make sysctl_doeproc() more predictable
Swap the order of looking into zombie and all process lists, start now
with the zombie one. This prevents a race observed previously that the
same process could be detected on both lists during a single polling call.

While there:
 - Short-circuit break for KERN_PROC_PID, once a pid has been detected.
 - Removal of redundant "if (kbuf)" and "if (marker)" checks.
 - Update of comments regarding potential optimization, explaining why we
   don't want to it as of now. Performance gain from lookup call vs
   iteration over a list is neglible on a regular system.
 - Return ESRCH when no results have been found. This allows more easily
   to implement a retry or abandon algorithm.

This corrects races observed in the existing ATF ptrace(2) tests, related
to await_zombie(). This function was expecting to check whether a process
has been transformed into a zombie, however it was causing occasional
crashes as it was overflowing the return buffer, returning the same pid
twice: once from allproc list and the second time from zombieproc one.

Fix suggested by <christos>
Short-circuit break suggested by <kre>

Discussed on tech-kern.

Sponsored by <The NetBSD Foundation>
2018-03-13 02:24:26 +00:00
mrg
d28ac4e2bc add missing pcfwrite.c. 2018-03-13 02:23:28 +00:00
mrg
0955925eb7 clean up CRUNCHBIN.map 2018-03-13 02:22:43 +00:00
knakahara
51a1e9f49e Fix IPv6 ipsecif(4) ATF regression, sorry.
There must *not* be padding between the src sockaddr and the dst sockaddr
after struct sadb_x_policy.
2018-03-13 02:12:05 +00:00
mrg
cbb4749bb3 update for new amdgpu and radeon driver versions. 2018-03-12 18:48:49 +00:00
maxv
473744b505 Remove dead branches, 'npc' can't be NULL (and it is dereferenced
earlier).
2018-03-12 12:45:26 +00:00
pgoyette
2461f62e8b Remove exgtraneous comma 2018-03-12 11:56:34 +00:00
wiz
2458e695f0 Remove Tn. 2018-03-12 09:29:43 +00:00
msaitoh
40af7057a9 AMD L3 cache association bitfield is not 8bit but 4bit like others association
bitfields.
2018-03-12 07:35:45 +00:00
msaitoh
d536bc686b s/CLFUSH/CLFLUSH/
No functional change.
2018-03-12 07:12:54 +00:00
msaitoh
928f98ab1c Add 3way and 6way of L2 cache or TLB on AMD CPU. 2018-03-12 06:20:33 +00:00
christos
68ed0ec4e8 improve previous, use getprogname() to get the invocation name. 2018-03-12 01:15:00 +00:00
khorben
0b9ecbe221 Reflect the new name of vndconfig(8) in the usage screen
vnconfig(8) was renamed to vndconfig(8) in NetBSD 7. While the manual page
now defaults to vndconfig, the usage screen still referred to the old name.
2018-03-12 01:10:25 +00:00
dholland
ab87b60207 Explicitly mention use of -- for format strings beginning with -,
per PR 21970.
2018-03-12 00:42:05 +00:00
christos
42004fe06d sort, add missing lint file 2018-03-11 23:49:39 +00:00
joerg
aa18a61198 Stub out on platforms without ifunc support in the linker. 2018-03-11 21:20:22 +00:00
mrg
2f4e8debbd regen these files for xkeyboard-config 2.23.1. 2018-03-11 20:17:19 +00:00
christos
e9e7b01807 undo previous; breaks the build. handle inside flex. 2018-03-11 18:32:43 +00:00
christos
cf5485362c don't need sys/cdefs.h if tool. 2018-03-11 18:32:10 +00:00
kre
0ec94bd49e Make a comment meaningful. ie: s/Ditto/what it was copying/ (more or less)
That is, there was a comment "Ditto" - which once upon a time, was used
to indicate the the previous comment applied here as well.   Time passed,
and software mutated, and the previous comment was unfortunately sacrificed.

Poor little Ditto was left all alone.

Noticed while doing some software archaeology.
2018-03-11 15:13:05 +00:00
christos
ecaf5f24ed deal with cvs meta-data directories not called CVS. 2018-03-11 14:59:41 +00:00
maxv
e11a6c86b3 Explain the TSC drift thing. 2018-03-11 13:38:02 +00:00
tih
62971bca43 Add myself. 2018-03-11 11:48:39 +00:00
mrg
cbcc8121fa mark fontcache files as obsolete. 2018-03-11 11:34:33 +00:00
mrg
b3255b1841 20180311:
bdftopcf was updated and may need cleaning in the
	src/external/mit/xorg/tools/bdftopcf subdirectory if there are
	link errors.
2018-03-11 11:18:06 +00:00
mrg
2cca8ab520 move the src list from libXfont stuff to local stuff. 2018-03-11 11:01:07 +00:00
mrg
45c2b575db update for bdftopcf 1.4.0. 2018-03-11 10:48:38 +00:00
mrg
be73d44615 fix libXfont2 sources list. update for xfs 1.2.0. 2018-03-11 10:17:10 +00:00
hans
ccac921152 Fix build of tools/lex on platforms lacking sys/cdefs.h by including
nbtool_config.h in tools/compat/regex.h. Tested on illumos.
2018-03-11 10:14:04 +00:00
mrg
12fffe5478 define LIBXFONT2. 2018-03-11 09:56:44 +00:00
mrg
8d3614ad11 build and install libXfont2. 2018-03-11 09:43:38 +00:00
mrg
5083d6789f use xorg-pkg-ver.mk. 2018-03-11 09:03:04 +00:00
mrg
6b967b0242 use xorg-pkg-ver.mk 2018-03-11 08:59:52 +00:00
mrg
be01acb109 use xorg-pkg-ver.mk and define HAVE_USLEEP. 2018-03-11 08:46:31 +00:00
mrg
e2ac71f7b9 look in man/ subdir for the manual 2018-03-11 08:21:24 +00:00
mrg
006d83878d use xorg-pkg-ver.mk 2018-03-11 08:03:20 +00:00
mrg
6e5b391377 stop building libXfontcache as it is obsolete for a decade. 2018-03-11 07:18:49 +00:00
khorben
7b298995bd Outsource setting the backplane window into a specific function so it
can be called and reused in different places.

From OpenBSD.
2018-03-11 00:17:28 +00:00
khorben
a8074f194a Fix spello in a comment 2018-03-10 23:25:59 +00:00
maxv
7ddcc8beaa Add KASSERTs. 2018-03-10 17:52:50 +00:00
maxv
00c01d2fd1 Fix the computation. Normally that's harmless since ip6_output recomputes
ip6_plen.
2018-03-10 17:48:32 +00:00
eadler
736570df7c Fix signed overflow in atan2
As a component of atan2(y, x), the case of x == 1.0 is farmed out to
atan(y). The current implementation of this comparison is vulnerable
to signed integer underflow (that is, undefined behavior), and it's
performed in a somewhat more complicated way than it need be. Change
it to not be quite so cute, rather directly comparing the high/low
bits of x to the specific IEEE-754 bit pattern that encodes 1.0.

ok martin@ pgoyette@ maya@
obtained from FreeBSD
2018-03-10 09:44:47 +00:00
eadler
ade4ae952e Add "Eitan" to propernames
ok pgoyette@
2018-03-10 09:37:59 +00:00
tsutsui
f5f6a58b85 Replace bus_dmamap_sync(9) op with a newer one taken from m68k/bus_dma.c.
This could fix memory corruption issue caused by PREREAD ops with regions
whose boundaries are not aligned at cacheline size.
2018-03-10 03:44:43 +00:00
tsutsui
5b76dcbd29 Fix another possible out of bounds. 2018-03-10 02:48:51 +00:00
macallan
6c51ddf062 remove some unused code, add comments for credits & explanations 2018-03-09 22:27:15 +00:00
mrg
76e973d086 match opening ( with closing ) instead of closing }.
fixes mips builds... partly.
2018-03-09 21:49:55 +00:00
joerg
a64ef2fb9e Add ifunc support for statically linked applications on x86, ppc, sparc
and ARM.
2018-03-09 20:20:47 +00:00