syzbot


INFO: task hung in deactivate_super

Status: auto-obsoleted due to no activity on 2023/11/26 12:17
Reported-by: syzbot+903fb24bb290b01a6054@syzkaller.appspotmail.com
First crash: 305d, last: 256d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-49 INFO: task hung in deactivate_super 3 2118d 2136d 0/3 auto-closed as invalid on 2019/02/22 12:34
linux-4.14 INFO: task hung in deactivate_super 1 1828d 1828d 0/1 auto-closed as invalid on 2019/10/25 08:42
upstream INFO: task hung in deactivate_super exfat 36 1939d 2042d 0/26 closed as dup on 2018/10/27 13:17
upstream INFO: task hung in deactivate_super (2) reiserfs C inconclusive done 121 59d 398d 26/26 fixed on 2024/04/08 19:23
linux-5.15 INFO: task hung in deactivate_super 4 253d 342d 0/3 auto-obsoleted due to no activity on 2023/11/29 20:11
linux-6.1 INFO: task hung in deactivate_super (2) 1 77d 77d 0/3 upstream: reported on 2024/02/14 05:27
linux-4.19 INFO: task hung in deactivate_super 4 430d 531d 0/1 upstream: reported on 2022/11/16 10:48

Sample crash report:
INFO: task syz-executor.3:3590 blocked for more than 143 seconds.
      Not tainted 6.1.41-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.3  state:D stack:21144 pid:3590  ppid:1      flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5241 [inline]
 __schedule+0x132c/0x4330 kernel/sched/core.c:6554
 schedule+0xbf/0x180 kernel/sched/core.c:6630
 rwsem_down_write_slowpath+0xe93/0x14a0 kernel/locking/rwsem.c:1189
 deactivate_super+0xa9/0xe0 fs/super.c:362
 cleanup_mnt+0x490/0x520 fs/namespace.c:1186
 task_work_run+0x246/0x300 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0xd9/0x100 kernel/entry/common.c:171
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204
 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline]
 syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:297
 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f690967de57
RSP: 002b:00007ffe5e5764c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f690967de57
RDX: 0000000000000000 RSI: 000000000000000a RDI: 00007ffe5e576580
RBP: 00007ffe5e576580 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffe5e577640
R13: 00007f69096c73b9 R14: 00000000002ab2fe R15: 0000000000000005
 </TASK>
INFO: task syz-executor.2:25419 blocked for more than 143 seconds.
      Not tainted 6.1.41-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2  state:D stack:27104 pid:25419 ppid:3598   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5241 [inline]
 __schedule+0x132c/0x4330 kernel/sched/core.c:6554
 schedule+0xbf/0x180 kernel/sched/core.c:6630
 jfs_flush_journal+0x72b/0xec0 fs/jfs/jfs_logmgr.c:1564
 jfs_sync_fs+0x7c/0xa0 fs/jfs/super.c:684
 iterate_supers+0x127/0x1e0 fs/super.c:746
 ksys_sync+0xd7/0x1c0 fs/sync.c:104
 __do_sys_sync+0xa/0x10 fs/sync.c:113
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f432347cb29
RSP: 002b:00007f43241cc0c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a2
RAX: ffffffffffffffda RBX: 00007f432359c050 RCX: 00007f432347cb29
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007f43234c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f432359c050 R15: 00007fff8e269d48
 </TASK>

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
 #0: ffffffff8cf298b0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:513
1 lock held by rcu_tasks_trace/13:
 #0: ffffffff8cf2a0b0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:513
1 lock held by khungtaskd/28:
 #0: ffffffff8cf296e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
2 locks held by getty/3301:
 #0: ffff888027aa1098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244
 #1: ffffc900031262f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6a7/0x1db0 drivers/tty/n_tty.c:2177
1 lock held by syz-executor.3/3590:
 #0: ffff8880730ec0e0 (&type->s_umount_key#55){++++}-{3:3}, at: deactivate_super+0xa9/0xe0 fs/super.c:362
1 lock held by syz-executor.2/25419:
 #0: ffff8880730ec0e0 (&type->s_umount_key#55){++++}-{3:3}, at: iterate_supers+0xac/0x1e0 fs/super.c:744

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

NMI backtrace for cpu 0
CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.1.41-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
 nmi_cpu_backtrace+0x4e1/0x560 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x1b0/0x3f0 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline]
 watchdog+0xf18/0xf60 kernel/hung_task.c:377
 kthread+0x26e/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 18693 Comm: kworker/u4:0 Not tainted 6.1.41-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023
Workqueue: phy31 ieee80211_iface_work
RIP: 0010:lookup_object lib/debugobjects.c:195 [inline]
RIP: 0010:lookup_object_or_alloc lib/debugobjects.c:555 [inline]
RIP: 0010:debug_object_activate+0x1c6/0x860 lib/debugobjects.c:699
Code: 41 ff c7 48 85 db 74 46 4c 8d 73 18 4c 89 f0 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 a2 f2 a6 fd 48 8b 44 24 10 49 39 06 <49> 89 c6 0f 84 f5 00 00 00 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74
RSP: 0018:ffffc9000b5df100 EFLAGS: 00000087
RAX: ffff888073100600 RBX: ffff88803e779770 RCX: 0000000000000001
RDX: dffffc0000000000 RSI: 0000000000000004 RDI: ffffc9000b5defe0
RBP: ffffc9000b5df210 R08: dffffc0000000000 R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: dffffc0000000000
R13: ffffffff91d6dc68 R14: ffff88803e779788 R15: 0000000000000005
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c022e7ab00 CR3: 00000000260ac000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 debug_rcu_head_queue kernel/rcu/rcu.h:189 [inline]
 kvfree_call_rcu+0xb4/0x8c0 kernel/rcu/tree.c:3346
 cfg80211_update_known_bss+0x16b/0x9e0
 cfg80211_bss_update+0x16d/0x20d0 net/wireless/scan.c:1769
 cfg80211_inform_single_bss_frame_data net/wireless/scan.c:2426 [inline]
 cfg80211_inform_bss_frame_data+0xae4/0x1680 net/wireless/scan.c:2459
 ieee80211_bss_info_update+0x796/0xe70 net/mac80211/scan.c:190
 ieee80211_rx_bss_info net/mac80211/ibss.c:1120 [inline]
 ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1609 [inline]
 ieee80211_ibss_rx_queued_mgmt+0x18ea/0x2d60 net/mac80211/ibss.c:1638
 ieee80211_iface_process_skb net/mac80211/iface.c:1632 [inline]
 ieee80211_iface_work+0x7aa/0xce0 net/mac80211/iface.c:1686
 process_one_work+0x8aa/0x11f0 kernel/workqueue.c:2292
 worker_thread+0xa5f/0x1210 kernel/workqueue.c:2439
 kthread+0x26e/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/27 01:52 linux-6.1.y 5302e81aa209 41fe1bae .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in deactivate_super
2023/06/30 10:49 linux-6.1.y a1c449d00ff8 01298212 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in deactivate_super
2023/08/18 12:16 linux-6.1.y 6c44e13dc284 acb1ba71 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 INFO: task hung in deactivate_super
2023/08/11 19:33 linux-6.1.y 1321ab403b38 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 INFO: task hung in deactivate_super
* Struck through repros no longer work on HEAD.