syzbot


INFO: task hung in chown_common

Status: auto-closed as invalid on 2022/03/26 21:13
Reported-by: syzbot+64e56b82a81d19c63bfc@syzkaller.appspotmail.com
First crash: 919d, last: 881d
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: task hung in chown_common (2) 1 476d 476d 0/1 upstream: reported on 2023/01/05 10:16
upstream INFO: task hung in chown_common (3) fuse 11 1161d 1212d 0/26 auto-closed as invalid on 2021/05/20 23:06
upstream INFO: task hung in chown_common fs 35 2008d 2116d 0/26 closed as invalid on 2018/12/31 08:00
android-414 INFO: task hung in chown_common 1 1821d 1821d 0/1 auto-closed as invalid on 2019/10/25 08:39
upstream INFO: task hung in chown_common (5) fuse 1 517d 517d 0/26 auto-obsoleted due to no activity on 2023/04/09 00:18
android-49 INFO: task hung in chown_common 10 2070d 2116d 0/3 auto-closed as invalid on 2019/02/22 14:39
upstream INFO: task hung in chown_common (2) fs 1 1460d 1460d 0/26 auto-closed as invalid on 2020/07/25 16:03
upstream INFO: task hung in chown_common (4) v9fs C error inconclusive 7 653d 780d 0/26 closed as invalid on 2022/10/12 18:37
upstream INFO: task can't die in iget5_locked fuse 7 1156d 1180d 20/26 fixed on 2021/04/09 19:46

Sample crash report:
ieee802154 phy1 wpan1: encryption failed: -22
ieee802154 phy0 wpan0: encryption failed: -22
ieee802154 phy1 wpan1: encryption failed: -22
ieee802154 phy0 wpan0: encryption failed: -22
ieee802154 phy1 wpan1: encryption failed: -22
INFO: task syz-executor.1:30239 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.1  D29952 30239   8134 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]
 chown_common+0x2d0/0x550 fs/open.c:648
 do_fchownat+0x126/0x1e0 fs/open.c:681
 __do_sys_lchown fs/open.c:706 [inline]
 __se_sys_lchown fs/open.c:704 [inline]
 __x64_sys_lchown+0x7a/0xc0 fs/open.c:704
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f5cab8ccae9
Code: Bad RIP value.
RSP: 002b:00007f5ca8e21188 EFLAGS: 00000246 ORIG_RAX: 000000000000005e
RAX: ffffffffffffffda RBX: 00007f5cab9e0020 RCX: 00007f5cab8ccae9
RDX: 0000000000000000 RSI: ffffffffffffffff RDI: 0000000020000140
RBP: 00007f5cab926f6d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc81624bff R14: 00007f5ca8e21300 R15: 0000000000022000
INFO: task syz-executor.1:30241 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.1  D30064 30241   8134 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]
 chown_common+0x2d0/0x550 fs/open.c:648
 do_fchownat+0x126/0x1e0 fs/open.c:681
 __do_sys_lchown fs/open.c:706 [inline]
 __se_sys_lchown fs/open.c:704 [inline]
 __x64_sys_lchown+0x7a/0xc0 fs/open.c:704
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f5cab8ccae9
Code: Bad RIP value.
RSP: 002b:00007f5ca8e00188 EFLAGS: 00000246 ORIG_RAX: 000000000000005e
RAX: ffffffffffffffda RBX: 00007f5cab9e00e0 RCX: 00007f5cab8ccae9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020002140
RBP: 00007f5cab926f6d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc81624bff R14: 00007f5ca8e00300 R15: 0000000000022000

Showing all locks held in the system:
1 lock held by khungtaskd/1570:
 #0: 00000000345833e0 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441
1 lock held by in:imklog/7794:
 #0: 00000000b7c8c059 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767
2 locks held by syz-executor.1/30167:
 #0: 000000003f50cee3 (sb_writers#25){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline]
 #0: 000000003f50cee3 (sb_writers#25){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360
 #1: 0000000008bca2bc (&sb->s_type->i_mutex_key#24){++++}, at: inode_lock include/linux/fs.h:748 [inline]
 #1: 0000000008bca2bc (&sb->s_type->i_mutex_key#24){++++}, at: chown_common+0x2d0/0x550 fs/open.c:648
2 locks held by syz-executor.1/30239:
 #0: 000000003f50cee3 (sb_writers#25){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline]
 #0: 000000003f50cee3 (sb_writers#25){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360
 #1: 0000000008bca2bc (&sb->s_type->i_mutex_key#24){++++}, at: inode_lock include/linux/fs.h:748 [inline]
 #1: 0000000008bca2bc (&sb->s_type->i_mutex_key#24){++++}, at: chown_common+0x2d0/0x550 fs/open.c:648
