INFO: task syz-executor.3:8457 blocked for more than 143 seconds. Not tainted 6.0.0-rc5-syzkaller-00094-ga335366bad13 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.3 state:D stack:28176 pid: 8457 ppid: 7728 flags:0x20004004 Call Trace: context_switch kernel/sched/core.c:5182 [inline] __schedule+0xadf/0x52b0 kernel/sched/core.c:6494 schedule+0xda/0x1b0 kernel/sched/core.c:6570 rwsem_down_read_slowpath+0x59f/0xb10 kernel/locking/rwsem.c:1087 __down_read_common kernel/locking/rwsem.c:1252 [inline] __down_read kernel/locking/rwsem.c:1261 [inline] down_read+0xe2/0x450 kernel/locking/rwsem.c:1501 filemap_invalidate_lock_shared include/linux/fs.h:811 [inline] page_cache_ra_unbounded+0x153/0x550 mm/readahead.c:220 do_page_cache_ra mm/readahead.c:293 [inline] page_cache_ra_order+0x69a/0x970 mm/readahead.c:550 do_sync_mmap_readahead mm/filemap.c:3028 [inline] filemap_fault+0x1641/0x2610 mm/filemap.c:3120 __do_fault+0x10d/0x610 mm/memory.c:4173 do_shared_fault mm/memory.c:4573 [inline] do_fault mm/memory.c:4651 [inline] handle_pte_fault mm/memory.c:4911 [inline] __handle_mm_fault+0x21ac/0x39b0 mm/memory.c:5053 handle_mm_fault+0x1c8/0x780 mm/memory.c:5151 do_user_addr_fault+0x475/0x1210 arch/x86/mm/fault.c:1397 handle_page_fault arch/x86/mm/fault.c:1488 [inline] exc_page_fault+0x94/0x170 arch/x86/mm/fault.c:1544 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0023:0xf6e54aa6 RSP: 002b:00000000f748fb48 EFLAGS: 00010206 RAX: 0000000000000003 RBX: 00000000f6f37000 RCX: 0000000000000003 RDX: 0000000000000000 RSI: 00000000f6f60688 RDI: 0000000020000040 RBP: 00000000f6f60670 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 INFO: task syz-executor.3:8458 blocked for more than 144 seconds. Not tainted 6.0.0-rc5-syzkaller-00094-ga335366bad13 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.3 state:D stack:27944 pid: 8458 ppid: 7728 flags:0x20004004 Call Trace: context_switch kernel/sched/core.c:5182 [inline] __schedule+0xadf/0x52b0 kernel/sched/core.c:6494 schedule+0xda/0x1b0 kernel/sched/core.c:6570 rwsem_down_read_slowpath+0x59f/0xb10 kernel/locking/rwsem.c:1087 __down_read_common kernel/locking/rwsem.c:1252 [inline] __down_read kernel/locking/rwsem.c:1261 [inline] down_read+0xe2/0x450 kernel/locking/rwsem.c:1501 filemap_invalidate_lock_shared include/linux/fs.h:811 [inline] page_cache_ra_unbounded+0x153/0x550 mm/readahead.c:220 do_page_cache_ra mm/readahead.c:293 [inline] page_cache_ra_order+0x69a/0x970 mm/readahead.c:550 do_sync_mmap_readahead mm/filemap.c:3028 [inline] filemap_fault+0x1641/0x2610 mm/filemap.c:3120 __do_fault+0x10d/0x610 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+0x2130/0x39b0 mm/memory.c:5053 handle_mm_fault+0x1c8/0x780 mm/memory.c:5151 do_user_addr_fault+0x475/0x1210 arch/x86/mm/fault.c:1397 handle_page_fault arch/x86/mm/fault.c:1488 [inline] exc_page_fault+0x94/0x170 arch/x86/mm/fault.c:1544 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0010:copy_user_enhanced_fast_string+0xa/0x40 arch/x86/lib/copy_user_64.S:166 Code: ff c9 75 f2 89 d1 c1 e9 03 83 e2 07 f3 48 a5 89 d1 f3 a4 31 c0 0f 01 ca c3 8d 0c ca 89 ca eb 20 0f 01 cb 83 fa 40 72 38 89 d1 a4 31 c0 0f 01 ca c3 89 ca eb 0a 66 2e 0f 1f 84 00 00 00 00 00 RSP: 0018:ffffc90015ab7b30 EFLAGS: 00050206 RAX: 0000000000000001 RBX: 0000000000001000 RCX: 0000000000001000 RDX: 0000000000001000 RSI: 000000002005f000 RDI: ffff88809c154000 RBP: ffff88809c154000 R08: 0000000000000001 R09: ffff88809c154fff R10: ffffed101382a9ff R11: 0000000000000000 R12: 00007fffffffe000 R13: 000000002005f000 R14: dffffc0000000000 R15: 000000002005f000 copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline] raw_copy_from_user arch/x86/include/asm/uaccess_64.h:52 [inline] _copy_from_user+0x137/0x170 lib/usercopy.c:16 copy_from_user include/linux/uaccess.h:152 [inline] snd_rawmidi_kernel_write1+0x366/0x880 sound/core/rawmidi.c:1549 snd_rawmidi_write+0x273/0xbb0 sound/core/rawmidi.c:1618 vfs_write+0x2d7/0xdd0 fs/read_write.c:576 ksys_write+0x1e8/0x250 fs/read_write.c:631 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0x65/0xf0 arch/x86/entry/common.c:178 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x70/0x82 RIP: 0023:0xf7fad549 RSP: 002b:00000000f7fa85cc EFLAGS: 00000296 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000020000000 RDX: 00000000fffffd2c RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000296 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Showing all locks held in the system: 3 locks held by kworker/u4:0/8: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8bf888b0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507 1 lock held by rcu_tasks_trace/13: #0: ffffffff8bf885b0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507 1 lock held by khungtaskd/28: #0: ffffffff8bf89400 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6492 3 locks held by kworker/u4:2/41: 2 locks held by getty/3286: #0: ffff888026dc1098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244 #1: ffffc90002d232f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef0/0x13e0 drivers/tty/n_tty.c:2177 3 locks held by kworker/1:7/4270: #0: ffff888011864d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888011864d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888011864d38 ((wq_completion)events){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] #0: ffff888011864d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline] #0: ffff888011864d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline] #0: ffff888011864d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x87a/0x1610 kernel/workqueue.c:2260 #1: ffffc9000af77da8 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work+0x8ae/0x1610 kernel/workqueue.c:2264 #2: ffffffff8d7b1128 (rtnl_mutex){+.+.}-{3:3}, at: linkwatch_event+0xb/0x60 net/core/link_watch.c:263 2 locks held by kworker/1:8/4271: #0: ffff888011866538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888011866538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888011866538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] #0: ffff888011866538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline] #0: ffff888011866538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline] #0: ffff888011866538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x87a/0x1610 kernel/workqueue.c:2260 #1: ffffc9000af87da8 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x8ae/0x1610 kernel/workqueue.c:2264 1 lock held by syz-executor.3/7694: 1 lock held by syz-executor.3/8457: #0: ffff888144d834c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:811 [inline] #0: ffff888144d834c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: page_cache_ra_unbounded+0x153/0x550 mm/readahead.c:220 1 lock held by syz-executor.3/8458: #0: ffff888144d834c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:811 [inline] #0: ffff888144d834c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: page_cache_ra_unbounded+0x153/0x550 mm/readahead.c:220 1 lock held by syz-executor.2/11692: #0: ffffffff8bf93f80 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x44/0x720 kernel/rcu/tree.c:3788 2 locks held by syz-executor.5/11691: #0: ffffffff8d7b1128 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:74 [inline] #0: ffffffff8d7b1128 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x3e5/0xca0 net/core/rtnetlink.c:6087 #1: ffffffff8bf940b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:292 [inline] #1: ffffffff8bf940b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x562/0x670 kernel/rcu/tree_exp.h:940 2 locks held by syz-executor.3/11700: #0: ffffffff8d79d750 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x2f5/0x760 net/core/net_namespace.c:468 #1: ffffffff8d7b1128 (rtnl_mutex){+.+.}-{3:3}, at: smc_pnet_create_pnetids_list net/smc/smc_pnet.c:804 [inline] #1: ffffffff8d7b1128 (rtnl_mutex){+.+.}-{3:3}, at: smc_pnet_net_init+0x214/0x460 net/smc/smc_pnet.c:873 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.0.0-rc5-syzkaller-00094-ga335366bad13 #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+0xcd/0x134 lib/dump_stack.c:106 nmi_cpu_backtrace.cold+0x46/0x14f lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x206/0x250 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+0xc18/0xf50 kernel/hung_task.c:369 kthread+0x2e4/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 41 Comm: kworker/u4:2 Not tainted 6.0.0-rc5-syzkaller-00094-ga335366bad13 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 Workqueue: netns cleanup_net RIP: 0010:lock_is_held_type+0x10c/0x140 kernel/locking/lockdep.c:5714 Code: 82 76 83 f8 01 75 29 9c 58 f6 c4 02 75 3d 48 f7 04 24 00 02 00 00 74 01 fb 48 83 c4 08 44 89 e8 5b 5d 41 5c 41 5d 41 5e 41 5f 45 31 ed eb b9 0f 0b 48 c7 c7 c0 a8 ec 89 e8 80 14 00 00 65 c7 RSP: 0018:ffffc90000b27b08 EFLAGS: 00000286 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffffff8b008f00 R08: 0000000000000004 R09: 000000000007ffff R10: 00000000000692e6 R11: 1ffff1100234db9a R12: 000000000000010d R13: ffffc90000b27ca0 R14: 0000000000000002 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000f6f398f4 CR3: 0000000076008000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_is_held include/linux/lockdep.h:283 [inline] __might_resched+0x21/0x2c0 kernel/sched/core.c:9854 inet_twsk_purge+0xe8/0x850 net/ipv4/inet_timewait_sock.c:269 ops_exit_list+0x125/0x170 net/core/net_namespace.c:168 cleanup_net+0x4ea/0xb00 net/core/net_namespace.c:595 process_one_work+0x991/0x1610 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2e4/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306