summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/recallocarray.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-01-25Add DPRINTF() and use it to replace log_debug() statements insidekrw4-46/+24
#ifdef DEBUG/#endif blocks. Suggestions on correct idiom (C99 vs gcc) from millert@ ok tom@
2018-01-25Remove mutex implementations that now live in MI code.mpi6-906/+0
2018-01-25Move common mutex implementations to a MI place.mpi14-519/+214
Archs not yet converted can to the jump by defining __USE_MI_MUTEX. ok visa@
2018-01-25Use a workaround for detached parent in carp_proto_input_c().mpi1-4/+13
A NULL dereference can happen since processing protocol layer is deffered to a second task. In other words the NET_LOCK() is released then regrabbed between ip_input() and carp_proto_input(). The same workaround is already in use in carp_output() due to deffered processing in case of IPsec. The real fix is to make carp(4) MP-safe and use if_get(9) there, any taker? Found & fix tested by Hrvoje Popovski.
2018-01-25Use a new LDFLAGS variable to pass "-melf_i386_obsd" on amd64.mpi2-4/+5
Makes the linker generate a correct i386 gap.o file. ok kettenis@, deraadt@
2018-01-25Assert that ifiq_destroy() is not called with the NET_LOCK() held.mpi1-9/+2
Calling taskq_barrier() on a softnet thread while holding the lock is clearly a deadlock. ok visa@, dlg@, bluhm@
2018-01-25certificate options are case-sensitive; fix case on one that had it wrong.djm1-5/+5
move a badly-place sentence to a less bad place
2018-01-25Fix perl build not to install libperl* twice. This has caused anyasuoka1-21/+2
actual error if "install" was done parallelly. ok espie todd andrew1, input andrew1
2018-01-24Make the NEON codepaths conditional on __STRICT_ALIGNMENT not beingkettenis3-5/+5
defined as they rely on unaligned access. ok joel@
2018-01-24Don't display the seconds until renewal. i.e. "em0: bound to 1.2.3.4krw2-11/+10
-- renewal in 300000 seconds" becomes simply "em0: bound to 1.2.3.4" While here avoid setting timeouts before the current time. ok florian@
2018-01-24Implement support for specifying multiple proposals. This means we canpatrick2-106/+186
have a higher flexibility in negotiating with other peers, or even ease migration from one proposal to a more secure one. ok sthen@
2018-01-24add the glue to generate future libset, which are currently 100% unusedespie2-5/+28
2018-01-24POSIX requires that awk support \v and \a escapes. I used '\007'millert2-2/+8
for BEL since that is what lex.c uses, though we could safely use '\a' there instead. OK martijn@
2018-01-24Log some more errors in the ca code, since there seems to be still a bugclaudio1-5/+7
hidden somewhere. Also return after a poll timeout, there is no reason to wait longer than a second for the answer of the ca process. OK jsing@
2018-01-24Use closefrom(3) instead of manually closing all file descriptorstb1-3/+2
between 3 and 19. ok martijn, millert, jca
2018-01-24Do not print that the firmware was successfully loaded in the USB backendpatrick1-2/+1
driver. It is only useful to know if firmware loading has failed. This means fewer clutter in dmesg(8). Spotted by and ok stsp@
2018-01-24Put the default case, which prints information about an event we do not yetpatrick1-4/+4
handle, into a debug printf. Also do not print a pointer to kernel buffers so that we don't leak kernel addresses. Spotted by and ok stsp@
2018-01-24We don't do booleans in the kernel, so replace a few occurrences of 'true'patrick1-4/+4
with nicer integer equivalents. Spotted by and ok stsp@
2018-01-24document bpfsattach and bpfsdetachdlg1-2/+33
2018-01-24add support for bpf on "subsystems", not just network interfacesdlg3-40/+59
bpf assumed that it was being unconditionally attached to network interfaces, and maintained a pointer to a struct ifnet *. this was mostly used to get at the name of the interface, which is how userland asks to be attached to a particular interface. this diff adds a pointer to the name and uses it instead of the interface pointer for these lookups. this in turn allows bpf to be attached to arbitrary subsystems in the kernel which just have to supply a name rather than an interface pointer. for example, bpf could be attached to pf_test so you can see what packets are about to be filtered. mpi@ is using this to look at usb transfers. bpf still uses the interface pointer for bpfwrite, and for enabling and disabling promisc. however, these are nopped out for subsystems. ok mpi@
2018-01-23Add a smarter test that opens a file, unlinks it, and remounts thebluhm1-13/+46
file system read-only. After unmounting this should result in a dirty file system that is not marked clean. Disable both tests with dangling vnodes for now as they fail.
2018-01-23The IPv6 gateway address passed to rt6_flush() comes either from abluhm1-3/+3
packet through ip6_input() or from the routing table. In both cases the KAME hack has added the embeded scope to the address, so it is not necessary to fill the scope id again in rt6_flush(). Assert that it is already there. OK mpi@
2018-01-23Update to tzdata2018c from ftp.iana.orgmillert9-65/+178
2018-01-23The TCP reaper timeout was still imlemented as soft timeout. Sobluhm4-22/+30
it could run immediately and was not synchronized with the TCP timeouts, although that was the intension when it was introduced in revision 1.85. Convert the reaper to an ordinary TCP timeout so it is scheduled on the same timeout thread after all timeouts have finished. A net lock is not necessary as the process calling tcp_close() will not access the tcpcb after arming the reaper timeout. OK mikeb@
2018-01-23Although it is a dead store here, always reassign the tcpcb afterbluhm1-2/+2
calling tcp_close(), tcp_drop(), and tcp_disconnect(). Then no freed memory can be used after closing a TCP connection. OK mikeb@ mpi@
2018-01-23Bring back the PRU_ATTACH constant and description. Then trpt(8)bluhm2-5/+6
prints the ATTACH action for TCP debugging socketes correctly. OK bluhm@
2018-01-23Fix printf(9) format strings so that a kernel with TCPDEBUG compiles.bluhm3-8/+8
Mark the string variables with TCP debugging names as constant. OK mpi@
2018-01-23Fix a logic bug in sshd_exchange_identification which prevented clientsstsp1-2/+2
using major protocol version 2 from connecting to the server. ok millert@
2018-01-23Add missing braces; fixes 'write: Socket is not connected' error in ssh.stsp1-2/+3
ok deraadt@
2018-01-23use END_STRONG. Yes, everything in the sh ecosystem is different..deraadt1-2/+2
2018-01-23Always lock the kernel lock with non-MP-safe interrupt handlers.visa3-7/+7
Suggested by kettenis@
2018-01-23Revise 'struct fpreg' such that it can actually represent the full VFPv3-D32kettenis2-13/+11
state. ok patrick@
2018-01-23Fix underline rotation on CCW (quarter counter-clockwise) rotatedfcambus1-1/+3
screens. The "underline" was actually drawn above text. OK jcs@
2018-01-23Fix table wrt missing element and `, detailed analysis and diff fromotto1-18/+18
David Fifield; ok tb@
2018-01-23Drop compatibility hacks for some ancient SSH implementations, includingdjm17-303/+111
ssh.com <=2.* and OpenSSH <= 3.*. These versions were all released in or before 2001 and predate the final SSH RFCs. The hacks in question aren't necessary for RFC- compliant SSH implementations. ok markus@
2018-01-23try harder to preserve errno during ssh_connect_direct() to make thedjm1-5/+12
final error message possibly accurate; bz#2814, ok dtucker@
2018-01-23unbreak support for clients that advertise a protocol versiondjm1-2/+2
of "1.99" (indicating both v2 and v1 support). Busted by me during SSHv1 purge in r1.358; bz2810, ok dtucker
2018-01-23don't attempt to force hostnames that are addresses to lowercase, butdjm1-17/+71
instead canonicalise them through getnameinfo/getaddrinfo to remove ambiguities (e.g. ::0001 => ::1) before they are matched against known_hosts; bz#2763, ok dtucker@
2018-01-23avoid modifying pw->pw_passwd; let endpwent() clean up for us, butdjm1-2/+4
keep a scrubbed copy; bz2777, ok dtucker@
2018-01-23Fix checks for error return from urtw_alloc_rx_data_list() andkevlo1-4/+3
urtw_alloc_tx_data_list() in 8187b init. From James Jerkins, thanks.
2018-01-221. Add a field for configuring the size of edge areas on touchpads.bru3-19/+58
2. Remove code that is obsolete because all touchpad drivers configure wsmouse for compat mode now.
2018-01-22Add support for 'a:' and 'exists:' mechanisms.okan1-0/+8
ok gilles@
2018-01-22Bring back the detach messages in trpt(8) for tcp debugging. Theybluhm2-16/+13
got lost with the pr_detach conversion. While there, remove some dead code. OK mpi@
2018-01-22Triggered by Klemens Nanni patch, move OLD_WRKDIR_NAME into OBSOLETE VARIABLESespie1-19/+8
and deprecate WRKDIR_LINKNAME.
2018-01-22Use the proper address space when using a kernel that supportshelg1-2/+11
Supervisor Mode Access Prevention (SMAP) compiled with FUSE_DEBUG. While here, add some sanity check to the debug function fuse_dump_buff. Thanks to Thomas Jeunet. OK mpi@, helg@
2018-01-22More sizes for free() in wscons(4).fcambus2-4/+6
OK visa@
2018-01-22<machine/mutex.h> -> <sys/mutex.h>mpi4-8/+8
2018-01-22Include <sys/mutex.h> instead of <machine/mutex.h>mpi3-6/+6
required by upcoming MI mutex change.
2018-01-22Include <sys/mutex.h> rather than <machine/mutex.h>mpi1-2/+2
Required by upcoming MI mutex change.
2018-01-22Always grab the KERNEL_LOCK() for !IPL_MPSAFE handlers.mpi3-10/+9
Suggested by kettenis@, ok visa@