syzbot


INFO: task hung in chmod_common

Status: closed as invalid on 2018/12/31 08:00
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+3bc7280624f4df9fd57e@syzkaller.appspotmail.com
First crash: 2105d, last: 2003d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in chmod_common (4) exfat 2 164d 211d 0/26 auto-obsoleted due to no activity on 2024/02/03 21:30
upstream INFO: task hung in chmod_common (2) fs 2 1184d 1184d 0/26 auto-closed as invalid on 2021/04/20 00:40
android-49 INFO: task hung in chmod_common 9 1906d 1831d 0/3 auto-closed as invalid on 2019/07/28 15:36
upstream INFO: task hung in chmod_common (3) arm 1 434d 434d 0/26 auto-obsoleted due to no activity on 2023/05/10 13:01

Sample crash report:
INFO: task syz-executor3:11166 blocked for more than 140 seconds.
      Not tainted 4.19.0+ #300
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor3   D23336 11166   5432 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2826 [inline]
 __schedule+0x8cf/0x21d0 kernel/sched/core.c:3474
 schedule+0xfe/0x460 kernel/sched/core.c:3518
 __rwsem_down_write_failed_common+0xc9a/0x15e0 kernel/locking/rwsem-xadd.c:577
 rwsem_down_write_failed+0xe/0x10 kernel/locking/rwsem-xadd.c:606
 call_rwsem_down_write_failed+0x17/0x30 arch/x86/lib/rwsem.S:117
 __down_write arch/x86/include/asm/rwsem.h:142 [inline]
 down_write+0xa5/0x130 kernel/locking/rwsem.c:72
 inode_lock include/linux/fs.h:738 [inline]
 chmod_common+0x1b1/0x590 fs/open.c:535
 do_fchmodat+0xc3/0x160 fs/open.c:579
 __do_sys_chmod fs/open.c:597 [inline]
 __se_sys_chmod fs/open.c:595 [inline]
 __x64_sys_chmod+0x5c/0x80 fs/open.c:595
 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x457569
Code: 83 c4 18 c3 e8 d8 64 00 00 48 8b 04 24 48 8b 4c 24 08 48 89 01 e8 d7 2d fc ff e8 22 7a fc ff b8 02 00 00 00 48 8d 0d 2a 60 09 <01> 87 01 8b 05 22 60 09 01 83 f8 01 0f 85 8a 00 00 00 b8 01 00 00
RSP: 002b:00007f65bd1bac78 EFLAGS: 00000246 ORIG_RAX: 000000000000005a
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 0000000000457569
RDX: 0000000000000000 RSI: 00000000ffffff8c RDI: 00000000200006c0
RBP: 000000000072c040 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f65bd1bb6d4
R13: 00000000004bd325 R14: 00000000004cc388 R15: 00000000ffffffff

Showing all locks held in the system:
1 lock held by khungtaskd/978:
 #0: 0000000005bcbe5f (rcu_read_lock){....}, at: debug_show_all_locks+0xd0/0x424 kernel/locking/lockdep.c:4379
1 lock held by rsyslogd/5254:
 #0: 000000009ce9038f (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x1bb/0x200 fs/file.c:766
2 locks held by getty/5343:
 #0: 000000003057b348 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353
 #1: 00000000ca8c1b03 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140
2 locks held by getty/5344:
 #0: 000000004e569156 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353
 #1: 000000009d2fecb7 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140
2 locks held by getty/5345:
 #0: 000000006be7578f (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353
 #1: 00000000f7552461 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140
2 locks held by getty/5346:
 #0: 00000000fce3a94d (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353
 #1: 00000000b5e85d0f (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140
2 locks held by getty/5347:
 #0: 000000000a17480a (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353
 #1: 00000000019aebb1 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140
2 locks held by getty/5348:
 #0: 00000000df98e046 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353
 #1: 00000000350d3059 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140
2 locks held by getty/5349:
 #0: 00000000dd02ac37 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353
 #1: 0000000079065352 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140
