syzbot


INFO: task hung in fuse_reverse_inval_entry (2)

Status: auto-closed as invalid on 2021/04/15 03:59
Subsystems: fuse
[Documentation on labels]
First crash: 1213d, last: 1194d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: task hung in fuse_reverse_inval_entry C error 2 859d 960d 0/1 upstream: reported C repro on 2021/09/05 19:48
linux-4.14 INFO: task hung in fuse_reverse_inval_entry C 1 428d 851d 0/1 upstream: reported C repro on 2021/12/23 18:36
upstream INFO: task hung in fuse_reverse_inval_entry fuse C done 23 2088d 2101d 13/26 fixed on 2019/11/11 16:48
upstream INFO: task hung in fuse_reverse_inval_entry (4) fuse 1 324d 324d 0/26 auto-obsoleted due to no activity on 2023/09/01 17:45
android-49 INFO: task hung in fuse_reverse_inval_entry C 3 2091d 1836d 0/3 public: reported C repro on 2019/04/14 08:51
upstream INFO: task hung in fuse_reverse_inval_entry (5) fuse 1 230d 230d 0/26 auto-obsoleted due to no activity on 2023/12/04 21:33
upstream INFO: task hung in fuse_reverse_inval_entry (3) fuse 1 500d 500d 0/26 auto-obsoleted due to no activity on 2023/04/10 13:00

Sample crash report:
INFO: task syz-executor.0:2244 blocked for more than 143 seconds.
      Not tainted 5.10.0-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:28776 pid: 2244 ppid:  8499 flags:0x00000004
Call Trace:
 context_switch kernel/sched/core.c:4327 [inline]
 __schedule+0x8eb/0x21b0 kernel/sched/core.c:5078
 schedule+0xcf/0x270 kernel/sched/core.c:5157
 rwsem_down_write_slowpath+0x809/0x1220 kernel/locking/rwsem.c:1106
 __down_write_common kernel/locking/rwsem.c:1261 [inline]
 __down_write_common kernel/locking/rwsem.c:1258 [inline]
 __down_write kernel/locking/rwsem.c:1270 [inline]
 down_write+0x132/0x150 kernel/locking/rwsem.c:1407
 inode_lock include/linux/fs.h:773 [inline]
 fuse_reverse_inval_entry+0x4c/0x530 fs/fuse/dir.c:1117
 fuse_notify_delete fs/fuse/dev.c:1535 [inline]
 fuse_notify fs/fuse/dev.c:1784 [inline]
 fuse_dev_do_write+0x258b/0x2c10 fs/fuse/dev.c:1859
 fuse_dev_write+0x14d/0x1e0 fs/fuse/dev.c:1943
 call_write_iter include/linux/fs.h:1901 [inline]
 new_sync_write+0x426/0x650 fs/read_write.c:518
 vfs_write+0x7dd/0xa80 fs/read_write.c:605
 ksys_write+0x12d/0x250 fs/read_write.c:658
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45e229
RSP: 002b:00007f548efa2c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045e229
RDX: 000000000000002e RSI: 0000000020000100 RDI: 0000000000000003
RBP: 000000000119c068 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119c034
R13: 00007fff106c209f R14: 00007f548efa39c0 R15: 000000000119c034
INFO: task syz-executor.0:2246 blocked for more than 143 seconds.
      Not tainted 5.10.0-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:27200 pid: 2246 ppid:  8499 flags:0x00004004
Call Trace:
 context_switch kernel/sched/core.c:4327 [inline]
 __schedule+0x8eb/0x21b0 kernel/sched/core.c:5078
 schedule+0xcf/0x270 kernel/sched/core.c:5157
 rwsem_down_write_slowpath+0x809/0x1220 kernel/locking/rwsem.c:1106
 __down_write_common kernel/locking/rwsem.c:1261 [inline]
 __down_write_common kernel/locking/rwsem.c:1258 [inline]
 __down_write kernel/locking/rwsem.c:1270 [inline]
 down_write+0x132/0x150 kernel/locking/rwsem.c:1407
 inode_lock include/linux/fs.h:773 [inline]
 lock_mount+0x8a/0x2e0 fs/namespace.c:2195
 do_new_mount_fc fs/namespace.c:2821 [inline]
 do_new_mount fs/namespace.c:2880 [inline]
 path_mount+0x1787/0x20c0 fs/namespace.c:3208
 do_mount fs/namespace.c:3221 [inline]
 __do_sys_mount fs/namespace.c:3429 [inline]
 __se_sys_mount fs/namespace.c:3406 [inline]
 __x64_sys_mount+0x27f/0x300 fs/namespace.c:3406
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45e229
RSP: 002b:00007f548ef81c68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 000000000045e229
RDX: 0000000020002100 RSI: 00000000200020c0 RDI: 0000000000000000
RBP: 000000000119c120 R08: 0000000020002140 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119c0dc
R13: 00007fff106c209f R14: 00007f548ef829c0 R15: 000000000119c0dc

Showing all locks held in the system:
1 lock held by ksoftirqd/0/10:
 #0: ffff8880b9c34d18 (&rq->lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1318 [inline]
 #0: ffff8880b9c34d18 (&rq->lock){-.-.}-{2:2}, at: __schedule+0x235/0x21b0 kernel/sched/core.c:4995
1 lock held by khungtaskd/1647:
 #0: ffffffff8b793de0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x28c kernel/locking/lockdep.c:6254
