syzbot


WARNING: proc registration bug in scsi_host_alloc

Status: upstream: reported C repro on 2023/04/09 03:52
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+14bbf138b1bf9cacea4b@syzkaller.appspotmail.com
First crash: 613d, last: 263d
Bug presence (2)
Date Name Commit Repro Result
2023/05/23 linux-6.1.y (ToT) fa74641fb6b9 C [report] INFO: rcu detected stall in corrupted
2023/05/23 upstream (ToT) ae8373a5add4 C Didn't crash
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING: proc registration bug in scsi_host_alloc origin:lts-only C inconclusive 28 254d 619d 3/3 fixed on 2024/04/10 15:18
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2023/09/26 19:15 1h18m fix candidate upstream OK (0) job log

Sample crash report:
usb 1-1: config 1 interface 0 altsetting 0 has 1 endpoint descriptor, different from the interface descriptor's value: 2
usb 1-1: New USB device found, idVendor=04e6, idProduct=0007, bcdDevice= 1.75
usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
usb-storage 1-1:1.0: USB Mass Storage device detected
------------[ cut here ]------------
proc_dir_entry 'scsi/usb-storage' already registered
WARNING: CPU: 0 PID: 3617 at fs/proc/generic.c:377 proc_register+0x347/0x4e0 fs/proc/generic.c:376
Modules linked in:
CPU: 0 PID: 3617 Comm: kworker/0:0 Not tainted 6.1.81-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
Workqueue: usb_hub_wq hub_event
RIP: 0010:proc_register+0x347/0x4e0 fs/proc/generic.c:376
Code: 7c 24 08 4c 8b 64 24 28 48 8b 6c 24 20 74 08 48 89 ef e8 bc d9 cb ff 48 8b 55 00 48 c7 c7 80 c2 fb 8a 48 89 de e8 f9 60 3c ff <0f> 0b 48 c7 c7 00 92 27 8d e8 cb a8 7d 08 48 8b 44 24 30 42 0f b6
RSP: 0018:ffffc90003c2eaa8 EFLAGS: 00010246
RAX: ea4230c19311cc00 RBX: ffff88813fe23d64 RCX: ffff888013f01dc0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff88802726bd58 R08: ffffffff81527e8e R09: fffff52000785cf5
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88802726bd14
R13: 000000000000000b R14: dffffc0000000000 R15: ffff88802726bc80
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe304601c10 CR3: 0000000027947000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 _proc_mkdir fs/proc/generic.c:498 [inline]
 proc_mkdir_data fs/proc/generic.c:507 [inline]
 proc_mkdir+0x138/0x180 fs/proc/generic.c:521
 scsi_proc_hostdir_add+0xc5/0x150 drivers/scsi/scsi_proc.c:108
 scsi_host_alloc+0xa26/0xe70 drivers/scsi/hosts.c:521
 usb_stor_probe1+0x46/0x1a50 drivers/usb/storage/usb.c:952
 storage_probe+0x3fd/0x1070 drivers/usb/storage/usb.c:1134
 usb_probe_interface+0x5c0/0xaf0 drivers/usb/core/driver.c:396
 really_probe+0x2ab/0xcb0 drivers/base/dd.c:639
 __driver_probe_device+0x1a2/0x3d0 drivers/base/dd.c:785
 driver_probe_device+0x50/0x420 drivers/base/dd.c:815
 __device_attach_driver+0x2cf/0x510 drivers/base/dd.c:943
 bus_for_each_drv+0x183/0x200 drivers/base/bus.c:427
 __device_attach+0x359/0x570 drivers/base/dd.c:1015
 bus_probe_device+0xba/0x1e0 drivers/base/bus.c:487
 device_add+0xb48/0xfd0 drivers/base/core.c:3671
 usb_set_configuration+0x19dd/0x2020 drivers/usb/core/message.c:2165
 usb_generic_driver_probe+0x84/0x140 drivers/usb/core/generic.c:238
 usb_probe_device+0x130/0x260 drivers/usb/core/driver.c:293
 really_probe+0x2ab/0xcb0 drivers/base/dd.c:639
 __driver_probe_device+0x1a2/0x3d0 drivers/base/dd.c:785
 driver_probe_device+0x50/0x420 drivers/base/dd.c:815
 __device_attach_driver+0x2cf/0x510 drivers/base/dd.c:943
 bus_for_each_drv+0x183/0x200 drivers/base/bus.c:427
 __device_attach+0x359/0x570 drivers/base/dd.c:1015
 bus_probe_device+0xba/0x1e0 drivers/base/bus.c:487
 device_add+0xb48/0xfd0 drivers/base/core.c:3671
 usb_new_device+0xbdd/0x18f0 drivers/usb/core/hub.c:2605
 hub_port_connect drivers/usb/core/hub.c:5456 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5596 [inline]
 port_event drivers/usb/core/hub.c:5752 [inline]
 hub_event+0x2efe/0x5730 drivers/usb/core/hub.c:5834
 process_one_work+0x8a9/0x11d0 kernel/workqueue.c:2292
 worker_thread+0xa47/0x1200 kernel/workqueue.c:2439
 kthread+0x28d/0x320 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:307
 </TASK>

