On Fri, Dec 09, 2022 at 11:15:35AM -0800, Ackerley Tng <ackerleytng@xxxxxxxxxx> wrote: > > In tdx_vm_init, it is possible to have a double-reclaim, which > eventually causes a host crash. I have a selftest that reliably > reproduces this, and I believe the problem is that withiin > tdx_vm_free(), we don't reset kvm->tdcs = NULL and kvm->tdr.added to > false. Thanks for the fix. Did you use error injection to trigger the error path? Thanks, -- Isaku Yamahata <isaku.yamahata@xxxxxxxxx>