INFO: task hung in btrfs_close_devices (2)

Status: auto-obsoleted due to no activity on 2026/10/10 23:07
Subsystems: btrfs
Labels: prio:normal
[Documentation on labels]
First crash: 129d, last: 129d
▶ ▼ ✨ AI Jobs (1)
ID Workflow Result Correct Bug Created Started Finished Revision
43872ec1 assessment-security DenialOfService: ✅ Exploitable: ❌ FilesystemTrigger: ✅ NetworkTrigger: ❌ PeripheralTrigger: ❌ RemoteTrigger: ❌ Unprivileged: ❌ UserNamespace: ❌ VMGuestTrigger: ❌ VMHostTrigger: ❌ ❓ INFO: task hung in btrfs_close_devices (2) 2026/07/14 00:01 2026/07/14 00:01 2026/07/14 00:55 2130f682
▶ ▼ Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in btrfs_close_devices btrfs 1 4 824d 939d 0/29 auto-obsoleted due to no activity on 2024/11/15 12:50

Sample crash report:
INFO: task syz.2.43:5977 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.2.43        state:D stack:24712 pid:5977  tgid:5976  ppid:5604   task_flags:0x400140 flags:0x00080003
Call Trace:
 context_switch kernel/sched/core.c:5510 [inline]
 __schedule+0x16dc/0x5500 kernel/sched/core.c:7234
 __schedule_loop kernel/sched/core.c:7311 [inline]
 rt_mutex_schedule+0x76/0xf0 kernel/sched/core.c:7607
 rt_mutex_slowlock_block+0x55c/0x680 kernel/locking/rtmutex.c:1670
 __rt_mutex_slowlock kernel/locking/rtmutex.c:1747 [inline]
 __rt_mutex_slowlock_locked kernel/locking/rtmutex.c:1787 [inline]
 rt_mutex_slowlock+0x2d4/0x780 kernel/locking/rtmutex.c:1827
 __rt_mutex_lock kernel/locking/rtmutex.c:1842 [inline]
 __mutex_lock_common kernel/locking/rtmutex_api.c:560 [inline]
 mutex_lock_nested+0x168/0x1d0 kernel/locking/rtmutex_api.c:578
 btrfs_close_devices+0xc5/0x570 fs/btrfs/volumes.c:1215
 btrfs_free_fs_info+0x4f/0x360 fs/btrfs/disk-io.c:1229
 deactivate_locked_super+0xbc/0x130 fs/super.c:477
 btrfs_get_tree_super fs/btrfs/super.c:-1 [inline]
 btrfs_get_tree_subvol fs/btrfs/super.c:2114 [inline]
 btrfs_get_tree+0xcd0/0x1980 fs/btrfs/super.c:2148
 vfs_get_tree+0x92/0x2a0 fs/super.c:1694
 fc_mount fs/namespace.c:1198 [inline]
 do_new_mount_fc fs/namespace.c:3765 [inline]
 do_new_mount+0x319/0xdc0 fs/namespace.c:3841
 do_mount fs/namespace.c:4174 [inline]
 __do_sys_mount fs/namespace.c:4390 [inline]
 __se_sys_mount+0x31d/0x420 fs/namespace.c:4367
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f915fe0f0ca
RSP: 002b:00007f915e065e58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f915e065ee0 RCX: 00007f915fe0f0ca
RDX: 00002000000000c0 RSI: 00002000000015c0 RDI: 00007f915e065ea0
RBP: 00002000000000c0 R08: 00007f915e065ee0 R09: 0000000002000000
R10: 0000000002000000 R11: 0000000000000246 R12: 00002000000015c0
R13: 00007f915e065ea0 R14: 000000000000559e R15: 0000200000001400
 </TASK>
