INFO: task syz-executor.5:5608 blocked for more than 143 seconds. Not tainted 6.1.0-syzkaller-03295-g02bf43c7b7f7 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:16672 pid:5608 ppid:3665 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5233 [inline] __schedule+0x995/0xe20 kernel/sched/core.c:6545 schedule+0xcb/0x190 kernel/sched/core.c:6621 btrfs_commit_transaction_async+0x2c6/0x440 fs/btrfs/transaction.c:1971 btrfs_ioctl_start_sync+0xe2/0x1f0 fs/btrfs/ioctl.c:3123 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xfb/0x170 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fdaea88c0d9 RSP: 002b:00007fdaeb6bb168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fdaea9abf80 RCX: 00007fdaea88c0d9 RDX: 0000000000000000 RSI: 0000000080089418 RDI: 0000000000000006 RBP: 00007fdaea8e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcc5a9039f R14: 00007fdaeb6bb300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8d328390 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507 1 lock held by rcu_tasks_trace/13: #0: ffffffff8d328b90 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507 1 lock held by khungtaskd/27: #0: ffffffff8d3281c0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 3 locks held by kworker/0:2/151: 2 locks held by kworker/u4:5/1108: 3 locks held by kworker/0:3/2960: #0: ffff888012864d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x7f2/0xdb0 #1: ffffc9000c88fd00 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x831/0xdb0 kernel/workqueue.c:2264 #2: ffffffff8d32d838 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:292 [inline] #2: ffffffff8d32d838 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x384/0x860 kernel/rcu/tree_exp.h:946 2 locks held by getty/3309: #0: ffff88814af29098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900031262f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x53b/0x1650 drivers/tty/n_tty.c:2177 1 lock held by syz-executor.2/3677: #0: ffffffff8d32d838 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:324 [inline] #0: ffffffff8d32d838 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x455/0x860 kernel/rcu/tree_exp.h:946 3 locks held by kworker/0:6/3720: 2 locks held by kworker/0:11/4130: #0: ffff888012866538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x7f2/0xdb0 #1: ffffc900058a7d00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x831/0xdb0 kernel/workqueue.c:2264 2 locks held by kworker/1:10/4152: #0: ffff888012864d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x7f2/0xdb0 #1: ffffc90005e5fd00 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x831/0xdb0 kernel/workqueue.c:2264 1 lock held by syz-executor.5/5786: 1 lock held by udevadm/7284: #0: ffff8880b993a1d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x25/0x110 kernel/sched/core.c:537 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 27 Comm: khungtaskd Not tainted 6.1.0-syzkaller-03295-g02bf43c7b7f7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1b1/0x28e lib/dump_stack.c:106 nmi_cpu_backtrace+0x46f/0x4f0 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x1ba/0x420 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline] watchdog+0xcf5/0xd40 kernel/hung_task.c:377 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 3720 Comm: kworker/0:6 Not tainted 6.1.0-syzkaller-03295-g02bf43c7b7f7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Workqueue: events_power_efficient gc_worker RIP: 0010:kasan_mem_to_shadow include/linux/kasan.h:59 [inline] RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:129 [inline] RIP: 0010:memory_is_poisoned mm/kasan/generic.c:159 [inline] RIP: 0010:check_region_inline mm/kasan/generic.c:180 [inline] RIP: 0010:kasan_check_range+0x4a/0x2e0 mm/kasan/generic.c:189 Code: 48 c1 ed 2f 81 fd ff ff 01 00 0f 82 6f 02 00 00 49 89 fb 49 c1 eb 03 49 b8 00 00 00 00 00 fc ff df 4f 8d 0c 03 4c 8d 54 37 ff <49> c1 ea 03 48 bb 01 00 00 00 00 fc ff df 49 01 da 4d 89 d6 4d 29 RSP: 0018:ffffc9000464f798 EFLAGS: 00000806 RAX: 0000000000000001 RBX: 0000000000000480 RCX: ffffffff816b16ba RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff907a61d0 RBP: 000000000001ffff R08: dffffc0000000000 R09: fffffbfff20f4c3a R10: ffffffff907a61d7 R11: 1ffffffff20f4c3a R12: ffff88807c9b8ac8 R13: dffffc0000000000 R14: 0000000000000200 R15: ffff88807c9b8ac8 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd96985a000 CR3: 000000000d08e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: instrument_atomic_read include/linux/instrumented.h:72 [inline] _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] hlock_class kernel/locking/lockdep.c:227 [inline] mark_lock+0x9a/0x350 kernel/locking/lockdep.c:4612 mark_usage kernel/locking/lockdep.c:4555 [inline] __lock_acquire+0xc7d/0x1f60 kernel/locking/lockdep.c:5009 lock_acquire+0x182/0x3c0 kernel/locking/lockdep.c:5668 seqcount_lockdep_reader_access+0x122/0x1f0 include/linux/seqlock.h:102 nf_conntrack_get_ht include/net/netfilter/nf_conntrack.h:335 [inline] gc_worker+0x30a/0x1510 net/netfilter/nf_conntrack_core.c:1499 process_one_work+0x877/0xdb0 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306