syzbot


WARNING in gpio_to_desc

Status: fixed on 2019/08/27 17:15
Subsystems: usb gpio
[Documentation on labels]
Reported-by: syzbot+cf35b76f35e068a1107f@syzkaller.appspotmail.com
Fix commit: c3953a3c2d31 NFC: nfcmrvl: fix gpio-handling regression
First crash: 1724d, last: 1693d
Discussions (6)
Title Replies (including bot) Last reply
[PATCH 4.14 00/33] 4.14.138-stable review 50 (50) 2019/09/01 00:07
[PATCH 4.19 00/45] 4.19.66-stable review 51 (51) 2019/08/11 06:17
[PATCH 5.2 00/56] 5.2.8-stable review 63 (63) 2019/08/09 15:48
[PATCH] NFC: nfcmrvl: fix gpio-handling regression 2 (2) 2019/08/05 17:26
Reminder: 67 open syzbot bugs in usb subsystem 1 (1) 2019/07/24 01:35
WARNING in gpio_to_desc 4 (6) 2019/07/17 12:07
Last patch testing requests (1)
Created Duration User Patch Repo Result
2019/07/17 11:48 17m andreyknvl@google.com patch https://github.com/google/kasan.git usb-fuzzer OK

Sample crash report:
usb 1-1: config 0 interface 75 altsetting 0 bulk endpoint 0x81 has invalid maxpacket 0
usb 1-1: New USB device found, idVendor=1286, idProduct=2046, bcdDevice=9b.b9
usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
usb 1-1: config 0 descriptor??
usb 1-1: NFC: intf 00000000e54b3543 id 0000000025542277
nfcmrvl 1-1:0.75: NFC: failed to request reset_n io
------------[ cut here ]------------
invalid GPIO -22
WARNING: CPU: 1 PID: 22 at drivers/gpio/gpiolib.c:124 gpio_to_desc drivers/gpio/gpiolib.c:124 [inline]
WARNING: CPU: 1 PID: 22 at drivers/gpio/gpiolib.c:124 gpio_to_desc+0x152/0x1f0 drivers/gpio/gpiolib.c:106
Kernel panic - not syncing: panic_on_warn set ...
CPU: 1 PID: 22 Comm: kworker/1:1 Not tainted 5.3.0-rc2+ #25
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: usb_hub_wq hub_event
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0xca/0x13e lib/dump_stack.c:113
 panic+0x2a3/0x6da kernel/panic.c:219
 __warn.cold+0x20/0x4a kernel/panic.c:576
 report_bug+0x262/0x2a0 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:179 [inline]
 fixup_bug arch/x86/kernel/traps.c:174 [inline]
 do_error_trap+0x12b/0x1e0 arch/x86/kernel/traps.c:272
 do_invalid_op+0x32/0x40 arch/x86/kernel/traps.c:291
 invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1026
RIP: 0010:gpio_to_desc drivers/gpio/gpiolib.c:124 [inline]
RIP: 0010:gpio_to_desc+0x152/0x1f0 drivers/gpio/gpiolib.c:106
Code: 00 00 77 13 e8 5f 05 56 ff 4c 89 e8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 e8 4c 05 56 ff 89 ee 48 c7 c7 a0 eb db 85 e8 73 d6 2b ff <0f> 0b eb d6 e8 35 05 56 ff 48 c7 c7 c0 0b ea 86 4c 89 f6 e8 66 c5
RSP: 0018:ffff8881da34f1f0 EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffff8881d2f10000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8128a0fd RDI: ffffed103b469e30
RBP: 00000000ffffffea R08: ffff8881da340000 R09: ffffed103b663ee7
R10: ffffed103b663ee6 R11: ffff8881db31f737 R12: ffff8881d2f10000
R13: 0000000000000000 R14: 0000000000000293 R15: 0000000000000000
 __gpio_set_value include/asm-generic/gpio.h:104 [inline]
 gpio_set_value include/linux/gpio.h:71 [inline]
 nfcmrvl_chip_halt+0x4e/0x70 drivers/nfc/nfcmrvl/main.c:259
 nfcmrvl_nci_register_dev+0x2d4/0x378 drivers/nfc/nfcmrvl/main.c:176
 nfcmrvl_probe+0x4e9/0x5e0 drivers/nfc/nfcmrvl/usb.c:344
 usb_probe_interface+0x305/0x7a0 drivers/usb/core/driver.c:361
 really_probe+0x281/0x650 drivers/base/dd.c:548
 driver_probe_device+0x101/0x1b0 drivers/base/dd.c:709
 __device_attach_driver+0x1c2/0x220 drivers/base/dd.c:816
 bus_for_each_drv+0x15c/0x1e0 drivers/base/bus.c:454
 __device_attach+0x217/0x360 drivers/base/dd.c:882
 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:514
 device_add+0xae6/0x16f0 drivers/base/core.c:2114
 usb_set_configuration+0xdf6/0x1670 drivers/usb/core/message.c:2023
 generic_probe+0x9d/0xd5 drivers/usb/core/generic.c:210
 usb_probe_device+0x99/0x100 drivers/usb/core/driver.c:266
 really_probe+0x281/0x650 drivers/base/dd.c:548
 driver_probe_device+0x101/0x1b0 drivers/base/dd.c:709
 __device_attach_driver+0x1c2/0x220 drivers/base/dd.c:816
 bus_for_each_drv+0x15c/0x1e0 drivers/base/bus.c:454
 __device_attach+0x217/0x360 drivers/base/dd.c:882
 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:514
 device_add+0xae6/0x16f0 drivers/base/core.c:2114
 usb_new_device.cold+0x6a4/0xe79 drivers/usb/core/hub.c:2536
 hub_port_connect drivers/usb/core/hub.c:5098 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5213 [inline]
 port_event drivers/usb/core/hub.c:5359 [inline]
 hub_event+0x1b5c/0x3640 drivers/usb/core/hub.c:5441
 process_one_work+0x92b/0x1530 kernel/workqueue.c:2269
 worker_thread+0x96/0xe20 kernel/workqueue.c:2415
 kthread+0x318/0x420 kernel/kthread.c:255
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/08/10 02:26 https://github.com/google/kasan.git usb-fuzzer e96407b49762 acb51638 .config console log report syz C ci2-upstream-usb
2019/07/23 06:46 https://github.com/google/kasan.git usb-fuzzer 6a3599ceaa39 55e0c077 .config console log report syz C ci2-upstream-usb
2019/07/10 02:11 https://github.com/google/kasan.git usb-fuzzer 7829a896a587 f62e1e85 .config console log report syz C ci2-upstream-usb
* Struck through repros no longer work on HEAD.