1 lock held by in:imklog/8377:
 #0: ffff888012855df0 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:949
2 locks held by syz-executor.0/2240:
2 locks held by syz-executor.0/2244:
 #0: ffff8880220e3b38 (&fc->killsb){++++}-{3:3}, at: fuse_notify_delete fs/fuse/dev.c:1534 [inline]
 #0: ffff8880220e3b38 (&fc->killsb){++++}-{3:3}, at: fuse_notify fs/fuse/dev.c:1784 [inline]
 #0: ffff8880220e3b38 (&fc->killsb){++++}-{3:3}, at: fuse_dev_do_write+0x256b/0x2c10 fs/fuse/dev.c:1859
 #1: ffff88807cd8a210 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:773 [inline]
 #1: ffff88807cd8a210 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: fuse_reverse_inval_entry+0x4c/0x530 fs/fuse/dir.c:1117
1 lock held by syz-executor.0/2246:
 #0: ffff88807cd8a210 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:773 [inline]
 #0: ffff88807cd8a210 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: lock_mount+0x8a/0x2e0 fs/namespace.c:2195

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

NMI backtrace for cpu 1
CPU: 1 PID: 1647 Comm: khungtaskd Not tainted 5.10.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:79 [inline]
 dump_stack+0x107/0x163 lib/dump_stack.c:120
 nmi_cpu_backtrace.cold+0x3c/0xef lib/nmi_backtrace.c:105
 nmi_trigger_cpumask_backtrace+0x1b3/0x230 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:209 [inline]
 watchdog+0xe36/0x10b0 kernel/hung_task.c:294
 kthread+0x3b1/0x4a0 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 2240 Comm: syz-executor.0 Not tainted 5.10.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:lockdep_recursion_finish kernel/locking/lockdep.c:437 [inline]
RIP: 0010:lock_is_held_type+0xb9/0x100 kernel/locking/lockdep.c:5477
Code: 0f b6 47 22 45 31 e4 83 e0 03 44 39 f0 41 0f 94 c4 48 c7 c7 40 b8 6b 89 e8 44 0b 00 00 b8 ff ff ff ff 65 0f c1 05 e7 37 ef 76 <83> f8 01 75 23 ff 34 24 9d 48 83 c4 08 44 89 e0 5b 5d 41 5c 41 5d
RSP: 0018:ffffc9001806f388 EFLAGS: 00000057
RAX: 0000000000000001 RBX: 0000000000000004 RCX: 1ffffffff1af80eb
RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000000
RBP: ffffffff8b793d20 R08: 0000000000000000 R09: ffffffff8d7bd58f
R10: fffffbfff1af7ab1 R11: 0000000000000001 R12: 0000000000000000
R13: ffff888034622e88 R14: 00000000ffffffff R15: ffff888034622f00
FS:  00007f548efc4700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f32fc261010 CR3: 00000000127a0000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 lock_is_held include/linux/lockdep.h:271 [inline]
 rcu_read_lock_sched_held+0x3a/0x70 kernel/rcu/update.c:123
 trace_lock_release include/trace/events/lock.h:58 [inline]
 lock_release+0x5c3/0x710 kernel/locking/lockdep.c:5448
 __raw_spin_unlock include/linux/spinlock_api_smp.h:150 [inline]
 _raw_spin_unlock+0x12/0x40 kernel/locking/spinlock.c:183
 spin_unlock include/linux/spinlock.h:394 [inline]
 find_inode+0x1b8/0x220 fs/inode.c:836
 ilookup5_nowait fs/inode.c:1334 [inline]
 ilookup5 fs/inode.c:1363 [inline]
 iget5_locked+0xbd/0x2d0 fs/inode.c:1144
 fuse_iget+0x271/0x610 fs/fuse/inode.c:342
 fuse_lookup_name+0x447/0x630 fs/fuse/dir.c:439
 fuse_lookup.part.0+0xdf/0x390 fs/fuse/dir.c:469
 fuse_lookup fs/fuse/dir.c:465 [inline]
 fuse_atomic_open+0x2de/0x440 fs/fuse/dir.c:621
 atomic_open fs/namei.c:2972 [inline]
 lookup_open.isra.0+0xc3d/0x13d0 fs/namei.c:3078
 open_last_lookups fs/namei.c:3180 [inline]
 path_openat+0x9af/0x27a0 fs/namei.c:3368
 do_filp_open+0x17e/0x3c0 fs/namei.c:3398
 do_sys_openat2+0x16d/0x420 fs/open.c:1172
 do_sys_open fs/open.c:1188 [inline]
 __do_sys_openat fs/open.c:1204 [inline]
 __se_sys_openat fs/open.c:1199 [inline]
 __x64_sys_openat+0x13f/0x1f0 fs/open.c:1199
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45e229
Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f548efc3c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 000000000045e229
RDX: 0000000000000000 RSI: 0000000020002000 RDI: ffffffffffffff9c
RBP: 000000000119bfc8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119bf8c
R13: 00007fff106c209f R14: 00007f548efc49c0 R15: 000000000119bf8c

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/12/27 12:29 upstream f838f8d2b694 821e0b09 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/12/27 12:29 upstream f838f8d2b694 821e0b09 .config console log report info ci-upstream-kasan-gce
2021/01/15 03:53 upstream 146620506274 65a7a854 .config console log report info ci-upstream-kasan-gce-386
* Struck through repros no longer work on HEAD.