syzbot


INFO: task hung in grab_super (2)

Status: auto-obsoleted due to no activity on 2023/09/05 02:19
Subsystems: fs
[Documentation on labels]
First crash: 384d, last: 384d
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-414 INFO: task hung in grab_super 4 2065d 1903d 0/1 auto-closed as invalid on 2019/04/28 15:34
linux-4.14 INFO: task hung in grab_super C error 241 578d 1894d 0/1 upstream: reported C repro on 2019/04/19 12:37
android-414 INFO: task hung in grab_super (2) 2 1804d 1825d 0/1 auto-closed as invalid on 2019/11/15 12:55
android-49 INFO: task hung in grab_super 1 2142d 2142d 0/3 auto-closed as invalid on 2019/02/22 13:19
linux-5.15 INFO: task hung in grab_super 1 85d 85d 0/3 upstream: reported on 2024/04/01 06:22
upstream INFO: task hung in grab_super udf C 209 520d 2169d 0/27 closed as dup on 2018/07/18 11:42
linux-6.1 INFO: task hung in grab_super 1 80d 80d 0/3 upstream: reported on 2024/04/06 01:06
linux-4.19 INFO: task hung in grab_super vfs udf C error 249 501d 1895d 0/1 upstream: reported C repro on 2019/04/18 03:33
android-49 INFO: task hung in grab_super (2) 1 1770d 1770d 0/3 auto-closed as invalid on 2019/12/19 00:51

Sample crash report:
INFO: task syz-executor.5:19384 blocked for more than 143 seconds.
      Not tainted 6.4.0-rc5-syzkaller-00016-ga4d7d7011219 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5  state:D stack:26496 pid:19384 ppid:19364  flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5343 [inline]
 __schedule+0x187b/0x4900 kernel/sched/core.c:6669
 schedule+0xc3/0x180 kernel/sched/core.c:6745
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6804
 rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178
 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306
 grab_super+0x59/0x1a0 fs/super.c:385
 sget+0x1b2/0x4d0 fs/super.c:656
 mount_bdev+0xf4/0x3f0 fs/super.c:1351
 legacy_get_tree+0xef/0x190 fs/fs_context.c:610
 vfs_get_tree+0x8c/0x270 fs/super.c:1510
 do_new_mount+0x28f/0xae0 fs/namespace.c:3039
 do_mount fs/namespace.c:3382 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3568
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f493148c169
RSP: 002b:00007f49321ad168 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f49315abf80 RCX: 00007f493148c169
RDX: 0000000020000140 RSI: 0000000020000100 RDI: 00000000200000c0
RBP: 00007f49314e7ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffccab6bd6f R14: 00007f49321ad300 R15: 0000000000022000
 </TASK>

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/13:
 #0: ffffffff8cf276f0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:518
1 lock held by rcu_tasks_trace/14:
 #0: ffffffff8cf27ab0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:518
1 lock held by khungtaskd/28:
 #0: ffffffff8cf27520 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
1 lock held by udevd/4447:
 #0: ffff8880b993c1d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:558
2 locks held by getty/4756:
 #0: ffff88802838e098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc900015a02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ab/0x1db0 drivers/tty/n_tty.c:2176
4 locks held by syz-executor.3/5046:
1 lock held by syz-executor.0/16819:
1 lock held by syz-executor.5/19286:
 #0: ffff888075f5e0e0 (&type->s_umount_key#48/1){+.+.}-{3:3}, at: alloc_super+0x217/0x930 fs/super.c:228
2 locks held by syz-executor.5/19384:
 #0: ffff88801de29718 (&bdev->bd_fsfreeze_mutex){+.+.}-{3:3}, at: mount_bdev+0x8f/0x3f0 fs/super.c:1345
 #1: ffff888075f5e0e0 (&type->s_umount_key#102){+.+.}-{3:3}, at: grab_super+0x59/0x1a0 fs/super.c:385
4 locks held by kworker/u4:2/19459:
 #0: ffff88801425b138 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378
 #1: ffffc9000aba7d20 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380
 #2: ffffffff8e093a90 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0xf5/0xb80 net/core/net_namespace.c:576
 #3: ffffffff8cf2cbf8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:325 [inline]
 #3: ffffffff8cf2cbf8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x46c/0x890 kernel/rcu/tree_exp.h:992
2 locks held by kworker/u4:4/19472:
2 locks held by kworker/0:1/19741:
 #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378
 #1: ffffc9000d357d20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380
3 locks held by kworker/0:2/19742:
 #0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378
 #1: ffffc9000d6cfd20 (fqdir_free_work){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380
 #2: ffffffff8cf2cac0 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x4c/0x540 kernel/rcu/tree.c:3961
1 lock held by syz-executor.1/20736:
 #0: ffff8880272c0168 (&mm->mmap_lock){++++}-{3:3}, at: mmap_write_lock_killable include/linux/mmap_lock.h:110 [inline]
 #0: ffff8880272c0168 (&mm->mmap_lock){++++}-{3:3}, at: vm_mmap_pgoff+0x17c/0x410 mm/util.c:541
