bisecting cause commit starting from 3bb61aa61828499a7d0f5e560051625fd02ae7e4 building syzkaller on 8c9190ef9ef69993519136740a4e67c74f45fdb3 testing commit 3bb61aa61828499a7d0f5e560051625fd02ae7e4 with gcc (GCC) 8.1.0 kernel signature: ee7e98fbde6a04250430fedc1e4d2da4931a0ca6d87e1c2d24481ae538d234ed all runs: crashed: WARNING in cm109_submit_buzz_toggle/usb_submit_urb testing release v5.9 testing commit bbf5c979011a099af5dc76498918ed7df445635b with gcc (GCC) 8.1.0 kernel signature: 515f03a0aeeb133aa2b2f66b7fe0a9c57066848d91e7279ea1677c9a1e253520 all runs: crashed: WARNING in cm109_submit_buzz_toggle/usb_submit_urb testing release v5.8 testing commit bcf876870b95592b52519ed4aafcf9d95999bc9c with gcc (GCC) 8.1.0 kernel signature: 0261a6cb35e3849e99b6fb76bc5f35549f662b9bca66de0c03696d60dfe31b27 all runs: crashed: WARNING in cm109_submit_buzz_toggle/usb_submit_urb testing release v5.7 testing commit 3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162 with gcc (GCC) 8.1.0 kernel signature: f3397b652782618d9d3eb5d87f95da90d42790679e4cc2e4c0f8d9679708157b all runs: crashed: WARNING in cm109_submit_buzz_toggle/usb_submit_urb testing release v5.6 testing commit 7111951b8d4973bda27ff663f2cf18b663d15b48 with gcc (GCC) 8.1.0 kernel signature: 699d7c9d5cada8a1e74a63c5498753e89bb4dfa242ab0232c18db348469f0ff3 all runs: OK # git bisect start 3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162 7111951b8d4973bda27ff663f2cf18b663d15b48 Bisecting: 7542 revisions left to test after this (roughly 13 steps) [50a5de895dbe5df947b3a695777db5b2c313e065] Merge tag 'for-linus-hmm' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma testing commit 50a5de895dbe5df947b3a695777db5b2c313e065 with gcc (GCC) 8.1.0 kernel signature: ee6094812bb1b89194e252f0799b822ed12b6eb5cbb8679a3e671dd7de9570d2 all runs: crashed: WARNING in cm109_submit_buzz_toggle/usb_submit_urb # git bisect bad 50a5de895dbe5df947b3a695777db5b2c313e065 Bisecting: 4204 revisions left to test after this (roughly 12 steps) [56a451b780676bc1cdac011735fe2869fa2e9abf] Merge tag 'ntb-5.7' of git://github.com/jonmason/ntb testing commit 56a451b780676bc1cdac011735fe2869fa2e9abf with gcc (GCC) 8.1.0 kernel signature: 34b2d35e69a105ac6f1d8345daf415719989102515834682f333ca20fa0eb6de all runs: crashed: WARNING in cm109_submit_buzz_toggle/usb_submit_urb # git bisect bad 56a451b780676bc1cdac011735fe2869fa2e9abf Bisecting: 1643 revisions left to test after this (roughly 11 steps) [49835c15a55225e9b3ff9cc9317135b334ea2d49] Merge tag 'pm-5.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm testing commit 49835c15a55225e9b3ff9cc9317135b334ea2d49 with gcc (GCC) 8.1.0 kernel signature: 578cf7123a8b7e37016b13815428693ffa619d0f83af1f70cb9b6c276fa4900c all runs: crashed: WARNING in cm109_submit_buzz_toggle/usb_submit_urb # git bisect bad 49835c15a55225e9b3ff9cc9317135b334ea2d49 Bisecting: 934 revisions left to test after this (roughly 10 steps) [063d1942247668eb0bb800aef5afbbef337344be] Merge tag 'media/v5.7-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media testing commit 063d1942247668eb0bb800aef5afbbef337344be with gcc (GCC) 8.1.0 kernel signature: c021f01c273c136629815b0625710cdf1165d79f4e1e2ca16085d21422596be0 all runs: OK # git bisect good 063d1942247668eb0bb800aef5afbbef337344be Bisecting: 516 revisions left to test after this (roughly 9 steps) [e681bb287f40e7a9dbcb04cef80fd87a2511ab86] staging: vt6656: Use DIV_ROUND_UP macro instead of specific code testing commit e681bb287f40e7a9dbcb04cef80fd87a2511ab86 with gcc (GCC) 8.1.0 kernel signature: 034b0e34244ed63025311e65a8e254b87bd2b89d3c713973f079834e71362c5b all runs: OK # git bisect good e681bb287f40e7a9dbcb04cef80fd87a2511ab86 Bisecting: 266 revisions left to test after this (roughly 8 steps) [db34c5ffee649e2c4c870d1031a996398a187cf5] Merge tag 'usb-5.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb testing commit db34c5ffee649e2c4c870d1031a996398a187cf5 with gcc (GCC) 8.1.0 kernel signature: ca9e8af1135a81225d1d9defbfe31341913a022b07022e18451115bebcc81c7f all runs: crashed: WARNING in cm109_submit_buzz_toggle/usb_submit_urb # git bisect bad db34c5ffee649e2c4c870d1031a996398a187cf5 Bisecting: 121 revisions left to test after this (roughly 7 steps) [a8ab3e76297ea85d92f4ee0833bd469816a13ccf] Merge tag 'usb-for-v5.7' of git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb into usb-next testing commit a8ab3e76297ea85d92f4ee0833bd469816a13ccf with gcc (GCC) 8.1.0 kernel signature: 26620a9e26999c39baf4c914882f3f71172b43b48f88dcdbe3490941d1992df6 all runs: crashed: WARNING in cm109_submit_buzz_toggle/usb_submit_urb # git bisect bad a8ab3e76297ea85d92f4ee0833bd469816a13ccf Bisecting: 63 revisions left to test after this (roughly 6 steps) [d1c6a769cdf466053ae211789f2b0671c8a72331] usb: typec: mux: Allow the mux handles to be requested with fwnode testing commit d1c6a769cdf466053ae211789f2b0671c8a72331 with gcc (GCC) 8.1.0 kernel signature: e8101bfb88b368ae2ad42511e816cd90c2fac39ffae7d889e49b5f5e79cecd58 all runs: OK # git bisect good d1c6a769cdf466053ae211789f2b0671c8a72331 Bisecting: 31 revisions left to test after this (roughly 5 steps) [eeead847487f726fa177d0f4060c4f0816ad9cd9] usb: gadget: amd5536udc: fix spelling mistake "reserverd" -> "reserved" testing commit eeead847487f726fa177d0f4060c4f0816ad9cd9 with gcc (GCC) 8.1.0 kernel signature: 82b83d243b0b214ff94e006b6ab323d4edbc04b5a816a73e1e0b8a41f256ab2c all runs: crashed: WARNING in cm109_submit_buzz_toggle/usb_submit_urb # git bisect bad eeead847487f726fa177d0f4060c4f0816ad9cd9 Bisecting: 15 revisions left to test after this (roughly 4 steps) [3d157c28d2289edf0439e8308e8de3a06acaaf0e] doc: dt: bindings: usb: dwc3: Update entries for disabling SS instances in park mode testing commit 3d157c28d2289edf0439e8308e8de3a06acaaf0e with gcc (GCC) 8.1.0 kernel signature: b99aecc0d48430fad038a5b236b17e820ce5375bab9bfe507690c76cc4a9d10f all runs: OK # git bisect good 3d157c28d2289edf0439e8308e8de3a06acaaf0e Bisecting: 7 revisions left to test after this (roughly 3 steps) [0227cc84c44417a29c8102e41db8ec2c11ebc6b2] usb: dwc3: core: don't do suspend for device mode if already suspended testing commit 0227cc84c44417a29c8102e41db8ec2c11ebc6b2 with gcc (GCC) 8.1.0 kernel signature: b74811a5cf50c60865ff15eab1617bf4097532d210cb6a1b1eb17dea37910fff all runs: OK # git bisect good 0227cc84c44417a29c8102e41db8ec2c11ebc6b2 Bisecting: 3 revisions left to test after this (roughly 2 steps) [95b18f28979e12539cc02f6ec4e2c776e8551f39] dt-bindings: usb: dwc2: add compatible property for rk3328 usb testing commit 95b18f28979e12539cc02f6ec4e2c776e8551f39 with gcc (GCC) 8.1.0 kernel signature: 27ed012ed2f0d0d811836b3853edf6e93752f3441837d9ecf1ef535ed309500f all runs: crashed: WARNING in cm109_submit_buzz_toggle/usb_submit_urb # git bisect bad 95b18f28979e12539cc02f6ec4e2c776e8551f39 Bisecting: 1 revision left to test after this (roughly 1 step) [1a0808cb9e417170ed6ab97254cf319dc3e3c310] usb: dwc2: Implement set_selfpowered() testing commit 1a0808cb9e417170ed6ab97254cf319dc3e3c310 with gcc (GCC) 8.1.0 kernel signature: b74811a5cf50c60865ff15eab1617bf4097532d210cb6a1b1eb17dea37910fff all runs: OK # git bisect good 1a0808cb9e417170ed6ab97254cf319dc3e3c310 Bisecting: 0 revisions left to test after this (roughly 0 steps) [f2c2e717642c66f7fe7e5dd69b2e8ff5849f4d10] usb: gadget: add raw-gadget interface testing commit f2c2e717642c66f7fe7e5dd69b2e8ff5849f4d10 with gcc (GCC) 8.1.0 kernel signature: 27ed012ed2f0d0d811836b3853edf6e93752f3441837d9ecf1ef535ed309500f all runs: crashed: WARNING in cm109_submit_buzz_toggle/usb_submit_urb # git bisect bad f2c2e717642c66f7fe7e5dd69b2e8ff5849f4d10 f2c2e717642c66f7fe7e5dd69b2e8ff5849f4d10 is the first bad commit commit f2c2e717642c66f7fe7e5dd69b2e8ff5849f4d10 Author: Andrey Konovalov Date: Mon Feb 24 17:13:03 2020 +0100 usb: gadget: add raw-gadget interface USB Raw Gadget is a kernel module that provides a userspace interface for the USB Gadget subsystem. Essentially it allows to emulate USB devices from userspace. Enabled with CONFIG_USB_RAW_GADGET. Raw Gadget is currently a strictly debugging feature and shouldn't be used in production. Raw Gadget is similar to GadgetFS, but provides a more low-level and direct access to the USB Gadget layer for the userspace. The key differences are: 1. Every USB request is passed to the userspace to get a response, while GadgetFS responds to some USB requests internally based on the provided descriptors. However note, that the UDC driver might respond to some requests on its own and never forward them to the Gadget layer. 2. GadgetFS performs some sanity checks on the provided USB descriptors, while Raw Gadget allows you to provide arbitrary data as responses to USB requests. 3. Raw Gadget provides a way to select a UDC device/driver to bind to, while GadgetFS currently binds to the first available UDC. 4. Raw Gadget uses predictable endpoint names (handles) across different UDCs (as long as UDCs have enough endpoints of each required transfer type). 5. Raw Gadget has ioctl-based interface instead of a filesystem-based one. Reviewed-by: Greg Kroah-Hartman Signed-off-by: Andrey Konovalov Signed-off-by: Felipe Balbi Documentation/usb/index.rst | 1 + Documentation/usb/raw-gadget.rst | 61 ++ drivers/usb/gadget/legacy/Kconfig | 11 + drivers/usb/gadget/legacy/Makefile | 1 + drivers/usb/gadget/legacy/raw_gadget.c | 1078 ++++++++++++++++++++++++++++++++ include/uapi/linux/usb/raw_gadget.h | 167 +++++ 6 files changed, 1319 insertions(+) create mode 100644 Documentation/usb/raw-gadget.rst create mode 100644 drivers/usb/gadget/legacy/raw_gadget.c create mode 100644 include/uapi/linux/usb/raw_gadget.h culprit signature: 27ed012ed2f0d0d811836b3853edf6e93752f3441837d9ecf1ef535ed309500f parent signature: b74811a5cf50c60865ff15eab1617bf4097532d210cb6a1b1eb17dea37910fff revisions tested: 19, total time: 3h35m5.853614855s (build: 1h47m47.95525336s, test: 1h45m0.351460414s) first bad commit: f2c2e717642c66f7fe7e5dd69b2e8ff5849f4d10 usb: gadget: add raw-gadget interface recipients (to): ["andreyknvl@google.com" "balbi@kernel.org" "gregkh@linuxfoundation.org"] recipients (cc): [] crash: WARNING in cm109_submit_buzz_toggle/usb_submit_urb ------------[ cut here ]------------ URB 00000000e5fc86ed submitted while active WARNING: CPU: 1 PID: 11130 at drivers/usb/core/urb.c:363 usb_submit_urb+0xde1/0x11a0 drivers/usb/core/urb.c:363 Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 11130 Comm: syz-executor.4 Not tainted 5.6.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x96/0xe0 lib/dump_stack.c:118 panic+0x2a1/0x52a kernel/panic.c:221 __warn.cold.10+0x25/0x2f kernel/panic.c:582 report_bug+0x1ad/0x270 lib/bug.c:195 fixup_bug arch/x86/kernel/traps.c:174 [inline] do_error_trap+0x12d/0x1e0 arch/x86/kernel/traps.c:267 do_invalid_op+0x31/0x40 arch/x86/kernel/traps.c:286 invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1027 RIP: 0010:usb_submit_urb+0xde1/0x11a0 drivers/usb/core/urb.c:363 Code: 00 00 83 e3 01 b8 f0 ff ff ff 0f 85 1e f7 ff ff 4c 89 e6 48 c7 c7 a0 11 f4 88 89 44 24 04 c6 05 27 32 88 07 01 e8 6b 42 6c fc <0f> 0b 8b 44 24 04 e9 f9 f6 ff ff c7 44 24 08 01 00 00 00 e9 77 f7 RSP: 0018:ffffc9000ae276f8 EFLAGS: 00010086 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000003 RSI: 0000000000000007 RDI: ffffffff8e5671e0 RBP: ffff8880b4395ab0 R08: ffffed10173e43e9 R09: ffffed10173e43e9 R10: ffffed10173e43e8 R11: ffff8880b9f21f43 R12: ffff8880a4732600 R13: 0000000000000046 R14: ffff8880af7081d8 R15: ffff8880af708210 cm109_submit_buzz_toggle+0xbd/0x140 drivers/input/misc/cm109.c:351 cm109_toggle_buzzer_async+0x7f/0xa0 drivers/input/misc/cm109.c:487 cm109_input_ev+0x113/0x150 drivers/input/misc/cm109.c:621 input_handle_event+0x98e/0x1280 drivers/input/input.c:375 input_inject_event+0x229/0x242 drivers/input/input.c:470 kd_sound_helper+0xe9/0x200 drivers/tty/vt/keyboard.c:237 input_handler_for_each_handle+0xd4/0x1b0 drivers/input/input.c:2355 kd_mksound+0x7e/0xf0 drivers/tty/vt/keyboard.c:261 do_con_trol+0x3f9/0x5960 drivers/tty/vt/vt.c:2116 do_con_write.part.13+0xa30/0x1a40 drivers/tty/vt/vt.c:2808 do_con_write drivers/tty/vt/vt.c:2576 [inline] con_write+0x1a/0x80 drivers/tty/vt/vt.c:3144 process_output_block drivers/tty/n_tty.c:595 [inline] n_tty_write+0x463/0xe80 drivers/tty/n_tty.c:2333 do_tty_write drivers/tty/tty_io.c:962 [inline] tty_write+0x3c8/0x8b0 drivers/tty/tty_io.c:1046 vfs_write+0x185/0x490 fs/read_write.c:558 ksys_write+0xe6/0x1c0 fs/read_write.c:611 do_syscall_64+0x8e/0x4f0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45deb9 Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f6a25133c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000000000003a7c0 RCX: 000000000045deb9 RDX: 0000000000001006 RSI: 00000000200002c0 RDI: 0000000000000005 RBP: 000000000119bf60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119bf2c R13: 00007ffe61ef5adf R14: 00007f6a251349c0 R15: 000000000119bf2c Kernel Offset: disabled Rebooting in 86400 seconds..