Call bufq_destroy() in swap_off for the VREG case since swap_on() called
authorclaudio <claudio@openbsd.org>
Tue, 16 Apr 2024 10:06:37 +0000 (10:06 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 16 Apr 2024 10:06:37 +0000 (10:06 +0000)
commitb8db4ef5ee5504403408483bc418a100cbec31cc
treea03f55fb976307df39067256c31c5ca93e1577aa
parent6434a2662ab1393315c379a172fdfd57a1b98f42
Call bufq_destroy() in swap_off for the VREG case since swap_on() called
bufq_init(). Similar issue as the use-after-free in mfs.
Missing call noticed by jsg@
OK deraadt@ mpi@
sys/uvm/uvm_swap.c