Re: [BUG] usb: gadgetfs: KASAN null-ptr-deref and intermittent UAF in ep_aio_cancel()

Andrey Konovalov <[email protected]>
Newsgroups org.kernel.vger.linux-usb,org.kernel.vger.linux-kernel
Message-ID <CA+fCnZdfu6NSix_wN_6ZbP3Bvni8SYPQzXAkDg2R7uZFEP52yQ@mail.gmail.com>
On Wed, Aug 5, 2026 at 6:17 PM Alan Stern <[email protected]> wrote:
>
> However, I'm not sure it's worth working on them.  Greg KH is talking
> about getting rid of almost all the drivers in the gadget/legacy
> directory.  I don't know if that will include the gadgetfs driver.  If
> it does, trying to fix up the driver will be a waste of time.

Hi Alan and Greg,

Gonna hijack the discussion here: Are there more details to what
exactly might be removed?

I would be in favor of keeping the Raw Gadget driver, at the very
least, as it powers the syzkaller's ability to fuzz USB drivers. The
composite framework is notably less flexible for emulating improper
USB devices (even with the FunctionFS-based composite function).

And as GadgetFS, unlike Raw Gadget right now, supports AIO, it might
make sense to keep it as well.

But I suppose it would be fine to remove the legacy modules that are
just wrappers around various composite functions.

Thank you!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.