public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Li Zao <l1za0.sec@gmail.com>
Cc: mcgrof@kernel.org, russ.weight@linux.dev, rafael@kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drivers: firmware_loader: fix race between sysfs fallback cleanup and device removal
Date: Wed, 22 Apr 2026 13:52:19 +0200	[thread overview]
Message-ID: <2026042251-sanding-wing-36dc@gregkh> (raw)
In-Reply-To: <CAAwbnpeUx+e+9bptd2KaBzDSMsvmEd0=7bqVPU-KtM5SqezgbA@mail.gmail.com>

On Wed, Apr 22, 2026 at 07:36:15PM +0800, Li Zao wrote:
> In the report, I saw:
> 
> sysfs group 'power' not found for kobject 'ueagle-atm!eagleI.fw'
> WARNING: CPU: 0 PID: 14408 at fs/sysfs/group.c:282 sysfs_remove_group
> fs/sysfs/group.c:282 [inline]
> WARNING: CPU: 0 PID: 14408 at fs/sysfs/group.c:282
> sysfs_remove_group+0x159/0x1b0 fs/sysfs/group.c:273
> 
> The reproducer mainly runs an infinite loop(), which continuously forks
> and executes execute_one() within loop(). execute_one() constructs
> parameters and calls syz_usb_connect(), causing a large number of
> connect and disconnect calls.

Of a fake USB atm device, right?  ATM USB devices are crazy, if you have
the rights to make/destroy lots of them like this, you are running as
root, and can do worse things :)

Luckily ATM is about to be dropped from the kernel, so all is good...

> According to the call trace, this problem is triggered when
> firmware_fallback_sysfs() calls device_del(). So I suppose the problem
> is likely caused by a large number of connect/disconnect operations
> triggering some kind of race condition, leading to the device being
> unregistered and ultimately causing sysfs_remove_group() to remove
> an object that no longer exists. But to be honest, since I'm not very
> familiar with this code, I can't be 100% sure. Sorry for my lack of rigor.

I'd dig into the ueagle driver and see exactly what it is trying to do
with the firmware loading path there, that's probably the issue here,
not in the firmware core.

thanks,

greg k-h

      reply	other threads:[~2026-04-22 11:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-21 13:49 [PATCH] drivers: firmware_loader: fix race between sysfs fallback cleanup and device removal l1za0.sec
2026-04-21 14:14 ` Greg KH
2026-04-22 11:36   ` Li Zao
2026-04-22 11:52     ` Greg KH [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2026042251-sanding-wing-36dc@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=l1za0.sec@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mcgrof@kernel.org \
    --cc=rafael@kernel.org \
    --cc=russ.weight@linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox