bisecting fixing commit since 3dd0130f2430decf0cb001b452824515436986d2 building syzkaller on 4a77ae0bdc5cd75ebe88ce7c896aae6bbf457a29 testing commit 3dd0130f2430decf0cb001b452824515436986d2 with gcc (GCC) 8.4.1 20210217 kernel signature: 3558e384fc72b5056753c2b3f997162e87ca07c3602cb5e17feff1b3d3555dd7 all runs: crashed: INFO: task hung in sync_inodes_sb testing current HEAD 3dbdb38e286903ec220aaf1fb29a8d94297da246 testing commit 3dbdb38e286903ec220aaf1fb29a8d94297da246 with gcc (GCC) 10.2.1 20210217 kernel signature: 6af03db47687ed52de3b52c16fef3db11a584bc7df9ebe800aa1777426eaaf06 all runs: crashed: INFO: task hung in sync_inodes_sb revisions tested: 2, total time: 27m51.043751982s (build: 13m11.577984855s, test: 13m59.712695221s) the crash still happens on HEAD commit msg: Merge branch 'for-5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup crash: INFO: task hung in sync_inodes_sb INFO: task syz-executor.2:6142 blocked for more than 143 seconds. Not tainted 5.13.0-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:24056 pid: 6142 ppid: 1 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:4683 [inline] __schedule+0x917/0x2400 kernel/sched/core.c:5940 schedule+0xd3/0x270 kernel/sched/core.c:6019 wb_wait_for_completion+0x15a/0x200 fs/fs-writeback.c:190 sync_inodes_sb+0x18b/0x8a0 fs/fs-writeback.c:2695 __sync_filesystem fs/sync.c:34 [inline] sync_filesystem fs/sync.c:67 [inline] sync_filesystem+0x10b/0x1f0 fs/sync.c:48 generic_shutdown_super+0x64/0x330 fs/super.c:448 kill_block_super+0x90/0xd0 fs/super.c:1395 deactivate_locked_super+0x7b/0x130 fs/super.c:335 cleanup_mnt+0x324/0x4d0 fs/namespace.c:1136 task_work_run+0xc0/0x160 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x278/0x280 kernel/entry/common.c:209 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x40/0x70 kernel/entry/common.c:302 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x466ca7 RSP: 002b:00007fffd2978bc8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000466ca7 RDX: 00007fffd2978c99 RSI: 0000000000000002 RDI: 00007fffd2978c90 RBP: 00007fffd2978c90 R08: 00000000ffffffff R09: 00007fffd2978a60 R10: 00000000022bc8e3 R11: 0000000000000246 R12: 00000000004ae4c5 R13: 00007fffd2979d40 R14: 00000000022bc810 R15: 0000000000000002 INFO: task syz-executor.4:6147 blocked for more than 143 seconds. Not tainted 5.13.0-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:23888 pid: 6147 ppid: 1 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:4683 [inline] __schedule+0x917/0x2400 kernel/sched/core.c:5940 schedule+0xd3/0x270 kernel/sched/core.c:6019 wb_wait_for_completion+0x15a/0x200 fs/fs-writeback.c:190 sync_inodes_sb+0x18b/0x8a0 fs/fs-writeback.c:2695 __sync_filesystem fs/sync.c:34 [inline] sync_filesystem fs/sync.c:67 [inline] sync_filesystem+0x10b/0x1f0 fs/sync.c:48 generic_shutdown_super+0x64/0x330 fs/super.c:448 kill_block_super+0x90/0xd0 fs/super.c:1395 deactivate_locked_super+0x7b/0x130 fs/super.c:335 cleanup_mnt+0x324/0x4d0 fs/namespace.c:1136 task_work_run+0xc0/0x160 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x278/0x280 kernel/entry/common.c:209 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x40/0x70 kernel/entry/common.c:302 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x466ca7 RSP: 002b:00007ffe14849e78 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000466ca7 RDX: 00007ffe14849f49 RSI: 0000000000000002 RDI: 00007ffe14849f40 RBP: 00007ffe14849f40 R08: 00000000ffffffff R09: 00007ffe14849d10 R10: 000000000291b8e3 R11: 0000000000000246 R12: 00000000004ae4c5 R13: 00007ffe1484aff0 R14: 000000000291b810 R15: 0000000000000002 INFO: task syz-executor.5:6150 blocked for more than 143 seconds. Not tainted 5.13.0-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:24424 pid: 6150 ppid: 1 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:4683 [inline] __schedule+0x917/0x2400 kernel/sched/core.c:5940 schedule+0xd3/0x270 kernel/sched/core.c:6019 wb_wait_for_completion+0x15a/0x200 fs/fs-writeback.c:190 sync_inodes_sb+0x18b/0x8a0 fs/fs-writeback.c:2695 __sync_filesystem fs/sync.c:34 [inline] sync_filesystem fs/sync.c:67 [inline] sync_filesystem+0x10b/0x1f0 fs/sync.c:48 generic_shutdown_super+0x64/0x330 fs/super.c:448 kill_block_super+0x90/0xd0 fs/super.c:1395 deactivate_locked_super+0x7b/0x130 fs/super.c:335 cleanup_mnt+0x324/0x4d0 fs/namespace.c:1136 task_work_run+0xc0/0x160 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x278/0x280 kernel/entry/common.c:209 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x40/0x70 kernel/entry/common.c:302 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x466ca7 RSP: 002b:00007fffe1e28098 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000466ca7 RDX: 00007fffe1e28169 RSI: 0000000000000002 RDI: 00007fffe1e28160 RBP: 00007fffe1e28160 R08: 00000000ffffffff R09: 00007fffe1e27f30 R10: 0000000002bd78e3 R11: 0000000000000246 R12: 00000000004ae4c5 R13: 00007fffe1e29210 R14: 0000000002bd7810 R15: 0000000000000002 INFO: task syz-executor.0:6152 blocked for more than 144 seconds. Not tainted 5.13.0-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:24000 pid: 6152 ppid: 1 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:4683 [inline] __schedule+0x917/0x2400 kernel/sched/core.c:5940 schedule+0xd3/0x270 kernel/sched/core.c:6019 wb_wait_for_completion+0x15a/0x200 fs/fs-writeback.c:190 sync_inodes_sb+0x18b/0x8a0 fs/fs-writeback.c:2695 __sync_filesystem fs/sync.c:34 [inline] sync_filesystem fs/sync.c:67 [inline] sync_filesystem+0x10b/0x1f0 fs/sync.c:48 generic_shutdown_super+0x64/0x330 fs/super.c:448 kill_block_super+0x90/0xd0 fs/super.c:1395 deactivate_locked_super+0x7b/0x130 fs/super.c:335 cleanup_mnt+0x324/0x4d0 fs/namespace.c:1136 task_work_run+0xc0/0x160 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x278/0x280 kernel/entry/common.c:209 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x40/0x70 kernel/entry/common.c:302 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x466ca7 RSP: 002b:00007ffc5421e648 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000466ca7 RDX: 00007ffc5421e719 RSI: 0000000000000002 RDI: 00007ffc5421e710 RBP: 00007ffc5421e710 R08: 00000000ffffffff R09: 00007ffc5421e4e0 R10: 0000000002ed08e3 R11: 0000000000000246 R12: 00000000004ae4c5 R13: 00007ffc5421f7c0 R14: 0000000002ed0810 R15: 0000000000000002 INFO: task syz-executor.3:6153 blocked for more than 144 seconds. Not tainted 5.13.0-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.3 state:D stack:24200 pid: 6153 ppid: 1 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:4683 [inline] __schedule+0x917/0x2400 kernel/sched/core.c:5940 schedule+0xd3/0x270 kernel/sched/core.c:6019 wb_wait_for_completion+0x15a/0x200 fs/fs-writeback.c:190 sync_inodes_sb+0x18b/0x8a0 fs/fs-writeback.c:2695 __sync_filesystem fs/sync.c:34 [inline] sync_filesystem fs/sync.c:67 [inline] sync_filesystem+0x10b/0x1f0 fs/sync.c:48 generic_shutdown_super+0x64/0x330 fs/super.c:448 kill_block_super+0x90/0xd0 fs/super.c:1395 deactivate_locked_super+0x7b/0x130 fs/super.c:335 cleanup_mnt+0x324/0x4d0 fs/namespace.c:1136 task_work_run+0xc0/0x160 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x278/0x280 kernel/entry/common.c:209 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x40/0x70 kernel/entry/common.c:302 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x466ca7 RSP: 002b:00007ffe85ff89e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000466ca7 RDX: 00007ffe85ff8ab9 RSI: 0000000000000002 RDI: 00007ffe85ff8ab0 RBP: 00007ffe85ff8ab0 R08: 00000000ffffffff R09: 00007ffe85ff8880 R10: 000000000262e8e3 R11: 0000000000000246 R12: 00000000004ae4c5 R13: 00007ffe85ff9b60 R14: 000000000262e810 R15: 0000000000000002 INFO: task syz-executor.1:6154 blocked for more than 144 seconds. Not tainted 5.13.0-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:23944 pid: 6154 ppid: 1 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:4683 [inline] __schedule+0x917/0x2400 kernel/sched/core.c:5940 schedule+0xd3/0x270 kernel/sched/core.c:6019 wb_wait_for_completion+0x15a/0x200 fs/fs-writeback.c:190 sync_inodes_sb+0x18b/0x8a0 fs/fs-writeback.c:2695 __sync_filesystem fs/sync.c:34 [inline] sync_filesystem fs/sync.c:67 [inline] sync_filesystem+0x10b/0x1f0 fs/sync.c:48 generic_shutdown_super+0x64/0x330 fs/super.c:448 kill_block_super+0x90/0xd0 fs/super.c:1395 deactivate_locked_super+0x7b/0x130 fs/super.c:335 cleanup_mnt+0x324/0x4d0 fs/namespace.c:1136 task_work_run+0xc0/0x160 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x278/0x280 kernel/entry/common.c:209 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x40/0x70 kernel/entry/common.c:302 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x466ca7 RSP: 002b:00007ffcd941ff48 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000466ca7 RDX: 00007ffcd9420019 RSI: 0000000000000002 RDI: 00007ffcd9420010 RBP: 00007ffcd9420010 R08: 00000000ffffffff R09: 00007ffcd941fde0 R10: 00000000019db8e3 R11: 0000000000000246 R12: 00000000004ae4c5 R13: 00007ffcd94210c0 R14: 00000000019db810 R15: 0000000000000002 Showing all locks held in the system: 2 locks held by kworker/u4:0/7: #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:620 [inline] #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:617 [inline] #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline] #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x771/0x1400 kernel/workqueue.c:2247 #1: ffffc9000028fdb8 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x79e/0x1400 kernel/workqueue.c:2251 2 locks held by kworker/u4:1/24: #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:620 [inline] #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:617 [inline] #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline] #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x771/0x1400 kernel/workqueue.c:2247 #1: ffffc900003b7db8 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x79e/0x1400 kernel/workqueue.c:2251 2 locks held by kworker/u4:2/67: #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:620 [inline] #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:617 [inline] #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline] #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x771/0x1400 kernel/workqueue.c:2247 #1: ffffc90000597db8 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x79e/0x1400 kernel/workqueue.c:2251 2 locks held by kworker/u4:3/140: #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:620 [inline] #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:617 [inline] #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline] #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x771/0x1400 kernel/workqueue.c:2247 #1: ffffc90000587db8 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x79e/0x1400 kernel/workqueue.c:2251 2 locks held by kworker/u4:4/190: #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:620 [inline] #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:617 [inline] #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline] #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x771/0x1400 kernel/workqueue.c:2247 #1: ffffc90000777db8 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x79e/0x1400 kernel/workqueue.c:2251 1 lock held by khungtaskd/1210: #0: ffffffff89db3c00 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x28c kernel/locking/lockdep.c:6446 1 lock held by in:imklog/5942: #0: ffff88810464adb0 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x9c/0xb0 fs/file.c:974 2 locks held by syz-executor.2/6142: #0: ffff888128f580e0 (&type->s_umount_key#67){+.+.}-{3:3}, at: deactivate_super+0x5f/0x80 fs/super.c:365 #1: ffff88810c4b4728 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:361 [inline] #1: ffff88810c4b4728 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x171/0x8a0 fs/fs-writeback.c:2693 2 locks held by syz-executor.4/6147: #0: ffff888103ea00e0 (&type->s_umount_key#67){+.+.}-{3:3}, at: deactivate_super+0x5f/0x80 fs/super.c:365 #1: ffff88810c61e728 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:361 [inline] #1: ffff88810c61e728 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x171/0x8a0 fs/fs-writeback.c:2693 2 locks held by syz-executor.5/6150: #0: ffff888117b900e0 (&type->s_umount_key#67){+.+.}-{3:3}, at: deactivate_super+0x5f/0x80 fs/super.c:365 #1: ffff88810c656728 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:361 [inline] #1: ffff88810c656728 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x171/0x8a0 fs/fs-writeback.c:2693 2 locks held by syz-executor.0/6152: #0: ffff88810135e0e0 (&type->s_umount_key#67){+.+.}-{3:3}, at: deactivate_super+0x5f/0x80 fs/super.c:365 #1: ffff88810c4a2728 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:361 [inline] #1: ffff88810c4a2728 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x171/0x8a0 fs/fs-writeback.c:2693 2 locks held by syz-executor.3/6153: #0: ffff8881312fe0e0 (&type->s_umount_key#67){+.+.}-{3:3}, at: deactivate_super+0x5f/0x80 fs/super.c:365 #1: ffff88810c616728 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:361 [inline] #1: ffff88810c616728 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x171/0x8a0 fs/fs-writeback.c:2693 2 locks held by syz-executor.1/6154: #0: ffff888117b5c0e0 (&type->s_umount_key#67){+.+.}-{3:3}, at: deactivate_super+0x5f/0x80 fs/super.c:365 #1: ffff88810c4aa728 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:361 [inline] #1: ffff88810c4aa728 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x171/0x8a0 fs/fs-writeback.c:2693 2 locks held by kworker/u4:9/7683: #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:620 [inline] #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:617 [inline] #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline] #0: ffff8881038ef938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x771/0x1400 kernel/workqueue.c:2247 #1: ffffc900051f7db8 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x79e/0x1400 kernel/workqueue.c:2251 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 1210 Comm: khungtaskd Not tainted 5.13.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_lvl+0xbd/0xe2 lib/dump_stack.c:96 nmi_cpu_backtrace.cold+0x2d/0xac lib/nmi_backtrace.c:105 nmi_trigger_cpumask_backtrace+0x11f/0x170 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+0x9d4/0xc10 kernel/hung_task.c:294 kthread+0x38b/0x460 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 7666 Comm: segctord Not tainted 5.13.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:debug_lockdep_rcu_enabled+0x0/0x30 kernel/rcu/update.c:280 Code: 00 00 00 00 eb bf cc cc cc cc 65 81 05 c5 8c 2f 78 00 00 00 10 c3 0f 1f 40 00 65 81 05 b5 8c 2f 78 00 00 00 f0 c3 cc cc cc cc <8b> 05 f6 f0 aa 03 85 c0 74 21 8b 05 ac 23 ab 03 85 c0 74 17 65 48 RSP: 0018:ffffc900051c7838 EFLAGS: 00000283 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff815768e1 RDX: fffffbfff16fb19b RSI: 0000000000000008 RDI: ffffffff8b7d8cd0 RBP: 1ffff92000a38f0a R08: 0000000000000000 R09: ffffffff8b7d8cd7 R10: fffffbfff16fb19a R11: ffff888129bcbd70 R12: ffff88812f25f870 R13: 0000000000000000 R14: 0000000000000000 R15: ffffffff8b7dc088 FS: 0000000000000000(0000) GS:ffff8881f6200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd947976000 CR3: 000000011cb01005 CR4: 00000000001706f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: trace_lock_release include/trace/events/lock.h:58 [inline] lock_release+0x563/0x7f0 kernel/locking/lockdep.c:5636 up_write+0x78/0x580 kernel/locking/rwsem.c:1458 nilfs_sufile_update+0x237/0x310 fs/nilfs2/sufile.c:251 nilfs_sufile_free fs/nilfs2/sufile.h:74 [inline] nilfs_free_incomplete_logs fs/nilfs2/segment.c:1398 [inline] nilfs_segctor_abort_construction+0x943/0xc90 fs/nilfs2/segment.c:1793 nilfs_segctor_do_construct+0x2e80/0x6070 fs/nilfs2/segment.c:2100 nilfs_segctor_construct+0x637/0x940 fs/nilfs2/segment.c:2372 nilfs_segctor_thread_construct fs/nilfs2/segment.c:2480 [inline] nilfs_segctor_thread+0x36d/0xda0 fs/nilfs2/segment.c:2563 kthread+0x38b/0x460 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295