2 locks held by syz-executor.1/30241:
 #0: 000000003f50cee3 (sb_writers#25){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline]
 #0: 000000003f50cee3 (sb_writers#25){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360
 #1: 0000000008bca2bc (&sb->s_type->i_mutex_key#24){++++}, at: inode_lock include/linux/fs.h:748 [inline]
 #1: 0000000008bca2bc (&sb->s_type->i_mutex_key#24){++++}, at: chown_common+0x2d0/0x550 fs/open.c:648

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

NMI backtrace for cpu 0
CPU: 0 PID: 1570 Comm: khungtaskd Not tainted 4.19.211-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: 4688 Comm: systemd-journal Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__sanitizer_cov_trace_switch+0x35/0x80 kernel/kcov.c:224
Code: 53 48 8b 46 08 48 83 f8 20 74 5c 77 3f 48 83 f8 08 74 4c 48 83 f8 10 75 2c 41 bc 03 00 00 00 4c 8b 6d 00 31 db 4d 85 ed 74 1b <48> 8b 74 dd 10 4c 89 e7 48 83 c3 01 48 8b 4c 24 20 e8 55 fe ff ff
RSP: 0018:ffff8880a128f9c0 EFLAGS: 00000002
RAX: 0000000000000000 RBX: 0000000000000004 RCX: ffffffff87f0addd
RDX: 0000000000000008 RSI: ffff8880a1280480 RDI: 0000000000000001
RBP: ffffffff89716040 R08: 0000000000000008 R09: 0000000000000003
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001
R13: 0000000000000008 R14: 0000000000000008 R15: ffff8880a128fae8
FS:  00007fce332c08c0(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fce308d3000 CR3: 00000000a135c000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 vsnprintf+0x17d/0x14f0 lib/vsprintf.c:2275
 vscnprintf lib/vsprintf.c:2422 [inline]
 scnprintf+0xbb/0x140 lib/vsprintf.c:2476
 msg_print_ext_header kernel/printk/printk.c:713 [inline]
 devkmsg_read+0x4b6/0xae0 kernel/printk/printk.c:879
 __vfs_read+0xf7/0x750 fs/read_write.c:416
 vfs_read+0x194/0x3c0 fs/read_write.c:452
 ksys_read+0x12b/0x2a0 fs/read_write.c:579
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fce3284f210
Code: 73 01 c3 48 8b 0d 98 7d 20 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 83 3d b9 c1 20 00 00 75 10 b8 00 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 4e fc ff ff 48 89 04 24
RSP: 002b:00007ffc46f33318 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007ffc46f35d90 RCX: 00007fce3284f210
RDX: 0000000000002000 RSI: 00007ffc46f33b90 RDI: 0000000000000009
RBP: 0000000000000000 R08: 0000000000000008 R09: 00005653c081b7b8
R10: 00005653c081b780 R11: 0000000000000246 R12: 00007ffc46f33b90
R13: 00007ffc46f35ce8 R14: 00005653bf97e958 R15: 0005d1b78cc7193f
----------------
Code disassembly (best guess):
   0:	53                   	push   %rbx
   1:	48 8b 46 08          	mov    0x8(%rsi),%rax
   5:	48 83 f8 20          	cmp    $0x20,%rax
   9:	74 5c                	je     0x67
   b:	77 3f                	ja     0x4c
   d:	48 83 f8 08          	cmp    $0x8,%rax
  11:	74 4c                	je     0x5f
  13:	48 83 f8 10          	cmp    $0x10,%rax
  17:	75 2c                	jne    0x45
  19:	41 bc 03 00 00 00    	mov    $0x3,%r12d
  1f:	4c 8b 6d 00          	mov    0x0(%rbp),%r13
  23:	31 db                	xor    %ebx,%ebx
  25:	4d 85 ed             	test   %r13,%r13
  28:	74 1b                	je     0x45
* 2a:	48 8b 74 dd 10       	mov    0x10(%rbp,%rbx,8),%rsi <-- trapping instruction
  2f:	4c 89 e7             	mov    %r12,%rdi
  32:	48 83 c3 01          	add    $0x1,%rbx
  36:	48 8b 4c 24 20       	mov    0x20(%rsp),%rcx
  3b:	e8 55 fe ff ff       	callq  0xfffffe95

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/11/26 21:12 linux-4.19.y 3f8a27f9e27b 63eeac02 .config console log report info ci2-linux-4-19 INFO: task hung in chown_common
2021/10/20 02:52 linux-4.19.y 3f8a27f9e27b 466b7db1 .config console log report info ci2-linux-4-19 INFO: task hung in chown_common
* Struck through repros no longer work on HEAD.