[syzbot] [fs?] WARNING: ODEBUG bug in bdev_super_lock

9 views
Skip to first unread message

syzbot

unread,
Mar 28, 2024, 10:20:33ā€ÆAMMar 28
to bra...@kernel.org, ja...@suse.cz, linux-...@vger.kernel.org, linux-...@vger.kernel.org, syzkall...@googlegroups.com, vi...@zeniv.linux.org.uk
Hello,

syzbot found the following issue on:

HEAD commit: fe46a7dd189e Merge tag 'sound-6.9-rc1' of git://git.kernel..
git tree: upstream
console+strace: https://syzkaller.appspot.com/x/log.txt?x=17d1c4f9180000
kernel config: https://syzkaller.appspot.com/x/.config?x=fe78468a74fdc3b7
dashboard link: https://syzkaller.appspot.com/bug?extid=9c0a93c676799fdf466c
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16577eb1180000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=106fa941180000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/0f7abe4afac7/disk-fe46a7dd.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/82598d09246c/vmlinux-fe46a7dd.xz
kernel image: https://storage.googleapis.com/syzbot-assets/efa23788c875/bzImage-fe46a7dd.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+9c0a93...@syzkaller.appspotmail.com

WARNING: CPU: 1 PID: 5462 at lib/debugobjects.c:517 debug_print_object+0x17a/0x1f0 lib/debugobjects.c:514
Modules linked in:
CPU: 1 PID: 5462 Comm: syz-executor454 Not tainted 6.8.0-syzkaller-08951-gfe46a7dd189e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
RIP: 0010:debug_print_object+0x17a/0x1f0 lib/debugobjects.c:514
Code: e8 0b ce 4a fd 4c 8b 0b 48 c7 c7 c0 dc fe 8b 48 8b 74 24 08 48 89 ea 44 89 e1 4d 89 f8 ff 34 24 e8 fb 52 aa fc 48 83 c4 08 90 <0f> 0b 90 90 ff 05 1c f7 d9 0a 48 83 c4 10 5b 41 5c 41 5d 41 5e 41
RSP: 0018:ffffc9000909f918 EFLAGS: 00010286
RAX: a857c73db866d400 RBX: ffffffff8babd760 RCX: ffff888026321e00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffffff8bfede40 R08: ffffffff8157cc12 R09: 1ffff92001213ec0
R10: dffffc0000000000 R11: fffff52001213ec1 R12: 0000000000000001
R13: ffffffff8bfedd58 R14: dffffc0000000000 R15: ffff8880267c6880
FS: 000055555d3d6380(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2334c3f130 CR3: 000000002c7fe000 CR4: 0000000000350ef0
Call Trace:
<TASK>
debug_object_activate+0x357/0x510 lib/debugobjects.c:732
debug_rcu_head_queue kernel/rcu/rcu.h:227 [inline]
__call_rcu_common kernel/rcu/tree.c:2719 [inline]
call_rcu+0x97/0xa70 kernel/rcu/tree.c:2838
put_super fs/super.c:424 [inline]
bdev_super_lock+0x1ea/0x360 fs/super.c:1384
fs_bdev_sync+0x17/0x50 fs/super.c:1419
blkdev_flushbuf block/ioctl.c:380 [inline]
blkdev_common_ioctl+0x88e/0x2880 block/ioctl.c:512
blkdev_ioctl+0x532/0x740 block/ioctl.c:634
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:904 [inline]
__se_sys_ioctl+0xfe/0x170 fs/ioctl.c:890
do_syscall_64+0xfd/0x240
entry_SYSCALL_64_after_hwframe+0x6d/0x75
RIP: 0033:0x7f2334bc5b69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 c1 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe40c66978 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f2334bc5b69
RDX: 0000000000000000 RSI: 0000000000001261 RDI: 0000000000000003
RBP: 00000000000f4240 R08: 00000000000000a0 R09: 00000000000000a0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000014ed2
R13: 00007ffe40c6698c R14: 00007ffe40c669a0 R15: 00007ffe40c66990
</TASK>


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Mar 28, 2024, 1:53:59ā€ÆPMMar 28
to linux-...@vger.kernel.org, syzkall...@googlegroups.com
For archival purposes, forwarding an incoming command email to
linux-...@vger.kernel.org, syzkall...@googlegroups.com.

***

Subject: Re: [syzbot] [fs?] WARNING: ODEBUG bug in bdev_super_lock
Author: bra...@kernel.org

On Thu, Mar 28, 2024 at 07:20:29AM -0700, syzbot wrote:
> Hello,
>
> syzbot found the following issue on:
>
> HEAD commit: fe46a7dd189e Merge tag 'sound-6.9-rc1' of git://git.kernel..
> git tree: upstream
> console+strace: https://syzkaller.appspot.com/x/log.txt?x=17d1c4f9180000
> kernel config: https://syzkaller.appspot.com/x/.config?x=fe78468a74fdc3b7
> dashboard link: https://syzkaller.appspot.com/bug?extid=9c0a93c676799fdf466c
> compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16577eb1180000
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=106fa941180000
>
> Downloadable assets:
> disk image: https://storage.googleapis.com/syzbot-assets/0f7abe4afac7/disk-fe46a7dd.raw.xz
> vmlinux: https://storage.googleapis.com/syzbot-assets/82598d09246c/vmlinux-fe46a7dd.xz
> kernel image: https://storage.googleapis.com/syzbot-assets/efa23788c875/bzImage-fe46a7dd.xz
>
> IMPORTANT: if you fix the issue, please add the following tag to the commit:
> Reported-by: syzbot+9c0a93...@syzkaller.appspotmail.com

#syz test: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git vfs.fixes

syzbot

unread,
Mar 28, 2024, 3:38:04ā€ÆPMMar 28
to bra...@kernel.org, linux-...@vger.kernel.org, syzkall...@googlegroups.com
Hello,

syzbot tried to test the proposed patch but the build/boot failed:


[ 9.827096][ T1] ------------[ cut here ]------------
[ 9.828078][ T1] refcount_t: decrement hit 0; leaking memory.
[ 9.829800][ T1] WARNING: CPU: 1 PID: 1 at lib/refcount.c:31 refcount_warn_saturate+0xfa/0x1d0
[ 9.831609][ T1] Modules linked in:
[ 9.832246][ T1] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 6.9.0-rc1-syzkaller-g22650a99821d #0
[ 9.833858][ T1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
[ 9.835637][ T1] RIP: 0010:refcount_warn_saturate+0xfa/0x1d0
[ 9.836865][ T1] Code: b2 00 00 00 e8 d7 db e9 fc 5b 5d e9 d0 85 e0 06 e8 cb db e9 fc c6 05 8f 84 e8 0a 01 90 48 c7 c7 60 32 1f 8c e8 07 78 ac fc 90 <0f> 0b 90 90 eb d9 e8 ab db e9 fc c6 05 6c 84 e8 0a 01 90 48 c7 c7
[ 9.840203][ T1] RSP: 0018:ffffc90000066e18 EFLAGS: 00010246
[ 9.841605][ T1] RAX: 73a55f6856218c00 RBX: ffff88802101cc6c RCX: ffff8880166d0000
[ 9.842848][ T1] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[ 9.844053][ T1] RBP: 0000000000000004 R08: ffffffff815800c2 R09: fffffbfff1c396e0
[ 9.845853][ T1] R10: dffffc0000000000 R11: fffffbfff1c396e0 R12: ffffea000502cdc0
[ 9.847348][ T1] R13: ffffea000502cdc8 R14: 1ffffd4000a059b9 R15: 0000000000000000
[ 9.848493][ T1] FS: 0000000000000000(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
[ 9.850332][ T1] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 9.851729][ T1] CR2: 0000000000000000 CR3: 000000000e132000 CR4: 0000000000350ef0
[ 9.853028][ T1] Call Trace:
[ 9.853740][ T1] <TASK>
[ 9.854296][ T1] ? __warn+0x163/0x4e0
[ 9.855289][ T1] ? refcount_warn_saturate+0xfa/0x1d0
[ 9.856339][ T1] ? report_bug+0x2b3/0x500
[ 9.857091][ T1] ? refcount_warn_saturate+0xfa/0x1d0
[ 9.858009][ T1] ? handle_bug+0x3e/0x70
[ 9.859055][ T1] ? exc_invalid_op+0x1a/0x50
[ 9.859887][ T1] ? asm_exc_invalid_op+0x1a/0x20
[ 9.860670][ T1] ? __warn_printk+0x292/0x360
[ 9.861387][ T1] ? refcount_warn_saturate+0xfa/0x1d0
[ 9.862309][ T1] ? refcount_warn_saturate+0xf9/0x1d0
[ 9.863096][ T1] __free_pages_ok+0xc60/0xd90
[ 9.863791][ T1] make_alloc_exact+0xa3/0xf0
[ 9.864692][ T1] vring_alloc_queue_split+0x20a/0x600
[ 9.865642][ T1] ? __pfx_vring_alloc_queue_split+0x10/0x10
[ 9.866530][ T1] ? vp_find_vqs+0x4c/0x4e0
[ 9.867393][ T1] ? virtscsi_probe+0x3ea/0xf60
[ 9.868249][ T1] ? virtio_dev_probe+0x993/0xaf0
[ 9.869255][ T1] ? really_probe+0x2ba/0xad0
[ 9.869940][ T1] ? driver_probe_device+0x50/0x430
[ 9.870721][ T1] vring_create_virtqueue_split+0xc6/0x310
[ 9.871561][ T1] ? ret_from_fork+0x4d/0x80
[ 9.872295][ T1] ? __pfx_vring_create_virtqueue_split+0x10/0x10
[ 9.873627][ T1] vring_create_virtqueue+0xca/0x110
[ 9.874772][ T1] ? __pfx_vp_notify+0x10/0x10
[ 9.875523][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 9.876526][ T1] setup_vq+0xe9/0x2d0
[ 9.877345][ T1] ? __pfx_vp_notify+0x10/0x10
[ 9.878322][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 9.879538][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 9.880573][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 9.881434][ T1] vp_setup_vq+0xc1/0x330
[ 9.882087][ T1] ? __pfx_vp_config_changed+0x10/0x10
[ 9.883422][ T1] ? srso_return_thunk+0x5/0x5f
[ 9.884655][ T1] ? ioread16+0x2f/0x90
[ 9.885417][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 9.886541][ T1] vp_find_vqs_msix+0x8b2/0xc80
[ 9.887569][ T1] vp_find_vqs+0x4c/0x4e0
[ 9.888212][ T1] virtscsi_init+0x8dd/0xd00
[ 9.889003][ T1] ? __pfx_virtscsi_init+0x10/0x10
[ 9.889853][ T1] ? __pfx_default_calc_sets+0x10/0x10
[ 9.890890][ T1] ? srso_return_thunk+0x5/0x5f
[ 9.891703][ T1] ? scsi_host_alloc+0xa57/0xea0
[ 9.892486][ T1] ? srso_return_thunk+0x5/0x5f
[ 9.893269][ T1] ? srso_return_thunk+0x5/0x5f
[ 9.894149][ T1] ? vp_get+0xfd/0x140
[ 9.894862][ T1] virtscsi_probe+0x3ea/0xf60
[ 9.895725][ T1] ? __pfx_virtscsi_probe+0x10/0x10
[ 9.896569][ T1] ? kernfs_add_one+0x156/0x8b0
[ 9.897285][ T1] ? srso_return_thunk+0x5/0x5f
[ 9.897970][ T1] ? srso_return_thunk+0x5/0x5f
[ 9.898863][ T1] ? virtio_features_ok+0x10c/0x270
[ 9.899770][ T1] virtio_dev_probe+0x993/0xaf0
[ 9.900613][ T1] ? __pfx_virtio_dev_probe+0x10/0x10
[ 9.901586][ T1] really_probe+0x2ba/0xad0
[ 9.902274][ T1] __driver_probe_device+0x1a2/0x390
[ 9.903055][ T1] driver_probe_device+0x50/0x430
[ 9.903839][ T1] __driver_attach+0x45f/0x710
[ 9.904538][ T1] ? __pfx___driver_attach+0x10/0x10
[ 9.905334][ T1] bus_for_each_dev+0x23b/0x2b0
[ 9.906039][ T1] ? __pfx___driver_attach+0x10/0x10
[ 9.906776][ T1] ? __pfx_bus_for_each_dev+0x10/0x10
[ 9.907541][ T1] ? do_raw_spin_unlock+0x13c/0x8b0
[ 9.908385][ T1] bus_add_driver+0x347/0x620
[ 9.909339][ T1] driver_register+0x23a/0x320
[ 9.910264][ T1] ? __pfx_virtio_scsi_init+0x10/0x10
[ 9.911222][ T1] virtio_scsi_init+0x65/0xe0
[ 9.911916][ T1] ? __pfx_virtio_scsi_init+0x10/0x10
[ 9.912708][ T1] do_one_initcall+0x24a/0x880
[ 9.913383][ T1] ? __pfx_virtio_scsi_init+0x10/0x10
[ 9.914212][ T1] ? __pfx_do_one_initcall+0x10/0x10
[ 9.914975][ T1] ? lockdep_hardirqs_on_prepare+0x43d/0x780
[ 9.915956][ T1] ? __pfx_parse_args+0x10/0x10
[ 9.916686][ T1] ? do_initcalls+0x1c/0x80
[ 9.917333][ T1] ? srso_return_thunk+0x5/0x5f
[ 9.918045][ T1] ? rcu_is_watching+0x15/0xb0
[ 9.918900][ T1] do_initcall_level+0x157/0x210
[ 9.919645][ T1] do_initcalls+0x3f/0x80
[ 9.920262][ T1] kernel_init_freeable+0x435/0x5d0
[ 9.921097][ T1] ? __pfx_kernel_init_freeable+0x10/0x10
[ 9.921899][ T1] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10
[ 9.922815][ T1] ? __pfx_kernel_init+0x10/0x10
[ 9.923507][ T1] ? __pfx_kernel_init+0x10/0x10
[ 9.924275][ T1] ? __pfx_kernel_init+0x10/0x10
[ 9.924987][ T1] kernel_init+0x1d/0x2b0
[ 9.925673][ T1] ret_from_fork+0x4d/0x80
[ 9.926323][ T1] ? __pfx_kernel_init+0x10/0x10
[ 9.927030][ T1] ret_from_fork_asm+0x1a/0x30
[ 9.927820][ T1] </TASK>
[ 9.928310][ T1] Kernel panic - not syncing: kernel: panic_on_warn set ...
[ 9.928873][ T1] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 6.9.0-rc1-syzkaller-g22650a99821d #0
[ 9.928873][ T1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
[ 9.928873][ T1] Call Trace:
[ 9.928873][ T1] <TASK>
[ 9.928873][ T1] dump_stack_lvl+0x241/0x360
[ 9.928873][ T1] ? __pfx_dump_stack_lvl+0x10/0x10
[ 9.928873][ T1] ? __pfx__printk+0x10/0x10
[ 9.928873][ T1] ? _printk+0xd5/0x120
[ 9.928873][ T1] ? srso_return_thunk+0x5/0x5f
[ 9.928873][ T1] ? vscnprintf+0x5d/0x90
[ 9.928873][ T1] panic+0x349/0x860
[ 9.928873][ T1] ? __warn+0x172/0x4e0
[ 9.928873][ T1] ? __pfx_panic+0x10/0x10
[ 9.928873][ T1] ? show_trace_log_lvl+0x4e6/0x520
[ 9.928873][ T1] ? ret_from_fork_asm+0x1a/0x30
[ 9.928873][ T1] __warn+0x346/0x4e0
[ 9.928873][ T1] ? refcount_warn_saturate+0xfa/0x1d0
[ 9.928873][ T1] report_bug+0x2b3/0x500
[ 9.928873][ T1] ? refcount_warn_saturate+0xfa/0x1d0
[ 9.928873][ T1] handle_bug+0x3e/0x70
[ 9.928873][ T1] exc_invalid_op+0x1a/0x50
[ 9.928873][ T1] asm_exc_invalid_op+0x1a/0x20
[ 9.928873][ T1] RIP: 0010:refcount_warn_saturate+0xfa/0x1d0
[ 9.928873][ T1] Code: b2 00 00 00 e8 d7 db e9 fc 5b 5d e9 d0 85 e0 06 e8 cb db e9 fc c6 05 8f 84 e8 0a 01 90 48 c7 c7 60 32 1f 8c e8 07 78 ac fc 90 <0f> 0b 90 90 eb d9 e8 ab db e9 fc c6 05 6c 84 e8 0a 01 90 48 c7 c7
[ 9.928873][ T1] RSP: 0018:ffffc90000066e18 EFLAGS: 00010246
[ 9.928873][ T1] RAX: 73a55f6856218c00 RBX: ffff88802101cc6c RCX: ffff8880166d0000
[ 9.928873][ T1] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[ 9.928873][ T1] RBP: 0000000000000004 R08: ffffffff815800c2 R09: fffffbfff1c396e0
[ 9.928873][ T1] R10: dffffc0000000000 R11: fffffbfff1c396e0 R12: ffffea000502cdc0
[ 9.928873][ T1] R13: ffffea000502cdc8 R14: 1ffffd4000a059b9 R15: 0000000000000000
[ 9.928873][ T1] ? __warn_printk+0x292/0x360
[ 9.928873][ T1] ? refcount_warn_saturate+0xf9/0x1d0
[ 9.928873][ T1] __free_pages_ok+0xc60/0xd90
[ 9.928873][ T1] make_alloc_exact+0xa3/0xf0
[ 9.928873][ T1] vring_alloc_queue_split+0x20a/0x600
[ 9.928873][ T1] ? __pfx_vring_alloc_queue_split+0x10/0x10
[ 9.928873][ T1] ? vp_find_vqs+0x4c/0x4e0
[ 9.928873][ T1] ? virtscsi_probe+0x3ea/0xf60
[ 9.928873][ T1] ? virtio_dev_probe+0x993/0xaf0
[ 9.928873][ T1] ? really_probe+0x2ba/0xad0
[ 9.928873][ T1] ? driver_probe_device+0x50/0x430
[ 9.928873][ T1] vring_create_virtqueue_split+0xc6/0x310
[ 9.928873][ T1] ? ret_from_fork+0x4d/0x80
[ 9.928873][ T1] ? __pfx_vring_create_virtqueue_split+0x10/0x10
[ 9.928873][ T1] vring_create_virtqueue+0xca/0x110
[ 9.928873][ T1] ? __pfx_vp_notify+0x10/0x10
[ 9.928873][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 9.928873][ T1] setup_vq+0xe9/0x2d0
[ 9.928873][ T1] ? __pfx_vp_notify+0x10/0x10
[ 9.928873][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 9.928873][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 9.928873][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 9.928873][ T1] vp_setup_vq+0xc1/0x330
[ 9.928873][ T1] ? __pfx_vp_config_changed+0x10/0x10
[ 9.928873][ T1] ? srso_return_thunk+0x5/0x5f
[ 9.928873][ T1] ? ioread16+0x2f/0x90
[ 9.928873][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 9.928873][ T1] vp_find_vqs_msix+0x8b2/0xc80
[ 9.928873][ T1] vp_find_vqs+0x4c/0x4e0
[ 9.928873][ T1] virtscsi_init+0x8dd/0xd00
[ 9.928873][ T1] ? __pfx_virtscsi_init+0x10/0x10
[ 9.928873][ T1] ? __pfx_default_calc_sets+0x10/0x10
[ 9.928873][ T1] ? srso_return_thunk+0x5/0x5f
[ 9.928873][ T1] ? scsi_host_alloc+0xa57/0xea0
[ 9.928873][ T1] ? srso_return_thunk+0x5/0x5f
[ 9.928873][ T1] ? srso_return_thunk+0x5/0x5f
[ 9.928873][ T1] ? vp_get+0xfd/0x140
[ 9.928873][ T1] virtscsi_probe+0x3ea/0xf60
[ 9.928873][ T1] ? __pfx_virtscsi_probe+0x10/0x10
[ 9.928873][ T1] ? kernfs_add_one+0x156/0x8b0
[ 9.928873][ T1] ? srso_return_thunk+0x5/0x5f
[ 9.928873][ T1] ? srso_return_thunk+0x5/0x5f
[ 9.928873][ T1] ? virtio_features_ok+0x10c/0x270
[ 9.928873][ T1] virtio_dev_probe+0x993/0xaf0
[ 9.928873][ T1] ? __pfx_virtio_dev_probe+0x10/0x10
[ 9.928873][ T1] really_probe+0x2ba/0xad0
[ 9.928873][ T1] __driver_probe_device+0x1a2/0x390
[ 9.928873][ T1] driver_probe_device+0x50/0x430
[ 9.928873][ T1] __driver_attach+0x45f/0x710
[ 9.928873][ T1] ? __pfx___driver_attach+0x10/0x10
[ 9.928873][ T1] bus_for_each_dev+0x23b/0x2b0
[ 9.928873][ T1] ? __pfx___driver_attach+0x10/0x10
[ 9.928873][ T1] ? __pfx_bus_for_each_dev+0x10/0x10
[ 9.928873][ T1] ? do_raw_spin_unlock+0x13c/0x8b0
[ 9.928873][ T1] bus_add_driver+0x347/0x620
[ 9.928873][ T1] driver_register+0x23a/0x320
[ 9.928873][ T1] ? __pfx_virtio_scsi_init+0x10/0x10
[ 9.928873][ T1] virtio_scsi_init+0x65/0xe0
[ 9.928873][ T1] ? __pfx_virtio_scsi_init+0x10/0x10
[ 9.928873][ T1] do_one_initcall+0x24a/0x880
[ 9.928873][ T1] ? __pfx_virtio_scsi_init+0x10/0x10
[ 9.928873][ T1] ? __pfx_do_one_initcall+0x10/0x10
[ 9.928873][ T1] ? lockdep_hardirqs_on_prepare+0x43d/0x780
[ 9.928873][ T1] ? __pfx_parse_args+0x10/0x10
[ 9.928873][ T1] ? do_initcalls+0x1c/0x80
[ 9.928873][ T1] ? srso_return_thunk+0x5/0x5f
[ 9.928873][ T1] ? rcu_is_watching+0x15/0xb0
[ 9.928873][ T1] do_initcall_level+0x157/0x210
[ 9.928873][ T1] do_initcalls+0x3f/0x80
[ 9.928873][ T1] kernel_init_freeable+0x435/0x5d0
[ 9.928873][ T1] ? __pfx_kernel_init_freeable+0x10/0x10
[ 9.928873][ T1] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10
[ 9.928873][ T1] ? __pfx_kernel_init+0x10/0x10
[ 9.928873][ T1] ? __pfx_kernel_init+0x10/0x10
[ 9.928873][ T1] ? __pfx_kernel_init+0x10/0x10
[ 9.928873][ T1] kernel_init+0x1d/0x2b0
[ 9.928873][ T1] ret_from_fork+0x4d/0x80
[ 9.928873][ T1] ? __pfx_kernel_init+0x10/0x10
[ 9.928873][ T1] ret_from_fork_asm+0x1a/0x30
[ 9.928873][ T1] </TASK>
[ 9.928873][ T1] Kernel Offset: disabled
[ 9.928873][ T1] Rebooting in 86400 seconds..


syzkaller build log:
go env (err=<nil>)
GO111MODULE='auto'
GOARCH='amd64'
GOBIN=''
GOCACHE='/syzkaller/.cache/go-build'
GOENV='/syzkaller/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/syzkaller/jobs-2/linux/gopath/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/syzkaller/jobs-2/linux/gopath'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.21.4'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/syzkaller/jobs-2/linux/gopath/src/github.com/google/syzkaller/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build4004819836=/tmp/go-build -gno-record-gcc-switches'

git status (err=<nil>)
HEAD detached at 454571b6a
nothing to commit, working tree clean


tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
Makefile:31: run command via tools/syz-env for best compatibility, see:
Makefile:32: https://github.com/google/syzkaller/blob/master/docs/contributing.md#using-syz-env
go list -f '{{.Stale}}' ./sys/syz-sysgen | grep -q false || go install ./sys/syz-sysgen
make .descriptions
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
Makefile:31: run command via tools/syz-env for best compatibility, see:
Makefile:32: https://github.com/google/syzkaller/blob/master/docs/contributing.md#using-syz-env
bin/syz-sysgen
touch .descriptions
GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/prog.GitRevision=454571b6a16598f5a6e015b9fb1a04932bce7ab9 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20240326-163935'" "-tags=syz_target syz_os_linux syz_arch_amd64 " -o ./bin/linux_amd64/syz-fuzzer github.com/google/syzkaller/syz-fuzzer
GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/prog.GitRevision=454571b6a16598f5a6e015b9fb1a04932bce7ab9 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20240326-163935'" "-tags=syz_target syz_os_linux syz_arch_amd64 " -o ./bin/linux_amd64/syz-execprog github.com/google/syzkaller/tools/syz-execprog
GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/prog.GitRevision=454571b6a16598f5a6e015b9fb1a04932bce7ab9 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20240326-163935'" "-tags=syz_target syz_os_linux syz_arch_amd64 " -o ./bin/linux_amd64/syz-stress github.com/google/syzkaller/tools/syz-stress
mkdir -p ./bin/linux_amd64
gcc -o ./bin/linux_amd64/syz-executor executor/executor.cc \
-m64 -O2 -pthread -Wall -Werror -Wparentheses -Wunused-const-variable -Wframe-larger-than=16384 -Wno-stringop-overflow -Wno-array-bounds -Wno-format-overflow -Wno-unused-but-set-variable -Wno-unused-command-line-argument -static-pie -fpermissive -w -DGOOS_linux=1 -DGOARCH_amd64=1 \
-DHOSTGOOS_linux=1 -DGIT_REVISION=\"454571b6a16598f5a6e015b9fb1a04932bce7ab9\"


Error text is too large and was truncated, full error text is at:
https://syzkaller.appspot.com/x/error.txt?x=13bf0c95180000


Tested on:

commit: 22650a99 fs,block: yield devices early
git tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git vfs.fixes
kernel config: https://syzkaller.appspot.com/x/.config?x=151a91b67a261267
dashboard link: https://syzkaller.appspot.com/bug?extid=9c0a93c676799fdf466c
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40

Note: no patches were applied.

Christian Brauner

unread,
Mar 29, 2024, 3:39:35ā€ÆAMMar 29
to syzbot, ja...@suse.cz, linux-...@vger.kernel.org, linux-...@vger.kernel.org, syzkall...@googlegroups.com, vi...@zeniv.linux.org.uk
On Thu, Mar 28, 2024 at 07:20:29AM -0700, syzbot wrote:
> Hello,
>
> syzbot found the following issue on:
>
> HEAD commit: fe46a7dd189e Merge tag 'sound-6.9-rc1' of git://git.kernel..
> git tree: upstream
> console+strace: https://syzkaller.appspot.com/x/log.txt?x=17d1c4f9180000
> kernel config: https://syzkaller.appspot.com/x/.config?x=fe78468a74fdc3b7
> dashboard link: https://syzkaller.appspot.com/bug?extid=9c0a93c676799fdf466c
> compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16577eb1180000
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=106fa941180000
>
> Downloadable assets:
> disk image: https://storage.googleapis.com/syzbot-assets/0f7abe4afac7/disk-fe46a7dd.raw.xz
> vmlinux: https://storage.googleapis.com/syzbot-assets/82598d09246c/vmlinux-fe46a7dd.xz
> kernel image: https://storage.googleapis.com/syzbot-assets/efa23788c875/bzImage-fe46a7dd.xz
>
> IMPORTANT: if you fix the issue, please add the following tag to the commit:
> Reported-by: syzbot+9c0a93...@syzkaller.appspotmail.com

#syz fix: fs,block: get holder during claim
Reply all
Reply to author
Forward
0 new messages