INFO: task syz.4.44:5981 blocked in I/O wait for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.4.44        state:D stack:25640 pid:5981  tgid:5979  ppid:5603   task_flags:0x400140 flags:0x00080002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5510 [inline]
 __schedule+0x16dc/0x5500 kernel/sched/core.c:7234
 __schedule_loop kernel/sched/core.c:7311 [inline]
 schedule+0x164/0x2b0 kernel/sched/core.c:7326
 io_schedule+0x80/0xe0 kernel/sched/core.c:8154
 TXN_SLEEP_DROP_LOCK fs/jfs/jfs_txnmgr.c:125 [inline]
 txBegin+0x281/0xbe0 fs/jfs/jfs_txnmgr.c:376
 jfs_mkdir+0x226/0xb00 fs/jfs/namei.c:232
 vfs_mkdir+0x402/0x620 fs/namei.c:5276
 filename_mkdirat+0x289/0x520 fs/namei.c:5309
 __do_sys_mkdirat fs/namei.c:5330 [inline]
 __se_sys_mkdirat+0x35/0x150 fs/namei.c:5327
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fc0cb9cde59
RSP: 002b:00007fc0c9c26028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007fc0cbc55fa0 RCX: 00007fc0cb9cde59
RDX: 00000000000001c0 RSI: 0000200000000080 RDI: ffffffffffffff9c
RBP: 00007fc0cba63e6f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fc0cbc56038 R14: 00007fc0cbc55fa0 R15: 00007fff58024af8
 </TASK>
INFO: task syz.4.44:6004 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.4.44        state:D stack:28424 pid:6004  tgid:5979  ppid:5603   task_flags:0x400140 flags:0x00080002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5510 [inline]
 __schedule+0x16dc/0x5500 kernel/sched/core.c:7234
 __schedule_loop kernel/sched/core.c:7311 [inline]
 rt_mutex_schedule+0x76/0xf0 kernel/sched/core.c:7607
 rt_mutex_slowlock_block kernel/locking/rtmutex.c:1670 [inline]
 __rt_mutex_slowlock kernel/locking/rtmutex.c:1747 [inline]
 __rt_mutex_slowlock_locked+0x1f84/0x25b0 kernel/locking/rtmutex.c:1787
 __rwbase_read_lock+0xc3/0x180 kernel/locking/rwbase_rt.c:114
 rwbase_read_lock kernel/locking/rwbase_rt.c:147 [inline]
 __down_read kernel/locking/rwsem.c:1502 [inline]
 down_read+0x132/0x200 kernel/locking/rwsem.c:1576
 inode_lock_shared include/linux/fs.h:1039 [inline]
 lookup_slow+0x46/0x70 fs/namei.c:1935
 walk_component fs/namei.c:2282 [inline]
 lookup_last fs/namei.c:2789 [inline]
 path_lookupat+0x3f5/0x8c0 fs/namei.c:2813
 filename_lookup+0x265/0x5d0 fs/namei.c:2842
 kern_path+0x3d/0x150 fs/namei.c:3036
 lookup_bdev block/bdev.c:1208 [inline]
 bdev_file_open_by_path+0xd5/0x480 block/bdev.c:1081
 btrfs_scan_one_device+0xa8/0x680 fs/btrfs/volumes.c:1483
 btrfs_control_ioctl+0x22a/0x370 fs/btrfs/super.c:2279
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:597 [inline]
 __se_sys_ioctl+0xff/0x170 fs/ioctl.c:583
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fc0cb9cde59
RSP: 002b:00007fc0c9c05028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fc0cbc56090 RCX: 00007fc0cb9cde59
RDX: 00002000000004c0 RSI: 0000000050009404 RDI: 0000000000000005
RBP: 00007fc0cba63e6f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fc0cbc56128 R14: 00007fc0cbc56090 R15: 00007fff58024af8
 </TASK>
