summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/malloc.c
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2020-10-04 20:22:22 +0000
committerkettenis <kettenis@openbsd.org>2020-10-04 20:22:22 +0000
commit55f96d4737b5a1f97bebb436859780867663d50a (patch)
treec9c7c99bacd77da3c791af5ec59af5fb764850c5 /lib/libc/stdlib/malloc.c
parentChange kcopy(9) such that it does 64-bit and 32-bit copies whenever possible. (diff)
downloadwireguard-openbsd-55f96d4737b5a1f97bebb436859780867663d50a.tar.xz
wireguard-openbsd-55f96d4737b5a1f97bebb436859780867663d50a.zip
Change kcopy(9) such that it does 64-bit and 32-bit copies whenever possible.
This makes sure a kcopy(9) that is a sequence of 64-bit or 32-bit values that are properly aligned is done atomically. This is needed for kbind(2) as it needs to update PLT/GOT entries atomically when doing lazy binding. This seems to fix some random SIGSEGV and SIGTRAP when linking stuff with ld.lld. ok deraadt@
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions