INFO: task syz-executor.3:13448 blocked for more than 143 seconds. Not tainted 6.9.0-syzkaller-08995-g0450d2083be6 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.3 state:D stack:27792 pid:13448 tgid:13443 ppid:5106 flags:0x00000006 Call Trace: context_switch kernel/sched/core.c:5408 [inline] __schedule+0x1796/0x4a00 kernel/sched/core.c:6745 __schedule_loop kernel/sched/core.c:6822 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6837 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6894 rwsem_down_write_slowpath+0xeeb/0x13b0 kernel/locking/rwsem.c:1178 __down_write_common+0x1af/0x200 kernel/locking/rwsem.c:1306 inode_lock_nested include/linux/fs.h:826 [inline] lock_rename fs/namei.c:3074 [inline] do_renameat2+0x62c/0x13f0 fs/namei.c:4979 __do_sys_rename fs/namei.c:5091 [inline] __se_sys_rename fs/namei.c:5089 [inline] __x64_sys_rename+0x86/0xa0 fs/namei.c:5089 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe2acc7cee9 RSP: 002b:00007fe2ad98d0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007fe2acdac050 RCX: 00007fe2acc7cee9 RDX: 0000000000000000 RSI: 0000000020000100 RDI: 00000000200002c0 RBP: 00007fe2accc949e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007fe2acdac050 R15: 00007ffee8ecca58 INFO: task syz-executor.3:13451 blocked for more than 144 seconds. Not tainted 6.9.0-syzkaller-08995-g0450d2083be6 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.3 state:D stack:25016 pid:13451 tgid:13443 ppid:5106 flags:0x00000006 Call Trace: context_switch kernel/sched/core.c:5408 [inline] __schedule+0x1796/0x4a00 kernel/sched/core.c:6745 __schedule_loop kernel/sched/core.c:6822 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6837 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6894 rwsem_down_write_slowpath+0xeeb/0x13b0 kernel/locking/rwsem.c:1178 __down_write_common+0x1af/0x200 kernel/locking/rwsem.c:1306 inode_lock include/linux/fs.h:791 [inline] open_last_lookups fs/namei.c:3571 [inline] path_openat+0x7d3/0x3240 fs/namei.c:3804 do_filp_open+0x235/0x490 fs/namei.c:3834 do_sys_openat2+0x13e/0x1d0 fs/open.c:1406 do_sys_open fs/open.c:1421 [inline] __do_sys_openat fs/open.c:1437 [inline] __se_sys_openat fs/open.c:1432 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1432 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe2acc7cee9 RSP: 002b:00007fe2ad96c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fe2acdac120 RCX: 00007fe2acc7cee9 RDX: 000000000000275a RSI: 0000000020000140 RDI: ffffffffffffff9c RBP: 00007fe2accc949e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007fe2acdac120 R15: 00007ffee8ecca58 Showing all locks held in the system: 1 lock held by khungtaskd/30: #0: ffffffff8e333d20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline] #0: ffffffff8e333d20 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline] #0: ffffffff8e333d20 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614 3 locks held by kworker/u8:6/1276: #0: ffff888015089148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3206 [inline] #0: ffff888015089148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x90a/0x1830 kernel/workqueue.c:3312 #1: ffffc90004f7fd00 ((work_completion)(&sub_info->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3207 [inline] #1: ffffc90004f7fd00 ((work_completion)(&sub_info->work)){+.+.}-{0:0}, at: process_scheduled_works+0x945/0x1830 kernel/workqueue.c:3312 #2: ffff8880b943e618 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:559 2 locks held by getty/4831: #0: ffff88802b2470a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90002f162f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b5/0x1e10 drivers/tty/n_tty.c:2201 3 locks held by kworker/1:8/5191: #0: ffff888015080948 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3206 [inline] #0: ffff888015080948 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x90a/0x1830 kernel/workqueue.c:3312 #1: ffffc900041e7d00 (slab_caches_to_rcu_destroy_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3207 [inline] #1: ffffc900041e7d00 (slab_caches_to_rcu_destroy_work){+.+.}-{0:0}, at: process_scheduled_works+0x945/0x1830 kernel/workqueue.c:3312 #2: ffffffff8e338fc0 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x4c/0x550 kernel/rcu/tree.c:4448 1 lock held by syz-executor.3/13444: 2 locks held by syz-executor.3/13448: #0: ffff88802fd9c420 (sb_writers#36){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:409 #1: ffff88805c518188 (&type->i_mutex_dir_key#26/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:826 [inline] #1: ffff88805c518188 (&type->i_mutex_dir_key#26/1){+.+.}-{3:3}, at: lock_rename fs/namei.c:3074 [inline] #1: ffff88805c518188 (&type->i_mutex_dir_key#26/1){+.+.}-{3:3}, at: do_renameat2+0x62c/0x13f0 fs/namei.c:4979 2 locks held by syz-executor.3/13451: #0: ffff88802fd9c420 (sb_writers#36){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:409 #1: ffff88805c518188 (&type->i_mutex_dir_key#26){++++}-{3:3}, at: inode_lock include/linux/fs.h:791 [inline] #1: ffff88805c518188 (&type->i_mutex_dir_key#26){++++}-{3:3}, at: open_last_lookups fs/namei.c:3571 [inline] #1: ffff88805c518188 (&type->i_mutex_dir_key#26){++++}-{3:3}, at: path_openat+0x7d3/0x3240 fs/namei.c:3804 2 locks held by syz-executor.2/15358: #0: ffff888065680980 (&c->sb_lock){+.+.}-{3:3}, at: bch2_fs_alloc+0xf8c/0x2330 fs/bcachefs/super.c:836 #1: ffff8880656848c8 (&c->mark_lock){++++}-{0:0}, at: bch2_sb_replicas_to_cpu_replicas+0x1c3/0x290 fs/bcachefs/replicas.c:733 4 locks held by syz-executor.3/15374: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 30 Comm: khungtaskd Not tainted 6.9.0-syzkaller-08995-g0450d2083be6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline] watchdog+0xfde/0x1020 kernel/hung_task.c:379 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 15374 Comm: syz-executor.3 Not tainted 6.9.0-syzkaller-08995-g0450d2083be6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 RIP: 0010:xas_find+0x237/0xaa0 lib/xarray.c:1265 Code: ee e8 4d 86 ff ff 49 89 c7 48 b9 00 00 00 00 00 fc ff df 41 0f b6 04 0e 49 89 ce 84 c0 75 47 41 80 7d 00 00 0f 84 f2 00 00 00 54 57 1a f6 e9 51 ff ff ff 48 8b 4c 24 20 80 e1 07 38 c1 7c 82 RSP: 0018:ffffc90005357308 EFLAGS: 00000206 RAX: 0000000000000000 RBX: ffffc90005357520 RCX: dffffc0000000000 RDX: ffffc90010c2c000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: 0000000000000006 R08: ffffffff8b7b6101 R09: ffffffff8b7bd830 R10: 0000000000000002 R11: ffff888024cd3c00 R12: 0000000000000000 R13: ffff888054150840 R14: dffffc0000000000 R15: ffff8880442c7702 FS: 00007f369f8416c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f369eba8000 CR3: 000000004fed0000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: next_uptodate_folio+0x33/0xb10 mm/filemap.c:3439 filemap_map_pages+0x2f3/0x1830 mm/filemap.c:3577 do_fault_around mm/memory.c:4847 [inline] do_read_fault mm/memory.c:4880 [inline] do_fault mm/memory.c:5019 [inline] do_pte_missing mm/memory.c:3875 [inline] handle_pte_fault mm/memory.c:5295 [inline] __handle_mm_fault+0x4475/0x7250 mm/memory.c:5436 handle_mm_fault+0x27f/0x770 mm/memory.c:5601 faultin_page mm/gup.c:958 [inline] __get_user_pages+0x727/0x1630 mm/gup.c:1257 populate_vma_page_range+0x2ae/0x390 mm/gup.c:1697 __mm_populate+0x27a/0x460 mm/gup.c:1800 mm_populate include/linux/mm.h:3413 [inline] vm_mmap_pgoff+0x305/0x420 mm/util.c:578 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f369ea7cee9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f369f8410c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007f369ebabf80 RCX: 00007f369ea7cee9 RDX: b635773f06ebbeee RSI: 0000000000b36000 RDI: 0000000020000000 RBP: 00007f369eac949e R08: ffffffffffffffff R09: 0000000000000000 R10: 0000000000008031 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f369ebabf80 R15: 00007ffda37e3288