INFO: task syz.2.654:6808 blocked for more than 143 seconds. Not tainted 6.12.0-rc1-syzkaller-00125-g0c559323bbaa #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.2.654 state:D stack:25184 pid:6808 tgid:6807 ppid:5223 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5315 [inline] __schedule+0x1843/0x4ae0 kernel/sched/core.c:6675 __schedule_loop kernel/sched/core.c:6752 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6767 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6824 rwsem_down_write_slowpath+0xeee/0x13b0 kernel/locking/rwsem.c:1176 __down_write_common kernel/locking/rwsem.c:1304 [inline] __down_write kernel/locking/rwsem.c:1313 [inline] down_write+0x1d7/0x220 kernel/locking/rwsem.c:1578 filemap_invalidate_lock include/linux/fs.h:860 [inline] blk_ioctl_zeroout block/ioctl.c:238 [inline] blkdev_common_ioctl+0x150b/0x2480 block/ioctl.c:572 blkdev_ioctl+0x4ca/0x6a0 block/ioctl.c:687 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0xf9/0x170 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fb3a6f7dff9 RSP: 002b:00007fb3a7cba038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fb3a7135f80 RCX: 00007fb3a6f7dff9 RDX: 0000000020000240 RSI: 000000000000127f RDI: 0000000000000005 RBP: 00007fb3a6ff0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fb3a7135f80 R15: 00007ffd18be9e38 Showing all locks held in the system: 2 locks held by kworker/u8:0/11: #0: ffff88801eb62948 ((wq_completion)iou_exit){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline] #0: ffff88801eb62948 ((wq_completion)iou_exit){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1850 kernel/workqueue.c:3310 #1: ffffc90000107d00 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline] #1: ffffc90000107d00 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1850 kernel/workqueue.c:3310 1 lock held by khungtaskd/30: #0: ffffffff8e937de0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #0: ffffffff8e937de0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffffffff8e937de0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6720 3 locks held by kworker/u8:4/67: 2 locks held by kworker/u8:5/1806: 4 locks held by kworker/u8:6/1814: 2 locks held by kworker/u8:7/3855: 2 locks held by getty/4977: #0: ffff88802ea6f0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90002f062f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211 3 locks held by kworker/1:3/5227: 1 lock held by syz.3.547/6562: 1 lock held by syz.2.654/6808: #0: ffff8880234ae540 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:860 [inline] #0: ffff8880234ae540 (mapping.invalidate_lock#2){++++}-{3:3}, at: blk_ioctl_zeroout block/ioctl.c:238 [inline] #0: ffff8880234ae540 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_common_ioctl+0x150b/0x2480 block/ioctl.c:572 1 lock held by syz.1.1437/8842: #0: ffff8880234ae540 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:870 [inline] #0: ffff8880234ae540 (mapping.invalidate_lock#2){++++}-{3:3}, at: page_cache_ra_unbounded+0x135/0x8a0 mm/readahead.c:226 2 locks held by syz-executor/9854: 1 lock held by syz.4.2011/10670: 2 locks held by syz.2.2047/10757: ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.12.0-rc1-syzkaller-00125-g0c559323bbaa #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 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:162 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline] watchdog+0xff4/0x1040 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 UID: 0 PID: 9854 Comm: syz-executor Not tainted 6.12.0-rc1-syzkaller-00125-g0c559323bbaa #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:local_lock_acquire include/linux/local_lock_internal.h:30 [inline] RIP: 0010:refill_obj_stock+0x519/0x650 mm/memcontrol.c:2852 Code: 00 00 83 3d 28 3b 17 0e 00 75 19 90 48 c7 c7 00 d6 17 8c 48 c7 c6 c0 d6 17 8c e8 52 24 51 ff 90 0f 0b 90 90 90 e9 62 fe ff ff <48> c7 c1 40 79 39 9a 80 e1 07 80 c1 03 38 c1 0f 8c 2b fc ff ff 48 RSP: 0018:ffffc90011fa7740 EFLAGS: 00000002 RAX: 0000000000000004 RBX: ffffffff8e307a50 RCX: 5185e17933ec7400 RDX: dffffc0000000000 RSI: ffffffff8c0adc40 RDI: ffffffff8c602460 RBP: ffffc90011fa7830 R08: ffffffff942908ff R09: 1ffffffff285211f R10: dffffc0000000000 R11: fffffbfff2852120 R12: dffffc0000000000 R13: dffffc0000000000 R14: ffff8880b8639818 R15: 0000000000000246 FS: 00005555835e1500(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8746707ab8 CR3: 0000000057d4c000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: obj_cgroup_charge+0x3a6/0x5d0 mm/memcontrol.c:2916 __memcg_slab_post_alloc_hook+0x1b1/0x7e0 mm/memcontrol.c:2975 memcg_slab_post_alloc_hook mm/slub.c:2157 [inline] slab_post_alloc_hook mm/slub.c:4096 [inline] slab_alloc_node mm/slub.c:4135 [inline] __do_kmalloc_node mm/slub.c:4264 [inline] __kmalloc_node_noprof+0x2a5/0x440 mm/slub.c:4271 __kvmalloc_node_noprof+0x72/0x190 mm/util.c:658 xt_alloc_table_info+0x3d/0xa0 net/netfilter/x_tables.c:1193 do_replace net/ipv6/netfilter/ip6_tables.c:1143 [inline] do_ip6t_set_ctl+0xba0/0x1270 net/ipv6/netfilter/ip6_tables.c:1644 nf_setsockopt+0x295/0x2c0 net/netfilter/nf_sockopt.c:101 do_sock_setsockopt+0x3af/0x720 net/socket.c:2329 __sys_setsockopt+0x1a2/0x250 net/socket.c:2352 __do_sys_setsockopt net/socket.c:2361 [inline] __se_sys_setsockopt net/socket.c:2358 [inline] __x64_sys_setsockopt+0xb5/0xd0 net/socket.c:2358 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f874657feea Code: ff ff ff c3 0f 1f 40 00 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 49 89 ca b8 36 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 06 c3 0f 1f 44 00 00 48 c7 c2 a8 ff ff ff f7 RSP: 002b:00007ffef464df28 EFLAGS: 00000202 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007ffef464dfb0 RCX: 00007f874657feea RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000003 RBP: 0000000000000003 R08: 00000000000003b8 R09: 0079746972756365 R10: 00007f87467087e0 R11: 0000000000000202 R12: 00007f8746708780 R13: 00007ffef464df4c R14: 0000000000000000 R15: 00007f8746708e40