INFO: task syz.4.44:6009 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.4.44        state:D stack:24744 pid:6009  tgid:5979  ppid:5603   task_flags:0x400040 flags:0x00080002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5510 [inline]
 __schedule+0x16dc/0x5500 kernel/sched/core.c:7234
 __schedule_loop kernel/sched/core.c:7311 [inline]
 rt_mutex_schedule+0x76/0xf0 kernel/sched/core.c:7607
 rt_mutex_slowlock_block kernel/locking/rtmutex.c:1670 [inline]
 __rt_mutex_slowlock kernel/locking/rtmutex.c:1747 [inline]
 __rt_mutex_slowlock_locked+0x1f84/0x25b0 kernel/locking/rtmutex.c:1787
 __rwbase_read_lock+0xc3/0x180 kernel/locking/rwbase_rt.c:114
 rwbase_read_lock kernel/locking/rwbase_rt.c:147 [inline]
 __down_read kernel/locking/rwsem.c:1502 [inline]
 down_read+0x132/0x200 kernel/locking/rwsem.c:1576
 inode_lock_shared include/linux/fs.h:1039 [inline]
 lookup_slow+0x46/0x70 fs/namei.c:1935
 walk_component fs/namei.c:2282 [inline]
 lookup_last fs/namei.c:2789 [inline]
 path_lookupat+0x3f5/0x8c0 fs/namei.c:2813
 filename_lookup+0x265/0x5d0 fs/namei.c:2842
 vfs_statx+0xfc/0x200 fs/stat.c:353
 vfs_fstatat fs/stat.c:373 [inline]
 vfs_lstat include/linux/fs.h:3221 [inline]
 __do_sys_newlstat fs/stat.c:524 [inline]
 __se_sys_newlstat fs/stat.c:518 [inline]
 __x64_sys_newlstat+0x125/0x1e0 fs/stat.c:518
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fc0cb9cde59
RSP: 002b:00007fc0c9be4028 EFLAGS: 00000246 ORIG_RAX: 0000000000000006
RAX: ffffffffffffffda RBX: 00007fc0cbc56180 RCX: 00007fc0cb9cde59
RDX: 0000000000000000 RSI: 00002000000000c0 RDI: 00002000000001c0
RBP: 00007fc0cba63e6f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fc0cbc56218 R14: 00007fc0cbc56180 R15: 00007fff58024af8
 </TASK>
INFO: task syz.4.44:6011 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.4.44        state:D stack:25672 pid:6011  tgid:5979  ppid:5603   task_flags:0x400140 flags:0x00080002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5510 [inline]
 __schedule+0x16dc/0x5500 kernel/sched/core.c:7234
 __schedule_loop kernel/sched/core.c:7311 [inline]
 rt_mutex_schedule+0x76/0xf0 kernel/sched/core.c:7607
 rt_mutex_slowlock_block kernel/locking/rtmutex.c:1670 [inline]
 __rt_mutex_slowlock kernel/locking/rtmutex.c:1747 [inline]
 __rt_mutex_slowlock_locked+0x1f84/0x25b0 kernel/locking/rtmutex.c:1787
 rt_mutex_slowlock+0xbd/0x170 kernel/locking/rtmutex.c:1827
 __rt_mutex_lock kernel/locking/rtmutex.c:1842 [inline]
 rwbase_write_lock+0x14c/0x720 kernel/locking/rwbase_rt.c:251
 inode_lock include/linux/fs.h:1024 [inline]
 open_last_lookups fs/namei.c:4605 [inline]
 path_openat+0xae9/0x3850 fs/namei.c:4860
 do_file_open+0x23e/0x4a0 fs/namei.c:4892
 do_sys_openat2+0x115/0x200 fs/open.c:1368
 do_sys_open fs/open.c:1374 [inline]
 __do_sys_openat fs/open.c:1390 [inline]
 __se_sys_openat fs/open.c:1385 [inline]
 __x64_sys_openat+0x138/0x170 fs/open.c:1385
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fc0cb9cde59
RSP: 002b:00007fc0c97c1028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fc0cbc56270 RCX: 00007fc0cb9cde59
RDX: 000000000000275a RSI: 0000200000000100 RDI: ffffffffffffff9c
RBP: 00007fc0cba63e6f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fc0cbc56308 R14: 00007fc0cbc56270 R15: 00007fff58024af8
 </TASK>

Showing all locks held in the system:
4 locks held by pr/legacy/17:
1 lock held by khungtaskd/38:
 #0: ffffffff8e1c3000 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:300 [inline]
 #0: ffffffff8e1c3000 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:840 [inline]
 #0: ffffffff8e1c3000 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180 kernel/locking/lockdep.c:6775
2 locks held by kworker/u8:4/66:
4 locks held by kworker/u8:7/781:
 #0: ffff88801aea0938 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3297 [inline]
 #0: ffff88801aea0938 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0xa20/0x14e0 kernel/workqueue.c:3405
 #1: ffffc9000513fc40 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3297 [inline]
 #1: ffffc9000513fc40 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0xa20/0x14e0 kernel/workqueue.c:3405
 #2: ffffffff8f5a1fe0 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xf5/0x810 net/core/net_namespace.c:673
 #3: ffffffff8f5b0b78 (rtnl_mutex){+.+.}-{4:4}, at: wg_destruct+0x25/0x310 drivers/net/wireguard/device.c:246
