Warning: Permanently added '10.128.0.3' (ECDSA) to the list of known hosts. executing program [ 28.079248] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 28.138328] netlink: 4 bytes leftover after parsing attributes in process `syz-executor186'. executing program [ 28.302456] [ 28.304085] ====================================================== [ 28.310379] WARNING: possible circular locking dependency detected [ 28.316671] 4.14.291-syzkaller #0 Not tainted [ 28.321138] ------------------------------------------------------ [ 28.327451] syz-executor186/7976 is trying to acquire lock: [ 28.333134] (rtnl_mutex){+.+.}, at: [] unregister_netdevice_notifier+0x5e/0x2b0 [ 28.342215] [ 28.342215] but task is already holding lock: [ 28.348165] (&xt[i].mutex){+.+.}, at: [] xt_find_table_lock+0x38/0x3d0 [ 28.356462] [ 28.356462] which lock already depends on the new lock. [ 28.356462] [ 28.364750] [ 28.364750] the existing dependency chain (in reverse order) is: [ 28.372343] [ 28.372343] -> #1 (&xt[i].mutex){+.+.}: [ 28.377778] __mutex_lock+0xc4/0x1310 [ 28.382075] xt_find_target+0x3e/0x1e0 [ 28.386454] xt_request_find_target+0x72/0xe0 [ 28.391444] ipt_init_target+0xb9/0x250 [ 28.395912] __tcf_ipt_init+0x48d/0xc00 [ 28.400382] tcf_xt_init+0x43/0x50 [ 28.403672] netlink: 4 bytes leftover after parsing attributes in process `syz-executor186'. [ 28.404423] tcf_action_init_1+0x51a/0x9e0 [ 28.404431] tcf_action_init+0x26d/0x400 [ 28.422266] tc_ctl_action+0x2e3/0x510 [ 28.426647] rtnetlink_rcv_msg+0x3be/0xb10 [ 28.431386] netlink_rcv_skb+0x125/0x390 [ 28.435953] netlink_unicast+0x437/0x610 [ 28.440521] netlink_sendmsg+0x648/0xbc0 [ 28.445079] sock_sendmsg+0xb5/0x100 [ 28.449295] sock_no_sendpage+0xe2/0x110 [ 28.453864] sock_sendpage+0xdf/0x140 [ 28.458169] pipe_to_sendpage+0x226/0x2d0 [ 28.462811] __splice_from_pipe+0x326/0x7a0 [ 28.467626] generic_splice_sendpage+0xc1/0x110 [ 28.472795] SyS_splice+0xd59/0x1380 [ 28.477022] do_syscall_64+0x1d5/0x640 [ 28.481405] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 28.487093] [ 28.487093] -> #0 (rtnl_mutex){+.+.}: [ 28.492351] lock_acquire+0x170/0x3f0 [ 28.496649] __mutex_lock+0xc4/0x1310 [ 28.500945] unregister_netdevice_notifier+0x5e/0x2b0 [ 28.506630] tee_tg_destroy+0x5c/0xb0 [ 28.510924] cleanup_entry+0x232/0x310 [ 28.515304] __do_replace+0x38d/0x580 [ 28.519598] do_ip6t_set_ctl+0x256/0x3b0 [ 28.524153] nf_setsockopt+0x5f/0xb0 [ 28.528383] ipv6_setsockopt+0xc0/0x120 [ 28.532853] udpv6_setsockopt+0x45/0x80 [ 28.537318] SyS_setsockopt+0x110/0x1e0 [ 28.541806] do_syscall_64+0x1d5/0x640 [ 28.546188] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 28.551870] [ 28.551870] other info that might help us debug this: [ 28.551870] [ 28.560008] Possible unsafe locking scenario: [ 28.560008] [ 28.566058] CPU0 CPU1 [ 28.570703] ---- ---- [ 28.575350] lock(&xt[i].mutex); [ 28.578778] lock(rtnl_mutex); [ 28.584546] lock(&xt[i].mutex); [ 28.590489] lock(rtnl_mutex); [ 28.593743] [ 28.593743] *** DEADLOCK *** [ 28.593743] [ 28.599775] 1 lock held by syz-executor186/7976: [ 28.604498] #0: (&xt[i].mutex){+.+.}, at: [] xt_find_table_lock+0x38/0x3d0 [ 28.613247] [ 28.613247] stack backtrace: [ 28.617717] CPU: 0 PID: 7976 Comm: syz-executor186 Not tainted 4.14.291-syzkaller #0 [ 28.625568] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 [ 28.634912] Call Trace: [ 28.637495] dump_stack+0x1b2/0x281 [ 28.641100] print_circular_bug.constprop.0.cold+0x2d7/0x41e [ 28.646872] __lock_acquire+0x2e0e/0x3f20 [ 28.651105] ? lock_acquire+0x170/0x3f0 [ 28.655078] ? lock_downgrade+0x740/0x740 [ 28.659200] ? trace_hardirqs_on+0x10/0x10 [ 28.663411] ? is_bpf_text_address+0xb8/0x150 [ 28.667884] ? kernel_text_address+0xbd/0xf0 [ 28.672266] ? __lock_acquire+0x5fc/0x3f20 [ 28.676500] ? __kernel_text_address+0x9/0x30 [ 28.680968] ? __save_stack_trace+0xa0/0x160 [ 28.685351] lock_acquire+0x170/0x3f0 [ 28.689130] ? unregister_netdevice_notifier+0x5e/0x2b0 [ 28.694469] ? unregister_netdevice_notifier+0x5e/0x2b0 [ 28.699806] __mutex_lock+0xc4/0x1310 [ 28.703581] ? unregister_netdevice_notifier+0x5e/0x2b0 [ 28.708919] ? trace_hardirqs_on+0x10/0x10 [ 28.713144] ? unregister_netdevice_notifier+0x5e/0x2b0 [ 28.718482] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 28.723925] ? pcpu_next_fit_region.constprop.0+0x3a0/0x3a0 [ 28.729621] ? trace_hardirqs_on+0x10/0x10 [ 28.733828] ? free_percpu+0x23e/0x730 [ 28.737690] unregister_netdevice_notifier+0x5e/0x2b0 [ 28.742856] ? register_netdevice_notifier+0x4d0/0x4d0 [ 28.748199] ? _raw_spin_unlock_irqrestore+0x66/0xe0 [ 28.753281] ? free_percpu+0x23e/0x730 [ 28.757148] tee_tg_destroy+0x5c/0xb0 [ 28.760929] ? tee_tg6+0x160/0x160 [ 28.764446] cleanup_entry+0x232/0x310 [ 28.768324] ? compat_do_ip6t_get_ctl+0x820/0x820 [ 28.773143] __do_replace+0x38d/0x580 [ 28.776919] ? ip6t_unregister_table+0x60/0x60 [ 28.781479] do_ip6t_set_ctl+0x256/0x3b0 [ 28.785517] ? compat_do_ip6t_set_ctl+0x140/0x140 [ 28.790336] ? nf_sockopt_find.constprop.0+0x1ad/0x220 [ 28.795591] nf_setsockopt+0x5f/0xb0 [ 28.799281] ipv6_setsockopt+0xc0/0x120 [ 28.803230] udpv6_setsockopt+0x45/0x80 [ 28.807464] SyS_setsockopt+0x110/0x1e0 [ 28.811412] ? SyS_recv+0x40/0x40 [ 28.814841] ? up_read+0x17/0x30 [ 28.818182] ? __do_page_fault+0x159/0xad0 [ 28.822392] ? do_syscall_64+0x4c/0x640 [ 28.826340] ? SyS_recv+0x40/0x40 [ 28.829767] do_syscall_64+0x1d5/0x640 [ 28.833637] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 28.838801] RIP: 0033:0x7fc58c9361f9 [ 28.842486] RSP: 002b:00007fc58c8e72f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 executing program [ 28.850169] RAX: ffffffffffffffda RBX: 00007fc58c9be420 RCX: 00007fc58c9361f9 [ 28.857413] RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000003 [ 28.864657] RBP: 00007fc58c9be42c R08: 0000000000000418 R09: 0000000000000000 [ 28.871903] R10: 00000000200005c0 R11: 0000000000000246 R12: 00007fc58c98c074 [ 28.879152] R13: 0000000020000908 R14: 0100000000000000 R15: 00007fc58c9be428 [ 28.886848] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 28.898201] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 28.957116] netlink: 4 bytes leftover after parsing attributes in process `syz-executor186'. executing program [ 29.080744] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 29.139968] netlink: 4 bytes leftover after parsing attributes in process `syz-executor186'. executing program [ 29.262364] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 29.321790] netlink: 4 bytes leftover after parsing attributes in process `syz-executor186'. executing program [ 29.445488] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 29.505159] netlink: 4 bytes leftover after parsing attributes in process `syz-executor186'. executing program [ 29.628719] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 29.687924] netlink: 4 bytes leftover after parsing attributes in process `syz-executor186'. executing program [ 29.811864] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 29.871248] netlink: 4 bytes leftover after parsing attributes in process `syz-executor186'. executing program [ 29.994844] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 30.054128] netlink: 4 bytes leftover after parsing attributes in process `syz-executor186'. executing program [ 30.177700] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 30.236923] netlink: 4 bytes leftover after parsing attributes in process `syz-executor186'. 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 [ 33.179826] net_ratelimit: 17 callbacks suppressed [ 33.179828] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 33.243445] nla_parse: 17 callbacks suppressed [ 33.243449] netlink: 4 bytes leftover after parsing attributes in process `syz-executor186'. executing program [ 33.372134] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 33.431241] netlink: 4 bytes leftover after parsing attributes in process `syz-executor186'. executing program [ 33.553985] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 33.613146] netlink: 4 bytes leftover after parsing attributes in process `syz-executor186'. executing program [ 33.736427] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 33.795979] netlink: 4 bytes leftover after parsing attributes in process `syz-executor186'. executing program [ 33.919716] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 33.979306] netlink: 4 bytes leftover after parsing attributes in process `syz-executor186'. executing program [ 34.102293] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 34.161746] netlink: 4 bytes leftover after parsing attributes in process `syz-executor186'. executing program [ 34.285830] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 34.344540] netlink: 4 bytes leftover after parsing attributes in process `syz-executor186'. executing program [ 34.468359] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 34.527467] netlink: 4 bytes leftover after parsing attributes in process `syz-executor186'. executing program [ 34.651125] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 34.710354] netlink: 4 bytes leftover after parsing attributes in process `syz-executor186'. executing program [ 34.834705] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 34.894182] netlink: 4 bytes leftover after parsing attributes in process `syz-executor186'. 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