syzbot


INFO: task hung in chmod_common (3)

Status: auto-obsoleted due to no activity on 2023/05/10 13:01
Subsystems: arm
[Documentation on labels]
First crash: 447d, last: 447d
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 177d 224d 0/26 auto-obsoleted due to no activity on 2024/02/03 21:30
upstream INFO: task hung in chmod_common (2) fs 2 1197d 1197d 0/26 auto-closed as invalid on 2021/04/20 00:40
android-49 INFO: task hung in chmod_common 9 1918d 1844d 0/3 auto-closed as invalid on 2019/07/28 15:36
upstream INFO: task hung in chmod_common fs 21 2016d 2117d 0/26 closed as invalid on 2018/12/31 08:00

Sample crash report:
INFO: task syz-executor.4:3327 blocked for more than 143 seconds.
      Not tainted 6.2.0-rc7-syzkaller-17891-geaed33698e35 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4  state:D stack:0     pid:3327  ppid:4461   flags:0x00000009
Call trace:
 __switch_to+0x210/0x424 arch/arm64/kernel/process.c:556
 context_switch kernel/sched/core.c:5293 [inline]
 __schedule+0x6a4/0xb34 kernel/sched/core.c:6606
 schedule+0x64/0xa4 kernel/sched/core.c:6682
 rwsem_down_write_slowpath+0x454/0x8b0 kernel/locking/rwsem.c:1190
 __down_write_common kernel/locking/rwsem.c:1305 [inline]
 __down_write kernel/locking/rwsem.c:1314 [inline]
 down_write+0x84/0x88 kernel/locking/rwsem.c:1563
 inode_lock include/linux/fs.h:756 [inline]
 chmod_common+0x8c/0x1c0 fs/open.c:600
 vfs_fchmod fs/open.c:622 [inline]
 __do_sys_fchmod fs/open.c:631 [inline]
 __se_sys_fchmod fs/open.c:625 [inline]
 __arm64_sys_fchmod+0x84/0xd4 fs/open.c:625
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x64/0x178 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0xbc/0x180 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x48/0x110 arch/arm64/kernel/syscall.c:193
 el0_svc+0x58/0x14c arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/11:
 #0: ffff80000d4855c8 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x3c/0x448 kernel/rcu/tasks.h:507
1 lock held by rcu_tasks_trace/12:
 #0: ffff80000d485c18 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x3c/0x448 kernel/rcu/tasks.h:507
1 lock held by khungtaskd/27:
 #0: ffff80000d4854a0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x4/0x48 include/linux/rcupdate.h:324
2 locks held by getty/4105:
 #0: ffff0000c6774098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x28/0x58 drivers/tty/tty_ldisc.c:244
 #1: ffff80000f6962f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x28c/0xbc4 drivers/tty/n_tty.c:2177
4 locks held by kworker/u4:3/25879:
 #0: ffff0000c0d40138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x274/0x9d0 kernel/workqueue.c:2262
 #1: ffff80000ffabd80 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x2a0/0x9d0 kernel/workqueue.c:2264
 #2: ffff00011c08e0e0 (&type->s_umount_key#96){++++}-{3:3}, at: trylock_super+0x28/0xa8 fs/super.c:415
 #3: ffff00011a5a52a0 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_down_write fs/f2fs/f2fs.h:2213 [inline]
 #3: ffff00011a5a52a0 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x21c/0x2f8 fs/f2fs/segment.c:421
4 locks held by syz-executor.4/3313:
2 locks held by syz-executor.4/3327:
 #0: ffff00011c08e460 (sb_writers#27){.+.+}-{0:0}, at: mnt_want_write+0x20/0x64 fs/namespace.c:508
 #1: ffff000117fa9230 (&sb->s_type->i_mutex_key#30){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline]
 #1: ffff000117fa9230 (&sb->s_type->i_mutex_key#30){+.+.}-{3:3}, at: chmod_common+0x8c/0x1c0 fs/open.c:600
1 lock held by udevd/3370:
2 locks held by kworker/u4:0/7143:
2 locks held by syz-executor.4/8057:
1 lock held by syz-executor.3/8066:
 #0: ffff0001349c90e0 (&type->s_umount_key#80/1){+.+.}-{3:3}, at: alloc_super+0xf8/0x430 fs/super.c:228
2 locks held by syz-executor.5/8076:

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


Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/09 12:55 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci eaed33698e35 14a312c8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in chmod_common
* Struck through repros no longer work on HEAD.