Re: [PATCH v2] x86/virt/tdx: Fix lockdep assertion failure in cache flush for kexec

From: Huang, Kai

Date: Sun Mar 08 2026 - 06:12:32 EST


> > >
> > > So how exactly does this patch prevent the BUG: printk in
> > > check_preemption_disabled from triggering, if the lockdep assert was
> > > triggering?
> >
> > There's no real BUG here. It's just the
> > lockdep_assert_preemption_disabled() is misused.
>
> Essentially in check_preemption_disabled() the check is considered
> passed IF ANY of the preempt disable conditions is met, i.e it's more
> laxed. So yeah, makes sense!
>
> Reviewed-by: Nikolay Borisov <nik.borisov@xxxxxxxx>

Thanks!