INFO: task syz.4.180:4918 blocked for more than 143 seconds. Not tainted 5.15.175-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.4.180 state:D stack:25856 pid: 4918 ppid: 4172 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5027 [inline] __schedule+0x12c4/0x45b0 kernel/sched/core.c:6373 schedule+0x11b/0x1f0 kernel/sched/core.c:6456 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6515 rwsem_down_read_slowpath+0x605/0xb40 kernel/locking/rwsem.c:1055 __down_read_common kernel/locking/rwsem.c:1239 [inline] __down_read kernel/locking/rwsem.c:1252 [inline] down_read+0x9a/0x2e0 kernel/locking/rwsem.c:1500 filemap_invalidate_lock_shared include/linux/fs.h:844 [inline] page_cache_ra_unbounded+0x1a6/0x930 mm/readahead.c:195 do_sync_mmap_readahead+0x610/0x800 mm/filemap.c:2996 filemap_fault+0x77a/0x1470 mm/filemap.c:3089 __do_fault+0x139/0x340 mm/memory.c:3926 do_read_fault mm/memory.c:4262 [inline] do_fault mm/memory.c:4390 [inline] handle_pte_fault mm/memory.c:4648 [inline] __handle_mm_fault mm/memory.c:4783 [inline] handle_mm_fault+0x376f/0x5960 mm/memory.c:4881 do_user_addr_fault arch/x86/mm/fault.c:1357 [inline] handle_page_fault arch/x86/mm/fault.c:1445 [inline] exc_page_fault+0x271/0x700 arch/x86/mm/fault.c:1501 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:606 RIP: 0010:__get_user_nocheck_1+0x6/0x10 arch/x86/lib/getuser.S:124 Code: d0 73 64 48 19 d2 48 21 d0 0f 01 cb 48 8b 10 31 c0 0f 01 ca c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 0f 01 cb 0f ae e8 <0f> b6 10 31 c0 0f 01 ca c3 90 0f 01 cb 0f ae e8 0f b7 10 31 c0 0f RSP: 0018:ffffc900031cf9b8 EFLAGS: 00050287 RAX: 0000000020001000 RBX: 0000000020001000 RCX: 0000000000080000 RDX: ffffc9000cac2000 RSI: 00000000000008cd RDI: 00000000000008ce RBP: ffffc900031cfa78 R08: ffffffff81b759f3 R09: fffff9400038ccf7 R10: 0000000000000000 R11: dffffc0000000001 R12: 00000000ffffffff R13: 0000000020001000 R14: 0000000020002000 R15: 0000000020001000 fault_in_readable+0x172/0x2e0 mm/gup.c:1801 fault_in_iov_iter_readable+0x14a/0x1d0 lib/iov_iter.c:460 generic_perform_write+0x1c9/0x5b0 mm/filemap.c:3775 __generic_file_write_iter+0x243/0x4f0 mm/filemap.c:3912 generic_file_write_iter+0xa7/0x1b0 mm/filemap.c:3944 call_write_iter include/linux/fs.h:2174 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0xacd/0xe50 fs/read_write.c:594 ksys_write+0x1a2/0x2c0 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fde056fad29 RSP: 002b:00007fde0356b038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fde058eafa0 RCX: 00007fde056fad29 RDX: 00000000ffffff6a RSI: 0000000020000000 RDI: 0000000000000005 RBP: 00007fde05776b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fde058eafa0 R15: 00007fffeb00d728 INFO: task syz.4.180:4921 blocked for more than 143 seconds. Not tainted 5.15.175-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.4.180 state:D stack:26360 pid: 4921 ppid: 4172 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5027 [inline] __schedule+0x12c4/0x45b0 kernel/sched/core.c:6373 schedule+0x11b/0x1f0 kernel/sched/core.c:6456 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6515 rwsem_down_read_slowpath+0x605/0xb40 kernel/locking/rwsem.c:1055 __down_read_common kernel/locking/rwsem.c:1239 [inline] __down_read kernel/locking/rwsem.c:1252 [inline] down_read+0x9a/0x2e0 kernel/locking/rwsem.c:1500 filemap_invalidate_lock_shared include/linux/fs.h:844 [inline] page_cache_ra_unbounded+0x1a6/0x930 mm/readahead.c:195 do_sync_mmap_readahead+0x610/0x800 mm/filemap.c:2996 filemap_fault+0x77a/0x1470 mm/filemap.c:3089 __do_fault+0x139/0x340 mm/memory.c:3926 do_cow_fault mm/memory.c:4291 [inline] do_fault mm/memory.c:4392 [inline] handle_pte_fault mm/memory.c:4648 [inline] __handle_mm_fault mm/memory.c:4783 [inline] handle_mm_fault+0x30da/0x5960 mm/memory.c:4881 faultin_page mm/gup.c:976 [inline] __get_user_pages+0x4ed/0x11d0 mm/gup.c:1197 faultin_vma_page_range+0x21f/0x2a0 mm/gup.c:1590 madvise_populate mm/madvise.c:856 [inline] madvise_vma mm/madvise.c:1004 [inline] do_madvise+0xbca/0x3470 mm/madvise.c:1207 __do_sys_madvise mm/madvise.c:1233 [inline] __se_sys_madvise mm/madvise.c:1231 [inline] __x64_sys_madvise+0xa1/0xb0 mm/madvise.c:1231 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fde056fad29 RSP: 002b:00007fde0354a038 EFLAGS: 00000246 ORIG_RAX: 000000000000001c RAX: ffffffffffffffda RBX: 00007fde058eb080 RCX: 00007fde056fad29 RDX: 0000000000000017 RSI: 0000000000c00000 RDI: 0000000020000000 RBP: 00007fde05776b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fde058eb080 R15: 00007fffeb00d728 Showing all locks held in the system: 1 lock held by khungtaskd/27: #0: ffffffff8cb1fd20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 1 lock held by udevd/3546: 2 locks held by getty/3927: #0: ffff88802c906098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252 #1: ffffc900026362e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6af/0x1db0 drivers/tty/n_tty.c:2158 3 locks held by kworker/0:7/4216: 2 locks held by kworker/u4:6/4252: 1 lock held by syz.3.54/4429: 4 locks held by syz.4.180/4918: #0: ffff888020dd74f0 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x2cb/0x380 fs/file.c:1057 #1: ffff888078a62460 (sb_writers#3){.+.+}-{0:0}, at: vfs_write+0x29a/0xe50 fs/read_write.c:590 #2: ffff8880261b2190 (&sb->s_type->i_mutex_key#8){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:789 [inline] #2: ffff8880261b2190 (&sb->s_type->i_mutex_key#8){+.+.}-{3:3}, at: generic_file_write_iter+0x7c/0x1b0 mm/filemap.c:3941 #3: ffff88814086f338 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:844 [inline] #3: ffff88814086f338 (mapping.invalidate_lock#2){++++}-{3:3}, at: page_cache_ra_unbounded+0x1a6/0x930 mm/readahead.c:195 1 lock held by syz.4.180/4921: #0: ffff88814086f338 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:844 [inline] #0: ffff88814086f338 (mapping.invalidate_lock#2){++++}-{3:3}, at: page_cache_ra_unbounded+0x1a6/0x930 mm/readahead.c:195 1 lock held by syz.6.366/5662: #0: ffff88814086f338 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:844 [inline] #0: ffff88814086f338 (mapping.invalidate_lock#2){++++}-{3:3}, at: page_cache_ra_unbounded+0x1a6/0x930 mm/readahead.c:195 1 lock held by syz.6.366/5671: #0: ffff88814086f338 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:844 [inline] #0: ffff88814086f338 (mapping.invalidate_lock#2){++++}-{3:3}, at: page_cache_ra_unbounded+0x1a6/0x930 mm/readahead.c:195 4 locks held by syz.7.545/6306: #0: ffffffff8d1f0028 (tty_mutex){+.+.}-{3:3}, at: tty_open_by_driver drivers/tty/tty_io.c:2064 [inline] #0: ffffffff8d1f0028 (tty_mutex){+.+.}-{3:3}, at: tty_open+0x237/0xde0 drivers/tty/tty_io.c:2148 #1: ffff888020e301c0 (&tty->legacy_mutex){+.+.}-{3:3}, at: tty_init_dev+0x6a/0x4b0 drivers/tty/tty_io.c:1430 #2: ffffffff8c9fc5e0 (console_lock){+.+.}-{0:0}, at: con_install+0x95/0x7f0 drivers/tty/vt/vt.c:3381 #3: ffffffff8cc523f0 (kernfs_rwsem){++++}-{3:3}, at: kernfs_add_one+0x53/0x640 fs/kernfs/dir.c:747 2 locks held by syz.5.547/6302: #0: ffff88802368f6b8 (&nft_net->commit_mutex){+.+.}-{3:3}, at: nf_tables_valid_genid+0x2e/0x100 net/netfilter/nf_tables_api.c:9974 #1: ffffffff8cb242e8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:290 [inline] #1: ffffffff8cb242e8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x280/0x740 kernel/rcu/tree_exp.h:845 2 locks held by syz.2.548/6309: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 27 Comm: khungtaskd Not tainted 5.15.175-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x46a/0x4a0 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x181/0x2a0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline] watchdog+0xe72/0xeb0 kernel/hung_task.c:295 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 4429 Comm: syz.3.54 Not tainted 5.15.175-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:arch_stack_walk+0x101/0x140 arch/x86/kernel/stacktrace.c:27 Code: c5 e2 08 00 83 bd 70 ff ff ff 00 74 32 48 8d 9d 70 ff ff ff 48 89 df e8 dd c0 08 00 48 85 c0 74 1e 4c 89 f7 48 89 c6 41 ff d5 <84> c0 74 11 48 89 df e8 e3 c1 08 00 83 bd 70 ff ff ff 00 75 d5 65 RSP: 0018:ffffc900014eec60 EFLAGS: 00000286 RAX: 0000000000000001 RBX: ffffc900014eec60 RCX: 0000000080000000 RDX: dffffc0000000000 RSI: ffffffff83f7ab1d RDI: ffffc900014eed4c RBP: ffffc900014eecf0 R08: 000000000000000b R09: ffffc900014eed50 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888025463b80 R13: ffffffff816e19d0 R14: ffffc900014eed40 R15: 0000000000000000 FS: 00007fc02972c6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c3ac3f2 CR3: 000000005aefb000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] __kasan_slab_alloc+0x8e/0xc0 mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x53/0x380 mm/slab.h:519 slab_alloc_node mm/slub.c:3220 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0xf3/0x280 mm/slub.c:3233 mempool_alloc+0x17f/0x590 mm/mempool.c:393 bio_alloc_bioset+0x132/0x8c0 block/bio.c:466 bio_clone_fast+0x25/0x170 block/bio.c:750 bio_split+0xa7/0x2d0 block/bio.c:1505 blk_bio_segment_split block/blk-merge.c:301 [inline] __blk_queue_split+0x111d/0x1770 block/blk-merge.c:350 blk_mq_submit_bio+0x239/0x1c40 block/blk-mq.c:2218 __submit_bio+0x813/0x850 block/blk-core.c:917 __submit_bio_noacct_mq block/blk-core.c:997 [inline] submit_bio_noacct+0xa44/0xb30 block/blk-core.c:1027 submit_bio+0x2dd/0x560 block/blk-core.c:1089 blk_next_bio block/blk-lib.c:19 [inline] __blkdev_issue_zero_pages+0x155/0x3b0 block/blk-lib.c:319 blkdev_issue_zeroout+0x2c5/0x470 block/blk-lib.c:413 blk_ioctl_zeroout block/ioctl.c:188 [inline] blkdev_common_ioctl+0x1ce5/0x2080 block/ioctl.c:487 blkdev_ioctl+0x286/0x6b0 block/ioctl.c:598 block_ioctl+0xb1/0xf0 block/fops.c:493 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fc02b8bbd29 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc02972c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fc02baabfa0 RCX: 00007fc02b8bbd29 RDX: 0000000020000080 RSI: 000000000000127f RDI: 0000000000000004 RBP: 00007fc02b937b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fc02baabfa0 R15: 00007ffe7cbf2068