INFO: task syz-executor.2:3304 blocked for more than 143 seconds. Not tainted 5.7.0-rc6-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.2 D26144 3304 7225 0x80004006 Call Trace: context_switch kernel/sched/core.c:3367 [inline] __schedule+0x937/0x1ff0 kernel/sched/core.c:4083 rwsem_down_write_slowpath+0x90a/0xf90 kernel/locking/rwsem.c:1216 __sched_text_start+0x8/0x8 schedule+0xd0/0x2a0 kernel/sched/core.c:4158 rwsem_down_write_slowpath+0x706/0xf90 kernel/locking/rwsem.c:1235 rwsem_mark_wake+0x8d0/0x8d0 include/linux/compiler.h:199 lock_acquire+0x1f2/0x8f0 kernel/locking/lockdep.c:4934 unregister_netdevice_notifier+0x1e/0x170 net/core/dev.c:1776 lock_release+0x800/0x800 kernel/locking/lockdep.c:4689 __sock_release+0x280/0x280 net/socket.c:605 __down_write kernel/locking/rwsem.c:1389 [inline] down_write+0x137/0x150 kernel/locking/rwsem.c:1532 atomic64_try_cmpxchg include/asm-generic/atomic-instrumented.h:1504 [inline] atomic_long_try_cmpxchg_acquire include/asm-generic/atomic-long.h:442 [inline] __down_write kernel/locking/rwsem.c:1387 [inline] down_write+0xb2/0x150 kernel/locking/rwsem.c:1532 __down_write kernel/locking/rwsem.c:1389 [inline] down_write+0x137/0x150 kernel/locking/rwsem.c:1532 __down_timeout+0x2d0/0x2d0 unregister_netdevice_notifier+0x1e/0x170 net/core/dev.c:1776 __sock_release+0x280/0x280 net/socket.c:605 raw_release+0x53/0x730 net/can/raw.c:354 fcntl_setlk+0xcc0/0xcc0 fs/locks.c:2542 __sock_release+0x280/0x280 net/socket.c:605 __sock_release+0xcd/0x280 net/socket.c:605 sock_close+0x18/0x20 net/socket.c:1283 __fput+0x33e/0x880 fs/file_table.c:280 task_work_run+0xf4/0x1b0 kernel/task_work.c:123 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0xb34/0x2dd0 kernel/exit.c:796 find_held_lock+0x2d/0x110 kernel/locking/lockdep.c:4458 mm_update_next_owner+0x7a0/0x7a0 kernel/exit.c:375 lock_downgrade+0x840/0x840 kernel/locking/lockdep.c:4579 do_group_exit+0x125/0x340 kernel/exit.c:894 get_signal+0x47b/0x24e0 kernel/signal.c:2739 find_held_lock+0x2d/0x110 kernel/locking/lockdep.c:4458 do_signal+0x81/0x2240 arch/x86/kernel/signal.c:784 lock_downgrade+0x840/0x840 kernel/locking/lockdep.c:4579 rcu_read_lock_any_held.part.0+0x50/0x50 arch/x86/include/asm/paravirt.h:754 get_sigframe.isra.0+0x730/0x730 arch/x86/kernel/signal.c:268 rcu_read_unlock_sched include/linux/rcupdate.h:732 [inline] __fd_install+0x1e6/0x600 fs/file.c:613 __sys_socket+0x16d/0x200 net/socket.c:438 move_addr_to_kernel+0x70/0x70 net/socket.c:195 exit_to_usermode_loop+0x26c/0x360 arch/x86/entry/common.c:161 prepare_exit_to_usermode arch/x86/entry/common.c:196 [inline] syscall_return_slowpath arch/x86/entry/common.c:279 [inline] do_syscall_64+0x6b1/0x7d0 arch/x86/entry/common.c:305 entry_SYSCALL_64_after_hwframe+0x49/0xb3 Showing all locks held in the system: 3 locks held by kworker/u4:8/345: #0: ffff8880a9771938 ((wq_completion)netns){+.+.}-{0:0}, at: __write_once_size include/linux/compiler.h:226 [inline] #0: ffff8880a9771938 ((wq_completion)netns){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8880a9771938 ((wq_completion)netns){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:855 [inline] #0: ffff8880a9771938 ((wq_completion)netns){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:40 [inline] #0: ffff8880a9771938 ((wq_completion)netns){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:615 [inline] #0: ffff8880a9771938 ((wq_completion)netns){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:642 [inline] #0: ffff8880a9771938 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x844/0x16a0 kernel/workqueue.c:2239 #1: ffffc90002087dc0 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x878/0x16a0 kernel/workqueue.c:2243 #2: ffffffff8a577370 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x9b/0xa50 net/core/net_namespace.c:565 1 lock held by khungtaskd/1138: #0: ffffffff899bea80 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:5754 1 lock held by in:imklog/6708: #0: ffff8880a75f4b30 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:826 2 locks held by agetty/6934: #0: ffff8880a85f3098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:267 #1: ffffc90000fa02e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x220/0x1b30 drivers/tty/n_tty.c:2156 2 locks held by agetty/6935: #0: ffff8880a6e9b098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:267 #1: ffffc90000f302e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x220/0x1b30 drivers/tty/n_tty.c:2156 2 locks held by syz-executor.2/3304: #0: ffff8881a64d3c90 (&sb->s_type->i_mutex_key#14){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:797 [inline] #0: ffff8881a64d3c90 (&sb->s_type->i_mutex_key#14){+.+.}-{3:3}, at: __sock_release+0x86/0x280 net/socket.c:604 #1: ffffffff8a577370 (pernet_ops_rwsem){++++}-{3:3}, at: unregister_netdevice_notifier+0x1e/0x170 net/core/dev.c:1776 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 1138 Comm: khungtaskd Not tainted 5.7.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x188/0x20d lib/dump_stack.c:118 nmi_cpu_backtrace.cold+0x70/0xb1 lib/nmi_backtrace.c:101 lapic_can_unplug_cpu.cold+0x3b/0x3b nmi_trigger_cpumask_backtrace+0x231/0x27e lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:205 [inline] watchdog+0xa8c/0x1010 kernel/hung_task.c:289 reset_hung_task_detector+0x30/0x30 kernel/hung_task.c:243 kthread+0x388/0x470 kernel/kthread.c:268 kthread_mod_delayed_work+0x1a0/0x1a0 kernel/kthread.c:1090 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:351 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 4090 Comm: systemd-journal Not tainted 5.7.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__sanitizer_cov_trace_pc+0x22/0x50 kernel/kcov.c:187 Code: 0f 1f 84 00 00 00 00 00 65 48 8b 04 25 00 1f 02 00 65 8b 15 98 e9 8e 7e 81 e2 00 01 1f 00 48 8b 34 24 75 2b 8b 90 d8 13 00 00 <83> fa 02 75 20 48 8b 88 e0 13 00 00 8b 80 dc 13 00 00 48 8b 11 48 RSP: 0018:ffffc90001637590 EFLAGS: 00000246 RAX: ffff888094ecc400 RBX: 0000000000000001 RCX: ffffffff8399d946 RDX: 0000000000000000 RSI: ffffffff8399d94f RDI: 0000000000000005 RBP: 00007feba4c10840 R08: ffff888094ecc400 R09: ffffed1015ce7104 R10: ffff8880ae73881b R11: ffffed1015ce7103 R12: 0000000000000001 R13: 0000000000000000 R14: ffff888094ecc400 R15: ffff88809ec8382f FS: 00007feba56808c0(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007feba2bfc000 CR3: 0000000094dc0000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000004000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: check_preemption_disabled lib/smp_processor_id.c:52 [inline] debug_smp_processor_id+0x2f/0x185 lib/smp_processor_id.c:57 rcu_dynticks_curr_cpu_in_eqs+0x12/0xb0 kernel/rcu/tree.c:300 rcu_is_watching+0xc/0x20 kernel/rcu/tree.c:929 rcu_read_unlock include/linux/rcupdate.h:651 [inline] is_bpf_text_address+0xdd/0x160 kernel/bpf/core.c:706 kernel_text_address+0x6e/0xe0 kernel/extable.c:151 __kernel_text_address+0x9/0x30 kernel/extable.c:105 unwind_get_return_address arch/x86/kernel/unwind_orc.c:317 [inline] unwind_get_return_address+0x5a/0xa0 arch/x86/kernel/unwind_orc.c:312 profile_setup.cold+0xc1/0xc1 arch_stack_walk+0x97/0xf0 arch/x86/kernel/stacktrace.c:26 stack_trace_save+0x8c/0xc0 kernel/stacktrace.c:123 stack_trace_consume_entry+0x160/0x160 kernel/stacktrace.c:93 test_bit include/asm-generic/bitops/instrumented-non-atomic.h:110 [inline] hlock_class kernel/locking/lockdep.c:179 [inline] lookup_chain_cache_add kernel/locking/lockdep.c:3146 [inline] validate_chain kernel/locking/lockdep.c:3202 [inline] __lock_acquire+0x2184/0x4c50 kernel/locking/lockdep.c:4355 save_stack+0x1b/0x40 mm/kasan/common.c:49 save_stack+0x1b/0x40 mm/kasan/common.c:49 set_track mm/kasan/common.c:57 [inline] __kasan_kmalloc mm/kasan/common.c:495 [inline] __kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:468 slab_post_alloc_hook mm/slab.h:586 [inline] slab_alloc mm/slab.c:3320 [inline] kmem_cache_alloc+0x11b/0x740 mm/slab.c:3484 kmem_cache_zalloc include/linux/slab.h:659 [inline] lsm_file_alloc security/security.c:567 [inline] security_file_alloc+0x34/0x160 security/security.c:1435 __alloc_file+0xd8/0x350 fs/file_table.c:106 alloc_empty_file+0x6d/0x170 fs/file_table.c:151 path_openat+0xe3/0x27d0 fs/namei.c:3332 do_filp_open+0x192/0x260 fs/namei.c:3373 do_sys_openat2+0x585/0x7d0 fs/open.c:1148 do_sys_open+0xc3/0x140 fs/open.c:1164 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 do_filp_open+0x192/0x260 fs/namei.c:3373 do_sys_openat2+0x585/0x7d0 fs/open.c:1148 mark_held_locks+0xe0/0xe0 kernel/locking/lockdep.c:3620 find_held_lock+0x2d/0x110 kernel/locking/lockdep.c:4458 mark_held_locks+0xe0/0xe0 kernel/locking/lockdep.c:3620 find_held_lock+0x2d/0x110 kernel/locking/lockdep.c:4458 fs_reclaim_release+0xa/0x20 mm/page_alloc.c:4170 fs_reclaim_release+0xa/0x20 mm/page_alloc.c:4170 lock_downgrade+0x840/0x840 kernel/locking/lockdep.c:4579 fault_create_debugfs_attr+0x140/0x140 lib/fault-inject.c:227 kasan_poison_shadow mm/kasan/common.c:131 [inline] kasan_unpoison_shadow+0x30/0x40 mm/kasan/common.c:145 set_track mm/kasan/common.c:57 [inline] __kasan_kmalloc mm/kasan/common.c:495 [inline] __kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:468 slab_post_alloc_hook mm/slab.h:586 [inline] slab_alloc mm/slab.c:3320 [inline] kmem_cache_alloc+0x11b/0x740 mm/slab.c:3484 trace_kmem_cache_alloc include/trace/events/kmem.h:54 [inline] kmem_cache_alloc+0x358/0x740 mm/slab.c:3486 kmem_cache_zalloc include/linux/slab.h:659 [inline] lsm_file_alloc security/security.c:567 [inline] security_file_alloc+0x34/0x160 security/security.c:1435 __alloc_file+0xd8/0x350 fs/file_table.c:106 alloc_empty_file+0x6d/0x170 fs/file_table.c:151 path_openat+0xe3/0x27d0 fs/namei.c:3332 lock_is_held include/linux/lockdep.h:406 [inline] rcu_read_lock_sched_held+0x9c/0xd0 kernel/rcu/update.c:121 path_lookupat.isra.0+0x530/0x530 fs/namei.c:2332 mark_held_locks+0xe0/0xe0 kernel/locking/lockdep.c:3620 lock_acquire+0x1f2/0x8f0 kernel/locking/lockdep.c:4934 do_filp_open+0x192/0x260 fs/namei.c:3373 may_open_dev+0xf0/0xf0 fs/namei.c:2821 spin_unlock include/linux/spinlock.h:393 [inline] __alloc_fd+0x46d/0x600 fs/file.c:534 lock_downgrade+0x840/0x840 kernel/locking/lockdep.c:4579 atomic_try_cmpxchg include/asm-generic/atomic-instrumented.h:694 [inline] queued_spin_lock include/asm-generic/qspinlock.h:78 [inline] do_raw_spin_lock+0x129/0x2e0 kernel/locking/spinlock_debug.c:113 __raw_spin_unlock include/linux/spinlock_api_smp.h:152 [inline] _raw_spin_unlock+0x24/0x40 kernel/locking/spinlock.c:183 spin_unlock include/linux/spinlock.h:393 [inline] __alloc_fd+0x46d/0x600 fs/file.c:534 do_sys_openat2+0x585/0x7d0 fs/open.c:1148 file_open_root+0x400/0x400 fs/open.c:1129 __secure_computing+0x104/0x360 kernel/seccomp.c:950 syscall_trace_enter+0x41d/0xd10 arch/x86/entry/common.c:130 do_sys_open+0xc3/0x140 fs/open.c:1164 filp_open+0x70/0x70 fs/open.c:1117 trace_hardirqs_off_caller+0x55/0x230 kernel/trace/trace_preemptirq.c:73 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 RIP: 0033:0x7feba4c10840 Code: 73 01 c3 48 8b 0d 68 77 20 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 83 3d 89 bb 20 00 00 75 10 b8 02 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 1e f6 ff ff 48 89 04 24 RSP: 002b:00007fff2a9dd838 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007fff2a9ddb40 RCX: 00007feba4c10840 RDX: 00000000000001a0 RSI: 0000000000080042 RDI: 00005618dd760590 RBP: 000000000000000d R08: 000000000000ffc0 R09: 00000000ffffffff R10: 0000000000000069 R11: 0000000000000246 R12: 00000000ffffffff R13: 00005618dd754040 R14: 00007fff2a9ddb00 R15: 00005618dd761150