INFO: task syz-executor.5:25477 blocked for more than 143 seconds. Not tainted 6.0.0-rc5-syzkaller-00025-g3245cb65fd91 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:28536 pid:25477 ppid: 3645 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5182 [inline] __schedule+0x957/0xe20 kernel/sched/core.c:6494 schedule+0xcb/0x190 kernel/sched/core.c:6570 rwsem_down_write_slowpath+0xe1c/0x1390 kernel/locking/rwsem.c:1182 __down_write_common kernel/locking/rwsem.c:1297 [inline] __down_write kernel/locking/rwsem.c:1306 [inline] down_write+0x163/0x170 kernel/locking/rwsem.c:1553 filemap_invalidate_lock include/linux/fs.h:801 [inline] blkdev_fallocate+0x21f/0x390 block/fops.c:641 vfs_fallocate+0x515/0x670 fs/open.c:323 madvise_remove+0x221/0x290 mm/madvise.c:976 madvise_vma_behavior mm/madvise.c:1000 [inline] madvise_walk_vmas mm/madvise.c:1232 [inline] do_madvise+0x7b7/0x1f30 mm/madvise.c:1410 __do_sys_madvise mm/madvise.c:1423 [inline] __se_sys_madvise mm/madvise.c:1421 [inline] __x64_sys_madvise+0xa2/0xb0 mm/madvise.c:1421 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f350b289409 RSP: 002b:00007f350c47a168 EFLAGS: 00000246 ORIG_RAX: 000000000000001c RAX: ffffffffffffffda RBX: 00007f350b39c120 RCX: 00007f350b289409 RDX: 0000000000000009 RSI: 0000000000600003 RDI: 0000000020000000 RBP: 00007f350b2e4367 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffa9bab3af R14: 00007f350c47a300 R15: 0000000000022000 INFO: task syz-executor.0:25480 blocked for more than 143 seconds. Not tainted 6.0.0-rc5-syzkaller-00025-g3245cb65fd91 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:27360 pid:25480 ppid: 3643 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5182 [inline] __schedule+0x957/0xe20 kernel/sched/core.c:6494 schedule+0xcb/0x190 kernel/sched/core.c:6570 rwsem_down_read_slowpath+0x5fe/0x950 kernel/locking/rwsem.c:1087 __down_read_common+0x54/0x2a0 kernel/locking/rwsem.c:1252 filemap_invalidate_lock_shared include/linux/fs.h:811 [inline] page_cache_ra_unbounded+0xf0/0x640 mm/readahead.c:220 do_sync_mmap_readahead+0x76d/0x960 mm/filemap.c:3028 filemap_fault+0x344/0xf60 mm/filemap.c:3120 __do_fault+0x139/0x4f0 mm/memory.c:4173 do_read_fault mm/memory.c:4518 [inline] do_fault mm/memory.c:4647 [inline] handle_pte_fault mm/memory.c:4911 [inline] __handle_mm_fault mm/memory.c:5053 [inline] handle_mm_fault+0x2835/0x35c0 mm/memory.c:5151 faultin_page mm/gup.c:990 [inline] __get_user_pages+0x4eb/0x11b0 mm/gup.c:1219 populate_vma_page_range+0x216/0x2b0 mm/gup.c:1576 __mm_populate+0x2ea/0x4d0 mm/gup.c:1689 mm_populate include/linux/mm.h:2663 [inline] vm_mmap_pgoff+0x241/0x2f0 mm/util.c:557 ksys_mmap_pgoff+0x48c/0x6d0 mm/mmap.c:1586 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7feb89089409 RSP: 002b:00007feb8a1f5168 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007feb8919bf80 RCX: 00007feb89089409 RDX: 0000000001000006 RSI: 0000000000b34900 RDI: 0000000020000000 RBP: 00007feb890e4367 R08: 0000000000000004 R09: 0000000028000000 R10: 0000000000028011 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffeef71741f R14: 00007feb8a1f5300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8cd20a70 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507 1 lock held by rcu_tasks_trace/13: #0: ffffffff8cd21270 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507 1 lock held by khungtaskd/28: #0: ffffffff8cd208a0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by getty/3284: #0: ffff88802768b098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc90002d232f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6e8/0x1e50 drivers/tty/n_tty.c:2177 2 locks held by kworker/0:5/3697: #0: ffff888012066538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262 #1: ffffc900044bfd00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264 1 lock held by syz-executor.3/25463: 1 lock held by syz-executor.3/25465: 1 lock held by syz-executor.3/25468: 1 lock held by syz-executor.5/25477: #0: ffff888140ce4ac0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:801 [inline] #0: ffff888140ce4ac0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x21f/0x390 block/fops.c:641 1 lock held by syz-executor.0/25480: #0: ffff888140ce4ac0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:811 [inline] #0: ffff888140ce4ac0 (mapping.invalidate_lock#2){++++}-{3:3}, at: page_cache_ra_unbounded+0xf0/0x640 mm/readahead.c:220 1 lock held by syz-executor.0/25555: #0: ffff888140ce4ac0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:811 [inline] #0: ffff888140ce4ac0 (mapping.invalidate_lock#2){++++}-{3:3}, at: page_cache_ra_unbounded+0xf0/0x640 mm/readahead.c:220 1 lock held by syz-executor.5/25568: #0: ffff888140ce4ac0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:801 [inline] #0: ffff888140ce4ac0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x21f/0x390 block/fops.c:641 1 lock held by syz-executor.0/25608: #0: ffff888140ce4ac0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:811 [inline] #0: ffff888140ce4ac0 (mapping.invalidate_lock#2){++++}-{3:3}, at: page_cache_ra_unbounded+0xf0/0x640 mm/readahead.c:220 2 locks held by dhcpcd/25625: #0: ffff8880226c6130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1712 [inline] #0: ffff8880226c6130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2a/0xce0 net/packet/af_packet.c:3194 #1: ffffffff8cd25e78 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:292 [inline] #1: ffffffff8cd25e78 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x2a4/0x770 kernel/rcu/tree_exp.h:940 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.0.0-rc5-syzkaller-00025-g3245cb65fd91 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 nmi_cpu_backtrace+0x47c/0x4b0 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x169/0x280 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:212 [inline] watchdog+0xcd5/0xd20 kernel/hung_task.c:369 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 10573 Comm: kworker/u4:16 Not tainted 6.0.0-rc5-syzkaller-00025-g3245cb65fd91 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 Workqueue: bat_events batadv_nc_worker RIP: 0010:lockdep_recursion_finish kernel/locking/lockdep.c:466 [inline] RIP: 0010:lock_acquire+0x1c4/0x400 kernel/locking/lockdep.c:5668 Code: 00 ff 75 10 ff 74 24 48 e8 69 05 00 00 48 83 c4 20 48 c7 c7 c0 88 ad 8a e8 09 35 d0 08 b8 ff ff ff ff 65 0f c1 05 0c 2b 99 7e <83> f8 01 0f 85 96 01 00 00 49 89 de 48 c1 eb 03 42 80 3c 23 00 74 RSP: 0018:ffffc9000ba3fa60 EFLAGS: 00000057 RAX: 0000000000000001 RBX: ffffc9000ba3fac0 RCX: ffff88802296c570 RDX: dffffc0000000000 RSI: ffffffff8aad88c0 RDI: ffffffff8b0a6700 RBP: ffffc9000ba3fbb8 R08: dffffc0000000000 R09: fffffbfff1ff4609 R10: fffffbfff1ff4609 R11: 1ffffffff1ff4608 R12: dffffc0000000000 R13: 1ffff92001747f54 R14: ffffffff8cd208a0 R15: 0000000000000246 FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555cd7b58600 CR3: 000000000ca8e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rcu_lock_acquire+0x2a/0x30 include/linux/rcupdate.h:280 rcu_read_lock include/linux/rcupdate.h:706 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:408 [inline] batadv_nc_worker+0xc8/0x5b0 net/batman-adv/network-coding.c:719 process_one_work+0x81c/0xd10 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30