syzbot


WARNING: proc registration bug in scsi_host_alloc

Status: fixed on 2024/04/10 15:18
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+c645abf505ed21f931b5@syzkaller.appspotmail.com
Fix commit: cea234bb214b scsi: core: Fix unremoved procfs host directory regression
First crash: 600d, last: 235d
Discussions (1)
Title Replies (including bot) Last reply
[PATCH] scsi: core: Fix unremoved procfs host directory regression 3 (3) 2024/03/26 01:21
Bug presence (2)
Date Name Commit Repro Result
2023/05/16 linux-5.15.y (ToT) b0ece631f84a C [report] WARNING: proc registration bug in scsi_host_alloc
2023/05/16 upstream (ToT) f1fcbaa18b28 C Didn't crash
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 WARNING: proc registration bug in scsi_host_alloc origin:lts-only C inconclusive 25 245d 594d 0/3 upstream: reported C repro on 2023/04/09 03:52
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2023/09/23 05:33 1h18m fix candidate upstream OK (0) job log

Sample crash report:
usb 5-1: Manufacturer: syz
usb 5-1: SerialNumber: syz
usb 5-1: config 0 descriptor??
usb-storage 5-1:0.0: USB Mass Storage device detected
------------[ cut here ]------------
proc_dir_entry 'scsi/usb-storage' already registered
WARNING: CPU: 1 PID: 3312 at fs/proc/generic.c:377 proc_register+0x347/0x4e0 fs/proc/generic.c:376
Modules linked in:
CPU: 1 PID: 3312 Comm: kworker/1:3 Not tainted 5.15.153-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/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 6c a8 d0 ff 48 8b 55 00 48 c7 c7 00 20 99 8a 48 89 de e8 e9 94 52 ff <0f> 0b 48 c7 c7 40 b3 a4 8c e8 db 2e 2c 08 48 8b 44 24 30 42 0f b6
RSP: 0018:ffffc90002dc6ac8 EFLAGS: 00010246
RAX: e23e07a111794100 RBX: ffff888016793c24 RCX: ffff88807edd3b80
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffff88814affb218 R08: ffffffff8166661c R09: ffffed10173667a8
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88814affb1d4
R13: 000000000000000b R14: dffffc0000000000 R15: ffff88814affb140
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe41f2dc70 CR3: 000000000c68e000 CR4: 00000000003506e0
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+0x9fe/0xe40 drivers/scsi/hosts.c:504
 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+0x24e/0xb60 drivers/base/dd.c:595
 __driver_probe_device+0x1a2/0x3d0 drivers/base/dd.c:755
 driver_probe_device+0x50/0x420 drivers/base/dd.c:785
 __device_attach_driver+0x2b9/0x500 drivers/base/dd.c:907
 bus_for_each_drv+0x183/0x200 drivers/base/bus.c:427
 __device_attach+0x359/0x570 drivers/base/dd.c:979
 bus_probe_device+0xba/0x1e0 drivers/base/bus.c:487
 device_add+0xb48/0xfd0 drivers/base/core.c:3394
 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+0x24e/0xb60 drivers/base/dd.c:595
 __driver_probe_device+0x1a2/0x3d0 drivers/base/dd.c:755
 driver_probe_device+0x50/0x420 drivers/base/dd.c:785
 __device_attach_driver+0x2b9/0x500 drivers/base/dd.c:907
 bus_for_each_drv+0x183/0x200 drivers/base/bus.c:427
 __device_attach+0x359/0x570 drivers/base/dd.c:979
 bus_probe_device+0xba/0x1e0 drivers/base/bus.c:487
 device_add+0xb48/0xfd0 drivers/base/core.c:3394
 usb_new_device+0xc17/0x18e0 drivers/usb/core/hub.c:2584
 hub_port_connect drivers/usb/core/hub.c:5445 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5585 [inline]
 port_event drivers/usb/core/hub.c:5731 [inline]
 hub_event+0x2cdf/0x54c0 drivers/usb/core/hub.c:5813
 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
 kthread+0x3f6/0x4f0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>

