WARNING: kobject bug in __scsi_remove_device

Status: upstream: reported syz repro on 2026/08/17 20:44
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+fd064ac0ccd060dc7087@syzkaller.appspotmail.com
First crash: 101d, last: 6d21h
▶ ▼ Bug presence (1)
Date Name Commit Repro Result
2026/08/19 upstream (ToT) 59e6295fac26 syz [report] INFO: task hung in scsi_scan_host_selected
▶ ▼ Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-6-12 WARNING: kobject bug in __scsi_remove_device origin:upstream -1 syz 41 16m 97d 0/1 premoderation: reported syz repro on 2026/08/21 16:20
linux-6.6 WARNING: kobject bug in __scsi_remove_device -1 syz 14 25d 100d 0/2 upstream: reported syz repro on 2026/08/19 13:20

Sample crash report:
------------[ cut here ]------------
kobject: '(null)' (ffff88807a56a6f8): is not initialized, yet kobject_put() is being called.
WARNING: CPU: 0 PID: 4519 at lib/kobject.c:728 kobject_put+0x8c/0x450 lib/kobject.c:726
Modules linked in:
CPU: 0 PID: 4519 Comm: syz.1.18 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026
RIP: 0010:kobject_put+0x8c/0x450 lib/kobject.c:726
Code: 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 74 08 48 89 df e8 16 e7 ac f7 48 8b 33 48 c7 c7 00 f8 d2 8b 48 89 da e8 54 fe 26 f7 <0f> 0b eb 05 e8 0b 8b 5b f7 4c 8d 73 38 4c 89 f7 be 04 00 00 00 e8
RSP: 0018:ffffc900036075e0 EFLAGS: 00010246
RAX: b4edb54e7ba54b00 RBX: ffff88807a56a6f8 RCX: ffff88807a44da00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002
RBP: 0000000000000000 R08: ffffc90003607267 R09: 1ffff920006c0e4c
R10: dffffc0000000000 R11: fffff520006c0e4d R12: 1ffff1100f4ad4e6
R13: dffffc0000000000 R14: ffff88807a56a734 R15: 0000000000000200
FS:  000055555c534500(0000) GS:ffff8880b8c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fae6f157e20 CR3: 000000005f0d5000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __scsi_remove_device+0xc8/0x3b0 drivers/scsi/scsi_sysfs.c:1477
 scsi_alloc_sdev+0x91d/0xae0 drivers/scsi/scsi_scan.c:380
 scsi_probe_and_add_lun+0x1a0/0x44b0 drivers/scsi/scsi_scan.c:1183
 __scsi_scan_target+0x1d4/0x1050 drivers/scsi/scsi_scan.c:1715
 scsi_scan_channel drivers/scsi/scsi_scan.c:1803 [inline]
 scsi_scan_host_selected+0x374/0x6a0 drivers/scsi/scsi_scan.c:1832
 scsi_scan drivers/scsi/scsi_sysfs.c:151 [inline]
 store_scan+0x49c/0x530 drivers/scsi/scsi_sysfs.c:191
 kernfs_fop_write_iter+0x3a0/0x520 fs/kernfs/file.c:352
 call_write_iter include/linux/fs.h:2271 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x482/0x9a0 fs/read_write.c:584
 ksys_write+0x14d/0x260 fs/read_write.c:637
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f1a6539f559
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffce8946f68 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f1a65625fa0 RCX: 00007f1a6539f559
RDX: 0000000000000005 RSI: 0000200000000100 RDI: 0000000000000003
RBP: 00007f1a65436b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f1a65625fac R14: 00007f1a65625fa0 R15: 00007f1a65625fa0
 </TASK>

Crashes (22):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/10/28 10:00 linux-6.1.y 79807e970724 96923c60 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: kobject bug in __scsi_remove_device
2026/10/25 23:25 linux-6.1.y 79807e970724 1d9ca40b .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: kobject bug in __scsi_remove_device
2026/10/05 03:58 linux-6.1.y a500ba24937a 57bbd979 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: kobject bug in __scsi_remove_device
2026/10/05 01:35 linux-6.1.y a500ba24937a 57bbd979 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: kobject bug in __scsi_remove_device
2026/10/04 23:17 linux-6.1.y a500ba24937a 57bbd979 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: kobject bug in __scsi_remove_device
2026/09/15 05:49 linux-6.1.y 1a8763b93150 81a27d1a .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: kobject bug in __scsi_remove_device
2026/09/07 03:44 linux-6.1.y cf82dcca9634 4f7b22a0 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: kobject bug in __scsi_remove_device
2026/08/19 07:59 linux-6.1.y e4f7d8be268e 1e72964b .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: kobject bug in __scsi_remove_device
2026/11/20 17:54 linux-6.1.y c75b0cf0982c 625aa117 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: kobject bug in __scsi_remove_device
2026/10/31 17:04 linux-6.1.y 08889840163e 2041d3f8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: kobject bug in __scsi_remove_device
2026/10/29 15:13 linux-6.1.y 79807e970724 b1d00f76 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: kobject bug in __scsi_remove_device
2026/10/28 02:19 linux-6.1.y 79807e970724 96923c60 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: kobject bug in __scsi_remove_device
2026/10/25 22:37 linux-6.1.y 79807e970724 1d9ca40b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: kobject bug in __scsi_remove_device
2026/10/23 03:31 linux-6.1.y 79807e970724 b55fad29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: kobject bug in __scsi_remove_device
2026/10/23 03:31 linux-6.1.y 79807e970724 b55fad29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: kobject bug in __scsi_remove_device
2026/10/10 11:31 linux-6.1.y a500ba24937a 4f92358f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: kobject bug in __scsi_remove_device
2026/10/05 02:14 linux-6.1.y a500ba24937a 57bbd979 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: kobject bug in __scsi_remove_device
2026/10/04 22:24 linux-6.1.y a500ba24937a 57bbd979 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: kobject bug in __scsi_remove_device
2026/09/15 00:06 linux-6.1.y 1a8763b93150 81a27d1a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: kobject bug in __scsi_remove_device
2026/09/07 02:39 linux-6.1.y cf82dcca9634 4f7b22a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: kobject bug in __scsi_remove_device
2026/08/27 23:41 linux-6.1.y 79a9660d699e 69a01293 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: kobject bug in __scsi_remove_device
2026/08/17 20:43 linux-6.1.y e4f7d8be268e 905244d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: kobject bug in __scsi_remove_device
* Struck through repros no longer work on HEAD.