diff options
author | 2011-05-10 21:48:17 +0000 | |
---|---|---|
committer | 2011-05-10 21:48:17 +0000 | |
commit | 06be59c16e52d96c7bd715049fadc78e6e3f0870 (patch) | |
tree | d138304e91b0876e9a6412372112755d125d9730 /usr.bin/ssh/auth.c | |
parent | Kill vm_page_lookup_freelist. (diff) | |
download | wireguard-openbsd-06be59c16e52d96c7bd715049fadc78e6e3f0870.tar.xz wireguard-openbsd-06be59c16e52d96c7bd715049fadc78e6e3f0870.zip |
Don't leak swapslots when doing a uvm_km_pgremove and a page is in swap only.
Before we were only calling uao_dropswap() if there was a page, maning
that if the buffer was swapped out then we would leak the slot.
Quite rare because only pipebuffers should swap from the kernel object,
but i've seen panics that implied this had happened (alpha.p for example).
ok thib@ after a lot of discussion and checking the semantics.
Diffstat (limited to 'usr.bin/ssh/auth.c')
0 files changed, 0 insertions, 0 deletions