summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/recallocarray.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-01-02Move Makefiles for libc++ and libc++abi to gnu/lib in preparation for anpatrick7-16/+17
upcoming update to those, which will see both codebases heading into the gnu/llvm dumpster. Feedback from jsg@ ok deraadt@ kettenis@
2021-01-02Tweak previous:schwarze1-19/+34
* Do not abuse .Bl -tag for lists without bodies, use .Bl -item instead. * In tagged lists, put bodies into bodies, not into heads. * Add a few missing macros. * Drop some useless quoting.
2021-01-02Make list of DHE parameters more prominentkn1-6/+19
Follow the previous commit and complete the manual page for consistency; better readable and tags for free. OK tb
2021-01-02If acme-client detects an added or removed SAN in the config filesthen2-16/+26
compared to the existing certificate on disk, automatically request a new certificate without requiring -F. (Previously the code using -F only coped with added SANs; if one was removed in config then the certificate needed manual removal vefore acme-client would work). Name checks for -r (revocation) are kept as-is for now.
2021-01-02Pull tls_close() and tls_free() further up, so tls_free() will alreadytb1-6/+6
be in the right spot once tls_close() is handled by libevent. suggested by jsing
2021-01-02Call tls_close() before closing the underlying sockettb1-5/+7
In order to end a TLS connection regularly, an implementation MUST send a close_notify alert. libtls does this in tls_close() via SSL_shutdown(), so the socket had better still be open. The incorrect order in server_close() caused a leak on each tls connection due to a bug in libssl (fixed in tls_record_layer.c r1.56). As pointed out by claudio, tls_close() should really be handled from the main event loop. This will be addressed in a later commit. ok claudio florian jsing
2021-01-02Free {alert,phh}_data in tls13_record_layer_free()tb1-1/+4
httpd(8)'s incorrect tls_close() after closing the underlying socket led to a leak: tls_close()'s attempt to send out the close_notify won't work very well over a closed pipe. This resulted in alert_data still hanging off the TLSv1.3 context's record layer struct. The tls_free() call should have cleaned this up but failed to do so. The record layer's phh_data potentially has the same issue, so free it as well. This diff makes -current httpd(8) run in constant memory over hundreds of thousands TLS connections with a static site. ok inoguchi jsing
2021-01-02Remove libunwind 8.0.0 now that we switched to libunwind 11.0.0 in thepatrick31-17857/+0
gnu/ directory.
2021-01-02syncpatrick10-20/+20
2021-01-02Switch libc++ and libc++abi to use libunwind 11.0.0. Bump major for bothpatrick4-7/+7
libraries due to dynamic export additions and removals in libc++abi. Tested by kettenis@, visa@ and myself ok kettenis@
2021-01-02Merge compiler-rt 11.0.0.patrick7-157/+10
ok kettenis@
2021-01-02Import compiler-rt 11.0.0 release.patrick357-3776/+10123
ok kettenis@
2021-01-02Add missing .Cm macros to the Address Family table.schwarze1-8/+8
While here, trim pointless quoting and one excessive column width.
2021-01-02Adjust local modifications to follow changes made upstream.kettenis2-3/+3
Fixes build on powerpc and sparc64. ok patrick@
2021-01-02Markup route flags such that apropos(1) finds themkn1-24/+24
netstat(1) is where the mapping between letters and flags is documented, but searching for them ("man -k any=RTF_" or "man -k -i any=blackhole") would only list route(4) and route(8). Markup preprocessor defines as such. OK schwarze
2021-01-02add three missing .Dv macros,schwarze1-5/+9
and move punctuation out of two that are already there
2021-01-02replace obsolete .Li macros with .Dv and .Er as appropriateschwarze1-6/+6
2021-01-02Use native display resolution 1368x768 with Lynloong all-in-one computers.visa1-3/+7
From Yifei ZHAN on tech@
2021-01-02Make kernel recognize Lynloong LM9002/9003 and LM9013.visa1-1/+5
LM9002/9003 is very similar to LM9001 since it works just fine on LM9002 with the codebase for LM9001. LM9013 on the other hand is fairly different from LM9001 and is more like Yeeloong 8089 when it comes to hardware design. More work might be needed to make it fully functional. From Yifei ZHAN on tech@
2021-01-02Don't call if_deactivate() in switch_clone_destroy(). Followingmvs1-2/+1
if_detach() will do this. ok kn@
2021-01-02Don't call if_deactivate() in bridge_clone_destroy(). Followingmvs1-4/+1
if_detach() will do this. ok kn@
2021-01-02Remove PIPEX{S,G}MODE ioctl(2) commands. This time they are pretty dummymvs4-73/+7
and were kept only for backward compatibility reasons. ok mpi@ yasuoka@
2021-01-02add the "don't tunnel vxlan over itself" text.dlg1-2/+10
2021-01-02optimise bpf_catchpacket and bpf_wakeup.dlg1-17/+10
bpf_catchpacket had a chunk to deal with reader timeouts, but that has largely been moved to bpfread. the vestigal code that was left still tried to wake up a reader when a buffer got full, but there already is a chunk of code that wakes up readers when the buffer gets full. bpf_wakeup now checks for readers before calling wakeup directly, rather than pushing the wakeup to a task and calling it unconditionally. the task_add is now only done when the bpfdesc actually has something that needs it. ok visa@
2021-01-02update currency exchange rates;jmc1-39/+39
2021-01-02Allocate address space for struct cpu_info using km_alloc(9) instead ofjmatthew1-2/+8
uvm_km_valloc(9). Tested on a T5120. ok mpi@
2021-01-02pool(9): remove tickscheloha2-14/+29
Change the pool(9) timeouts to use the system uptime instead of ticks. - Change the timeouts from variables to macros so we can use SEC_TO_NSEC(). This means these timeouts are no longer patchable via ddb(4). dlg@ does not think this will be a problem, as the timeout intervals have not changed in years. - Use low-res time to keep things fast. Add a local copy of getnsecuptime() to subr_pool.c to keep the diff small. We will need to move getnsecuptime() into kern_tc.c and document it later if we ever have other users elsewhere in the kernel. - Rename ph_tick -> ph_timestamp and pr_cache_tick -> pr_cache_timestamp. Prompted by tedu@ some time ago, but the effort stalled (may have been my fault). Input from kettenis@ and dlg@. Special thanks to mpi@ for help with struct shuffling. This change does not increase the size of struct pool_page_header or struct pool. ok dlg@ mpi@
2021-01-02bpf(4): remove tickscheloha2-25/+34
Change bd_rtout to a uint64_t of nanoseconds. Update the code in bpfioctl() and bpfread() accordingly. Add a local copy of nsecuptime() to make the diff smaller. This will need to move to kern_tc.c if/when we have another user elsewhere in the kernel. Prompted by mpi@. With input from dlg@. ok dlg@ mpi@ visa@
2021-01-02nfs: don't sleep on lboltcheloha2-6/+7
We can simulate the current behavior without lbolt by sleeping for 1 second on the &nowake channel. ok mpi@
2021-01-02uvm: uvm_fault_lower(): don't sleep on lboltcheloha1-2/+3
We can simulate the current behavior without lbolt by sleeping for 1 second on the &nowake channel. ok mpi@
2021-01-02Create chains and loops of spliced tcp and udp sockets. Send databluhm5-2/+259
through them and check that MAXLOOP is triggered in kernel.
2021-01-02Re-apply our libunwind 8.0.0 patches to libunwind 11.0.0. Patches to thepatrick12-23/+407
PPC ASM had to be re-applied manually due to whitespace changes upstream, other merge conflicts were harmless. "Looks good" kettenis@
2021-01-02Whitespace.rob2-39/+39
OK martijn@
2021-01-02Import libunwind 11.0.0 in new LLVM directory, thus not yet linked topatrick33-0/+19171
build. Encouraged by kettenis@
2021-01-01Handle Permanent Redirect (RFC 7538)chrisz1-1/+2
ok jca@, kn@
2021-01-01Skip leaf function optimization under some circumstances.mortimer1-1/+110
On architectures that do not always spill the return address to the stack, it is possible for local stack frame data corruption in leaf functions to span stack frames if the retguard cookie is not spilled in the function. In leaf functions on these architectures, now spill the retguard cookie if the function contains arrays or has variables which have their address taken.
2021-01-01Add kstat to ogx(4).visa2-9/+404
2021-01-01Remove useless redundant call of ttyopen().jan3-15/+3
Also remove dead DIALOUT macro. ok mpi@
2021-01-01Add a -C flag to run-shell to use a tmux command rather than a shell command.nicm2-31/+83
2021-01-01copyright++;jsg1-2/+2
2020-12-31More regular error handling with the REQUIRE macro.millert1-5/+4
Changing it from ((condition) || function call) to an if() wrapped in a do/while is easier to read and more stylistically consistent. The seterr() function no longer needs to return a value. From miod@, OK tb@
2020-12-31Remove unused categories in re_guts; they are written to but never read.millert3-84/+5
From miod@, OK tb@
2020-12-31oops, this was installing the smaller bsd.rd, which would be replacedderaadt1-3/+1
by the proper miniroot bsd.rd a bit later.
2020-12-31Strings in struct parse can be const, they are never modified.millert1-15/+11
Also, the temporary array in nonnewline() can be made static const. From miod@, OK tb@
2020-12-31Don't leak the log message in server_sendlogtb1-2/+4
While there, use the length calculated by vasprintf() instead of using strlen needlessly. ok claudio florian
2020-12-31Don't leak access.log and error.log on reload.tb1-1/+2
ok florian
2020-12-31Keep polling if a temperature sensor reading fails. This is neededkettenis1-3/+3
on Amlogic SoCs where amltemp(4) doesn't fully attach before the first polling timeout runs. This would stop the polling which means there was no thermal management on these platforms. ok patrick@
2020-12-31Add trace points for malloc(9) and free(9). This makes them traceableclaudio2-2/+12
via dt(4) and btrace(8). OK mpi@ millert@
2020-12-31Enable IPv4 and TCP/UDP checksum offload on transmission.visa3-13/+59
2020-12-31Rename the pony process to dispatcher and klondike to crypto.martijn13-253/+253
From gilles@ OK millert@ giovanni@