summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/recallocarray.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-08-12errant whitespacebeck1-3/+3
2017-08-12tweak usagejasper2-8/+8
prompted by and ok jmc@
2017-08-12Use the login name from id -p to compare with ps -o login. Thisbluhm1-2/+2
makes the test pass when invoked by doas.
2017-08-12Clear pcb_fpcpu of the child upon fork. Not clearing it is probably notkettenis1-2/+3
a critical issue as the pointer back to the proc in the struct cpu_info won't match, but it is better to avoid dangling pointers like this. ok patrick@, drahn@
2017-08-12Add manpage update for new grouping feature '{from,to} {i,e}bgp'job2-4/+20
OK phessler@
2017-08-12sig_atomic_t is not (necessarily) an int. Usekrw2-3/+4
SIG_ATOMIC_MAX for INTERNALSIG instead of INT_MAX.
2017-08-12ignore unknown/boring events by default, which modern thinkpads havejcs1-58/+14
a lot of. put the spam behind an ACPITHINKPAD_DEBUG define which can be used when adding support for actually useful buttons. previous version ok deraadt, phessler, and kettenis
2017-08-12fix resource leaks, ok @guentherbcook1-3/+7
2017-08-12Stop trying to outfox the routing tablekrw3-142/+29
by labelling dhclient routes. Just use the route(8) logic when flushing routes. ok benno@ claudio@
2017-08-12Set vendor to "Generic" like we do for ehci@fdt.kettenis1-1/+2
2017-08-12allow filter rules to be written that affect ibgp or ebgp neighborsphessler4-4/+42
discussed with henning@ OK claudio@, benno@, job@
2017-08-12em: Disable ultra-low-power mode on bootsf2-3/+231
With i219V, it sometimes happens that em fails to attach with this error: em0: Hardware Initialization Failed em0: Unable to initialize the hardware This happens always if booting native Windows 10 first and then rebooting into openbsd without switching the laptop off. But it has also been seen in other cases. This change ports the e1000_disable_ulp_lpt_lp() logic from the FreeBSD driver to disable ultra-low-power (ULP) mode. This seems to fix the problem in many (but not all) cases. The code has been merged in a way to make the diff from FreeBSD minimal. For example, the SWFW register is called H2ME on newer chips, so a new define is introduced. Also, the em_toggle_lanphypc_pch_lpt() function is left as separate function even if only used in one place at the moment. ok tom@ "commit it" deraadt@
2017-08-12fallback to strip(1) in case ctfconv(1) couldn't handle the file (i.e. whenjasper1-12/+25
the input file lacks useful debug sections). adjust option handling accordingly to pass any flags not handled by ctfstrip(1) down to strip(1). help and ok mpi@ tb@
2017-08-12Make not yet implemented pledges more visible in grep output.florian4-10/+10
input benno, deraadt, tedu also standardize on #if 0 since it makes tedu's editor vomit. OK benno, pirofti on a previous version
2017-08-12In the locking wrappers for &map->lock and &map->mtx, pass through file+lineguenther1-16/+18
when WITNESS is enabled ok visa@ kettenis@
2017-08-12Always provide _mtx_* APIs, the use those to simplify the WITNESS wrappersguenther2-53/+11
elsewhere ok visa@ kettenis@
2017-08-12bring ospf6d's log.c in sync with ospfd and bgpdbenno7-70/+116
ok florian@ claudio@
2017-08-12Add a dummy (for now) <machine/reloc.h> for mips64 to fix build.visa4-0/+25
OK guenther@
2017-08-12Prevent a NULL pointer deref in iwm(4) which I have seen during testing.stsp1-2/+5
iwm_stop() sets the phy context pointer in the ic_bss node to NULL. If iwm_stop() runs in parallel to the newstate task, the newstate task can dereference this pointer in iwn_update_quotas() or iwm_binding_cmd(). So check the pointer for NULL before derefencing. This is a quick and dirty workaround. A proper fix for such task races is still pending.
2017-08-12Fix copy/paste error, CID 1453558.mpi1-2/+2
ok kettenis@
2017-08-12Fix Coverity CID 1453237: With rt2661 chips ral(4) was writing some stackstsp1-1/+2
memory garbage to the hardware while setting up beacon transmission. The driver left some fields of a struct rt2661_tx_desc on stack uninitialized. Zero out the entire struct before using it. ok mpi@
2017-08-12Import the SSL_CTX_set1_groups(3) manual page from OpenSSL, deletingschwarze5-6/+173
the read accessors we don't have and fixing the prototypes - the data type of each and every argument differs in the OpenSSL manuals. Reference the new page from SSL_set_tmp_ecdh(3) as suggested by jsing@.
2017-08-12Fix Coverity CID 1452915: urtwn(4) would use an uninitialized array indexstsp1-4/+10
if a hypothetical and malicious USB device reports no Rx endpoints. ok mpi@
2017-08-12Fix Coverity CID 1453280:stsp1-10/+9
iwm(4) firmware could cause an out of bounds read of the ic->ic_channels array by lying about the channel a frame was received on. This array index is now properly bounds-checked. Not an errata-worthy fix, since the firmware has full DMA access anyway. While here, I noticed another problem: Stop assigning a firmware-derived value to ni->ni_chan. The Rx interrupt handler has no business tweaking that pointer. ok mpi@
2017-08-12remove apmwarn sysctl which is not usedtedu2-12/+4
2017-08-12New manual page SSL_set_tmp_ecdh(3) written from scratch.schwarze4-7/+112
Feedback and OK jsing@.
2017-08-12Use obj directory instead of a handcrafted working directory.rob2-32/+30
Pointers from tb@
2017-08-12Remove lots of outdated information found by jsing@.schwarze1-192/+14
OK jsing.
2017-08-12update to unbound 1.6.4, ok florian@sthen111-1300/+13692
2017-08-12add a new option to set limits on max-sessions each IPCP.goda6-10/+148
It can set limits on different max-sessions if there're using several protocols such as PPPoE and L2TP/IPsec. ok yasuoka@
2017-08-12In iwn(4), fix CID 1199266 "Missing comma in a string array"; only affectsstsp1-2/+2
fatal firmware error debug output.
2017-08-12When read(2)'ing from the routing socket only one message is returned.florian1-19/+12
Clue provided by jca and claudio. OK jca
2017-08-12No need to constantly re-open a socket. Just open it up front and keepflorian2-25/+18
it around. OK jca
2017-08-12make "--" before the hostname terminate command-line option processingdjm1-4/+7
completely; previous behaviour would not prevent further options appearing after the hostname (ssh has a supported options after the hostname for >20 years, so that's too late to change). ok deraadt@
2017-08-12Switch from aes256-cbc to aes256-ctr for encrypting new-styledjm1-2/+2
private keys. The latter having the advantage of being supported for no-OpenSSL builds; bz#2754 ok markus@
2017-08-12Hookup ifstated and snmpd regress. Discussed with benno@ and bluhm@.rob1-1/+3
Ok benno@
2017-08-12Use vether instead of physical interfaces for temporary carp creation.rob1-7/+8
Recommended by and discussed with many.
2017-08-12Initial pledge for snmpd. snmpe remains unpledged. Regression tests pass.rob3-3/+18
Ok benno@, jca@.
2017-08-12Document tls_config_set_dheparams().jsing1-4/+13
2017-08-12Document tls_reset().jsing1-2/+13
2017-08-12add option -l to show only listening sockets (for tcp)benno4-11/+21
feedback and ok awhile ago bluhm@ job@
2017-08-12Improve snps,dwc3 support. Enough to make the USB3 controller on thekettenis1-1/+59
rk3399-firefly work in USB2 mode. ok patrick@
2017-08-12Silence clang warnings: remove unused variables and s/%hx/%x/gguenther1-7/+5
ok mpi@ deraadt@
2017-08-12Update the TLSv1.2 Client Hello messages, due to the removal of DSAjsing1-20/+18
sigalgs.
2017-08-12Remove support for DSS/DSA, since we removed the cipher suites a whilejsing9-85/+16
back. ok guenther@
2017-08-12Clear the child pointer in CBB_cleanup(), so that we have fewer pointersjsing1-1/+2
hanging around to potentially invalid address space. Discussed with beck@ and doug@
2017-08-12syncderaadt1-0/+6
2017-08-12stop pretending that qnames are always strings. treat everything as atedu1-30/+29
dname always.
2017-08-12snmpe runs as user _snmpd not _snmp.rob1-2/+2
2017-08-12Instead of hardcoding a partial dependency list for the syscall stub objects,guenther1-28/+26
calculate them as done for other objects