Crashes (25):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/03/10 19:34 linux-6.1.y 61adba85cc40 6ee49f2e .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: proc registration bug in scsi_host_alloc
2023/11/29 08:35 linux-6.1.y 6ac30d748bb0 1adfb6f6 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: proc registration bug in scsi_host_alloc
2023/05/23 12:43 linux-6.1.y fa74641fb6b9 4bce1a3e .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: proc registration bug in scsi_host_alloc
2023/07/28 09:19 linux-6.1.y d2a6dc4eaf6d 92476829 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: proc registration bug in scsi_host_alloc
2023/07/09 18:17 linux-6.1.y 61fd484b2cf6 668cb1fa .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: proc registration bug in scsi_host_alloc
2023/05/24 02:19 linux-6.1.y fa74641fb6b9 4bce1a3e .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: proc registration bug in scsi_host_alloc
2024/03/23 09:24 linux-6.1.y d7543167affd 0ea90952 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: proc registration bug in scsi_host_alloc
2024/03/22 04:03 linux-6.1.y d7543167affd 7a239ce7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: proc registration bug in scsi_host_alloc
2024/03/18 20:55 linux-6.1.y d7543167affd baa80228 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: proc registration bug in scsi_host_alloc
2024/03/10 17:55 linux-6.1.y 61adba85cc40 6ee49f2e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: proc registration bug in scsi_host_alloc
2024/03/04 10:57 linux-6.1.y a3eb3a74aa8c 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: proc registration bug in scsi_host_alloc
2024/02/12 22:31 linux-6.1.y f1bb70486c9c 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: proc registration bug in scsi_host_alloc
2024/02/11 11:27 linux-6.1.y f1bb70486c9c 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: proc registration bug in scsi_host_alloc
2024/01/15 17:01 linux-6.1.y 7c58bfa711cb 551587c1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: proc registration bug in scsi_host_alloc
2023/12/29 18:57 linux-6.1.y 4aa6747d9352 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: proc registration bug in scsi_host_alloc
2023/12/17 01:43 linux-6.1.y ba6f5fb46511 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: proc registration bug in scsi_host_alloc
2023/11/29 05:47 linux-6.1.y 6ac30d748bb0 1adfb6f6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: proc registration bug in scsi_host_alloc
2023/10/07 16:57 linux-6.1.y ecda77b46871 5e837c76 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: proc registration bug in scsi_host_alloc
2023/08/15 08:31 linux-6.1.y 1321ab403b38 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: proc registration bug in scsi_host_alloc
2023/08/01 08:25 linux-6.1.y d2a6dc4eaf6d 2a0d0f29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: proc registration bug in scsi_host_alloc
2023/07/10 07:00 linux-6.1.y 61fd484b2cf6 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: proc registration bug in scsi_host_alloc
2023/06/23 05:12 linux-6.1.y e84a4e368abe 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: proc registration bug in scsi_host_alloc
2023/06/05 00:48 linux-6.1.y d2869ace6eeb a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: proc registration bug in scsi_host_alloc
2023/06/04 21:09 linux-6.1.y d2869ace6eeb a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: proc registration bug in scsi_host_alloc
2023/04/09 03:51 linux-6.1.y 543aff194ab6 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: proc registration bug in scsi_host_alloc
* Struck through repros no longer work on HEAD.