summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-05-30replace m_copym2 with m_dup_pkt.David Gwynne
ok mpi@
2016-05-30remove code compensating for the "short" range of timeouts.David Gwynne
the nd6 code for managing expiries is never asked to handle intervals greater than what timeouts can handle, so we dont need to overcompensate. the code was also incorrect by using a long, which isnt that long on ILP32 machines. ok mpi@ millert@ benno@
2016-05-30Set pppoe(4) control frames to high (NC, "network control")Stuart Henderson
priority. This is translated into an 802.1p priority tag when sent over a vlan interface, reducing the risk of them being crowded out by data packets on a busy link. Some users have problems with ISPs that place specific requirements on vlan priority (typically the packet header value must be '0', relating to priority 1). This diff doesn't fix that yet, but gives a single place to patch to change tags on control packets without affecting normal vlan priority operation on other interfaces. ok mikeb.
2016-05-30Gix misleading indent pointed out by GCC 6.1.Brent Cook
ok beck@ jsing@
2016-05-30Move __getcwd from ASM to HIDDEN: we don't want the literal __getcwd symbolPhilip Guenther
ok millert@ deraadt@
2016-05-30Identify W^X labelled binaries at execve() time based upon WX_OPENBSD_WXNEEDEDTheo de Raadt
flag set by ld -zwxneeded. Such binaries are allowed to run only on wxallowed mountpoints. They do not report mmap/mprotect problems. Rate limit mmap/mprotect reports from other binaries. These semantics are chosen to encourage progress in the ports ecosystem, without overwhelming the developers who work in the area. ok sthen kettenis
2016-05-30backout to insert correct commit messageTheo de Raadt
2016-05-30*** empty log message ***Theo de Raadt
2016-05-30Tweak previousRobert Peichaer
OK jsg
2016-05-30Backout rev. 1.43 for now.Ingo Schwarze
The function update_progress_meter() calls refresh_progress_meter() which calls snmprintf() which calls malloc(); but update_progress_meter() acts as the SIGALRM signal handler. "malloc(): error: recursive call" reported by sobrado@.
2016-05-30Make sed use the new REG_STARTEND | REG_NOTBOL combination. This fixes a beginMartijn van Duren
of word mismatch as reported by jsg@. Discussed with otto@ and others early on, earlier version tested in ports build by aja@ OK millert@ Few readability tweaks and OK schwarze@
2016-05-30Fix sequence for the mmap(2) method.Marcus Glocker
ok jmc
2016-05-30include rdtsc in the rdrand callback. some systems don't have rdrand yet,Ted Unangst
but rdtsc may provide a few bits. ok deraadt
2016-05-30Some tests for \<; will be fixed by martijn@'s upcoming commit to process.cIngo Schwarze
2016-05-30Fill the packet data pool with standard mbuf clusters instead ofVisa Hankala
driver-specific memory blocks. This lets the cnmac(4) RX path run without an mbuf ext_free callback. ok uebayasi@
2016-05-30deprecate internal use of EVP_[Cipher|Encrypt|Decrypt]_Final.Bob Beck
14 years ago these were changed in OpenSSL to be the same as the _ex functions. We use the _ex functions only internally to ensure it is obvious the ctx must be cleared. ok bcook@
2016-05-30Even when only writing an unescaped character, the dst buffer may need toIngo Schwarze
grow, or it would be overrun; issue found by tb@ with malloc.conf(5) 'C'. While here, reserve an additional byte for the terminating NUL up front such that we don't have to realloc() later just for that. OK tb@
2016-05-30Insert a hack to deal with interfaces removing the VLAN header beforeMartin Pieuchot
the packet has been feed to the pseudo-interfaces input handlers. To fix that without introducing a layer violation we should be able to disable HW-vlan on parent when in use with different pseudo-interfaces. In the case of bridge(4) for example it makes no sense to let the interface remove the VLAN header if the kernel has to add it back for every packet. Fix issues reported by sebastia@ and markus@ From dlg@, ok claudio@
2016-05-30Do not forward declare an enum, makes gcc3 happy.Martin Pieuchot
From miod@, ok bru@
2016-05-30Simplify address parsing code by only using inet_net_pton(3).Martin Pieuchot
There's no need to have a separate case for non-CIDR addresses using inet_pton(3) as inet_net_pton(3) handles them as well. This simplification is valid for all our daemons parsing addresses, it is a common patern. ok gilles@, millert@
2016-05-30stricter malloc.conf(5) options for utf8 testsIngo Schwarze
2016-05-30Fix two rare edge cases:Ingo Schwarze
1. If vasprintf() returns < 0, do not access a NULL pointer in snmprintf(), and do not free() the pointer returned from vasprintf() because on some systems other than OpenBSD, it might be a bogus pointer. 2. If vasprintf() returns == 0, return 0 and "" rather than -1 and NULL. Besides, free(dst) is pointless after failure (not a bug). One half OK martijn@, the other half OK deraadt@; committing quickly before people get hurt.
2016-05-30Cache the window styles and do not look up the window-style optionsNicholas Marriott
unless they have changed.
2016-05-30Do not draw character to screen if it has not changed, and do not saveNicholas Marriott
last character if it won't be used. This (and last few commits) prompted by a report from Hubert depesz Lubaczewski.
2016-05-30Send two cub1 instead of using cub for moving the cursor two left. ThisNicholas Marriott
is normally better because using cub1 will be ^H^H (so two bytes) but cub would be ^[[2D (four).
2016-05-30We no longer have syscalls with multiple return values. Whine aboutPhilip Guenther
long long alignment instead.
2016-05-30Consistently reference '_end' instead of 'end' in the brk/sbrk implementationPhilip Guenther
ok deraadt@
2016-05-30The icdb magic number doesn't need to be visible to static linksPhilip Guenther
ok tedu@
2016-05-30Stop publicly declaring _yp_dobind() and struct dom_binding, closing outPhilip Guenther
a rant Theo wrote 24 years ago. Mark __ypexclude_{add,is,free}() as hidden "get off my lawn!" deraadt@
2016-05-30Do setjmp cookies for eip, esp, and ebp. For bonus points, mix howPhilip Guenther
the cookies are used in setjmp/_setjmp/sigsetjmp so that mixing calls (e.g., longjmp on a _setjmp buffer) will scramble all three registers and jump you to a random location on a random stack! ok deraadt@
2016-05-30Do setjmp cookies for gp, sp, and raPhilip Guenther
endian testing and ok deraadt@ ok visa@
2016-05-29Add back the fdisk command to flag the fat fs as active.Jonathan Gray
The omap boot rom that loads the first u-boot stage requires this.
2016-05-29_yp_bind(), _ypbindlist, _yp_domain, and _yplib_timeout are no longerPhilip Guenther
exported, so declare them as hidden to avoid pointless GOT relocations ok millert@ deraadt@
2016-05-29Switch from calling obsolete sig{block,setmask} to directly using thePhilip Guenther
sigprocmask syscall ok kettenis@
2016-05-29Wrap <machine/sysarch.h> to prevent overriding internal calls, forPhilip Guenther
alpha and mips64 ok millert@
2016-05-29Remove dead support for changing BDB hash algorithm and cache of alternativesPhilip Guenther
ok natano@ millert@ deraadt@
2016-05-29Nuke sigret.cBob Beck
ok deraadt@ kettenis@
2016-05-29We don't have sigreturn anymoreBob Beck
2016-05-29Refactor and clean up the logic before pledge a bit and fix pledgeTheo Buehler
fallout related to pledge disklabel (e.g. 'disklabel /dev/tty'). - Allow 'disklabel sdN' again for non-root users. - Make sure at least one DIO* ioctl comes before pledge "disklabel" - Fix the op == WRITE logic that broke 'make release' in -r2.217 Based on -r2.17 from beck. ok beck
2016-05-29wxabort bits; ok deraadtJason McIntyre
2016-05-29Improve error handling in reorder_libs()Robert Peichaer
- run commands in subshell only if mktemp is successful - on error just leave the for-loop but set _error=true - cleanup tmpdirs afterwards - set _error=true if the ro remount fails - print appropriate final message depending on $_error positive feedback from deraadt OK krw
2016-05-29Decide which u-boot/dtb to use based on the fdt model printed whenJonathan Gray
attaching mainbus not the string we print based on the board id when attaching the soc platform abstraction. Overhaul md_installboot() to make it much more readable based on suggestions from rpe@
2016-05-29When connecting to a non existing tcp listen socket on localhost,Alexander Bluhm
connect(2) does no longer fail immediately. It reports EINPROGRESS first, an ECONNREFUSED or EPIPE error follows later. Allow this changed behavior in syslogd(8) regression tests.
2016-05-29Fix sizes passed to free() in fdfree(). This prevents a panic reportedMartin Natano
by sthen. ok semarie
2016-05-29Remove the section on tftp booting a umg file. This might come back inJonathan Gray
a different form when u-boot supports efi networking interfaces.
2016-05-29Map ASX registers only if link control needs them.Visa Hankala
ok mpi@
2016-05-29use fdt "model" string for hw.productJonathan Gray
ok kettenis@
2016-05-29Add support for new smu-firmware fan commands. This fixes wrong sysctlMarcus Glocker
hw.sensors fan values seen on macppc models with a new smu-firmware. Help and ok kettenis
2016-05-29The same MAC filter setup code should work with all PHY link types.Visa Hankala
Remove unnecessary abstraction. ok mpi@
2016-05-29sort mount options, and shorten slightly the wxabort text;Jason McIntyre