INFO: task hung in fuse_flush (2)

8 views
Skip to first unread message

syzbot

unread,
Sep 26, 2021, 12:40:19 AM9/26/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 2950c9c5e0df Linux 4.19.207
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=151d6f5f300000
kernel config: https://syzkaller.appspot.com/x/.config?x=8273060cfa230984
dashboard link: https://syzkaller.appspot.com/bug?extid=1260eecded42ddd41d2a
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+1260ee...@syzkaller.appspotmail.com

ieee802154 phy0 wpan0: encryption failed: -22
ieee802154 phy1 wpan1: encryption failed: -22
Bluetooth: hci2: command 0x0406 tx timeout
ieee802154 phy0 wpan0: encryption failed: -22
ieee802154 phy1 wpan1: encryption failed: -22
INFO: task syz-executor.5:31016 blocked for more than 140 seconds.
Not tainted 4.19.207-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.5 D28648 31016 8144 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
inode_lock include/linux/fs.h:748 [inline]
fuse_flush+0x1fd/0x5b0 fs/fuse/file.c:421
filp_close+0xb4/0x160 fs/open.c:1162
__close_fd+0x133/0x200 fs/file.c:636
__do_sys_close fs/open.c:1181 [inline]
__se_sys_close fs/open.c:1179 [inline]
__x64_sys_close+0x69/0x100 fs/open.c:1179
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f07a726a51b
Code: Bad RIP value.
RSP: 002b:00007ffe8942f990 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f07a726a51b
RDX: 0000001b30b28064 RSI: ffffffff83772911 RDI: 0000000000000004
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000001b30b278d0
R10: 0000000000000948 R11: 0000000000000293 R12: 00007f07a73bcb60
R13: 00007f07a73bcb60 R14: 00007f07a73bbf60 R15: 00000000000f7911
INFO: task syz-executor.5:31026 blocked for more than 140 seconds.
Not tainted 4.19.207-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.5 D28800 31026 8144 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
fuse_wait_on_page_writeback fs/fuse/file.c:383 [inline]
fuse_wait_on_page_writeback.isra.0+0x11b/0x170 fs/fuse/file.c:379
fuse_launder_page fs/fuse/file.c:2033 [inline]
fuse_launder_page+0xb6/0xe0 fs/fuse/file.c:2026
do_launder_page mm/truncate.c:655 [inline]
invalidate_inode_pages2_range+0x795/0x1110 mm/truncate.c:725
fuse_finish_open+0x2e2/0x590 fs/fuse/file.c:182
fuse_open_common+0x254/0x2c0 fs/fuse/file.c:222
do_dentry_open+0x4aa/0x1160 fs/open.c:796
do_last fs/namei.c:3421 [inline]
path_openat+0x793/0x2df0 fs/namei.c:3537
do_filp_open+0x18c/0x3f0 fs/namei.c:3567
do_sys_open+0x3b3/0x520 fs/open.c:1085
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f07a72b7709
Code: Bad RIP value.
RSP: 002b:00007f07a480d188 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007f07a73bc020 RCX: 00007f07a72b7709
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000100
RBP: 00007f07a7311cb4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe8942f92f R14: 00007f07a480d300 R15: 0000000000022000

Showing all locks held in the system:
1 lock held by khungtaskd/1571:
#0: 00000000fc65ef2b (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441
1 lock held by systemd-journal/4692:
1 lock held by in:imklog/7786:
#0: 000000003ee33265 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767
1 lock held by syz-executor.5/31016:
#0: 00000000cf7deaaf (&sb->s_type->i_mutex_key#31){+.+.}, at: inode_lock include/linux/fs.h:748 [inline]
#0: 00000000cf7deaaf (&sb->s_type->i_mutex_key#31){+.+.}, at: fuse_flush+0x1fd/0x5b0 fs/fuse/file.c:421
2 locks held by syz-executor.5/31026:
#0: 00000000b706bf09 (sb_writers#24){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline]
#0: 00000000b706bf09 (sb_writers#24){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360
#1: 00000000cf7deaaf (&sb->s_type->i_mutex_key#31){+.+.}, at: inode_lock include/linux/fs.h:748 [inline]
#1: 00000000cf7deaaf (&sb->s_type->i_mutex_key#31){+.+.}, at: fuse_open_common+0x1bc/0x2c0 fs/fuse/file.c:215

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