7 locks held by kworker/u8:9/1301:
5 locks held by klogd/4955:
2 locks held by dhcpcd/5261:
 #0: ffff888040540928 (nlk_cb_mutex-ROUTE){+.+.}-{4:4}, at: netlink_dump+0xe7/0xee0 net/netlink/af_netlink.c:2273
 #1: ffffffff8f5b0b78 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock net/core/rtnetlink.c:80 [inline]
 #1: ffffffff8f5b0b78 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_dump_ifinfo+0xa74/0x14b0 net/core/rtnetlink.c:2562
2 locks held by getty/5354:
 #0: ffff88803740b0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc90003cc62e0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x460/0x1360 drivers/tty/n_tty.c:2211
1 lock held by udevd/5595:
 #0: ffffffff8e833d98 (uuid_mutex){+.+.}-{4:4}, at: btrfs_control_ioctl+0x117/0x370 fs/btrfs/super.c:2292
1 lock held by udevd/5615:
 #0: ffffffff8e833d98 (uuid_mutex){+.+.}-{4:4}, at: btrfs_control_ioctl+0x117/0x370 fs/btrfs/super.c:2292
1 lock held by udevd/5623:
 #0: ffffffff8e833d98 (uuid_mutex){+.+.}-{4:4}, at: btrfs_control_ioctl+0x117/0x370 fs/btrfs/super.c:2292
1 lock held by udevd/5625:
 #0: ffffffff8e833d98 (uuid_mutex){+.+.}-{4:4}, at: btrfs_control_ioctl+0x117/0x370 fs/btrfs/super.c:2292
1 lock held by syz.2.43/5977:
 #0: ffffffff8e833d98 (uuid_mutex){+.+.}-{4:4}, at: btrfs_close_devices+0xc5/0x570 fs/btrfs/volumes.c:1215
2 locks held by syz.4.44/5981:
 #0: ffff8880417ac500 (sb_writers#13){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 fs/namespace.c:494
 #1: ffff888062cde648 (&type->i_mutex_dir_key#10/1){+.+.}-{4:4}, at: inode_lock_nested include/linux/fs.h:1069 [inline]
 #1: ffff888062cde648 (&type->i_mutex_dir_key#10/1){+.+.}-{4:4}, at: __start_dirop fs/namei.c:2918 [inline]
 #1: ffff888062cde648 (&type->i_mutex_dir_key#10/1){+.+.}-{4:4}, at: start_dirop fs/namei.c:2942 [inline]
 #1: ffff888062cde648 (&type->i_mutex_dir_key#10/1){+.+.}-{4:4}, at: filename_create+0x200/0x370 fs/namei.c:4955
2 locks held by syz.4.44/6004:
 #0: ffffffff8e833d98 (uuid_mutex){+.+.}-{4:4}, at: btrfs_control_ioctl+0x21c/0x370 fs/btrfs/super.c:2274
 #1: ffff888062cde648 (&type->i_mutex_dir_key#10){++++}-{4:4}, at: inode_lock_shared include/linux/fs.h:1039 [inline]
 #1: ffff888062cde648 (&type->i_mutex_dir_key#10){++++}-{4:4}, at: lookup_slow+0x46/0x70 fs/namei.c:1935
1 lock held by syz.4.44/6009:
 #0: ffff888062cde648 (&type->i_mutex_dir_key#10){++++}-{4:4}, at: inode_lock_shared include/linux/fs.h:1039 [inline]
 #0: ffff888062cde648 (&type->i_mutex_dir_key#10){++++}-{4:4}, at: lookup_slow+0x46/0x70 fs/namei.c:1935
