答复: [外部邮件] Re: [PATCH] x86/sgx: Fix SRCU list traversal

From: Li,Rongqing(ACG CCN)

Date: Mon Feb 23 2026 - 19:47:40 EST



> > Replace list_for_each_entry_rcu() with list_for_each_entry_srcu() when
> > traversing the encl->mm_list protected by SRCU. This ensures proper
> > synchronization annotation and avoids potential lockdep warnings about
> > incorrect RCU usage.
> >
> > The list is protected by encl->srcu, not RCU, so the SRCU-specific
> > iterator with srcu_read_lock_held() annotation is required.
> >
> > Signed-off-by: Li RongQing <lirongqing@xxxxxxxxx>
>
> Acked-by: Kai Huang <kai.huang@xxxxxxxxx>

Thanks for reviewing , and ping

-Li