diff options
author | 2018-07-09 08:46:30 +0000 | |
---|---|---|
committer | 2018-07-09 08:46:30 +0000 | |
commit | 21c85adc82cf6f023de093b050b8ab587ea321a9 (patch) | |
tree | e8a9d0acccdd3d0a35f4fb716e104b8405228319 /sys/arch/arm/cortex/files.cortex | |
parent | vmd(8): stash device IRQ in the device struct (diff) | |
download | wireguard-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