2 locks held by syz.4.44/6011:
 #0: ffff8880417ac500 (sb_writers#13){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 fs/namespace.c:494
 #1: ffff888062cde648 (&type->i_mutex_dir_key#10){++++}-{4:4}, at: inode_lock include/linux/fs.h:1024 [inline]
 #1: ffff888062cde648 (&type->i_mutex_dir_key#10){++++}-{4:4}, at: open_last_lookups fs/namei.c:4605 [inline]
 #1: ffff888062cde648 (&type->i_mutex_dir_key#10){++++}-{4:4}, at: path_openat+0xae9/0x3850 fs/namei.c:4860
1 lock held by syz.1.54/6045:
 #0: ffffffff8e833d98 (uuid_mutex){+.+.}-{4:4}, at: btrfs_get_tree_super fs/btrfs/super.c:1878 [inline]
 #0: ffffffff8e833d98 (uuid_mutex){+.+.}-{4:4}, at: btrfs_get_tree_subvol fs/btrfs/super.c:2114 [inline]
 #0: ffffffff8e833d98 (uuid_mutex){+.+.}-{4:4}, at: btrfs_get_tree+0x485/0x1980 fs/btrfs/super.c:2148
1 lock held by syz.3.67/6117:
 #0: ffffffff8e833d98 (uuid_mutex){+.+.}-{4:4}, at: btrfs_get_tree_super fs/btrfs/super.c:1878 [inline]
 #0: ffffffff8e833d98 (uuid_mutex){+.+.}-{4:4}, at: btrfs_get_tree_subvol fs/btrfs/super.c:2114 [inline]
 #0: ffffffff8e833d98 (uuid_mutex){+.+.}-{4:4}, at: btrfs_get_tree+0x485/0x1980 fs/btrfs/super.c:2148
1 lock held by syz.5.77/6277:
 #0: ffffffff8e833d98 (uuid_mutex){+.+.}-{4:4}, at: btrfs_control_ioctl+0x21c/0x370 fs/btrfs/super.c:2274
1 lock held by syz.0.95/6414:
 #0: ffffffff8e833d98 (uuid_mutex){+.+.}-{4:4}, at: btrfs_control_ioctl+0x21c/0x370 fs/btrfs/super.c:2274
1 lock held by syz.7.98/6438:
 #0: ffffffff8e833d98 (uuid_mutex){+.+.}-{4:4}, at: btrfs_control_ioctl+0x21c/0x370 fs/btrfs/super.c:2274
1 lock held by syz.6.99/6433:
 #0: ffffffff8e833d98 (uuid_mutex){+.+.}-{4:4}, at: btrfs_get_tree_super fs/btrfs/super.c:1878 [inline]
 #0: ffffffff8e833d98 (uuid_mutex){+.+.}-{4:4}, at: btrfs_get_tree_subvol fs/btrfs/super.c:2114 [inline]
 #0: ffffffff8e833d98 (uuid_mutex){+.+.}-{4:4}, at: btrfs_get_tree+0x485/0x1980 fs/btrfs/super.c:2148
1 lock held by syz.8.116/6554:
 #0: ffffffff8e833d98 (uuid_mutex){+.+.}-{4:4}, at: btrfs_control_ioctl+0x21c/0x370 fs/btrfs/super.c:2274
1 lock held by syz.9.150/6776:
 #0: ffffffff8e833d98 (uuid_mutex){+.+.}-{4:4}, at: btrfs_get_tree_super fs/btrfs/super.c:1878 [inline]
 #0: ffffffff8e833d98 (uuid_mutex){+.+.}-{4:4}, at: btrfs_get_tree_subvol fs/btrfs/super.c:2114 [inline]
 #0: ffffffff8e833d98 (uuid_mutex){+.+.}-{4:4}, at: btrfs_get_tree+0x485/0x1980 fs/btrfs/super.c:2148
