Warning: Permanently added '10.128.0.233' (ECDSA) to the list of known hosts. executing program [ 41.949223] nf_conntrack: default automatic helper assignment has been turned off for security reasons and CT-based firewall rule not found. Use the iptables CT target to attach helpers instead. [ 42.128677] [ 42.130342] ===================================================== [ 42.136574] WARNING: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected [ 42.143304] 4.19.163-syzkaller #0 Not tainted [ 42.147776] ----------------------------------------------------- [ 42.154010] syz-executor483/8114 [HC0[0]:SC0[2]:HE1:SE0] is trying to acquire: [ 42.161360] 00000000ee0b61b2 (hugetlb_lock){+.+.}, at: free_huge_page+0x482/0xd20 [ 42.169139] [ 42.169139] and this task is already holding: [ 42.175087] 00000000864bec6d (slock-AF_INET){+.-.}, at: tcp_close+0x5bd/0xfd0 [ 42.182524] which would create a new lock dependency: [ 42.187690] (slock-AF_INET){+.-.} -> (hugetlb_lock){+.+.} [ 42.193295] [ 42.193295] but this new dependency connects a SOFTIRQ-irq-safe lock: [ 42.201322] (slock-AF_INET){+.-.} [ 42.201328] [ 42.201328] ... which became SOFTIRQ-irq-safe at: [ 42.211162] _raw_spin_lock+0x2a/0x40 [ 42.215032] sk_clone_lock+0x40b/0x1430 [ 42.219085] inet_csk_clone_lock+0x1f/0x3e0 [ 42.223481] tcp_create_openreq_child+0x2c/0x19f0 [ 42.228406] tcp_v4_syn_recv_sock+0xb6/0x1030 [ 42.232972] tcp_check_req+0x601/0x16b0 [ 42.237493] tcp_v4_rcv+0x1e3c/0x3b80 [ 42.241365] ip_local_deliver_finish+0x495/0xc00 [ 42.246193] ip_local_deliver+0x188/0x500 [ 42.250407] ip_rcv_finish+0x1ca/0x2e0 [ 42.254366] ip_rcv+0xca/0x3c0 [ 42.257628] __netif_receive_skb_one_core+0x114/0x180 [ 42.262898] __netif_receive_skb+0x27/0x1c0 [ 42.267285] netif_receive_skb_internal+0xf0/0x3f0 [ 42.272293] napi_gro_receive+0x2e6/0x450 [ 42.276514] receive_buf+0xf1d/0x6120 [ 42.280395] virtnet_poll+0x568/0xd70 [ 42.284292] net_rx_action+0x4ac/0xfb0 [ 42.288256] __do_softirq+0x26c/0x9a0 [ 42.292134] run_ksoftirqd+0x57/0x110 [ 42.296009] smpboot_thread_fn+0x655/0x9e0 [ 42.300323] kthread+0x33f/0x460 [ 42.303755] ret_from_fork+0x24/0x30 [ 42.307572] [ 42.307572] to a SOFTIRQ-irq-unsafe lock: [ 42.313183] (hugetlb_lock){+.+.} [ 42.313189] [ 42.313189] ... which became SOFTIRQ-irq-unsafe at: [ 42.323086] ... [ 42.323100] _raw_spin_lock+0x2a/0x40 [ 42.328878] hugetlb_overcommit_handler+0x2d4/0x460 [ 42.334067] proc_sys_call_handler.isra.0+0x1f3/0x3b0 [ 42.339336] __vfs_write+0xf7/0x770 [ 42.343031] vfs_write+0x1f3/0x540 [ 42.346638] ksys_write+0x12b/0x2a0 [ 42.350343] do_syscall_64+0xf9/0x620 [ 42.354215] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.359494] [ 42.359494] other info that might help us debug this: [ 42.359494] [ 42.369367] Possible interrupt unsafe locking scenario: [ 42.369367] [ 42.376274] CPU0 CPU1 [ 42.380918] ---- ---- [ 42.385563] lock(hugetlb_lock); [ 42.388996] local_irq_disable(); [ 42.395043] lock(slock-AF_INET); [ 42.401092] lock(hugetlb_lock); [ 42.407040] [ 42.409774] lock(slock-AF_INET); [ 42.413465] [ 42.413465] *** DEADLOCK *** [ 42.413465] [ 42.419527] 3 locks held by syz-executor483/8114: [ 42.424364] #0: 000000001e5e6bcd (&sb->s_type->i_mutex_key#13){+.+.}, at: __sock_release+0x86/0x2a0 [ 42.433732] #1: 00000000ae8cebee (sk_lock-AF_INET){+.+.}, at: tcp_close+0x25/0xfd0 [ 42.441539] #2: 00000000864bec6d (slock-AF_INET){+.-.}, at: tcp_close+0x5bd/0xfd0 [ 42.449235] [ 42.449235] the dependencies between SOFTIRQ-irq-safe lock and the holding lock: [ 42.458238] -> (slock-AF_INET){+.-.} ops: 6455 { [ 42.462986] HARDIRQ-ON-W at: [ 42.466272] _raw_spin_lock_bh+0x2f/0x40 [ 42.471964] lock_sock_nested+0x3b/0x110 [ 42.477677] inet_autobind+0x1a/0x190 [ 42.483123] inet_dgram_connect+0x245/0x2d0 [ 42.489072] __sys_connect+0x265/0x2c0 [ 42.494606] __x64_sys_connect+0x6f/0xb0 [ 42.500314] do_syscall_64+0xf9/0x620 [ 42.505745] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.512558] IN-SOFTIRQ-W at: [ 42.515828] _raw_spin_lock+0x2a/0x40 [ 42.521262] sk_clone_lock+0x40b/0x1430 [ 42.526881] inet_csk_clone_lock+0x1f/0x3e0 [ 42.532842] tcp_create_openreq_child+0x2c/0x19f0 [ 42.539340] tcp_v4_syn_recv_sock+0xb6/0x1030 [ 42.545481] tcp_check_req+0x601/0x16b0 [ 42.551092] tcp_v4_rcv+0x1e3c/0x3b80 [ 42.556550] ip_local_deliver_finish+0x495/0xc00 [ 42.562954] ip_local_deliver+0x188/0x500 [ 42.568741] ip_rcv_finish+0x1ca/0x2e0 [ 42.574255] ip_rcv+0xca/0x3c0 [ 42.579077] __netif_receive_skb_one_core+0x114/0x180 [ 42.585896] __netif_receive_skb+0x27/0x1c0 [ 42.591868] netif_receive_skb_internal+0xf0/0x3f0 [ 42.598428] napi_gro_receive+0x2e6/0x450 [ 42.604636] receive_buf+0xf1d/0x6120 [ 42.610071] virtnet_poll+0x568/0xd70 [ 42.615499] net_rx_action+0x4ac/0xfb0 [ 42.621018] __do_softirq+0x26c/0x9a0 [ 42.626551] run_ksoftirqd+0x57/0x110 [ 42.631991] smpboot_thread_fn+0x655/0x9e0 [ 42.637873] kthread+0x33f/0x460 [ 42.642868] ret_from_fork+0x24/0x30 [ 42.648219] INITIAL USE at: [ 42.651402] _raw_spin_lock_bh+0x2f/0x40 [ 42.657007] lock_sock_nested+0x3b/0x110 [ 42.662609] inet_autobind+0x1a/0x190 [ 42.667955] inet_dgram_connect+0x245/0x2d0 [ 42.673830] __sys_connect+0x265/0x2c0 [ 42.679265] __x64_sys_connect+0x6f/0xb0 [ 42.684873] do_syscall_64+0xf9/0x620 [ 42.690227] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.696952] } [ 42.698737] ... key at: [] af_family_slock_keys+0x10/0x1a0 [ 42.706432] ... acquired at: [ 42.709520] _raw_spin_lock+0x2a/0x40 [ 42.713470] free_huge_page+0x482/0xd20 [ 42.717599] __put_page+0xe2/0x3a0 [ 42.721295] skb_release_data+0x2f3/0x920 [ 42.725592] __kfree_skb+0x46/0x60 [ 42.729287] tcp_write_queue_purge+0x24d/0x800 [ 42.734021] tcp_v4_destroy_sock+0x101/0x770 [ 42.738583] inet_csk_destroy_sock+0x189/0x400 [ 42.743317] tcp_close+0x95f/0xfd0 [ 42.747011] inet_release+0xd7/0x1e0 [ 42.750891] __sock_release+0xcd/0x2a0 [ 42.754930] sock_close+0x15/0x20 [ 42.758564] __fput+0x2ce/0x890 [ 42.761996] task_work_run+0x148/0x1c0 [ 42.766034] do_exit+0xbed/0x2be0 [ 42.769639] do_group_exit+0x125/0x310 [ 42.773677] get_signal+0x3f2/0x1f70 [ 42.777558] do_signal+0x8f/0x1670 [ 42.781353] exit_to_usermode_loop+0x204/0x2a0 [ 42.786174] prepare_exit_to_usermode+0x277/0x2d0 [ 42.791167] retint_user+0x8/0x18 [ 42.794772] [ 42.796373] [ 42.796373] the dependencies between the lock to be acquired [ 42.796376] and SOFTIRQ-irq-unsafe lock: [ 42.807760] -> (hugetlb_lock){+.+.} ops: 30 { [ 42.812248] HARDIRQ-ON-W at: [ 42.815528] _raw_spin_lock+0x2a/0x40 [ 42.820959] hugetlb_overcommit_handler+0x2d4/0x460 [ 42.827604] proc_sys_call_handler.isra.0+0x1f3/0x3b0 [ 42.834454] __vfs_write+0xf7/0x770 [ 42.839708] vfs_write+0x1f3/0x540 [ 42.844888] ksys_write+0x12b/0x2a0 [ 42.850146] do_syscall_64+0xf9/0x620 [ 42.855584] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.862398] SOFTIRQ-ON-W at: [ 42.865658] _raw_spin_lock+0x2a/0x40 [ 42.871085] hugetlb_overcommit_handler+0x2d4/0x460 [ 42.877729] proc_sys_call_handler.isra.0+0x1f3/0x3b0 [ 42.884561] __vfs_write+0xf7/0x770 [ 42.889829] vfs_write+0x1f3/0x540 [ 42.895019] ksys_write+0x12b/0x2a0 [ 42.900276] do_syscall_64+0xf9/0x620 [ 42.905719] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.913142] INITIAL USE at: [ 42.916319] _raw_spin_lock+0x2a/0x40 [ 42.921662] hugetlb_overcommit_handler+0x2d4/0x460 [ 42.928236] proc_sys_call_handler.isra.0+0x1f3/0x3b0 [ 42.934967] __vfs_write+0xf7/0x770 [ 42.940146] vfs_write+0x1f3/0x540 [ 42.945225] ksys_write+0x12b/0x2a0 [ 42.950392] do_syscall_64+0xf9/0x620 [ 42.955752] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.962475] } [ 42.964263] ... key at: [] hugetlb_lock+0x18/0x17a0 [ 42.971350] ... acquired at: [ 42.974437] _raw_spin_lock+0x2a/0x40 [ 42.978389] free_huge_page+0x482/0xd20 [ 42.982520] __put_page+0xe2/0x3a0 [ 42.986217] skb_release_data+0x2f3/0x920 [ 42.990543] __kfree_skb+0x46/0x60 [ 42.994238] tcp_write_queue_purge+0x24d/0x800 [ 42.998995] tcp_v4_destroy_sock+0x101/0x770 [ 43.003649] inet_csk_destroy_sock+0x189/0x400 [ 43.008383] tcp_close+0x95f/0xfd0 [ 43.012088] inet_release+0xd7/0x1e0 [ 43.015954] __sock_release+0xcd/0x2a0 [ 43.019993] sock_close+0x15/0x20 [ 43.023609] __fput+0x2ce/0x890 [ 43.027104] task_work_run+0x148/0x1c0 [ 43.031173] do_exit+0xbed/0x2be0 [ 43.034781] do_group_exit+0x125/0x310 [ 43.039237] get_signal+0x3f2/0x1f70 [ 43.043115] do_signal+0x8f/0x1670 [ 43.046825] exit_to_usermode_loop+0x204/0x2a0 [ 43.051568] prepare_exit_to_usermode+0x277/0x2d0 [ 43.056566] retint_user+0x8/0x18 [ 43.060166] [ 43.061783] [ 43.061783] stack backtrace: [ 43.066268] CPU: 0 PID: 8114 Comm: syz-executor483 Not tainted 4.19.163-syzkaller #0 [ 43.074132] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 43.083461] Call Trace: [ 43.086046] dump_stack+0x1fc/0x2fe [ 43.089665] check_usage.cold+0x7ea/0xbad [ 43.093807] ? check_usage_backwards+0x300/0x300 [ 43.098545] ? __save_stack_trace+0x72/0x190 [ 43.102979] ? deref_stack_reg+0x134/0x1d0 [ 43.107198] ? __read_once_size_nocheck.constprop.0+0x10/0x10 [ 43.113065] ? lock_downgrade+0x720/0x720 [ 43.117226] ? lock_acquire+0x170/0x3c0 [ 43.121183] __lock_acquire+0x1da1/0x3ff0 [ 43.125315] ? trace_hardirqs_off+0x64/0x200 [ 43.129702] ? mark_held_locks+0xf0/0xf0 [ 43.133742] ? __kasan_slab_free+0x186/0x1f0 [ 43.138146] ? tcp_write_queue_purge+0x24d/0x800 [ 43.142901] ? tcp_v4_destroy_sock+0x101/0x770 [ 43.147462] ? inet_csk_destroy_sock+0x189/0x400 [ 43.152196] ? tcp_close+0x95f/0xfd0 [ 43.155892] ? inet_release+0xd7/0x1e0 [ 43.159771] ? __sock_release+0xcd/0x2a0 [ 43.163820] ? sock_close+0x15/0x20 [ 43.167452] ? task_work_run+0x148/0x1c0 [ 43.171496] ? do_exit+0xbed/0x2be0 [ 43.175113] ? do_group_exit+0x125/0x310 [ 43.179157] ? get_signal+0x3f2/0x1f70 [ 43.183048] ? exit_to_usermode_loop+0x204/0x2a0 [ 43.187799] ? prepare_exit_to_usermode+0x277/0x2d0 [ 43.192805] ? retint_user+0x8/0x18 [ 43.196417] lock_acquire+0x170/0x3c0 [ 43.200198] ? free_huge_page+0x482/0xd20 [ 43.204337] ? PageHuge+0xc7/0x160 [ 43.207869] _raw_spin_lock+0x2a/0x40 [ 43.211662] ? free_huge_page+0x482/0xd20 [ 43.215796] free_huge_page+0x482/0xd20 [ 43.219762] ? PageHuge+0xc7/0x160 [ 43.223294] __put_page+0xe2/0x3a0 [ 43.226819] skb_release_data+0x2f3/0x920 [ 43.230991] __kfree_skb+0x46/0x60 [ 43.234515] tcp_write_queue_purge+0x24d/0x800 [ 43.239079] tcp_v4_destroy_sock+0x101/0x770 [ 43.243480] inet_csk_destroy_sock+0x189/0x400 [ 43.248060] tcp_close+0x95f/0xfd0 [ 43.251591] inet_release+0xd7/0x1e0 [ 43.255291] __sock_release+0xcd/0x2a0 [ 43.259158] ? __sock_release+0x2a0/0x2a0 [ 43.263296] sock_close+0x15/0x20 [ 43.266731] __fput+0x2ce/0x890 [ 43.270013] task_work_run+0x148/0x1c0 [ 43.273891] do_exit+0xbed/0x2be0 [ 43.277350] ? mm_update_next_owner+0x650/0x650 [ 43.282018] do_group_exit+0x125/0x310 [ 43.285884] get_signal+0x3f2/0x1f70 [ 43.289580] do_signal+0x8f/0x1670 [ 43.293101] ? setup_sigcontext+0x820/0x820 [ 43.297425] ? lock_downgrade+0x720/0x720 [ 43.301558] ? __do_page_fault+0x180/0xd60 [ 43.305797] ? exit_to_usermode_loop+0x36/0x2a0 [ 43.310445] exit_to_usermode_loop+0x204/0x2a0 [ 43.315022] prepare_exit_to_usermode+0x277/0x2d0 [ 43.319860] ? page_fault+0x8/0x30 [ 43.323392] retint_user+0x8/0x18 [ 43.326848] RIP: 0033:0x401072 [ 43.330025] Code: Bad RIP value. executing program [ 43.333367] RSP: 002b:00007f2a80855da0 EFLAGS: 00010293 [ 43.338711] RAX: 0000000000000003 RBX: 00000000006dbc48 RCX: 0000000000446b39 [ 43.345969] RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000002 [ 43.353231] RBP: 00000000006dbc40 R08: 000000000000204e R09: 0000000000000000 [ 43.360480] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dbc4c [ 43.367736] R13: 44d9effa3f410d0d R14: b1c59e31819ff2c8 R15: 8effb11713110d7c executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program