2 locks held by syz-executor3/11154:
 #0: 00000000e54a35a3 (sb_writers#14){.+.+}, at: sb_start_write include/linux/fs.h:1566 [inline]
 #0: 00000000e54a35a3 (sb_writers#14){.+.+}, at: mnt_want_write+0x3f/0xc0 fs/namespace.c:360
 #1: 000000007717bddb (&sb->s_type->i_mutex_key#22){+.+.}, at: inode_lock include/linux/fs.h:738 [inline]
 #1: 000000007717bddb (&sb->s_type->i_mutex_key#22){+.+.}, at: chmod_common+0x1b1/0x590 fs/open.c:535
2 locks held by syz-executor3/11166:
 #0: 00000000e54a35a3 (sb_writers#14){.+.+}, at: sb_start_write include/linux/fs.h:1566 [inline]
 #0: 00000000e54a35a3 (sb_writers#14){.+.+}, at: mnt_want_write+0x3f/0xc0 fs/namespace.c:360
 #1: 000000007717bddb (&sb->s_type->i_mutex_key#22){+.+.}, at: inode_lock include/linux/fs.h:738 [inline]
 #1: 000000007717bddb (&sb->s_type->i_mutex_key#22){+.+.}, at: chmod_common+0x1b1/0x590 fs/open.c:535

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

NMI backtrace for cpu 1
CPU: 1 PID: 978 Comm: khungtaskd Not tainted 4.19.0+ #300
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+0x244/0x39d lib/dump_stack.c:113
 nmi_cpu_backtrace.cold.1+0x5c/0xa1 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x1b3/0x1ed lib/nmi_backtrace.c:62
 arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38
 trigger_all_cpu_backtrace include/linux/nmi.h:144 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:204 [inline]
 watchdog+0xb3e/0x1050 kernel/hung_task.c:265
 kthread+0x35a/0x420 kernel/kthread.c:246
 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:350
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0 skipped: idling at native_safe_halt+0x6/0x10 arch/x86/include/asm/irqflags.h:57

Crashes (21):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/10/24 11:45 upstream 44786880df19 a8292de9 .config console log report ci-upstream-kasan-gce-root
2018/10/20 21:29 upstream 270b77a0f30e ecb386fe .config console log report ci-upstream-kasan-gce-root
2018/10/14 17:32 upstream 3a27203102eb caf12900 .config console log report ci-upstream-kasan-gce-smack-root
2018/10/08 09:36 upstream 0238df646e62 8b311eaf .config console log report ci-upstream-kasan-gce-smack-root
2018/09/30 13:50 upstream 291d0e5d81e1 41e4b329 .config console log report ci-upstream-kasan-gce-root
2018/09/23 03:07 upstream 10dc890d4228 37079712 .config console log report ci-upstream-kasan-gce-selinux-root
2018/09/22 13:39 upstream 10dc890d4228 37079712 .config console log report ci-upstream-kasan-gce-root
2018/08/29 02:03 upstream 3f16503b7d22 b771b17e .config console log report ci-upstream-kasan-gce-root
2018/08/28 23:26 upstream 050cdc6c9501 b771b17e .config console log report ci-upstream-kasan-gce-root
2018/08/19 06:01 upstream a18d783fedfe de20bcbb .config console log report ci-upstream-kasan-gce-root
2018/08/12 21:34 upstream d6dd6431591b 7a88b141 .config console log report ci-upstream-kasan-gce-root
2018/08/09 10:15 upstream fedb8da96355 2eeda842 .config console log report ci-upstream-kasan-gce-root
2018/07/30 04:41 upstream 3cfb6772d4cf 1a381291 .config console log report ci-upstream-kasan-gce
2018/07/14 20:40 upstream 2db39a2f491a 92a49505 .config console log report ci-upstream-kasan-gce-root
2018/07/14 14:51 upstream 2db39a2f491a 92a49505 .config console log report ci-upstream-kasan-gce-root
2018/08/16 05:08 linux-next e5a7da82ad77 9ccc1d45 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/04 00:46 linux-next 116b181bb646 df7f6947 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/02 09:41 linux-next d9bd94c0bcaa 0a7cf4ec .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/16 11:30 linux-next 1d4eb636f0ab 92a49505 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/15 01:10 linux-next 483d835c8189 92a49505 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/13 18:13 linux-next 483d835c8189 92a49505 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.