7 locks held by syz-executor/6782:
 #0: ffff88803676a500 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2733 [inline]
 #0: ffff88803676a500 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x231/0xbb0 fs/read_write.c:683
 #1: ffff88808f278478 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1d9/0x540 fs/kernfs/file.c:336
 #2: ffff888029a022d8 (kn->active#52){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:73 [inline]
 #2: ffff888029a022d8 (kn->active#52){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22c/0x540 fs/kernfs/file.c:337
 #3: ffffffff8ee264b8 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xd6/0x370 drivers/net/netdevsim/bus.c:234
 #4: ffff888060d89160 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:1102 [inline]
 #4: ffff888060d89160 (&dev->mutex){....}-{4:4}, at: __device_driver_lock drivers/base/dd.c:1171 [inline]
 #4: ffff888060d89160 (&dev->mutex){....}-{4:4}, at: device_release_driver_internal+0xb9/0x880 drivers/base/dd.c:1369
 #5: ffff888065ee2310 (&devlink->lock_key#6){+.+.}-{4:4}, at: nsim_drv_remove+0x50/0x160 drivers/net/netdevsim/dev.c:1799
 #6: ffffffff8f5b0b78 (rtnl_mutex){+.+.}-{4:4}, at: nsim_destroy+0x173/0x800 drivers/net/netdevsim/netdev.c:1191
1 lock held by syz.3.169/6851:
 #0: ffffffff8e833d98 (uuid_mutex){+.+.}-{4:4}, at: btrfs_control_ioctl+0x21c/0x370 fs/btrfs/super.c:2274
2 locks held by syz-executor/6858:
 #0: ffffffff8f5a1fe0 (pernet_ops_rwsem){++++}-{4:4}, at: copy_net_ns+0x4e2/0x720 net/core/net_namespace.c:575
 #1: ffffffff8f5b0b78 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_net_lock_killable include/linux/rtnetlink.h:145 [inline]
 #1: ffffffff8f5b0b78 (rtnl_mutex){+.+.}-{4:4}, at: register_netdev+0x18/0x60 net/core/dev.c:11553
4 locks held by syz.1.185/6922:

=============================================

NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 38 Comm: khungtaskd Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 nmi_cpu_backtrace+0x274/0x2d0 lib/nmi_backtrace.c:122
 nmi_trigger_cpumask_backtrace+0x17a/0x380 lib/nmi_backtrace.c:65
 trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline]
 __sys_info lib/sys_info.c:157 [inline]
 sys_info+0x135/0x170 lib/sys_info.c:165
 check_hung_uninterruptible_tasks kernel/hung_task.c:353 [inline]
 watchdog+0xfd7/0x1030 kernel/hung_task.c:561
 kthread+0x388/0x470 kernel/kthread.c:436
 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 17 Comm: pr/legacy Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
RIP: 0010:io_serial_in+0x77/0xc0 drivers/tty/serial/8250/8250_port.c:401
Code: e8 2e 1a 70 fc 44 89 f9 d3 e3 49 83 ee 80 4c 89 f0 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 2f 85 d9 fc 41 03 1e 89 da ec <0f> b6 c0 5b 41 5c 41 5e 41 5f c3 cc cc cc cc cc 44 89 f9 80 e1 07
RSP: 0000:ffffc90000167a28 EFLAGS: 00000202
RAX: 1ffffffff33c8500 RBX: 00000000000003fd RCX: 0000000000000000
RDX: 00000000000003fd RSI: 0000000000000000 RDI: 0000000000000000
RBP: dffffc0000000000 R08: 0000000000000000 R09: 0000000000000000
R10: dffffc0000000000 R11: ffffffff85551df0 R12: dffffc0000000000
R13: 0000000000000000 R14: ffffffff99e42d40 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff888125d49000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f517278c000 CR3: 000000008f17a000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 serial_in drivers/tty/serial/8250/8250.h:128 [inline]
 serial_lsr_in drivers/tty/serial/8250/8250.h:150 [inline]
 wait_for_lsr+0x190/0x300 drivers/tty/serial/8250/8250_port.c:1982
 serial8250_fifo_wait_for_lsr_thre drivers/tty/serial/8250/8250_port.c:3229 [inline]
 serial8250_console_fifo_write drivers/tty/serial/8250/8250_port.c:3294 [inline]
 serial8250_console_write+0x113a/0x1b40 drivers/tty/serial/8250/8250_port.c:3379
 console_emit_next_record kernel/printk/printk.c:3163 [inline]
 console_flush_one_record+0x642/0xb50 kernel/printk/printk.c:3269
 legacy_kthread_func+0x1b6/0x250 kernel/printk/printk.c:3712
 kthread+0x388/0x470 kernel/kthread.c:436
 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/07/12 22:59 upstream f4fb100039e9 d78ea535 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in btrfs_close_devices
* Struck through repros no longer work on HEAD.