Re: [syzbot] [fs?] [wireless?] general protection fault in simple_recursive_removal (5)

From: Hillf Danton
Date: Thu Jul 24 2025 - 19:35:35 EST


On Thu, 24 Jul 2025 10:29:47 -0700 Moon Hee Lee wrote:
> On Thu, Jul 24, 2025 at 8:58 AM Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote:
> > It might paper over the specific reproducer, but that's not a fix...
> > I'm not familiar with that code; will check the details, but in
> > this form it is obviously still racy.
>
> Thanks for the feedback, Al.
>
> Agreed, this only papers over the issue. I'm tracing the
> sta_info_destroy() path to confirm the race and will follow up with a
> proper fix if confirmed.
>
A look at net/mac80211/debugfs_netdev.c:1021 [1] helps to prepare a proper fix.

[1] https://lore.kernel.org/lkml/6881aed3.a00a0220.2f88df.000b.GAE@xxxxxxxxxx/