INFO: task syz-executor:5077 blocked for more than 144 seconds. Not tainted 6.10.0-rc5-syzkaller-00018-g55027e689933 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor state:D stack:22784 pid:5077 tgid:5077 ppid:1 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5408 [inline] __schedule+0xf15/0x5d00 kernel/sched/core.c:6745 __schedule_loop kernel/sched/core.c:6822 [inline] schedule+0xe7/0x350 kernel/sched/core.c:6837 io_schedule+0xbf/0x130 kernel/sched/core.c:9043 folio_wait_bit_common+0x3d8/0x9b0 mm/filemap.c:1307 lock_page include/linux/pagemap.h:1081 [inline] release_metapage+0x70f/0xdc0 fs/jfs/jfs_metapage.c:764 discard_metapage fs/jfs/jfs_metapage.h:88 [inline] __get_metapage+0xf1a/0x1170 fs/jfs/jfs_metapage.c:644 jfs_readdir+0x19f0/0x4310 fs/jfs/jfs_dtree.c:3018 wrap_directory_iterator+0xa5/0xe0 fs/readdir.c:67 iterate_dir+0x53e/0xb60 fs/readdir.c:110 __do_sys_getdents64 fs/readdir.c:409 [inline] __se_sys_getdents64 fs/readdir.c:394 [inline] __x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:394 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f48983a7b73 RSP: 002b:00007ffeae27a868 EFLAGS: 00000293 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 0000555557260600 RCX: 00007f48983a7b73 RDX: 0000000000008000 RSI: 0000555557260600 RDI: 0000000000000005 RBP: 00005555572605d4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000001000 R11: 0000000000000293 R12: ffffffffffffffa8 R13: 0000000000000010 R14: 00005555572605d0 R15: 00007ffeae27cb40 Showing all locks held in the system: 1 lock held by khungtaskd/30: #0: ffffffff8dbb1920 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline] #0: ffffffff8dbb1920 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline] #0: ffffffff8dbb1920 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x75/0x340 kernel/locking/lockdep.c:6614 4 locks held by kworker/u8:3/51: 3 locks held by kworker/0:2/786: 2 locks held by kworker/0:3/933: 2 locks held by getty/4836: #0: ffff88802a9a70a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243 #1: ffffc900031332f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xfc8/0x1490 drivers/tty/n_tty.c:2211 2 locks held by syz-executor/5077: #0: ffff888029261c48 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xeb/0x180 fs/file.c:1191 #1: ffff8880776f1800 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: wrap_directory_iterator+0x5a/0xe0 fs/readdir.c:56 3 locks held by kworker/1:5/5141: #0: ffff888015480948 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x12bf/0x1b60 kernel/workqueue.c:3206 #1: ffffc900036dfd80 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work+0x957/0x1b60 kernel/workqueue.c:3207 #2: ffffffff8f748da8 (rtnl_mutex){+.+.}-{3:3}, at: linkwatch_event+0x51/0xc0 net/core/link_watch.c:276 7 locks held by syz-executor/8162: #0: ffff8880301c0420 (sb_writers#9){.+.+}-{0:0}, at: ksys_write+0x12f/0x260 fs/read_write.c:643 #1: ffff88807ecefc88 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x281/0x500 fs/kernfs/file.c:325 #2: ffff888022d1b008 (kn->active#50){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x2a4/0x500 fs/kernfs/file.c:326 #3: ffffffff8ed83e88 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: new_device_store+0x187/0x730 drivers/net/netdevsim/bus.c:166 #4: ffff88802d01e0e8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1009 [inline] #4: ffff88802d01e0e8 (&dev->mutex){....}-{3:3}, at: __device_attach+0x7f/0x4b0 drivers/base/dd.c:1003 #5: ffff88802d01c250 (&devlink->lock_key#10){+.+.}-{3:3}, at: nsim_drv_probe+0xd5/0x1490 drivers/net/netdevsim/dev.c:1534 #6: ffffffff8f748da8 (rtnl_mutex){+.+.}-{3:3}, at: register_nexthop_notifier+0x1b/0x70 net/ipv4/nexthop.c:3871 1 lock held by syz-executor/8214: #0: ffffffff8f748da8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline] #0: ffffffff8f748da8 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x372/0xea0 net/core/rtnetlink.c:6632 1 lock held by syz.0.556/8326: #0: ffffffff8f748da8 (rtnl_mutex){+.+.}-{3:3}, at: __tun_chr_ioctl+0x4fc/0x4770 drivers/net/tun.c:3110 1 lock held by syz.0.556/8338: #0: ffffffff8f748da8 (rtnl_mutex){+.+.}-{3:3}, at: devinet_ioctl+0x26e/0x1f10 net/ipv4/devinet.c:1101 2 locks held by syz.1.560/8344: 2 locks held by syz.1.560/8345: #0: ffffffff8da80348 (sched_core_mutex){+.+.}-{3:3}, at: sched_core_get+0x3f/0xa0 kernel/sched/core.c:420 #1: ffffffff8dbbd0b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock+0x282/0x3b0 kernel/rcu/tree_exp.h:291 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 30 Comm: khungtaskd Not tainted 6.10.0-rc5-syzkaller-00018-g55027e689933 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114 nmi_cpu_backtrace+0x27b/0x390 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x29c/0x300 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline] watchdog+0xf86/0x1240 kernel/hung_task.c:379 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/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: 61 Comm: kworker/u8:4 Not tainted 6.10.0-rc5-syzkaller-00018-g55027e689933 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:check_region_inline mm/kasan/generic.c:174 [inline] RIP: 0010:kasan_check_range+0x1b/0x1a0 mm/kasan/generic.c:189 Code: 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 66 0f 1f 00 48 85 f6 0f 84 50 01 00 00 48 89 f8 41 54 44 0f b6 c2 48 01 f0 55 53 <0f> 82 c6 00 00 00 48 b8 ff ff ff ff ff 7f ff ff 48 39 f8 0f 83 b3 RSP: 0018:ffffc900015c7630 EFLAGS: 00000082 RAX: ffffffff942662c8 RBX: 0000000000000038 RCX: ffffffff816b999a RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff942662c0 RBP: 0000000000000000 R08: 0000000000000000 R09: fffffbfff284cc58 R10: ffffffff942662c7 R11: 0000000000000005 R12: ffffed1002e78c9b R13: ffff8880173c64e0 R14: ffff8880173c65d0 R15: 0000000000000002 FS: 0000000000000000(0000) GS:ffff8880b9200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffc1951bd08 CR3: 000000000d97a000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: instrument_atomic_read include/linux/instrumented.h:68 [inline] _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] __lock_acquire+0xeba/0x3b30 kernel/locking/lockdep.c:5107 lock_acquire kernel/locking/lockdep.c:5754 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5719 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] __pte_offset_map_lock+0xf1/0x300 mm/pgtable-generic.c:375 pte_offset_map_lock include/linux/mm.h:3020 [inline] __get_locked_pte+0x79/0xc0 mm/memory.c:1977 get_locked_pte include/linux/mm.h:2744 [inline] __text_poke+0x224/0xca0 arch/x86/kernel/alternative.c:1883 text_poke_bp_batch+0x1cd/0x760 arch/x86/kernel/alternative.c:2276 text_poke_flush arch/x86/kernel/alternative.c:2470 [inline] text_poke_flush arch/x86/kernel/alternative.c:2467 [inline] text_poke_finish+0x30/0x40 arch/x86/kernel/alternative.c:2477 arch_jump_label_transform_apply+0x1c/0x30 arch/x86/kernel/jump_label.c:146 jump_label_update+0x1d7/0x400 kernel/jump_label.c:882 static_key_disable_cpuslocked+0x154/0x1c0 kernel/jump_label.c:235 static_key_disable+0x1a/0x20 kernel/jump_label.c:243 toggle_allocation_gate mm/kfence/core.c:831 [inline] toggle_allocation_gate+0x143/0x250 mm/kfence/core.c:818 process_one_work+0x9fb/0x1b60 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf70 kernel/workqueue.c:3393 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244