Crashes (28):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/02 05:06 linux-5.15.y 9465fef4ae35 6baf5069 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: proc registration bug in scsi_host_alloc
2024/02/17 07:45 linux-5.15.y 6139f2a02fe0 578f7538 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: proc registration bug in scsi_host_alloc
2023/04/03 03:01 linux-5.15.y c957cbb87315 f325deb0 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: proc registration bug in scsi_host_alloc
2023/06/24 10:33 linux-5.15.y f67653019430 79782afc .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: proc registration bug in scsi_host_alloc
2023/05/21 22:17 linux-5.15.y 9d6bde853685 4bce1a3e .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: proc registration bug in scsi_host_alloc
2023/05/21 12:21 linux-5.15.y 9d6bde853685 4bce1a3e .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: proc registration bug in scsi_host_alloc
2024/03/22 15:48 linux-5.15.y b95c01af2113 4b6cdce6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: proc registration bug in scsi_host_alloc
2024/03/19 03:03 linux-5.15.y b95c01af2113 baa80228 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: proc registration bug in scsi_host_alloc
2024/03/16 17:54 linux-5.15.y b95c01af2113 d615901c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: proc registration bug in scsi_host_alloc
2024/03/11 02:58 linux-5.15.y 574362648507 6ee49f2e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: proc registration bug in scsi_host_alloc
2024/02/17 06:04 linux-5.15.y 6139f2a02fe0 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: proc registration bug in scsi_host_alloc
2024/01/16 10:02 linux-5.15.y ddcaf4999061 2a7bcc7f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: proc registration bug in scsi_host_alloc
2023/10/11 20:54 linux-5.15.y 02e21884dcf2 83165b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: proc registration bug in scsi_host_alloc
2023/09/25 11:40 linux-5.15.y b911329317b4 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: proc registration bug in scsi_host_alloc
2023/09/25 10:05 linux-5.15.y b911329317b4 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: proc registration bug in scsi_host_alloc
2023/08/24 02:01 linux-5.15.y f6f7927ac664 b81ca3f6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: proc registration bug in scsi_host_alloc
2023/08/13 19:03 linux-5.15.y 24c4de4069cb 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: proc registration bug in scsi_host_alloc
2023/08/11 01:49 linux-5.15.y c275eaaaa342 da3c3ef8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: proc registration bug in scsi_host_alloc
2023/07/24 01:11 linux-5.15.y cdd3cdb682f4 27cbe77f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: proc registration bug in scsi_host_alloc
2023/07/05 01:35 linux-5.15.y 4af60700a60c f99c2404 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: proc registration bug in scsi_host_alloc
2023/06/22 10:07 linux-5.15.y f67653019430 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: proc registration bug in scsi_host_alloc
2023/04/27 07:33 linux-5.15.y f48aeeaaa64c 19a3dabe .config console log report info ci2-linux-5-15-kasan WARNING: proc registration bug in scsi_host_alloc
2023/04/24 07:07 linux-5.15.y 3299fb36854f 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: proc registration bug in scsi_host_alloc
2023/04/19 18:00 linux-5.15.y 4fdad925aa1a 94b4184e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: proc registration bug in scsi_host_alloc
2023/04/18 11:37 linux-5.15.y 4fdad925aa1a 436577a9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: proc registration bug in scsi_host_alloc
2023/04/16 20:27 linux-5.15.y 4fdad925aa1a ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: proc registration bug in scsi_host_alloc
2023/04/08 19:00 linux-5.15.y d86dfc4d95cd 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: proc registration bug in scsi_host_alloc
2023/04/03 01:45 linux-5.15.y c957cbb87315 f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: proc registration bug in scsi_host_alloc
* Struck through repros no longer work on HEAD.