summaryrefslogtreecommitdiffstats
path: root/sys/arch/arm/cortex/files.cortex
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2018-07-09 08:46:30 +0000
committerbluhm <bluhm@openbsd.org>2018-07-09 08:46:30 +0000
commit21c85adc82cf6f023de093b050b8ab587ea321a9 (patch)
treee8a9d0acccdd3d0a35f4fb716e104b8405228319 /sys/arch/arm/cortex/files.cortex
parentvmd(8): stash device IRQ in the device struct (diff)
downloadwireguard-openbsd-21c85adc82cf6f023de093b050b8ab587ea321a9.tar.xz
wireguard-openbsd-21c85adc82cf6f023de093b050b8ab587ea321a9.zip
Make free(9) MP safe. It was wrong to set ku_indx to 0 after freeing
the memory in uvm. Another process could use the false 0 then. To be on the safe side, protect all access to ku_indx and ku_pagecnt with a mutex. Update ku_indx and ku_pagecnt before calling uvm_km_free(). Update ksp after uvm_km_free() to keep accounting correct. tested by sthen@; OK mpi@ visa@ deraadt@
Diffstat (limited to 'sys/arch/arm/cortex/files.cortex')
0 files changed, 0 insertions, 0 deletions