1 lock held by syz-executor.1/20741:
 #0: ffff8880b983c1d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:558
3 locks held by syz-executor.5/20737:
 #0: ffff888088f2a610 (&sb->s_type->i_mutex_key#9){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:775 [inline]
 #0: ffff888088f2a610 (&sb->s_type->i_mutex_key#9){+.+.}-{3:3}, at: __sock_release net/socket.c:652 [inline]
 #0: ffff888088f2a610 (&sb->s_type->i_mutex_key#9){+.+.}-{3:3}, at: sock_close+0x9c/0x230 net/socket.c:1397
 #1: ffff88808abb6130 (sk_lock-AF_CAN){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1701 [inline]
 #1: ffff88808abb6130 (sk_lock-AF_CAN){+.+.}-{0:0}, at: bcm_release+0x1e3/0x880 net/can/bcm.c:1527
 #2: ffffffff8cf2cbf8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:293 [inline]
 #2: ffffffff8cf2cbf8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3a3/0x890 kernel/rcu/tree_exp.h:992

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

NMI backtrace for cpu 1
CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.4.0-rc5-syzkaller-00016-ga4d7d7011219 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x498/0x4d0 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x187/0x300 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline]
 watchdog+0xec2/0xf00 kernel/hung_task.c:379
 kthread+0x2b8/0x350 kernel/kthread.c:379
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 20736 Comm: syz-executor.1 Not tainted 6.4.0-rc5-syzkaller-00016-ga4d7d7011219 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023
RIP: 0010:unwind_next_frame+0x7ce/0x2200 arch/x86/kernel/unwind_orc.c:487
Code: 30 00 74 08 48 89 df e8 80 90 a6 00 48 8b 1b 48 85 db 0f 84 6f 0a 00 00 48 83 c3 10 e9 8c 01 00 00 83 fd 04 0f 84 95 01 00 00 <83> fd 05 0f 85 65 09 00 00 48 8b 44 24 50 42 80 3c 30 00 48 8b 54
RSP: 0018:ffffc9000badf0d0 EFLAGS: 00000202
RAX: ffffc9000badf1d5 RBX: ffffc9000badf1f0 RCX: ffffffff8edb8904
RDX: ffffffff8edb8904 RSI: 000000000009e001 RDI: ffffffff8edb8904
RBP: 0000000000000005 R08: 0000000000000001 R09: ffffc9000badf290
R10: ffffc9000badf1f0 R11: dffffc0000000001 R12: ffffc9000badf1d8
R13: 1ffff9200175be34 R14: dffffc0000000000 R15: ffffc9000badf1a0
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9ea4b86058 CR3: 000000002b113000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 arch_stack_walk+0x111/0x140 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0x117/0x1c0 kernel/stacktrace.c:122
 save_stack+0xfa/0x1e0 mm/page_owner.c:128
 __reset_page_owner+0x4f/0x190 mm/page_owner.c:149
 reset_page_owner include/linux/page_owner.h:24 [inline]
 free_pages_prepare mm/page_alloc.c:1302 [inline]
 free_unref_page_prepare+0x903/0xa30 mm/page_alloc.c:2564
 free_unref_page_list+0x596/0x830 mm/page_alloc.c:2705
 release_pages+0x2193/0x2470 mm/swap.c:1042
 __pagevec_release+0x84/0x100 mm/swap.c:1062
 pagevec_release include/linux/pagevec.h:63 [inline]
 folio_batch_release include/linux/pagevec.h:132 [inline]
 shmem_undo_range+0x6af/0x1ba0 mm/shmem.c:954
 shmem_truncate_range mm/shmem.c:1049 [inline]
 shmem_evict_inode+0x258/0x9f0 mm/shmem.c:1164
 evict+0x2a4/0x620 fs/inode.c:665
 __dentry_kill+0x436/0x650 fs/dcache.c:607
 dentry_kill+0xbb/0x290
 dput+0x1f3/0x420 fs/dcache.c:913
 __fput+0x5e4/0x890 fs/file_table.c:329
 task_work_run+0x24a/0x300 kernel/task_work.c:179
 exit_task_work include/linux/task_work.h:38 [inline]
 do_exit+0x68f/0x2290 kernel/exit.c:874
 do_group_exit+0x206/0x2c0 kernel/exit.c:1024
 __do_sys_exit_group kernel/exit.c:1035 [inline]
 __se_sys_exit_group kernel/exit.c:1033 [inline]
 __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1033
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7facafa8c169
Code: Unable to access opcode bytes at 0x7facafa8c13f.
RSP: 002b:00007ffda1064e48 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 000000000000001e RCX: 00007facafa8c169
RDX: 00007facafa3e01b RSI: ffffffffffffffb8 RDI: 0000000000000000
RBP: 0000000000000000 R08: 00007facaf600000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 0000000000000000 R14: 0000000000000001 R15: 00007ffda1064f30
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/07 02:17 upstream a4d7d7011219 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in grab_super
* Struck through repros no longer work on HEAD.