NMI backtrace for cpu 0
CPU: 0 PID: 1571 Comm: khungtaskd Not tainted 4.19.207-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
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 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 4692 Comm: systemd-journal Not tainted 4.19.207-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__lock_is_held+0x36/0x160 kernel/locking/lockdep.c:3721
Code: 65 4c 8b 3c 25 c0 df 01 00 41 56 49 89 fe 49 8d bf 80 08 00 00 41 55 48 89 fa 41 54 48 c1 ea 03 55 53 48 83 ec 08 0f b6 04 02 <89> 74 24 04 84 c0 74 08 3c 03 0f 8e ec 00 00 00 41 8b 87 80 08 00
RSP: 0018:ffff8880a0fefaa0 EFLAGS: 00000086
RAX: 0000000000000000 RBX: 0000000000000282 RCX: 0000000000000001
RDX: 1ffff110141fcdc0 RSI: 00000000ffffffff RDI: ffff8880a0fe6e00
RBP: ffffffff89f85f60 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff8880a0fe6580
R13: 000000000002b0c0 R14: ffffffff89f85f60 R15: ffff8880a0fe6580
FS: 00007fdfc9dbd8c0(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fdfc7400018 CR3: 00000000a10c6000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
lock_is_held_type+0x10d/0x210 kernel/locking/lockdep.c:3946
lock_is_held include/linux/lockdep.h:344 [inline]
schedule_debug kernel/sched/core.c:3337 [inline]
__schedule+0xf7f/0x2040 kernel/sched/core.c:3439
schedule+0x8d/0x1b0 kernel/sched/core.c:3561
schedule_hrtimeout_range_clock+0x33e/0x390 kernel/time/hrtimer.c:2002
ep_poll+0xabb/0xcb0 fs/eventpoll.c:1817
do_epoll_wait+0x1aa/0x200 fs/eventpoll.c:2190
__do_sys_epoll_wait fs/eventpoll.c:2200 [inline]
__se_sys_epoll_wait fs/eventpoll.c:2197 [inline]
__x64_sys_epoll_wait+0x93/0xf0 fs/eventpoll.c:2197
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fdfc90862e3
Code: 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 83 3d 29 54 2b 00 00 75 13 49 89 ca b8 e8 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 34 c3 48 83 ec 08 e8 0b c2 00 00 48 89 04 24
RSP: 002b:00007fff83a83cb8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e8
RAX: ffffffffffffffda RBX: 0000555907e4f1e0 RCX: 00007fdfc90862e3
RDX: 0000000000000013 RSI: 00007fff83a83cc0 RDI: 0000000000000008
RBP: 00007fff83a83eb0 R08: 00007fff83b19000 R09: 00000137a1207cb1
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007fff83a83cc0
R13: 0000000000000001 R14: ffffffffffffffff R15: 0005ccde9099f601
----------------
Code disassembly (best guess):
0: 65 4c 8b 3c 25 c0 df mov %gs:0x1dfc0,%r15
7: 01 00
9: 41 56 push %r14
b: 49 89 fe mov %rdi,%r14
e: 49 8d bf 80 08 00 00 lea 0x880(%r15),%rdi
15: 41 55 push %r13
17: 48 89 fa mov %rdi,%rdx
1a: 41 54 push %r12
1c: 48 c1 ea 03 shr $0x3,%rdx
20: 55 push %rbp
21: 53 push %rbx
22: 48 83 ec 08 sub $0x8,%rsp
26: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax
* 2a: 89 74 24 04 mov %esi,0x4(%rsp) <-- trapping instruction
2e: 84 c0 test %al,%al
30: 74 08 je 0x3a
32: 3c 03 cmp $0x3,%al
34: 0f 8e ec 00 00 00 jle 0x126
3a: 41 rex.B
3b: 8b .byte 0x8b
3c: 87 .byte 0x87
3d: 80 08 00 orb $0x0,(%rax)


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Jan 23, 2022, 11:40:12 PM1/23/22
to syzkaller...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages