INFO: task syz-executor.1:9775 blocked for more than 143 seconds. Not tainted 6.9.0-rc7-syzkaller-00188-gba16c1cf11c9 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:27632 pid:9775 tgid:9741 ppid:9341 flags:0x00000006 Call Trace: context_switch kernel/sched/core.c:5409 [inline] __schedule+0x1796/0x4a00 kernel/sched/core.c:6746 __schedule_loop kernel/sched/core.c:6823 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6838 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6895 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:795 [inline] bch2_fallocate_dispatch+0x295/0x3810 fs/bcachefs/fs-io.c:771 vfs_fallocate+0x564/0x6c0 fs/open.c:330 ksys_fallocate fs/open.c:353 [inline] __do_sys_fallocate fs/open.c:361 [inline] __se_sys_fallocate fs/open.c:359 [inline] __x64_sys_fallocate+0xbd/0x110 fs/open.c:359 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:0x7f691fe7dd69 RSP: 002b:00007f6920b1d0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f691ffac050 RCX: 00007f691fe7dd69 RDX: 0000000000000000 RSI: 0000000000000008 RDI: 0000000000000005 RBP: 00007f691feca49e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000001000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f691ffac050 R15: 00007ffe287aa108 INFO: task syz-executor.1:9777 blocked for more than 144 seconds. Not tainted 6.9.0-rc7-syzkaller-00188-gba16c1cf11c9 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:27984 pid:9777 tgid:9741 ppid:9341 flags:0x00000006 Call Trace: context_switch kernel/sched/core.c:5409 [inline] __schedule+0x1796/0x4a00 kernel/sched/core.c:6746 __schedule_loop kernel/sched/core.c:6823 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6838 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6895 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:795 [inline] bch2_ioc_setflags fs/bcachefs/fs-ioctl.c:96 [inline] bch2_fs_file_ioctl+0x1a97/0x2790 fs/bcachefs/fs-ioctl.c:491 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:904 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:890 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:0x7f691fe7dd69 RSP: 002b:00007f6920afc0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f691ffac120 RCX: 00007f691fe7dd69 RDX: 0000000020000640 RSI: 0000000040086602 RDI: 0000000000000006 RBP: 00007f691feca49e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f691ffac120 R15: 00007ffe287aa108 INFO: task syz-executor.1:9785 blocked for more than 144 seconds. Not tainted 6.9.0-rc7-syzkaller-00188-gba16c1cf11c9 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:26768 pid:9785 tgid:9741 ppid:9341 flags:0x00000006 Call Trace: context_switch kernel/sched/core.c:5409 [inline] __schedule+0x1796/0x4a00 kernel/sched/core.c:6746 __schedule_loop kernel/sched/core.c:6823 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6838 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6895 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:795 [inline] process_measurement+0x450/0x1f60 security/integrity/ima/ima_main.c:248 ima_file_check+0xf2/0x170 security/integrity/ima/ima_main.c:559 security_file_post_open+0x6d/0xa0 security/security.c:2981 do_open fs/namei.c:3644 [inline] path_openat+0x28b7/0x3240 fs/namei.c:3799 do_filp_open+0x235/0x490 fs/namei.c:3826 do_sys_openat2+0x13e/0x1d0 fs/open.c:1406 do_sys_open fs/open.c:1421 [inline] __do_sys_open fs/open.c:1429 [inline] __se_sys_open fs/open.c:1425 [inline] __x64_sys_open+0x225/0x270 fs/open.c:1425 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:0x7f691fe7dd69 RSP: 002b:00007f691f9de0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f691ffac2c0 RCX: 00007f691fe7dd69 RDX: 0000000000000000 RSI: 0000000000000142 RDI: 0000000020000000 RBP: 00007f691feca49e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f691ffac2c0 R15: 00007ffe287aa108 Showing all locks held in the system: 1 lock held by pool_workqueue_/3: #0: ffffffff8e33a138 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:291 [inline] #0: ffffffff8e33a138 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x39a/0x820 kernel/rcu/tree_exp.h:939 1 lock held by khungtaskd/29: #0: ffffffff8e334da0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline] #0: ffffffff8e334da0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline] #0: ffffffff8e334da0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614 2 locks held by kworker/u8:3/50: 2 locks held by getty/4827: #0: ffff88802f4800a0 (&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 syz-executor.1/9742: #0: ffff88807676d9c8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x259/0x320 fs/file.c:1191 #1: ffff88805e8d8420 (sb_writers#26){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2855 [inline] #1: ffff88805e8d8420 (sb_writers#26){.+.+}-{0:0}, at: vfs_write+0x233/0xcb0 fs/read_write.c:586 #2: ffff8880783ca658 (&sb->s_type->i_mutex_key#33){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:795 [inline] #2: ffff8880783ca658 (&sb->s_type->i_mutex_key#33){+.+.}-{3:3}, at: bch2_direct_write+0x243/0x3050 fs/bcachefs/fs-io-direct.c:598 2 locks held by syz-executor.1/9775: #0: ffff88805e8d8420 (sb_writers#26){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2855 [inline] #0: ffff88805e8d8420 (sb_writers#26){.+.+}-{0:0}, at: vfs_fallocate+0x4d3/0x6c0 fs/open.c:329 #1: ffff8880783ca658 (&sb->s_type->i_mutex_key#33){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:795 [inline] #1: ffff8880783ca658 (&sb->s_type->i_mutex_key#33){+.+.}-{3:3}, at: bch2_fallocate_dispatch+0x295/0x3810 fs/bcachefs/fs-io.c:771 2 locks held by syz-executor.1/9777: #0: ffff88805e8d8420 (sb_writers#26){.+.+}-{0:0}, at: mnt_want_write_file+0x61/0x200 fs/namespace.c:453 #1: ffff8880783ca658 (&sb->s_type->i_mutex_key#33){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:795 [inline] #1: ffff8880783ca658 (&sb->s_type->i_mutex_key#33){+.+.}-{3:3}, at: bch2_ioc_setflags fs/bcachefs/fs-ioctl.c:96 [inline] #1: ffff8880783ca658 (&sb->s_type->i_mutex_key#33){+.+.}-{3:3}, at: bch2_fs_file_ioctl+0x1a97/0x2790 fs/bcachefs/fs-ioctl.c:491 1 lock held by syz-executor.1/9785: #0: ffff8880783ca658 (&sb->s_type->i_mutex_key#33){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:795 [inline] #0: ffff8880783ca658 (&sb->s_type->i_mutex_key#33){+.+.}-{3:3}, at: process_measurement+0x450/0x1f60 security/integrity/ima/ima_main.c:248 2 locks held by syz-executor.2/12056: 2 locks held by syz-executor.0/12065: 2 locks held by syz-executor.4/12067: 2 locks held by syz-executor.1/12071: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.9.0-rc7-syzkaller-00188-gba16c1cf11c9 #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:380 kthread+0x2f0/0x390 kernel/kthread.c:388 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 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 12065 Comm: syz-executor.0 Not tainted 6.9.0-rc7-syzkaller-00188-gba16c1cf11c9 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 RIP: 0010:hlock_class kernel/locking/lockdep.c:223 [inline] RIP: 0010:check_wait_context kernel/locking/lockdep.c:4774 [inline] RIP: 0010:__lock_acquire+0x5a0/0x1fd0 kernel/locking/lockdep.c:5087 Code: 90 90 31 db 48 81 c3 c4 00 00 00 48 89 d8 48 c1 e8 03 0f b6 04 10 84 c0 0f 85 39 12 00 00 0f b6 2b 48 8b 44 24 20 0f b6 04 10 <84> c0 0f 85 49 12 00 00 41 8b 1f 81 e3 ff 1f 00 00 48 89 d8 48 c1 RSP: 0018:ffffc90002d9ed90 EFLAGS: 00000046 RAX: 0000000000000000 RBX: ffffffff92be633c RCX: ffffffff81728eeb RDX: dffffc0000000000 RSI: 0000000000000008 RDI: ffffffff92efe500 RBP: 0000000000000000 R08: ffffffff92efe507 R09: 1ffffffff25dfca0 R10: dffffc0000000000 R11: fffffbfff25dfca1 R12: 0000000000000001 R13: ffff88801e5a9e00 R14: 0000000000000014 R15: ffff88801e5aa998 FS: 00007f0d81fec6c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb1c21a7000 CR3: 00000000650b6000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5754 seqcount_lockdep_reader_access+0xed/0x1e0 include/linux/seqlock.h:72 read_seqbegin include/linux/seqlock.h:772 [inline] zone_span_seqbegin include/linux/memory_hotplug.h:151 [inline] page_outside_zone_boundaries mm/page_alloc.c:451 [inline] bad_range+0x5f/0x270 mm/page_alloc.c:470 expand mm/page_alloc.c:1395 [inline] __rmqueue_smallest mm/page_alloc.c:1577 [inline] __rmqueue mm/page_alloc.c:2107 [inline] rmqueue_bulk mm/page_alloc.c:2133 [inline] __rmqueue_pcplist+0x15e1/0x2620 mm/page_alloc.c:2826 rmqueue_pcplist mm/page_alloc.c:2868 [inline] rmqueue mm/page_alloc.c:2905 [inline] get_page_from_freelist+0x856/0x35b0 mm/page_alloc.c:3314 __alloc_pages+0x256/0x6c0 mm/page_alloc.c:4575 alloc_pages_mpol+0x3e8/0x680 mm/mempolicy.c:2264 shmem_alloc_folio mm/shmem.c:1628 [inline] shmem_alloc_and_add_folio+0x24d/0xbc0 mm/shmem.c:1668 shmem_get_folio_gfp+0x82d/0x1f50 mm/shmem.c:2055 shmem_get_folio mm/shmem.c:2160 [inline] shmem_write_begin+0x170/0x4d0 mm/shmem.c:2744 generic_perform_write+0x322/0x640 mm/filemap.c:3974 shmem_file_write_iter+0xfc/0x120 mm/shmem.c:2920 call_write_iter include/linux/fs.h:2110 [inline] new_sync_write fs/read_write.c:497 [inline] vfs_write+0xa84/0xcb0 fs/read_write.c:590 ksys_write+0x1a0/0x2c0 fs/read_write.c:643 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:0x7f0d8127caaf Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 b9 80 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 0c 81 02 00 48 RSP: 002b:00007f0d81febe80 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000001000000 RCX: 00007f0d8127caaf RDX: 0000000001000000 RSI: 00007f0d77000000 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000000 R09: 000000000000559d R10: 0000000020005642 R11: 0000000000000293 R12: 0000000000000003 R13: 00007f0d81febf80 R14: 00007f0d81febf40 R15: 00007f0d77000000