diff options
| author | Keisuke Tsukuda <catnyaaan@outlook.com> | 2026-09-08 20:33:54 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-09-10 15:42:25 +0200 |
| commit | e84caed6e7f58d96ea2e4aaa0b947ab05faa451b (patch) | |
| tree | 1f984f493efca5ff1c83a4ef9c68e8ff94e38369 /tools/perf/scripts/python | |
| parent | 048884b782b137229399b9f727b6437d9b4f1071 (diff) | |
| download | linux-next-e84caed6e7f58d96ea2e4aaa0b947ab05faa451b.tar.gz linux-next-e84caed6e7f58d96ea2e4aaa0b947ab05faa451b.zip | |
usb: gadget: f_mass_storage: ignore class requests while inactive
SET_CONFIGURATION is handled asynchronously by the mass-storage thread.
A class request can arrive after the composite core selects the function
but before the thread installs common->fsg, or while the function is being
disabled.
fsg_setup() already rejects this state with -EOPNOTSUPP, but checking it
through fsg_is_set() also emits a warning. Check the active function
directly so normal requests during a configuration transition are rejected
without hiding fsg_is_set() warnings from other internal paths.
Fixes: 8876f5e7d3b2 ("USB: gadget: f_mass_storage: added eject callback")
Reported-by: syzbot+d31109047baed8f3b590@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=d31109047baed8f3b590
Signed-off-by: Keisuke Tsukuda <tkdkei@outlook.jp>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://patch.msgid.link/20260908203348.95825-3-tkdkei@outlook.jp
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
