Extracting prog: 4m28.909382308s
Minimizing prog: 1h0m29.903620939s
Simplifying prog options: 12m41.724351067s
Extracting C: 5m9.049280748s
Simplifying C: 0s
extracting reproducer from 1 programs
testing a last program of every proc
single: executing 1 programs separately with timeout 6m0s
testing program (duration=6m0s, {Threaded:true Repeat:true RepeatTimes:0 Procs:4 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): mkdirat-mount-openat-write
detailed listing:
executing program 0:
mkdirat(0xffffffffffffff9c, &(0x7f0000000300)='./sys\x00', 0x1ff)
mount(0x0, &(0x7f0000000780)='./sys\x00', &(0x7f00000007c0)='sysfs\x00', 0x0, 0x0)
r0 = openat(0xffffffffffffff9c, &(0x7f0000000800)='./sys/class/scsi_host/host0/scan\x00', 0x1, 0x0)
write(r0, &(0x7f0000000a80)='0 - -', 0x5)
program crashed: WARNING: kobject bug in __scsi_remove_device
program crashed: WARNING: kobject bug in __scsi_remove_device
single: successfully extracted reproducer
found reproducer with 4 syscalls
minimizing guilty program
testing program (duration=6m0s, {Threaded:true Repeat:true RepeatTimes:0 Procs:4 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): mkdirat-mount-openat
detailed listing:
executing program 0:
mkdirat(0xffffffffffffff9c, &(0x7f0000000300)='./sys\x00', 0x1ff)
mount(0x0, &(0x7f0000000780)='./sys\x00', &(0x7f00000007c0)='sysfs\x00', 0x0, 0x0)
openat(0xffffffffffffff9c, &(0x7f0000000800)='./sys/class/scsi_host/host0/scan\x00', 0x1, 0x0)
program did not crash
testing program (duration=6m0s, {Threaded:true Repeat:true RepeatTimes:0 Procs:4 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): mkdirat-mount-write
detailed listing:
executing program 0:
mkdirat(0xffffffffffffff9c, &(0x7f0000000300)='./sys\x00', 0x1ff)
mount(0x0, &(0x7f0000000780)='./sys\x00', &(0x7f00000007c0)='sysfs\x00', 0x0, 0x0)
write(0xffffffffffffffff, &(0x7f0000000a80)='0 - -', 0x5)
program did not crash
testing program (duration=6m0s, {Threaded:true Repeat:true RepeatTimes:0 Procs:4 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): mkdirat-openat-write
detailed listing:
executing program 0:
mkdirat(0xffffffffffffff9c, &(0x7f0000000300)='./sys\x00', 0x1ff)
r0 = openat(0xffffffffffffff9c, &(0x7f0000000800)='./sys/class/scsi_host/host0/scan\x00', 0x1, 0x0)
write(r0, &(0x7f0000000a80)='0 - -', 0x5)
program did not crash
testing program (duration=6m0s, {Threaded:true Repeat:true RepeatTimes:0 Procs:4 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): mount-openat-write
detailed listing:
executing program 0:
mount(0x0, &(0x7f0000000780)='./sys\x00', &(0x7f00000007c0)='sysfs\x00', 0x0, 0x0)
r0 = openat(0xffffffffffffff9c, &(0x7f0000000800)='./sys/class/scsi_host/host0/scan\x00', 0x1, 0x0)
write(r0, &(0x7f0000000a80)='0 - -', 0x5)
program did not crash
testing program (duration=6m0s, {Threaded:true Repeat:true RepeatTimes:0 Procs:4 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): mkdirat-mount-openat-write
detailed listing:
executing program 0:
mkdirat(0xffffffffffffff9c, 0x0, 0x1ff)
mount(0x0, &(0x7f0000000780)='./sys\x00', &(0x7f00000007c0)='sysfs\x00', 0x0, 0x0)
r0 = openat(0xffffffffffffff9c, &(0x7f0000000800)='./sys/class/scsi_host/host0/scan\x00', 0x1, 0x0)
write(r0, &(0x7f0000000a80)='0 - -', 0x5)
program did not crash
testing program (duration=6m0s, {Threaded:true Repeat:true RepeatTimes:0 Procs:4 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): mkdirat-mount-openat-write
detailed listing:
executing program 0:
mkdirat(0xffffffffffffff9c, &(0x7f0000000300)='./sys\x00', 0x1ff)
mount(0x0, 0x0, &(0x7f00000007c0)='sysfs\x00', 0x0, 0x0)
r0 = openat(0xffffffffffffff9c, &(0x7f0000000800)='./sys/class/scsi_host/host0/scan\x00', 0x1, 0x0)
write(r0, &(0x7f0000000a80)='0 - -', 0x5)
program did not crash
testing program (duration=6m0s, {Threaded:true Repeat:true RepeatTimes:0 Procs:4 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): mkdirat-mount-openat-write
detailed listing:
executing program 0:
mkdirat(0xffffffffffffff9c, &(0x7f0000000300)='./sys\x00', 0x1ff)
mount(0x0, &(0x7f0000000780)='./sys\x00', 0x0, 0x0, 0x0)
r0 = openat(0xffffffffffffff9c, &(0x7f0000000800)='./sys/class/scsi_host/host0/scan\x00', 0x1, 0x0)
write(r0, &(0x7f0000000a80)='0 - -', 0x5)
program did not crash
testing program (duration=6m0s, {Threaded:true Repeat:true RepeatTimes:0 Procs:4 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): mkdirat-mount-openat-write
detailed listing:
executing program 0:
mkdirat(0xffffffffffffff9c, &(0x7f0000000300)='./sys\x00', 0x1ff)
mount(0x0, &(0x7f0000000780)='./sys\x00', &(0x7f00000007c0)='sysfs\x00', 0x0, 0x0)
r0 = openat(0xffffffffffffff9c, 0x0, 0x1, 0x0)
write(r0, &(0x7f0000000a80)='0 - -', 0x5)
program did not crash
testing program (duration=6m0s, {Threaded:true Repeat:true RepeatTimes:0 Procs:4 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): mkdirat-mount-openat-write
detailed listing:
executing program 0:
mkdirat(0xffffffffffffff9c, &(0x7f0000000300)='./sys\x00', 0x1ff)
mount(0x0, &(0x7f0000000780)='./sys\x00', &(0x7f00000007c0)='sysfs\x00', 0x0, 0x0)
r0 = openat(0xffffffffffffff9c, &(0x7f0000000800)='./sys/class/scsi_host/host0/scan\x00', 0x1, 0x0)
write(r0, 0x0, 0x0)
program did not crash
testing program (duration=6m0s, {Threaded:true Repeat:true RepeatTimes:0 Procs:4 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): mkdirat-mount-openat-write
detailed listing:
executing program 0:
mkdirat(0xffffffffffffff9c, &(0x7f0000000300)='./sys\x00', 0x1ff)
mount(0x0, &(0x7f0000000780)='./sys\x00', &(0x7f00000007c0)='sysfs\x00', 0x0, 0x0)
r0 = openat(0xffffffffffffff9c, &(0x7f0000000800)='./sys/class/scsi_host/host0/scan\x00', 0x1, 0x0)
write(r0, &(0x7f0000000a80), 0x0)
program did not crash
extracting C reproducer
testing compiled C program (duration=6m0s, {Threaded:true Repeat:true RepeatTimes:0 Procs:4 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): mkdirat-mount-openat-write
program crashed: no output from test machine
a never seen crash title: no output from test machine, ignore
simplifying guilty program options
testing program (duration=6m0s, {Threaded:false Repeat:true RepeatTimes:0 Procs:4 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): mkdirat-mount-openat-write
detailed listing:
executing program 0:
mkdirat(0xffffffffffffff9c, &(0x7f0000000300)='./sys\x00', 0x1ff)
mount(0x0, &(0x7f0000000780)='./sys\x00', &(0x7f00000007c0)='sysfs\x00', 0x0, 0x0)
r0 = openat(0xffffffffffffff9c, &(0x7f0000000800)='./sys/class/scsi_host/host0/scan\x00', 0x1, 0x0)
write(r0, &(0x7f0000000a80)='0 - -', 0x5)
program crashed: WARNING: kobject bug in __scsi_remove_device
extracting C reproducer
testing compiled C program (duration=6m0s, {Threaded:false Repeat:true RepeatTimes:0 Procs:4 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): mkdirat-mount-openat-write
program crashed: no output from test machine
a never seen crash title: no output from test machine, ignore
testing program (duration=6m0s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): mkdirat-mount-openat-write
detailed listing:
executing program 0:
mkdirat(0xffffffffffffff9c, &(0x7f0000000300)='./sys\x00', 0x1ff)
mount(0x0, &(0x7f0000000780)='./sys\x00', &(0x7f00000007c0)='sysfs\x00', 0x0, 0x0)
r0 = openat(0xffffffffffffff9c, &(0x7f0000000800)='./sys/class/scsi_host/host0/scan\x00', 0x1, 0x0)
write(r0, &(0x7f0000000a80)='0 - -', 0x5)
program did not crash
testing program (duration=6m0s, {Threaded:false Repeat:true RepeatTimes:0 Procs:4 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): mkdirat-mount-openat-write
detailed listing:
executing program 0:
mkdirat(0xffffffffffffff9c, &(0x7f0000000300)='./sys\x00', 0x1ff)
mount(0x0, &(0x7f0000000780)='./sys\x00', &(0x7f00000007c0)='sysfs\x00', 0x0, 0x0)
r0 = openat(0xffffffffffffff9c, &(0x7f0000000800)='./sys/class/scsi_host/host0/scan\x00', 0x1, 0x0)
write(r0, &(0x7f0000000a80)='0 - -', 0x5)
program crashed: WARNING: kobject bug in __scsi_remove_device
validation run: crashed=true
testing program (duration=6m0s, {Threaded:false Repeat:true RepeatTimes:0 Procs:4 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): mkdirat-mount-openat-write
detailed listing:
executing program 0:
mkdirat(0xffffffffffffff9c, &(0x7f0000000300)='./sys\x00', 0x1ff)
mount(0x0, &(0x7f0000000780)='./sys\x00', &(0x7f00000007c0)='sysfs\x00', 0x0, 0x0)
r0 = openat(0xffffffffffffff9c, &(0x7f0000000800)='./sys/class/scsi_host/host0/scan\x00', 0x1, 0x0)
write(r0, &(0x7f0000000a80)='0 - -', 0x5)
program crashed: WARNING: kobject bug in __scsi_remove_device
validation run: crashed=true
testing program (duration=6m0s, {Threaded:false Repeat:true RepeatTimes:0 Procs:4 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false CallComments:true LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): mkdirat-mount-openat-write
detailed listing:
executing program 0:
mkdirat(0xffffffffffffff9c, &(0x7f0000000300)='./sys\x00', 0x1ff)
mount(0x0, &(0x7f0000000780)='./sys\x00', &(0x7f00000007c0)='sysfs\x00', 0x0, 0x0)
r0 = openat(0xffffffffffffff9c, &(0x7f0000000800)='./sys/class/scsi_host/host0/scan\x00', 0x1, 0x0)
write(r0, &(0x7f0000000a80)='0 - -', 0x5)
program crashed: WARNING: kobject bug in __scsi_remove_device
validation run: crashed=true
reproducing took 1h30m49.085190891s
repro crashed as (corrupted=false):
------------[ cut here ]------------
kobject: '(null)' (ffff888137082548): is not initialized, yet kobject_put() is being called.
WARNING: CPU: 1 PID: 428 at lib/kobject.c:736 kobject_put+0x8e/0x2a0 lib/kobject.c:734
Modules linked in:
CPU: 1 UID: 0 PID: 428 Comm: syz.9.25 Not tainted syzkaller #0 86de5008f7c01450474dc95eb50061c1f601e771
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:kobject_put+0x8e/0x2a0 lib/kobject.c:734
Code: 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 74 08 48 89 df e8 e4 7b 41 fc 48 8b 33 48 c7 c7 e0 d8 9b 86 48 89 da e8 72 a0 62 fb <0f> 0b eb 0f e8 59 bd e7 fb e9 9c 01 00 00 e8 4f bd e7 fb 4c 8d 7b
RSP: 0018:ffffc90000e6f1f8 EFLAGS: 00010246
RAX: 7303e8df5bf97f00 RBX: ffff888137082548 RCX: ffff88811cb762c0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002
RBP: ffffc90000e6f220 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffffbfff0f9f344 R12: 00000000fffffff4
R13: ffff888137082584 R14: 1ffff11026e104b0 R15: 0000000000000000
FS: 00005555838cd500(0000) GS:ffff8881f6d00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055558580f4e8 CR3: 0000000131b30000 CR4: 00000000003526b0
Call Trace:
put_device+0x23/0x40 drivers/base/core.c:3800
__scsi_remove_device+0xc4/0x3c0 drivers/scsi/scsi_sysfs.c:1501
scsi_alloc_sdev+0x970/0xcc0 drivers/scsi/scsi_scan.c:379
scsi_probe_and_add_lun+0x1e9/0x3e60 drivers/scsi/scsi_scan.c:1207
__scsi_scan_target+0x1f1/0xc20 drivers/scsi/scsi_scan.c:1754
scsi_scan_channel drivers/scsi/scsi_scan.c:1842 [inline]
scsi_scan_host_selected+0x4d7/0x610 drivers/scsi/scsi_scan.c:1874
scsi_scan drivers/scsi/scsi_sysfs.c:151 [inline]
store_scan+0x4ba/0x550 drivers/scsi/scsi_sysfs.c:191
dev_attr_store+0x76/0xa0 drivers/base/core.c:2440
sysfs_kf_write+0x141/0x160 fs/sysfs/file.c:136
kernfs_fop_write_iter+0x319/0x510 fs/kernfs/file.c:352
new_sync_write fs/read_write.c:591 [inline]
vfs_write+0x762/0xfd0 fs/read_write.c:684
ksys_write+0x145/0x260 fs/read_write.c:737
__do_sys_write fs/read_write.c:749 [inline]
__se_sys_write fs/read_write.c:746 [inline]
__x64_sys_write+0x7f/0x90 fs/read_write.c:746
x64_sys_call+0x271c/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:2
do_syscall_x64 arch/x86/entry/common.c:47 [inline]
do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78
entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7f437d5a8fd9
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:00007ffd67ab0588 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f437d825fa0 RCX: 00007f437d5a8fd9
RDX: 0000000000000005 RSI: 0000200000000a80 RDI: 0000000000000003
RBP: 00007f437d637fed R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f437d825fac R14: 00007f437d825fa0 R15: 00007f437d825fa0
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
refcount_t: underflow; use-after-free.
WARNING: CPU: 1 PID: 428 at lib/refcount.c:28 refcount_warn_saturate+0x119/0x1c0 lib/refcount.c:28
Modules linked in:
CPU: 1 UID: 0 PID: 428 Comm: syz.9.25 Tainted: G W syzkaller #0 86de5008f7c01450474dc95eb50061c1f601e771
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:refcount_warn_saturate+0x119/0x1c0 lib/refcount.c:28
Code: 05 01 48 c7 c7 20 58 52 86 e8 b3 83 50 fe 0f 0b eb da e8 9a a0 d5 fe c6 05 70 86 b2 05 01 48 c7 c7 80 58 52 86 e8 97 83 50 fe <0f> 0b eb be e8 7e a0 d5 fe c6 05 51 86 b2 05 01 48 c7 c7 c0 57 52
RSP: 0018:ffffc90000e6f1d8 EFLAGS: 00010246
RAX: 7303e8df5bf97f00 RBX: 0000000000000003 RCX: ffff88811cb762c0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002
RBP: ffffc90000e6f1e8 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff520001cdda0 R12: 0000000000000000
R13: ffff888137082584 R14: ffff888137082580 R15: ffff888137082580
FS: 00005555838cd500(0000) GS:ffff8881f6d00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055558580f4e8 CR3: 0000000131b30000 CR4: 00000000003526b0
Call Trace:
__refcount_sub_and_test include/linux/refcount.h:400 [inline]
__refcount_dec_and_test include/linux/refcount.h:432 [inline]
refcount_dec_and_test include/linux/refcount.h:450 [inline]
kref_put include/linux/kref.h:64 [inline]
kobject_put+0x25a/0x2a0 lib/kobject.c:737
put_device+0x23/0x40 drivers/base/core.c:3800
__scsi_remove_device+0xc4/0x3c0 drivers/scsi/scsi_sysfs.c:1501
scsi_alloc_sdev+0x970/0xcc0 drivers/scsi/scsi_scan.c:379
scsi_probe_and_add_lun+0x1e9/0x3e60 drivers/scsi/scsi_scan.c:1207
__scsi_scan_target+0x1f1/0xc20 drivers/scsi/scsi_scan.c:1754
scsi_scan_channel drivers/scsi/scsi_scan.c:1842 [inline]
scsi_scan_host_selected+0x4d7/0x610 drivers/scsi/scsi_scan.c:1874
scsi_scan drivers/scsi/scsi_sysfs.c:151 [inline]
store_scan+0x4ba/0x550 drivers/scsi/scsi_sysfs.c:191
dev_attr_store+0x76/0xa0 drivers/base/core.c:2440
sysfs_kf_write+0x141/0x160 fs/sysfs/file.c:136
kernfs_fop_write_iter+0x319/0x510 fs/kernfs/file.c:352
new_sync_write fs/read_write.c:591 [inline]
vfs_write+0x762/0xfd0 fs/read_write.c:684
ksys_write+0x145/0x260 fs/read_write.c:737
__do_sys_write fs/read_write.c:749 [inline]
__se_sys_write fs/read_write.c:746 [inline]
__x64_sys_write+0x7f/0x90 fs/read_write.c:746
x64_sys_call+0x271c/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:2
do_syscall_x64 arch/x86/entry/common.c:47 [inline]
do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78
entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7f437d5a8fd9
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:00007ffd67ab0588 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f437d825fa0 RCX: 00007f437d5a8fd9
RDX: 0000000000000005 RSI: 0000200000000a80 RDI: 0000000000000003
RBP: 00007f437d637fed R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f437d825fac R14: 00007f437d825fa0 R15: 00007f437d825fa0
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
kobject: '(null)' (ffff8881370821d0): is not initialized, yet kobject_put() is being called.
WARNING: CPU: 1 PID: 428 at lib/kobject.c:736 kobject_put+0x8e/0x2a0 lib/kobject.c:734
Modules linked in:
CPU: 1 UID: 0 PID: 428 Comm: syz.9.25 Tainted: G W syzkaller #0 86de5008f7c01450474dc95eb50061c1f601e771
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:kobject_put+0x8e/0x2a0 lib/kobject.c:734
Code: 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 74 08 48 89 df e8 e4 7b 41 fc 48 8b 33 48 c7 c7 e0 d8 9b 86 48 89 da e8 72 a0 62 fb <0f> 0b eb 0f e8 59 bd e7 fb e9 9c 01 00 00 e8 4f bd e7 fb 4c 8d 7b
RSP: 0018:ffffc90000e6f1f8 EFLAGS: 00010246
RAX: 7303e8df5bf97f00 RBX: ffff8881370821d0 RCX: ffff88811cb762c0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002
RBP: ffffc90000e6f220 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffffbfff0f9f344 R12: ffffffff86637790
R13: ffff88813708220c R14: 1ffff11026e10441 R15: 0000000000000000
FS: 00005555838cd500(0000) GS:ffff8881f6d00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f81a29f07a0 CR3: 0000000131b30000 CR4: 00000000003526b0
Call Trace:
put_device+0x23/0x40 drivers/base/core.c:3800
__scsi_remove_device+0x32d/0x3c0 drivers/scsi/scsi_sysfs.c:1527
scsi_alloc_sdev+0x970/0xcc0 drivers/scsi/scsi_scan.c:379
scsi_probe_and_add_lun+0x1e9/0x3e60 drivers/scsi/scsi_scan.c:1207
__scsi_scan_target+0x1f1/0xc20 drivers/scsi/scsi_scan.c:1754
scsi_scan_channel drivers/scsi/scsi_scan.c:1842 [inline]
scsi_scan_host_selected+0x4d7/0x610 drivers/scsi/scsi_scan.c:1874
scsi_scan drivers/scsi/scsi_sysfs.c:151 [inline]
store_scan+0x4ba/0x550 drivers/scsi/scsi_sysfs.c:191
dev_attr_store+0x76/0xa0 drivers/base/core.c:2440
sysfs_kf_write+0x141/0x160 fs/sysfs/file.c:136
kernfs_fop_write_iter+0x319/0x510 fs/kernfs/file.c:352
new_sync_write fs/read_write.c:591 [inline]
vfs_write+0x762/0xfd0 fs/read_write.c:684
ksys_write+0x145/0x260 fs/read_write.c:737
__do_sys_write fs/read_write.c:749 [inline]
__se_sys_write fs/read_write.c:746 [inline]
__x64_sys_write+0x7f/0x90 fs/read_write.c:746
x64_sys_call+0x271c/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:2
do_syscall_x64 arch/x86/entry/common.c:47 [inline]
do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78
entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7f437d5a8fd9
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:00007ffd67ab0588 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f437d825fa0 RCX: 00007f437d5a8fd9
RDX: 0000000000000005 RSI: 0000200000000a80 RDI: 0000000000000003
RBP: 00007f437d637fed R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f437d825fac R14: 00007f437d825fa0 R15: 00007f437d825fa0
---[ end trace 0000000000000000 ]---
scsi_alloc_sdev: Allocation failure during SCSI scanning, some SCSI devices might not be configured
------------[ cut here ]------------
kernel BUG at drivers/scsi/scsi_scan.c:594!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 0 UID: 0 PID: 428 Comm: syz.9.25 Tainted: G W syzkaller #0 86de5008f7c01450474dc95eb50061c1f601e771
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:scsi_target_reap+0x172/0x180 drivers/scsi/scsi_scan.c:594
Code: 7f fe e9 ef fe ff ff 44 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c 46 ff ff ff 4c 89 ef e8 68 9a 7f fe e9 39 ff ff ff e8 1e dc 25 fe <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 66 90 b8 ee 6f 2b 14 90 90 90
RSP: 0018:ffffc90000e6f7a8 EFLAGS: 00010293
RAX: ffffffff83638e12 RBX: ffff888136f7c000 RCX: ffff88811cb762c0
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000005
RBP: ffffc90000e6f7d0 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff520001cdee0 R12: ffff888136f7c000
R13: ffff888136f7c3c4 R14: 1ffff11026def878 R15: 0000000000000005
FS: 00005555838cd500(0000) GS:ffff8881f6c00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f81a2871a20 CR3: 0000000131b30000 CR4: 00000000003526b0
Call Trace:
__scsi_scan_target+0x62c/0xc20 drivers/scsi/scsi_scan.c:1771
scsi_scan_channel drivers/scsi/scsi_scan.c:1842 [inline]
scsi_scan_host_selected+0x4d7/0x610 drivers/scsi/scsi_scan.c:1874
scsi_scan drivers/scsi/scsi_sysfs.c:151 [inline]
store_scan+0x4ba/0x550 drivers/scsi/scsi_sysfs.c:191
dev_attr_store+0x76/0xa0 drivers/base/core.c:2440
sysfs_kf_write+0x141/0x160 fs/sysfs/file.c:136
kernfs_fop_write_iter+0x319/0x510 fs/kernfs/file.c:352
new_sync_write fs/read_write.c:591 [inline]
vfs_write+0x762/0xfd0 fs/read_write.c:684
ksys_write+0x145/0x260 fs/read_write.c:737
__do_sys_write fs/read_write.c:749 [inline]
__se_sys_write fs/read_write.c:746 [inline]
__x64_sys_write+0x7f/0x90 fs/read_write.c:746
x64_sys_call+0x271c/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:2
do_syscall_x64 arch/x86/entry/common.c:47 [inline]
do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78
entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7f437d5a8fd9
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:00007ffd67ab0588 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f437d825fa0 RCX: 00007f437d5a8fd9
RDX: 0000000000000005 RSI: 0000200000000a80 RDI: 0000000000000003
RBP: 00007f437d637fed R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f437d825fac R14: 00007f437d825fa0 R15: 00007f437d825fa0
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:scsi_target_reap+0x172/0x180 drivers/scsi/scsi_scan.c:594
Code: 7f fe e9 ef fe ff ff 44 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c 46 ff ff ff 4c 89 ef e8 68 9a 7f fe e9 39 ff ff ff e8 1e dc 25 fe <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 66 90 b8 ee 6f 2b 14 90 90 90
RSP: 0018:ffffc90000e6f7a8 EFLAGS: 00010293
RAX: ffffffff83638e12 RBX: ffff888136f7c000 RCX: ffff88811cb762c0
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000005
RBP: ffffc90000e6f7d0 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff520001cdee0 R12: ffff888136f7c000
R13: ffff888136f7c3c4 R14: 1ffff11026def878 R15: 0000000000000005
FS: 00005555838cd500(0000) GS:ffff8881f6d00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fac5d471a20 CR3: 0000000131b30000 CR4: 00000000003526b0
final repro crashed as (corrupted=false):
------------[ cut here ]------------
kobject: '(null)' (ffff888137082548): is not initialized, yet kobject_put() is being called.
WARNING: CPU: 1 PID: 428 at lib/kobject.c:736 kobject_put+0x8e/0x2a0 lib/kobject.c:734
Modules linked in:
CPU: 1 UID: 0 PID: 428 Comm: syz.9.25 Not tainted syzkaller #0 86de5008f7c01450474dc95eb50061c1f601e771
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:kobject_put+0x8e/0x2a0 lib/kobject.c:734
Code: 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 74 08 48 89 df e8 e4 7b 41 fc 48 8b 33 48 c7 c7 e0 d8 9b 86 48 89 da e8 72 a0 62 fb <0f> 0b eb 0f e8 59 bd e7 fb e9 9c 01 00 00 e8 4f bd e7 fb 4c 8d 7b
RSP: 0018:ffffc90000e6f1f8 EFLAGS: 00010246
RAX: 7303e8df5bf97f00 RBX: ffff888137082548 RCX: ffff88811cb762c0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002
RBP: ffffc90000e6f220 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffffbfff0f9f344 R12: 00000000fffffff4
R13: ffff888137082584 R14: 1ffff11026e104b0 R15: 0000000000000000
FS: 00005555838cd500(0000) GS:ffff8881f6d00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055558580f4e8 CR3: 0000000131b30000 CR4: 00000000003526b0
Call Trace:
put_device+0x23/0x40 drivers/base/core.c:3800
__scsi_remove_device+0xc4/0x3c0 drivers/scsi/scsi_sysfs.c:1501
scsi_alloc_sdev+0x970/0xcc0 drivers/scsi/scsi_scan.c:379
scsi_probe_and_add_lun+0x1e9/0x3e60 drivers/scsi/scsi_scan.c:1207
__scsi_scan_target+0x1f1/0xc20 drivers/scsi/scsi_scan.c:1754
scsi_scan_channel drivers/scsi/scsi_scan.c:1842 [inline]
scsi_scan_host_selected+0x4d7/0x610 drivers/scsi/scsi_scan.c:1874
scsi_scan drivers/scsi/scsi_sysfs.c:151 [inline]
store_scan+0x4ba/0x550 drivers/scsi/scsi_sysfs.c:191
dev_attr_store+0x76/0xa0 drivers/base/core.c:2440
sysfs_kf_write+0x141/0x160 fs/sysfs/file.c:136
kernfs_fop_write_iter+0x319/0x510 fs/kernfs/file.c:352
new_sync_write fs/read_write.c:591 [inline]
vfs_write+0x762/0xfd0 fs/read_write.c:684
ksys_write+0x145/0x260 fs/read_write.c:737
__do_sys_write fs/read_write.c:749 [inline]
__se_sys_write fs/read_write.c:746 [inline]
__x64_sys_write+0x7f/0x90 fs/read_write.c:746
x64_sys_call+0x271c/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:2
do_syscall_x64 arch/x86/entry/common.c:47 [inline]
do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78
entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7f437d5a8fd9
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:00007ffd67ab0588 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f437d825fa0 RCX: 00007f437d5a8fd9
RDX: 0000000000000005 RSI: 0000200000000a80 RDI: 0000000000000003
RBP: 00007f437d637fed R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f437d825fac R14: 00007f437d825fa0 R15: 00007f437d825fa0
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
refcount_t: underflow; use-after-free.
WARNING: CPU: 1 PID: 428 at lib/refcount.c:28 refcount_warn_saturate+0x119/0x1c0 lib/refcount.c:28
Modules linked in:
CPU: 1 UID: 0 PID: 428 Comm: syz.9.25 Tainted: G W syzkaller #0 86de5008f7c01450474dc95eb50061c1f601e771
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:refcount_warn_saturate+0x119/0x1c0 lib/refcount.c:28
Code: 05 01 48 c7 c7 20 58 52 86 e8 b3 83 50 fe 0f 0b eb da e8 9a a0 d5 fe c6 05 70 86 b2 05 01 48 c7 c7 80 58 52 86 e8 97 83 50 fe <0f> 0b eb be e8 7e a0 d5 fe c6 05 51 86 b2 05 01 48 c7 c7 c0 57 52
RSP: 0018:ffffc90000e6f1d8 EFLAGS: 00010246
RAX: 7303e8df5bf97f00 RBX: 0000000000000003 RCX: ffff88811cb762c0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002
RBP: ffffc90000e6f1e8 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff520001cdda0 R12: 0000000000000000
R13: ffff888137082584 R14: ffff888137082580 R15: ffff888137082580
FS: 00005555838cd500(0000) GS:ffff8881f6d00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055558580f4e8 CR3: 0000000131b30000 CR4: 00000000003526b0
Call Trace:
__refcount_sub_and_test include/linux/refcount.h:400 [inline]
__refcount_dec_and_test include/linux/refcount.h:432 [inline]
refcount_dec_and_test include/linux/refcount.h:450 [inline]
kref_put include/linux/kref.h:64 [inline]
kobject_put+0x25a/0x2a0 lib/kobject.c:737
put_device+0x23/0x40 drivers/base/core.c:3800
__scsi_remove_device+0xc4/0x3c0 drivers/scsi/scsi_sysfs.c:1501
scsi_alloc_sdev+0x970/0xcc0 drivers/scsi/scsi_scan.c:379
scsi_probe_and_add_lun+0x1e9/0x3e60 drivers/scsi/scsi_scan.c:1207
__scsi_scan_target+0x1f1/0xc20 drivers/scsi/scsi_scan.c:1754
scsi_scan_channel drivers/scsi/scsi_scan.c:1842 [inline]
scsi_scan_host_selected+0x4d7/0x610 drivers/scsi/scsi_scan.c:1874
scsi_scan drivers/scsi/scsi_sysfs.c:151 [inline]
store_scan+0x4ba/0x550 drivers/scsi/scsi_sysfs.c:191
dev_attr_store+0x76/0xa0 drivers/base/core.c:2440
sysfs_kf_write+0x141/0x160 fs/sysfs/file.c:136
kernfs_fop_write_iter+0x319/0x510 fs/kernfs/file.c:352
new_sync_write fs/read_write.c:591 [inline]
vfs_write+0x762/0xfd0 fs/read_write.c:684
ksys_write+0x145/0x260 fs/read_write.c:737
__do_sys_write fs/read_write.c:749 [inline]
__se_sys_write fs/read_write.c:746 [inline]
__x64_sys_write+0x7f/0x90 fs/read_write.c:746
x64_sys_call+0x271c/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:2
do_syscall_x64 arch/x86/entry/common.c:47 [inline]
do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78
entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7f437d5a8fd9
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:00007ffd67ab0588 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f437d825fa0 RCX: 00007f437d5a8fd9
RDX: 0000000000000005 RSI: 0000200000000a80 RDI: 0000000000000003
RBP: 00007f437d637fed R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f437d825fac R14: 00007f437d825fa0 R15: 00007f437d825fa0
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
kobject: '(null)' (ffff8881370821d0): is not initialized, yet kobject_put() is being called.
WARNING: CPU: 1 PID: 428 at lib/kobject.c:736 kobject_put+0x8e/0x2a0 lib/kobject.c:734
Modules linked in:
CPU: 1 UID: 0 PID: 428 Comm: syz.9.25 Tainted: G W syzkaller #0 86de5008f7c01450474dc95eb50061c1f601e771
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:kobject_put+0x8e/0x2a0 lib/kobject.c:734
Code: 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 74 08 48 89 df e8 e4 7b 41 fc 48 8b 33 48 c7 c7 e0 d8 9b 86 48 89 da e8 72 a0 62 fb <0f> 0b eb 0f e8 59 bd e7 fb e9 9c 01 00 00 e8 4f bd e7 fb 4c 8d 7b
RSP: 0018:ffffc90000e6f1f8 EFLAGS: 00010246
RAX: 7303e8df5bf97f00 RBX: ffff8881370821d0 RCX: ffff88811cb762c0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002
RBP: ffffc90000e6f220 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffffbfff0f9f344 R12: ffffffff86637790
R13: ffff88813708220c R14: 1ffff11026e10441 R15: 0000000000000000
FS: 00005555838cd500(0000) GS:ffff8881f6d00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f81a29f07a0 CR3: 0000000131b30000 CR4: 00000000003526b0
Call Trace:
put_device+0x23/0x40 drivers/base/core.c:3800
__scsi_remove_device+0x32d/0x3c0 drivers/scsi/scsi_sysfs.c:1527
scsi_alloc_sdev+0x970/0xcc0 drivers/scsi/scsi_scan.c:379
scsi_probe_and_add_lun+0x1e9/0x3e60 drivers/scsi/scsi_scan.c:1207
__scsi_scan_target+0x1f1/0xc20 drivers/scsi/scsi_scan.c:1754
scsi_scan_channel drivers/scsi/scsi_scan.c:1842 [inline]
scsi_scan_host_selected+0x4d7/0x610 drivers/scsi/scsi_scan.c:1874
scsi_scan drivers/scsi/scsi_sysfs.c:151 [inline]
store_scan+0x4ba/0x550 drivers/scsi/scsi_sysfs.c:191
dev_attr_store+0x76/0xa0 drivers/base/core.c:2440
sysfs_kf_write+0x141/0x160 fs/sysfs/file.c:136
kernfs_fop_write_iter+0x319/0x510 fs/kernfs/file.c:352
new_sync_write fs/read_write.c:591 [inline]
vfs_write+0x762/0xfd0 fs/read_write.c:684
ksys_write+0x145/0x260 fs/read_write.c:737
__do_sys_write fs/read_write.c:749 [inline]
__se_sys_write fs/read_write.c:746 [inline]
__x64_sys_write+0x7f/0x90 fs/read_write.c:746
x64_sys_call+0x271c/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:2
do_syscall_x64 arch/x86/entry/common.c:47 [inline]
do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78
entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7f437d5a8fd9
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:00007ffd67ab0588 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f437d825fa0 RCX: 00007f437d5a8fd9
RDX: 0000000000000005 RSI: 0000200000000a80 RDI: 0000000000000003
RBP: 00007f437d637fed R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f437d825fac R14: 00007f437d825fa0 R15: 00007f437d825fa0
---[ end trace 0000000000000000 ]---
scsi_alloc_sdev: Allocation failure during SCSI scanning, some SCSI devices might not be configured
------------[ cut here ]------------
kernel BUG at drivers/scsi/scsi_scan.c:594!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 0 UID: 0 PID: 428 Comm: syz.9.25 Tainted: G W syzkaller #0 86de5008f7c01450474dc95eb50061c1f601e771
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:scsi_target_reap+0x172/0x180 drivers/scsi/scsi_scan.c:594
Code: 7f fe e9 ef fe ff ff 44 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c 46 ff ff ff 4c 89 ef e8 68 9a 7f fe e9 39 ff ff ff e8 1e dc 25 fe <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 66 90 b8 ee 6f 2b 14 90 90 90
RSP: 0018:ffffc90000e6f7a8 EFLAGS: 00010293
RAX: ffffffff83638e12 RBX: ffff888136f7c000 RCX: ffff88811cb762c0
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000005
RBP: ffffc90000e6f7d0 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff520001cdee0 R12: ffff888136f7c000
R13: ffff888136f7c3c4 R14: 1ffff11026def878 R15: 0000000000000005
FS: 00005555838cd500(0000) GS:ffff8881f6c00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f81a2871a20 CR3: 0000000131b30000 CR4: 00000000003526b0
Call Trace:
__scsi_scan_target+0x62c/0xc20 drivers/scsi/scsi_scan.c:1771
scsi_scan_channel drivers/scsi/scsi_scan.c:1842 [inline]
scsi_scan_host_selected+0x4d7/0x610 drivers/scsi/scsi_scan.c:1874
scsi_scan drivers/scsi/scsi_sysfs.c:151 [inline]
store_scan+0x4ba/0x550 drivers/scsi/scsi_sysfs.c:191
dev_attr_store+0x76/0xa0 drivers/base/core.c:2440
sysfs_kf_write+0x141/0x160 fs/sysfs/file.c:136
kernfs_fop_write_iter+0x319/0x510 fs/kernfs/file.c:352
new_sync_write fs/read_write.c:591 [inline]
vfs_write+0x762/0xfd0 fs/read_write.c:684
ksys_write+0x145/0x260 fs/read_write.c:737
__do_sys_write fs/read_write.c:749 [inline]
__se_sys_write fs/read_write.c:746 [inline]
__x64_sys_write+0x7f/0x90 fs/read_write.c:746
x64_sys_call+0x271c/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:2
do_syscall_x64 arch/x86/entry/common.c:47 [inline]
do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78
entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7f437d5a8fd9
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:00007ffd67ab0588 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f437d825fa0 RCX: 00007f437d5a8fd9
RDX: 0000000000000005 RSI: 0000200000000a80 RDI: 0000000000000003
RBP: 00007f437d637fed R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f437d825fac R14: 00007f437d825fa0 R15: 00007f437d825fa0
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:scsi_target_reap+0x172/0x180 drivers/scsi/scsi_scan.c:594
Code: 7f fe e9 ef fe ff ff 44 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c 46 ff ff ff 4c 89 ef e8 68 9a 7f fe e9 39 ff ff ff e8 1e dc 25 fe <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 66 90 b8 ee 6f 2b 14 90 90 90
RSP: 0018:ffffc90000e6f7a8 EFLAGS: 00010293
RAX: ffffffff83638e12 RBX: ffff888136f7c000 RCX: ffff88811cb762c0
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000005
RBP: ffffc90000e6f7d0 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff520001cdee0 R12: ffff888136f7c000
R13: ffff888136f7c3c4 R14: 1ffff11026def878 R15: 0000000000000005
FS: 00005555838cd500(0000) GS:ffff8881f6d00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fac5d471a20 CR3: 0000000131b30000 CR4: 00000000003526b0