summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
...
* Add memalign(3), mostly for glibc compatibility.Konstantin Belousov2020-05-143-0/+42
| | | | | | | | | | Reviewed by: emaste, imp (previous version) Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D24307 Notes: svn path=/head/; revision=361060
* Add HISTORY sections to document when thisBenedict Reuschling2020-05-057-7/+44
| | | | | | | | | | | functionality first appeared in FreeBSD. Submitted by: Gordon Bergling gbergling_gmail.com Approved by: bcr Differential Revision: https://reviews.freebsd.org/D24677 Notes: svn path=/head/; revision=360670
* strdup.3: Slightly canonicalize OOM return/error statusConrad Meyer2020-05-051-9/+14
| | | | | | | | | | Attempted to clean up the language around "this is a malloc'd object." May be passed as a parameter to free(3) is a bit obtuse. Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=360664
* Remove the SYMVER build option.John Baldwin2020-04-305-27/+16
| | | | | | | | | | | | | | This option was added as a transition aide when symbol versioning was first added. It was enabled by default in 2007 and is supported even by the old GPLv2 binutils. Trying to disable it currently fails to build in libc and at this point it isn't worth fixing the build. Reported by: Michael Dexter Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D24637 Notes: svn path=/head/; revision=360511
* Document handling of connection-mode sockets by sendto(2).Mark Johnston2020-04-271-4/+24
| | | | | | | | | | | | | | | | sendto(2), sendmsg(2) and sendmmsg(2) return ENOTCONN if a destination address is specified and the socket is not connected and the socket protocol does not automatically connect ("implied connect"). Document that. Also document the fact that the destination address is ignored for connection-mode sockets if the socket is already connected. PR: 245817 Submitted by: Erik Inge Bolsø <knan-bfo@modirum.com> MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D24530 Notes: svn path=/head/; revision=360384
* Fix handling of EV_EOF for named pipes.Mark Johnston2020-04-271-6/+6
| | | | | | | | | | | | | | | | | | | | | | Contrary to the kevent man page, EV_EOF on a fifo is not cleared by EV_CLEAR. Modify the read and write filters to clear EV_EOF when the fifo's PIPE_EOF flag is clear, and update the man page to document the new behaviour. Modify the write filter to return the amount of buffer space available even if no readers are present. This matches the behaviour for sockets. When reading from a pipe, only call pipeselwakeup() if some data was actually read. This prevents the continuous re-triggering of a EVFILT_READ event on EOF when in edge-triggered mode. PR: 203366, 224615 Submitted by: Jan Kokemüller <jan.kokemueller@gmail.com> MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D24528 Notes: svn path=/head/; revision=360380
* libc: partially revert r326576Conrad Meyer2020-04-253-0/+3
| | | | | | | | | | | | | | | | | | | | | | In r326576 ("use @@@ instead of @@ in __sym_default"), an earlier version of the phabricator-discussed patch was inadvertently committed. The commit message claims that @@@ means that weak is not needed, but that was due to a misunderstanding of the use of weak symbols in this context by the submitted in the first draft of the patch; the description text was not updated to match the discussion. As discussed in phabricator, weak is needed for symbol interposing because of the behavior of our rtld, and is widely used elsewhere in libc. This partial revert restores the approved version of the patch and permits symbol interposing for openat. Reported by: Raymond Ramsden <rramsden AT isilon.com> Reviewed by: dim, emaste, kib (2017) Discussed with: kib (2020) Differential Revision: https://reviews.freebsd.org/D11653 Notes: svn path=/head/; revision=360306
* Fix a typoMateusz Piotrowski2020-04-241-2/+2
| | | | | | | | Reported by: pstef MFC after: 2 days Notes: svn path=/head/; revision=360284
* Update jemalloc to version 5.2.1Eric van Gyzen2020-04-231-2/+3
| | | | | | | | | | | | | | | | | | | Revert r354606 to restore r354605. Apply one line from jemalloc commit d01b425e5d1e1 in hash_x86_128() to fix the build with gcc, which only allows a fallthrough attribute to appear before a case or default label. Submitted by: jasone in r354605 Discussed with: jasone Reviewed by: bdrewery MFC after: never, due to gcc 4.2.1 Relnotes: yes Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D24522 Notes: svn path=/head/; revision=360233
* libc: Shortcut if_indextoname() if index == 0Kristof Provost2020-04-231-0/+5
| | | | | | | | | | | | | | | If the index we're trying to convert is 0 we can avoid a potentially expensive call to getifaddrs(). No interface has an ifindex of zero, so we can handle this as an error: set the errno to ENXIO and return NULL. Submitted by: Nick Rogers Reviewed by: lutz at donnerhacke.de MFC after: 2 weeks Sponsored by: RG Nets Differential Revision: https://reviews.freebsd.org/D24524 Notes: svn path=/head/; revision=360231
* kqueue(2): de-vandalize the random sentence in the middleKyle Evans2020-04-221-1/+2
| | | | | | | | | | A last minute change appears to have inadvertently vandalized unrelated parts of the manpage with the date. =-( Reported by: rpokala Notes: svn path=/head/; revision=360183
* kqueue(2): add a note about EV_RECEIPTKyle Evans2020-04-221-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | In the below-referenced PR, a case is attached of a simple reproducer that exhibits suboptimal behavior: EVFILT_READ and EVFILT_WRITE being set in the same kevent(2) call will only honor the first one. This is, in-fact, how it's supposed to work. A read of the manpage leads me to believe we could be more clear about this; right now there's a logical leap to make in the relevant statement: "When passed as input, it forces EV_ERROR to always be returned." -- the logical leap being that this indicates the caller should have allocated space for the change to be returned with EV_ERROR indicated in the events, or subsequent filters will get dropped on the floor. Another possible workaround that accomplishes similar effect without needing space for all events is just setting EV_RECEIPT on the final change being passed in; if any errored before it, the kqueue would not be drained. If we made it to the final change with EV_RECEIPT set, then we would return that one with EV_ERROR and still not drain the kqueue. This would seem to not be all that advisable. PR: 229741 MFC after: 1 week Notes: svn path=/head/; revision=360182
* Check the magic value in longjmp() before calling sigprocmask().John Baldwin2020-04-211-5/+5
| | | | | | | | | | | | | This avoids passing garbage to sigprocmask() if the jump buffer is invalid. Reviewed by: mhorne Obtained from: CheriBSD Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D24483 Notes: svn path=/head/; revision=360169
* Attempt to use AT_PS_STRINGS to get the ps_strings pointer.Brooks Davis2020-04-151-0/+8
| | | | | | | | | | | | | | | | | | This saves a system call and avoids one of the (relatively rare) cases of the kernel exporting pointers via sysctl. As a temporary measure, keep the sysctl support to allow limited compatability with old kernels. Fail gracefully if ps_strings can't be found (should never happen). Reviewed by: kib Obtained from: CheriBSD Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D24407 Notes: svn path=/head/; revision=359991
* Support AT_PS_STRINGS in _elf_aux_info().Brooks Davis2020-04-151-1/+15
| | | | | | | | | | | | This will be used by setproctitle(). Reviewed by: kib Obtained from: CheriBSD Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D24407 Notes: svn path=/head/; revision=359990
* Fix -Wvoid-pointer-to-enum-cast warnings.Brooks Davis2020-04-157-41/+41
| | | | | | | | | | | | | | | | | This pattern is used in callbacks with void * data arguments and seems both relatively uncommon and relatively harmless. Silence the warning by casting through uintptr_t. This warning is on by default in Clang 11. Reviewed by: arichardson Obtained from: CheriBSD (partial) MFC after: 1 week Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D24425 Notes: svn path=/head/; revision=359978
* closefrom: clamp lowfd to >= 0; close_range's parameters are unsigned.Kyle Evans2020-04-141-1/+2
| | | | | | | | Pointy hat: kevans Reported by: CI (lwhsu) Notes: svn path=/head/; revision=359943
* Mark closefrom(2) COMPAT12, reimplement in libc to wrap close_rangeKyle Evans2020-04-144-2/+49
| | | | | | | | | | | Include a temporarily compatibility shim as well for kernels predating close_range, since closefrom is used in some critical areas. Reviewed by: markj (previous version), kib Differential Revision: https://reviews.freebsd.org/D24399 Notes: svn path=/head/; revision=359930
* Make sonewconn() overflow messages have per-socket rate-limits and values.Jonathan T. Looney2020-04-141-1/+8
| | | | | | | | | | | | | | | | | | | | | | sonewconn() emits debug-level messages when a listen socket's queue overflows. Currently, sonewconn() tracks overflows on a global basis. It will only log one message every 60 seconds, regardless of how many sockets experience overflows. And, when it next logs at the end of the 60 seconds, it records a single message referencing a single PCB with the total number of overflows across all sockets. This commit changes to per-socket overflow tracking. The code will now log one message every 60 seconds per socket. And, the code will provide per-socket queue length and overflow counts. It also provides a way to change the period between log messages using a sysctl. Reviewed by: jhb (previous version), bcr (manpages) MFC after: 2 weeks Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D24316 Notes: svn path=/head/; revision=359923
* libc: remove shm_open(2)'s compat fallbackKyle Evans2020-04-131-15/+1
| | | | | | | | | | | | This had been introduced to ease any pain for using slightly older kernels with a newer libc, e.g., for bisecting a kernel across the introduction of shm_open2(2). 6 months has passed, retire the fallback and let shm_open() unconditionally call shm_open2(). Stale includes are removed as well. Notes: svn path=/head/; revision=359865
* Sync with OpenBSD:Xin LI2020-04-133-7/+9
| | | | | | | | | | | | | | | | | | arc4random.c: In the incredibly unbelievable circumstance where _rs_init() fails to allocate pages, don't call abort() because of corefile data leakage concerns, but simply _exit(). The reasoning is _rs_init() will only fail if someone finds a way to apply specific pressure against this failure point, for the purpose of leaking information into a core which they can read. We don't need a corefile in this instance to debug that. So take this "lever" away from whoever in the future wants to do that. arc4random.3: reference random(4) arc4random_uniform.c: include stdint.h over sys/types.h Notes: svn path=/head/; revision=359849
* Implement a close_range(2) syscallKyle Evans2020-04-123-2/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | close_range(min, max, flags) allows for a range of descriptors to be closed. The Python folk have indicated that they would much prefer this interface to closefrom(2), as the case may be that they/someone have special fds dup'd to higher in the range and they can't necessarily closefrom(min) because they don't want to hit the upper range, but relocating them to lower isn't necessarily feasible. sys_closefrom has been rewritten to use kern_close_range() using ~0U to indicate closing to the end of the range. This was chosen rather than requiring callers of kern_close_range() to hold FILEDESC_SLOCK across the call to kern_close_range for simplicity. The flags argument of close_range(2) is currently unused, so any flags set is currently EINVAL. It was added to the interface in Linux so that future flags could be added for, e.g., "halt on first error" and things of this nature. This patch is based on a syscall of the same design that is expected to be merged into Linux. Reviewed by: kib, markj, vangyzen (all slightly earlier revisions) Differential Revision: https://reviews.freebsd.org/D21627 Notes: svn path=/head/; revision=359836
* Introduce nexthop objects and new routing KPI.Alexander V. Chernikov2020-04-121-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the foundational change for the routing subsytem rearchitecture. More details and goals are available in https://reviews.freebsd.org/D24141 . This patch introduces concept of nexthop objects and new nexthop-based routing KPI. Nexthops are objects, containing all necessary information for performing the packet output decision. Output interface, mtu, flags, gw address goes there. For most of the cases, these objects will serve the same role as the struct rtentry is currently serving. Typically there will be low tens of such objects for the router even with multiple BGP full-views, as these objects will be shared between routing entries. This allows to store more information in the nexthop. New KPI: struct nhop_object *fib4_lookup(uint32_t fibnum, struct in_addr dst, uint32_t scopeid, uint32_t flags, uint32_t flowid); struct nhop_object *fib6_lookup(uint32_t fibnum, const struct in6_addr *dst6, uint32_t scopeid, uint32_t flags, uint32_t flowid); These 2 function are intended to replace all all flavours of <in_|in6_>rtalloc[1]<_ign><_fib>, mpath functions and the previous fib[46]-generation functions. Upon successful lookup, they return nexthop object which is guaranteed to exist within current NET_EPOCH. If longer lifetime is desired, one can specify NHR_REF as a flag and get a referenced version of the nexthop. Reference semantic closely resembles rtentry one, allowing sed-style conversion. Additionally, another 2 functions are introduced to support uRPF functionality inside variety of our firewalls. Their primary goal is to hide the multipath implementation details inside the routing subsystem, greatly simplifying firewalls implementation: int fib4_lookup_urpf(uint32_t fibnum, struct in_addr dst, uint32_t scopeid, uint32_t flags, const struct ifnet *src_if); int fib6_lookup_urpf(uint32_t fibnum, const struct in6_addr *dst6, uint32_t scopeid, uint32_t flags, const struct ifnet *src_if); All functions have a separate scopeid argument, paving way to eliminating IPv6 scope embedding and allowing to support IPv4 link-locals in the future. Structure changes: * rtentry gets new 'rt_nhop' pointer, slightly growing the overall size. * rib_head gets new 'rnh_preadd' callback pointer, slightly growing overall sz. Old KPI: During the transition state old and new KPI will coexists. As there are another 4-5 decent-sized conversion patches, it will probably take a couple of weeks. To support both KPIs, fields not required by the new KPI (most of rtentry) has to be kept, resulting in the temporary size increase. Once conversion is finished, rtentry will notably shrink. More details: * architectural overview: https://reviews.freebsd.org/D24141 * list of the next changes: https://reviews.freebsd.org/D24232 Reviewed by: ae,glebius(initial version) Differential Revision: https://reviews.freebsd.org/D24232 Notes: svn path=/head/; revision=359823
* Add HISTORY section to getc(3)Sergio Carlavilla Delgado2020-04-101-1/+17
| | | | | | | | | PR: 240269 Submitted by: Gordon Bergling Differential Revision: https://reviews.freebsd.org/D24295 Notes: svn path=/head/; revision=359773
* exit(3): Add HISTORY sectionSergio Carlavilla Delgado2020-04-101-1/+6
| | | | | | | | | | PR: 240259 Submitted by: Gordon Bergling Obtained from: OpenBSD Differential Revision: https://reviews.freebsd.org/D24146 Notes: svn path=/head/; revision=359772
* arc4random(3): Expand the SEE ALSO sectionSergio Carlavilla Delgado2020-04-101-1/+8
| | | | | | | | | | Submitted by: Gordon Bergling Approved by: brueffer@ Obtained from: NetBSD Differential Revision: https://reviews.freebsd.org/D23716 Notes: svn path=/head/; revision=359771
* libc: Fix possible overflow in binuptime().Konstantin Belousov2020-04-091-2/+16
| | | | | | | | | | | | | This is an application of the kernel overflow fix from r357948 to userspace, based on the algorithm developed by Bruce Evans. To keep the ABI of the vds_timekeep stable, instead of adding the large_delta member, MSB of both multipliers are added to quickly estimate the overflow. Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Notes: svn path=/head/; revision=359758
* Normalize deployment tools usage and definitions by putting into one placeMaxim Sobolev2020-04-071-1/+3
| | | | | | | | | | | | instead of sprinkling them out over many disjoint files. This is a follow-up to achieve the same goal in an incomplete rev.348521. Approved by: imp MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D20520 Notes: svn path=/head/; revision=359685
* Note some functions that appeared in First Edition UnixWarner Losh2020-04-013-2/+19
| | | | | | | | | These functions first appeared in the First Edition of Unix (or earlier in the pdp-7 version). Just claim 1st Edition for all this. The pdp-7 code is too fragmented at this point to extend history that far back. Notes: svn path=/head/; revision=359547
* Use proper mdoc(7) macros for literal text and do not use TnMateusz Piotrowski2020-04-011-5/+8
| | | | | | | | | Tn is deprecated and upsets linters. MFC after: 3 days Notes: svn path=/head/; revision=359504
* Trim some duplicate EIO descriptions.John Baldwin2020-03-302-7/+1
| | | | | | | | | | | While here, drop an extra conjunction from the list of error conditions for the remaining EIO description in symlink(2). Discussed with: mckusick (trimming duplicates) MFC after: 2 weeks Notes: svn path=/head/; revision=359467
* Document EINTEGRITY errors for many system calls.John Baldwin2020-03-3042-42/+151
| | | | | | | | | | | | | | | | | | | EINTEGRITY was previously documented as a UFS-specific error for mount(2). This documents EINTEGRITY as a filesystem-independent error that may be reported by the backing store of a filesystem. While here, document EIO as a filesystem-independent error for both mount(2) and posix_fadvise(2). EIO was previously only documented for UFS for mount(2). Reviewed by: mckusick Suggested by: mckusick MFC after: 2 weeks Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D24168 Notes: svn path=/head/; revision=359465
* libc: unconditionalize _NLIST_DO_ELFEd Maste2020-03-301-8/+0
| | | | | | | Suggested by: brooks, imp Notes: svn path=/head/; revision=359462
* nlist: retire long-obsolete aout supportEd Maste2020-03-303-104/+0
| | | | | | | | | Reviewed by: brooks, kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D24229 Notes: svn path=/head/; revision=359460
* exec{l,v}{e,p} arrived in 7th Edition research Unix to support the Bourne ShellWarner Losh2020-03-242-1/+9
| | | | | | | | which introduced environment variables. Document that here. Verified by consulting the TUHS archive. Notes: svn path=/head/; revision=359284
* Add STANDARDS and HISTORY to getcontext(3), makecontext(3), and ucontext(3).Edward Tomasz Napierala2020-03-233-3/+85
| | | | | | | | | Obtained from: NetBSD MFC after: 2 weeks Sponsored by: DARPA Notes: svn path=/head/; revision=359248
* Document when execl and execp entered unix.Warner Losh2020-03-231-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For this, things are complicated. The first mention in the manual was in the 4th edition manual (as an add on to exec(II)). The 2nd and 3rd editions didn't have these in the manual (either as a separate page, or as an add-on to exec(II)). We don't have good 1st, 2nd or 3rd edition distributions to look in. However, there's a tape labeled 'last1120c' that we do have. This tape contains the last version of the V2 edition of the C compiler on it (just after C got struct). On this tape there was a libc.sa archive that contains source for execl and execp. This source is sufficiently different from the V5 sources (which are the next ones we have sources for) and have a slightly different calling convention than later sources, suggesting that the early date for the last1120c tape is correct (in that era, the epoch changed every year, leading to a one or two year ambiguity on when the files could have been modified) and it should be though of as V2. Since this was also a time of compiler development, and the calling convetions are known to be under evolution, and since the rest of the sources in libc.sa are consistent, that's further evidence that V2 is likely. Finally, 2nd edition was the last version to fully support the 11/20 because it lacked many basic features and bell labs moved off it to the 11/45 as soon as they could afford to buy one, around this time era. The unix manuals make it sound like V3 might have supported the 11/20, but the same intro could also be read to mean it didn't, at all, and that V3 was the first rewrite for the 11/45 ahead of the rewrite in C that came with V4. Taken together, the evidence leans most heavily to V2 (90% IMHO), and slightly to V3 (8%) or possibly V4 (2%). I've not put all this in the man page, but have left it here in case someone notices in the future that V4 is the first manual page for it. Notes: svn path=/head/; revision=359246
* fix typo in exec man pageSergio Carlavilla Delgado2020-03-221-1/+1
| | | | | | | | | | | | PR: 240258 Submitted by: gbergling@gmail.com Reported by: kib@ Approved by: bcr@(mentor, implicit) MFC after: 2 days Differential Revision: https://reviews.freebsd.org/D24145 Notes: svn path=/head/; revision=359227
* exec man page: Add HISTORY sectionSergio Carlavilla Delgado2020-03-221-1/+6
| | | | | | | | | | | | PR: 240258 Submitted by: gbergling@gmail.com Patch by: gbergling@gmail.com Approved by: bcr@(mentor) MFC after: 2 days Differential Revision: https://reviews.freebsd.org/D24145 Notes: svn path=/head/; revision=359210
* nlist(3): add elf(5) xrefEd Maste2020-03-211-1/+2
| | | | | | | | Found while looking for a.out remnants; nlist should also xref the binary format we currently use. Notes: svn path=/head/; revision=359194
* Fix uselocale(3) to not leak a reference to the old locale.Mark Johnston2020-03-201-1/+1
| | | | | | | | | | | | In a single-threaded program pthread_getspecific() always returns NULL, so the old locale would not end up being freed. PR: 239520 MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=359183
* Fix race condition in catopen(3).Xin LI2020-03-191-20/+37
| | | | | | | | | | | | | | | | | | | The current code uses a rwlock to protect the cached list, which in turn holds a list of catentry objects, and increments reference count while holding only read lock. Fix this by converting the reference counter to use atomic operations. While I'm there, also perform some clean ups around memory operations. PR: 202636 Reported by: Henry Hu <henry.hu.sh@gmail.com> Reviewed by: markj MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D24095 Notes: svn path=/head/; revision=359118
* sendfile() does currently not support SCTP sockets.Michael Tuexen2020-03-131-0/+9
| | | | | | | | | | | Therefore, fail the call. Reviewed by: markj@ MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D24059 Notes: svn path=/head/; revision=358965
* ftw.3: Follow style(9) in the exampleMateusz Piotrowski2020-03-121-1/+2
| | | | | | | | | | Reported by: oshogbo Approved by: bcr (mentor) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D24043 Notes: svn path=/head/; revision=358916
* Fix r358688 -- Remember to actually save r3 before processing.Brandon Bergren2020-03-111-1/+1
| | | | | | | | | | | | Crash was noticed by pkubaj building gcc9. Apparently non dword-aligned char pointers are somewhat rare in the wild. Reported by: pkubaj Sponsored by: Tag1 Consulting, Inc. Notes: svn path=/head/; revision=358902
* When mounting a UFS filesystem, return EINTEGRITY rather than EIOKirk McKusick2020-03-111-0/+4
| | | | | | | | | | | | when a superblock check-hash error is detected. This change clarifies a mount that failed due to media hardware failures (EIO) from a mount that failed due to media errors (EINTEGRITY) that can be corrected by running fsck(8). Sponsored by: Netflix Notes: svn path=/head/; revision=358899
* powerpc/memcpy: Don't predict the src and dst will be misalignedJustin Hibbits2020-03-061-1/+1
| | | | | | | | Predicting misalignment will pessimize the expected common case. Don't predict true or false in thise case. Notes: svn path=/head/; revision=358691
* Finish revert of r358672, missed in r358688.Justin Hibbits2020-03-061-1/+1
| | | | | | | | | Manual reverts never succeed correctly. Reported by: luporl Notes: svn path=/head/; revision=358690
* powerpc/powerpc64: Enforce natural alignment in memcpyJustin Hibbits2020-03-063-1/+13
| | | | | | | | | | | | | | | | | | Summary: POWER architecture CPUs (Book-S) require natural alignment for cache-inhibited storage accesses. Since we can't know the caching model for a page ahead of time, always enforce natural alignment in memcpy. This fixes a SIGBUS in X with acceleration enabled on POWER9. As part of this, revert r358672, it's no longer necessary with this fix. Regression tested by alfredo. Reviewed by: alfredo Differential Revision: https://reviews.freebsd.org/D23969 Notes: svn path=/head/; revision=358688
* umtx_op.2: correct typoEd Maste2020-03-051-1/+1
| | | | | | | | | PR: 244611 Submitted by: John F. Carr <jfc@mit.edu> MFC after: 3 days Notes: svn path=/head/; revision=358675