summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/malloc.c
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2020-10-04 20:03:57 +0000
committerkettenis <kettenis@openbsd.org>2020-10-04 20:03:57 +0000
commitfe11e15c2cfedc624276549aa908e70d3b8ba0dc (patch)
tree96c66572e1e654c0e17d4a9acf5dbae061ab105c /lib/libc/stdlib/malloc.c
parentRemove outdated comment. (diff)
downloadwireguard-openbsd-fe11e15c2cfedc624276549aa908e70d3b8ba0dc.tar.xz
wireguard-openbsd-fe11e15c2cfedc624276549aa908e70d3b8ba0dc.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@, patrick@, drahn@
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions