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@
dtucker [Tue, 26 May 2015 23:23:40 +0000 (23:23 +0000)]
Cap DH-GEX group size at 4kbits for Cisco implementations. Some of them
will choke when asked for preferred sizes >4k instead of returning the 4k
group that they do have. bz#2209, ok djm@
miod [Tue, 26 May 2015 20:23:39 +0000 (20:23 +0000)]
Bring back `1:' label removed by mistake in 1.7. Complained loudly about by gas
2.17, while 2.15 didn't care, which just caused a cold shiver accross my spine.
miod [Tue, 26 May 2015 20:15:54 +0000 (20:15 +0000)]
Better cross-compilation check
miod [Tue, 26 May 2015 19:38:13 +0000 (19:38 +0000)]
Use a relative path against BSDOBJDIR to pick libcrypto; makes cross-lib
work again.
eric [Tue, 26 May 2015 19:28:57 +0000 (19:28 +0000)]
simply use _PATH_HOSTS where appropriate
sf [Tue, 26 May 2015 19:12:24 +0000 (19:12 +0000)]
Fix missing vlan.h include in if_vio.c
patch by jsg@
miod [Tue, 26 May 2015 18:57:08 +0000 (18:57 +0000)]
Improve diffability against m68k.
ratchov [Tue, 26 May 2015 18:17:12 +0000 (18:17 +0000)]
Exposes number of bytes processed by the sound card (as returned
by AUDIO_GET{I,O}OFFS) instead of the number of bytes processed
minus the xruns (as returned by AUDIO_GETINFO).
ok armani
mikeb [Tue, 26 May 2015 16:17:51 +0000 (16:17 +0000)]
Don't create ICMP states on reply packets unless tracking states sloppy
Since we've strengthened the ICMP state matching procedure during lookup
to only match packets against states set up in a particular direction, we
need to make sure we don't create states on packets that would otherwise
be flowing in the direction opposite to the direction of the state and
prevent further packets from matching the created state due to strict
rules imposed by the ICMP direction check.
Problem reported by Alexandr Nedvedicky, alexandr.nedvedicky-at-oracle.com.
Discussed with reyk@; OK henning
mpi [Tue, 26 May 2015 15:34:00 +0000 (15:34 +0000)]
Use if_output() instead of rerolling it.
ok stsp@
naddy [Tue, 26 May 2015 14:34:59 +0000 (14:34 +0000)]
Create aliases.db from the installed aliases file, so we get the correct
owner and group. Reported by Mark Patruck. ok deraadt@ miod@
dlg [Tue, 26 May 2015 12:29:42 +0000 (12:29 +0000)]
bump the number of tx and rx descriptors from 128 up to 512.
mpi [Tue, 26 May 2015 12:19:51 +0000 (12:19 +0000)]
Store the IP address of the corresponding ifa in the rt_gateway field
of RTF_CLONING and RTF_BROASCAST routes to not create MPATH conflicts
when IP address aliases are used.
This change makes it possible to have multiple RTF_CLONING routes with
the same priority. Note that any of the existing RTF_CLONING route
might be used by the kernel to create a RTF_CLONED route which should
not be a problem with aliases since they are attached to the same ifp.
This unbreak address aliases since the kernel supports multiple connected
routes for a subnet.
Found the hardway by djm@, ok claudio@
mpi [Tue, 26 May 2015 12:02:11 +0000 (12:02 +0000)]
Normalize route destination before checking for MPATH conflicts.
This makes rt_mpath_conflict() work as expected when adding routes
with the same destination and the same netmask.
With and ok claudio@
mpi [Tue, 26 May 2015 11:55:34 +0000 (11:55 +0000)]
Do not create ARP entries for RTF_BROADCAST routes.
This has been done because historically routes to broadcast addresses
were cloned like any ARP entry. But for obvious reasons, no matching
Ethernet address could ever be resolved. That's why we played tricks
with the expire timer.
Now that a RTF_BROADCAST route is created per configured IPv4 address,
we need to differenciate duplicated one. And by not creating an ARP
entry we are allowed to write the IP address in the rt_gateway field,
which prevents MPATH conflicts.
This change is part of a fix to unbreak aliases since the kernel support
multiple connected routes for a subnet.
Found the hardway by djm@, ok claudio@
mpi [Tue, 26 May 2015 11:39:07 +0000 (11:39 +0000)]
Now that the Ethernet header is always passed as part of the mbuf, kill
the second (unused) argument of the input packet handlers.
ok dlg@
dlg [Tue, 26 May 2015 11:36:26 +0000 (11:36 +0000)]
move add_net_randomness from ether_input to the if_input task.
change it from feeding the ethertype of the packet (which is almost
certainly an ip packet or vlan packet, so not that variable) to the
number of packets about to be processed.
ok deraadt@ mpi@
mpi [Tue, 26 May 2015 11:23:15 +0000 (11:23 +0000)]
More than 100+ drivers converted to if_input(), this is the last "real" one.
ok dlg@
jsg [Tue, 26 May 2015 07:32:07 +0000 (07:32 +0000)]
sync
jsg [Tue, 26 May 2015 07:30:18 +0000 (07:30 +0000)]
include the firmware for usb devices on the armv7 ramdisk
bcook [Tue, 26 May 2015 03:05:26 +0000 (03:05 +0000)]
Add OPENSSL_NO_EGD to opensslfeatures.h.
Since RAND_egd has been removed from LibreSSL, simplify porting software that
relies on it. See https://github.com/libressl-portable/openbsd/pull/34
from Bernard Spil, ok deraadt@
dlg [Tue, 26 May 2015 03:01:54 +0000 (03:01 +0000)]
make vlans inherit their parents hardmtu as well as mtu.
from brad@ and tested locally.
jsg [Tue, 26 May 2015 02:21:54 +0000 (02:21 +0000)]
Build all the firmware for usb devices on armv7.
jsg [Tue, 26 May 2015 02:13:07 +0000 (02:13 +0000)]
Sync usb devices with amd64.
Prompted by djm noticing uslcom(4) was not included.
jsg [Tue, 26 May 2015 02:01:53 +0000 (02:01 +0000)]
build wsconsctl and wsconscfg on armv7
benno [Mon, 25 May 2015 22:18:38 +0000 (22:18 +0000)]
fix panic for real and revert previous rev 1.52
from markus@
sorry for the mixup