syzbot


INFO: task hung in deactivate_super

Status: upstream: reported on 2022/11/16 10:48
Reported-by: syzbot+326904e69945b150ac08@syzkaller.appspotmail.com
First crash: 519d, last: 418d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-49 INFO: task hung in deactivate_super 3 2106d 2123d 0/3 auto-closed as invalid on 2019/02/22 12:34
linux-6.1 INFO: task hung in deactivate_super 4 244d 293d 0/3 auto-obsoleted due to no activity on 2023/11/26 12:17
linux-4.14 INFO: task hung in deactivate_super 1 1816d 1816d 0/1 auto-closed as invalid on 2019/10/25 08:42
upstream INFO: task hung in deactivate_super exfat 36 1927d 2030d 0/26 closed as dup on 2018/10/27 13:17
upstream INFO: task hung in deactivate_super (2) reiserfs C inconclusive done 121 46d 385d 26/26 fixed on 2024/04/08 19:23
linux-5.15 INFO: task hung in deactivate_super 4 241d 329d 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 64d 64d 0/3 upstream: reported on 2024/02/14 05:27

Sample crash report:
ieee802154 phy1 wpan1: encryption failed: -22
wlan1: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
wlan1: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
INFO: task syz-executor.4:8199 blocked for more than 140 seconds.
      Not tainted 4.19.211-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.4  D24120  8199      1 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2828 [inline]
 __schedule+0x887/0x2040 kernel/sched/core.c:3517
 schedule+0x8d/0x1b0 kernel/sched/core.c:3561
 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:589 [inline]
 rwsem_down_write_failed+0x3aa/0x760 kernel/locking/rwsem-xadd.c:618
 call_rwsem_down_write_failed+0x13/0x20 arch/x86/lib/rwsem.S:117
 __down_write arch/x86/include/asm/rwsem.h:142 [inline]
 down_write+0x4f/0x90 kernel/locking/rwsem.c:72
 deactivate_super+0x16c/0x1a0 fs/super.c:359
 cleanup_mnt+0x1a8/0x290 fs/namespace.c:1098
 task_work_run+0x148/0x1c0 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:193 [inline]
 exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167
 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
 do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7ff6b993d567
Code: Bad RIP value.
RSP: 002b:00007ffc784852f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007ff6b993d567
RDX: 00007ffc784853cc RSI: 000000000000000a RDI: 00007ffc784853c0
RBP: 00007ffc784853c0 R08: 00000000ffffffff R09: 00007ffc78485190
R10: 0000555556ab3903 R11: 0000000000000246 R12: 00007ff6b9996b24
R13: 00007ffc78486480 R14: 0000555556ab3810 R15: 00007ffc784864c0

Showing all locks held in the system:
1 lock held by khungtaskd/1571:
 #0: 000000002ab8593f (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441
1 lock held by in:imklog/7828:
 #0: 000000004484eb1f (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767
1 lock held by syz-executor.4/8199:
 #0: 000000005276c715 (&type->s_umount_key#54){++++}, at: deactivate_super+0x16c/0x1a0 fs/super.c:359
5 locks held by syz-executor.0/14177:
1 lock held by syz-executor.0/14613:
 #0: 000000005276c715 (&type->s_umount_key#54){++++}, at: iterate_supers+0xdb/0x290 fs/super.c:631

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

NMI backtrace for cpu 1
CPU: 1 PID: 1571 Comm: khungtaskd Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 nmi_cpu_backtrace.cold+0x63/0xa2 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x1a6/0x1f0 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline]
 watchdog+0x991/0xe60 kernel/hung_task.c:287
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 2837 Comm: kworker/0:1H Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023
Workqueue: kblockd blk_mq_requeue_work
RIP: 0010:blk_mq_update_dispatch_busy block/blk-mq.c:1103 [inline]
RIP: 0010:blk_mq_dispatch_rq_list+0xf50/0x1980 block/blk-mq.c:1274
Code: 83 44 24 3c 01 e8 90 70 ff ff e9 c9 fd ff ff e8 56 85 fd fd 48 8b 14 24 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 <0f> 85 94 05 00 00 49 8b 9e 38 01 00 00 48 b8 00 00 00 00 00 fc ff
RSP: 0018:ffff8880adeaf950 EFLAGS: 00000246
RAX: dffffc0000000000 RBX: 0000000000000001 RCX: ffffffff8364f8f3
RDX: 1ffff11015d2e267 RSI: ffffffff8365001a RDI: ffff8880ae971410
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: ffff8880ae971200 R15: ffff8880adeafaa0
FS:  0000000000000000(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff162832000 CR3: 000000009fc05000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 blk_mq_sched_dispatch_requests+0x358/0x5b0 block/blk-mq-sched.c:211
 __blk_mq_run_hw_queue+0x185/0x290 block/blk-mq.c:1324
 __blk_mq_delay_run_hw_queue+0x4d8/0x5a0 block/blk-mq.c:1392
 blk_mq_run_hw_queue+0x16b/0x2f0 block/blk-mq.c:1429
 blk_mq_run_hw_queues block/blk-mq.c:1446 [inline]
 blk_mq_requeue_work+0x540/0x7a0 block/blk-mq.c:726
 process_one_work+0x864/0x1570 kernel/workqueue.c:2153
 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/25 13:36 linux-4.19.y 3f8a27f9e27b ee50e71c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in deactivate_super
2022/11/30 22:26 linux-4.19.y 3f8a27f9e27b 4c2a66e8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in deactivate_super
2022/11/19 07:03 linux-4.19.y 3f8a27f9e27b 5bb70014 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in deactivate_super
2022/11/16 10:48 linux-4.19.y 3f8a27f9e27b 3a127a31 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in deactivate_super
* Struck through repros no longer work on HEAD.