deraadt [Tue, 2 Jun 2015 06:10:14 +0000 (06:10 +0000)]
missing " spotted by Kyle Milz
miod [Tue, 2 Jun 2015 04:33:39 +0000 (04:33 +0000)]
Make sparc go PIE (not `static PIE' yet).
miod [Tue, 2 Jun 2015 04:31:53 +0000 (04:31 +0000)]
Override pie range constants (well, only VM_PIE_MAX_ADDR) with a variable
which value is decided at runtime, in order to only enable PIE on sun4m
which has a large enough address space.
jsg [Tue, 2 Jun 2015 02:30:16 +0000 (02:30 +0000)]
with binutils 2.17 we can change some raw opcodes into instruction names
ok miod@ deraadt@
jsg [Tue, 2 Jun 2015 01:48:25 +0000 (01:48 +0000)]
Rename the imx miniroot to nitrogen as it creates "6x_bootscript".
Add a miniroot for the CuBox-i which needs u-boot at a particular
offset in the sd image to boot. Based on changes made by Patrick
Wildt in bitrig.
miod [Mon, 1 Jun 2015 19:55:20 +0000 (19:55 +0000)]
In the lazy binding routine, make sure we actually allocate the stack we need,
instead of corrupting the caller's stack by mistake.
This fixes the mysterious segfaults in __powerpc_read_tcb() reported on
earlier G3 systems - more recent processors have been luckier...
ok deraadt@
miod [Mon, 1 Jun 2015 19:03:46 +0000 (19:03 +0000)]
Revert 1.2, which used to be necessary during the early ld 2.17 work, but
hasn't been required for a while.
miod [Mon, 1 Jun 2015 19:03:10 +0000 (19:03 +0000)]
Enable secureplt by default on alpha. The old plt flavour can still be
obtained by passing --no-secureplt to ld(1), or -Wl,--no-secureplt to cc(1)
when linking.
miod [Mon, 1 Jun 2015 19:02:11 +0000 (19:02 +0000)]
Since the __{div,rem}{l,q}{,u} special libc entry points use a specific
calling convention which conflicts over t11 usage with the secureplt
calling convention, force these symbols to be `notype' rather `function', so
that the linker will not attempt to use plt relocations for them in the
absence of explicit relocation information.
Note that these symbols are still public and still callable with the old plt
convention, so existing binaries will still work with an updated libc, and
no libc version change is necessary.
miod [Mon, 1 Jun 2015 18:59:41 +0000 (18:59 +0000)]
Define HAVE_AS_EXPLICIT_RELOCS and HAVE_AS_JSRDIRECT_RELOCS. These symbols are
only used by the alpha backend and allow it to produce more precise
relocation information, but need a recent as(1) for this to work.
This will be necessary to enable secureplt by default.
jmc [Mon, 1 Jun 2015 18:56:09 +0000 (18:56 +0000)]
update currency exchange rates;
note: no updates for iceland, ukraine, and vietnam as they're showing "n/a"
for the past two months on the economist (no idea)
miod [Mon, 1 Jun 2015 17:36:17 +0000 (17:36 +0000)]
Now that we do not need to build binutils 2.15 (except for gdb), simplify the
build logic.
miod [Mon, 1 Jun 2015 17:35:24 +0000 (17:35 +0000)]
Switch m88k ports to binutils 2.17.
stsp [Mon, 1 Jun 2015 15:53:10 +0000 (15:53 +0000)]
regen
stsp [Mon, 1 Jun 2015 15:52:57 +0000 (15:52 +0000)]
fix typo: Wirelsss -> Wireless
nicm [Mon, 1 Jun 2015 13:59:57 +0000 (13:59 +0000)]
Missing t at end of response, from Vincent Bernat.
claudio [Mon, 1 Jun 2015 09:54:16 +0000 (09:54 +0000)]
Fix memory leak in error case. OK bluhm@ benno@
uebayasi [Mon, 1 Jun 2015 09:31:40 +0000 (09:31 +0000)]
Put END() matching _ENTRY() (== ENTRY() w/o prof).
uebayasi [Mon, 1 Jun 2015 09:27:53 +0000 (09:27 +0000)]
Put END() matching ENTRY().
nicm [Mon, 1 Jun 2015 09:20:19 +0000 (09:20 +0000)]
Clear signal handlers before event_reinit as apparently it can otherwise
cause libevent to go strange.
mpi [Mon, 1 Jun 2015 07:48:04 +0000 (07:48 +0000)]
Convert tun(4) to if_input().
Tested by Norman Golisz and <mxb AT alumni DOT chalmers DOT se>, thanks!
ok bluhm@
schwarze [Sun, 31 May 2015 23:54:25 +0000 (23:54 +0000)]
Simple macro fixes (Fd -> In, Nm -> Fn) from Kaspars at Bankovskis dot net.
No content change.
deraadt [Sun, 31 May 2015 23:27:06 +0000 (23:27 +0000)]
does not need syslog.h
schwarze [Sun, 31 May 2015 23:12:16 +0000 (23:12 +0000)]
Implement the roff(7) `r' (register exists) conditional.
Missing feature found by Markus <Waldeck at gmx dot de>
in Debian's bash(1) manual page.
rpe [Sun, 31 May 2015 21:21:10 +0000 (21:21 +0000)]
Fix typos.
OK miod@
bluhm [Sun, 31 May 2015 20:10:44 +0000 (20:10 +0000)]
If the first list was empty, ml_join() did not not clear the second
list after transferring all elements away. Reorder the conditionals
to make sure that ml_init() is always called for a non empty second
list. This makes all cases consistent and is less surprising.
OK dlg@
rpe [Sun, 31 May 2015 19:40:10 +0000 (19:40 +0000)]
Replace identical code in the MD scripts of the installer with a new
MI function disklabel_autolayout() which now handles all aspects of
the disklabel auto-layout and autopartitioning case for the root disk.
Remove get_disklabel_template() and merge it with the new function.
"move forward" deraadt@
miod [Sat, 30 May 2015 19:53:02 +0000 (19:53 +0000)]
Build with -mbwx rather than -Wa,-mev56 so that upcoming changes to the compiler
will output proper .arch statements in its output.
No functional change.
jsg [Sat, 30 May 2015 18:14:08 +0000 (18:14 +0000)]
Remove commented out DRMDEBUG/DRM_DEBUG lines. Other drivers don't have
similiar lines so drm shouldn't either.
jsg [Sat, 30 May 2015 18:09:26 +0000 (18:09 +0000)]
DRMDEBUG not DRM_DEBUG. From frantisek holop.
claudio [Sat, 30 May 2015 09:47:25 +0000 (09:47 +0000)]
Plug a memory leak by simplifying kv_free(). By checking the type and
returning early the key and value memory got leaked on HTTP header kvs
since their type was never set.
OK benno@
claudio [Sat, 30 May 2015 09:38:11 +0000 (09:38 +0000)]
Remove fields from struct that are not used. OK benno@
kettenis [Sat, 30 May 2015 08:41:30 +0000 (08:41 +0000)]
Native atomic operations for i386.
ok deraadt@, guenther@, dlg@
kettenis [Sat, 30 May 2015 08:39:05 +0000 (08:39 +0000)]
Acquire/release the i2c bus before/after reading the temperature register.
Prevents concurrent access to the smu(4) microcontroller on Apple G5
machines, which would result in errors reading the RTC.
ok deraadt@, mpi@
jsg [Sat, 30 May 2015 08:09:19 +0000 (08:09 +0000)]
Set the usb otg port on the cubox to host mode and attach ehci to it.
While ehci attaches, devices don't seem to be recognised in the otg port.
From Patrick Wildt in bitrig.
nicm [Sat, 30 May 2015 06:25:35 +0000 (06:25 +0000)]
Support - to read from stdin, from Sebastien Marie.
jmc [Sat, 30 May 2015 06:24:59 +0000 (06:24 +0000)]
fix usage();
jsg [Sat, 30 May 2015 03:20:54 +0000 (03:20 +0000)]
Set the sdmmc(4) emmc highspeed flag if the capability register claims
it is supported.
deraadt [Sat, 30 May 2015 02:49:23 +0000 (02:49 +0000)]
cleanup attach message
jsg [Sat, 30 May 2015 02:17:36 +0000 (02:17 +0000)]
fix the build when SDHC_DEBUG is defined
nicm [Fri, 29 May 2015 23:26:52 +0000 (23:26 +0000)]
Don't use special strings if #() commands fail, just remove the format
(as if the command produced nothing). Makes constructions that can fail
like '#(test whatever && echo foo)' work as they did before.
nicm [Fri, 29 May 2015 23:12:38 +0000 (23:12 +0000)]
Expand formats again inside #(), and free the temporaries.
nicm [Fri, 29 May 2015 23:02:27 +0000 (23:02 +0000)]
Use RB_MIN to get the lowest index for the current window when creating
grouped sessions, rather than using RB_ROOT.
miod [Fri, 29 May 2015 20:30:49 +0000 (20:30 +0000)]
Switch vax to bunnytils 2.17.
miod [Fri, 29 May 2015 19:12:26 +0000 (19:12 +0000)]
Make ld.so on alpha cope with binaries built with secureplt (where secure here
means read-only, which our ld.so already enforced, but a smaller plt section).
nicm [Fri, 29 May 2015 15:58:34 +0000 (15:58 +0000)]
millert points out I can just call tzset() early to avoid having to
permit access() in the child.
nicm [Fri, 29 May 2015 15:58:01 +0000 (15:58 +0000)]
Use gmtime not localtime when we want UTC, I got it right in one place
but not in another two. I expect I was confused by the fact that the
original file(1) had them the wrong way round (so, for example, leqldate
was actually UTC).
deraadt [Fri, 29 May 2015 15:57:36 +0000 (15:57 +0000)]
do not need non-NULL-check before free(p), other minor refactoring
from Benjamin Baier
deraadt [Fri, 29 May 2015 15:53:46 +0000 (15:53 +0000)]
remove duplicate assignments; from Benjamin Baier
nicm [Fri, 29 May 2015 15:12:11 +0000 (15:12 +0000)]
Update file(1) regress (less verbose ELF output).
nicm [Fri, 29 May 2015 15:11:08 +0000 (15:11 +0000)]
Don't stop at the first successful test unless it has generated some
output.
nicm [Fri, 29 May 2015 14:52:10 +0000 (14:52 +0000)]
The case-insensitive flag (c) for string and search tests doesn't make
the entire match case sensitive, only lower case characters.
nicm [Fri, 29 May 2015 14:15:41 +0000 (14:15 +0000)]
I got confused and made the strength multiplier 20, it should be 10.
krw [Fri, 29 May 2015 13:54:26 +0000 (13:54 +0000)]
Nuke annoying whitespace nits to shrink some future diffs.
krw [Fri, 29 May 2015 13:48:45 +0000 (13:48 +0000)]
Nuke annoying whitespace nits to shrink some future diffs.
nicm [Fri, 29 May 2015 12:38:28 +0000 (12:38 +0000)]
file(1) needs access(/etc/localtime) for localtime().
nicm [Fri, 29 May 2015 12:33:41 +0000 (12:33 +0000)]
Only mmap() on regular files; mmap() on /dev/stdin will happily map as
much as we ask for but only the first page will be usable. (We could get
the actual size with ioctl(FIONREAD) and mmap() that but it would need
to be done in the parent - I think just using read() is simpler.)
nicm [Fri, 29 May 2015 11:59:01 +0000 (11:59 +0000)]
Make things a little less confusing by making fill_buffer self-contained
and return both the buffer and amount filled rather than having it
modify the input struct and return a value.
nicm [Fri, 29 May 2015 11:03:37 +0000 (11:03 +0000)]
If reading into buffer, correct the stored file size at EOF, we don't
want to look at any garbage that might already be in the buffer after
that. From Sebastien Marie.
uebayasi [Fri, 29 May 2015 09:25:28 +0000 (09:25 +0000)]
Put END() where appropriate.
While here, kill redundant use of _C_LABEL() in ENTRY().
uebayasi [Fri, 29 May 2015 08:50:12 +0000 (08:50 +0000)]
Put obvious END() macros that match ENTRY() entries.
eric [Fri, 29 May 2015 08:49:37 +0000 (08:49 +0000)]
fix a possible off-by-one when reading /etc/hosts if it doesn't end
with a newline.
ok jca@
nicm [Fri, 29 May 2015 07:30:28 +0000 (07:30 +0000)]
Silently fall back to /etc/magic if ~/.magic can't be opened, ok deraadt stsp
uebayasi [Fri, 29 May 2015 07:21:09 +0000 (07:21 +0000)]
Sprinkle END() in some straightforward *.S files that have ENTRY(). The
resulting *.o have "FUNC" symbols with size set.
djm [Fri, 29 May 2015 06:47:43 +0000 (06:47 +0000)]
put back SSH1 for now - we want to make sure we don't regress
it for the 6.9 release; ok deraadt@
jsg [Fri, 29 May 2015 05:48:07 +0000 (05:48 +0000)]
add some more cortex A ids
miod [Fri, 29 May 2015 04:17:11 +0000 (04:17 +0000)]
Need to operate of CXXFLAGS now.
djm [Fri, 29 May 2015 03:05:13 +0000 (03:05 +0000)]
make this work without SUDO set; ok dtucker@
jsg [Fri, 29 May 2015 02:44:14 +0000 (02:44 +0000)]
enable agtimer required for cortex a15
jsg [Fri, 29 May 2015 02:35:43 +0000 (02:35 +0000)]
Remove unused bus space tags/handles. The generic timer uses the cp15
coprocessor space.
uebayasi [Fri, 29 May 2015 00:37:10 +0000 (00:37 +0000)]
Revert unrelated changes in previous.
uebayasi [Fri, 29 May 2015 00:33:37 +0000 (00:33 +0000)]
Initial addition of ``Patrol Read'' support in bio(4), biocto(8), and
mfi(4). Based on FreeBSD, but done without mfiutil(8).
OK deraadt@
deraadt [Thu, 28 May 2015 21:34:36 +0000 (21:34 +0000)]
detect crashes from constraint sub-processes, instead of ignoring them.
if this happens, we want to tear down all of ntpd, so that people will
report it, any such bug can be found, and fixed.
ok bcook
jcs [Thu, 28 May 2015 20:53:05 +0000 (20:53 +0000)]
when machdep.allowaperture sysctl is set to 3, allow concurrent access
guenther [Thu, 28 May 2015 20:10:58 +0000 (20:10 +0000)]
Save the cpuid(6) eax bits in the cpu_info and report the SENSOR and ARAT
bits from it.
ok krw@ kettenis@
jmc [Thu, 28 May 2015 19:29:40 +0000 (19:29 +0000)]
use "uri"; from yegor timoschenko
jmc [Thu, 28 May 2015 19:26:37 +0000 (19:26 +0000)]
probably makes more sense to show "file" as being mandatory;
from sebastien marie
miod [Thu, 28 May 2015 18:23:11 +0000 (18:23 +0000)]
Invert the binutils 2.17 logic to only list non-2.17 platforms.
miod [Thu, 28 May 2015 18:16:41 +0000 (18:16 +0000)]
Switch alpha, arm, sh and sparc to binutils 2.17.
florian [Thu, 28 May 2015 17:09:18 +0000 (17:09 +0000)]
Do not try to unlink the control socket in an unprivileged child
process on shutdown.
Found while working on tame(2).
OK gilles@
florian [Thu, 28 May 2015 17:08:08 +0000 (17:08 +0000)]
Do not try to unlink the control socket in an unprivileged child
process on shutdown.
Found while working on tame(2).
OK benno@
mpi [Thu, 28 May 2015 11:57:33 +0000 (11:57 +0000)]
Kill unused IF_INPUT_ENQUEUE().
ok dlg@
djm [Thu, 28 May 2015 07:37:31 +0000 (07:37 +0000)]
wrap all moduli-related code in #ifdef WITH_OPENSSL.
based on patch from Reuben Hawkins; bz#2388
feedback and ok dtucker@
dtucker [Thu, 28 May 2015 05:41:29 +0000 (05:41 +0000)]
Increase the allowed length of the known host file name in the log
message to be consistent with other cases. Part of bz#1993, ok deraadt.
dtucker [Thu, 28 May 2015 05:09:45 +0000 (05:09 +0000)]
Fix typo (keywork->keyword)
djm [Thu, 28 May 2015 04:50:53 +0000 (04:50 +0000)]
add error message on ftruncate failure; bz#2176
djm [Thu, 28 May 2015 04:40:13 +0000 (04:40 +0000)]
make ssh-keygen default to
ed25519 keys when compiled without
OpenSSL; bz#2388, ok dtucker@
dtucker [Thu, 28 May 2015 00:54:01 +0000 (00:54 +0000)]
Remove intermediate copy of the moduli file. "make" will rebuild any
missing moduli fragment files (which will be a no-op unless you have
explicitly deleted them) and "make update-moduli" will update the
main file under ${BSDSRCDIR}/etc/moduli. ok djm@
dtucker [Thu, 28 May 2015 00:03:06 +0000 (00:03 +0000)]
Remove 1k bit groups. ok deraadt@, markus@
dtucker [Thu, 28 May 2015 00:00:24 +0000 (00:00 +0000)]
Remove 1k bit groups. ok deraadt@, markus@
dtucker [Wed, 27 May 2015 23:51:10 +0000 (23:51 +0000)]
Reorder client proposal to prefer diffie-hellman-group-exchange-sha1 over
diffie-hellman-group14-sha1. ok djm@
dtucker [Wed, 27 May 2015 23:39:18 +0000 (23:39 +0000)]
Add a stronger (4k bit) fallback group that sshd can use when the moduli
file is missing or broken, sourced from RFC3526. bz#2302, ok markus@
(earlier version), djm@
kettenis [Wed, 27 May 2015 22:10:52 +0000 (22:10 +0000)]
Use m_defrag(9) instead of rolling our own inlined version.
ok mikeb@
nicm [Wed, 27 May 2015 13:28:04 +0000 (13:28 +0000)]
Move the jobs output cache into the formats code so that #() work more
generally (for example, again working in set-titles-string).
dlg [Wed, 27 May 2015 12:23:44 +0000 (12:23 +0000)]
check if the packet is for us or if we're promisc before we cut the
vlan header out of the packet.
fixes rx on top of trunks on top of nics that dont do hw vlan tagging.
ok mpi@
mikeb [Wed, 27 May 2015 11:13:34 +0000 (11:13 +0000)]
Improve the controller state check in xhci_reset
From FreeBSD, OK mpi
jsg [Wed, 27 May 2015 08:03:43 +0000 (08:03 +0000)]
call exynos_platform_match() if the kernel is compiled with exynos devices
djm [Wed, 27 May 2015 05:15:02 +0000 (05:15 +0000)]
support PKCS#11 devices with external PIN entry devices
bz#2240, based on patch from Dirk-Willem van Gulik;
feedback and ok dtucker@
jsg [Wed, 27 May 2015 00:06:14 +0000 (00:06 +0000)]
make the exynos code compile without fdt
ok bmercer@
jsg [Tue, 26 May 2015 23:47:04 +0000 (23:47 +0000)]
make this build with WSDISPLAY_COMPAT_RAWKBD defined
ok bmercer@