Warning: Permanently added '10.128.1.74' (ECDSA) to the list of known hosts. executing program executing program [ 27.881840] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 27.893352] IPVS: ftp: loaded support on port[0] = 21 executing program [ 27.931046] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 27.941704] IPVS: ftp: loaded support on port[0] = 21 [ 27.979515] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 28.038144] [ 28.039844] ====================================================== [ 28.046129] WARNING: possible circular locking dependency detected [ 28.052453] 4.14.232-syzkaller #0 Not tainted [ 28.056913] ------------------------------------------------------ [ 28.063195] kworker/u4:2/34 is trying to acquire lock: [ 28.068436] (&table[i].mutex){+.+.}, at: [] nf_tables_netdev_event+0x10d/0x4d0 [ 28.077426] [ 28.077426] but task is already holding lock: [ 28.083364] (rtnl_mutex){+.+.}, at: [] ip6gre_exit_net+0x70/0x570 [ 28.091231] [ 28.091231] which lock already depends on the new lock. [ 28.091231] [ 28.099515] [ 28.099515] the existing dependency chain (in reverse order) is: [ 28.107215] [ 28.107215] -> #2 (rtnl_mutex){+.+.}: [ 28.112558] __mutex_lock+0xc4/0x1310 [ 28.116876] unregister_netdevice_notifier+0x5e/0x2b0 [ 28.122568] tee_tg_destroy+0x5c/0xb0 [ 28.126863] cleanup_entry+0x232/0x310 [ 28.131279] __do_replace+0x38d/0x580 [ 28.135577] do_ip6t_set_ctl+0x256/0x3b0 [ 28.140160] nf_setsockopt+0x5f/0xb0 [ 28.144366] ipv6_setsockopt+0xc0/0x120 [ 28.148838] tcp_setsockopt+0x7b/0xc0 [ 28.153131] SyS_setsockopt+0x110/0x1e0 [ 28.157618] do_syscall_64+0x1d5/0x640 [ 28.162003] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 28.167726] [ 28.167726] -> #1 (&xt[i].mutex){+.+.}: [ 28.173170] __mutex_lock+0xc4/0x1310 [ 28.177516] target_revfn+0x43/0x210 [ 28.181728] xt_find_revision+0x15e/0x1d0 [ 28.186370] nfnl_compat_get+0x1f7/0x870 [ 28.191706] nfnetlink_rcv_msg+0x9bb/0xc00 [ 28.196460] netlink_rcv_skb+0x125/0x390 [ 28.201016] nfnetlink_rcv+0x1ab/0x1da0 [ 28.205494] netlink_unicast+0x437/0x610 [ 28.210085] netlink_sendmsg+0x62e/0xb80 [ 28.214644] sock_sendmsg+0xb5/0x100 [ 28.218852] ___sys_sendmsg+0x6c8/0x800 [ 28.223319] __sys_sendmsg+0xa3/0x120 [ 28.227624] SyS_sendmsg+0x27/0x40 [ 28.231668] do_syscall_64+0x1d5/0x640 [ 28.236054] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 28.241731] [ 28.241731] -> #0 (&table[i].mutex){+.+.}: [ 28.247420] lock_acquire+0x170/0x3f0 [ 28.251739] __mutex_lock+0xc4/0x1310 [ 28.256029] nf_tables_netdev_event+0x10d/0x4d0 [ 28.261199] notifier_call_chain+0x108/0x1a0 [ 28.266097] rollback_registered_many+0x765/0xba0 [ 28.271428] unregister_netdevice_many.part.0+0x18/0x2e0 [ 28.277365] unregister_netdevice_many+0x36/0x50 [ 28.282612] ip6gre_exit_net+0x41e/0x570 [ 28.287165] ops_exit_list+0xa5/0x150 [ 28.291455] cleanup_net+0x3b3/0x840 [ 28.295660] process_one_work+0x793/0x14a0 [ 28.300388] worker_thread+0x5cc/0xff0 [ 28.304778] kthread+0x30d/0x420 [ 28.308635] ret_from_fork+0x24/0x30 [ 28.312860] [ 28.312860] other info that might help us debug this: [ 28.312860] [ 28.320968] Chain exists of: [ 28.320968] &table[i].mutex --> &xt[i].mutex --> rtnl_mutex [ 28.320968] [ 28.331188] Possible unsafe locking scenario: [ 28.331188] [ 28.337214] CPU0 CPU1 [ 28.341858] ---- ---- [ 28.346489] lock(rtnl_mutex); [ 28.349735] lock(&xt[i].mutex); [ 28.355672] lock(rtnl_mutex); [ 28.361436] lock(&table[i].mutex); [ 28.365116] [ 28.365116] *** DEADLOCK *** [ 28.365116] [ 28.371150] 4 locks held by kworker/u4:2/34: [ 28.375524] #0: ("%s""netns"){+.+.}, at: [] process_one_work+0x6b0/0x14a0 [ 28.384161] #1: (net_cleanup_work){+.+.}, at: [] process_one_work+0x6e6/0x14a0 [ 28.393245] #2: (net_mutex){+.+.}, at: [] cleanup_net+0x110/0x840 [ 28.401242] #3: (rtnl_mutex){+.+.}, at: [] ip6gre_exit_net+0x70/0x570 [ 28.409541] [ 28.409541] stack backtrace: [ 28.414025] CPU: 0 PID: 34 Comm: kworker/u4:2 Not tainted 4.14.232-syzkaller #0 [ 28.421442] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.430784] Workqueue: netns cleanup_net [ 28.434813] Call Trace: [ 28.437380] dump_stack+0x1b2/0x281 [ 28.441000] print_circular_bug.constprop.0.cold+0x2d7/0x41e [ 28.446770] __lock_acquire+0x2e0e/0x3f20 [ 28.450890] ? unwind_next_frame+0x404/0x17d0 [ 28.455365] ? trace_hardirqs_on+0x10/0x10 [ 28.459571] ? check_usage_forwards+0x2d0/0x2d0 [ 28.464210] ? ret_from_fork+0x24/0x30 [ 28.468073] lock_acquire+0x170/0x3f0 [ 28.471847] ? nf_tables_netdev_event+0x10d/0x4d0 [ 28.476677] ? nf_tables_netdev_event+0x10d/0x4d0 [ 28.481508] __mutex_lock+0xc4/0x1310 [ 28.485277] ? nf_tables_netdev_event+0x10d/0x4d0 [ 28.490100] ? nf_tables_netdev_event+0x10d/0x4d0 [ 28.494911] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 28.500330] ? trace_hardirqs_on+0x10/0x10 [ 28.504631] ? trace_hardirqs_on_caller+0x3a8/0x580 [ 28.509635] ? lock_downgrade+0x740/0x740 [ 28.513770] nf_tables_netdev_event+0x10d/0x4d0 [ 28.519037] ? mirred_device_event+0x12f/0x170 [ 28.523726] ? nf_tables_netdev_init_net+0x140/0x140 [ 28.528804] ? mirred_device_event+0x12f/0x170 [ 28.533367] ? __local_bh_enable_ip+0xc1/0x170 [ 28.537941] notifier_call_chain+0x108/0x1a0 [ 28.542347] rollback_registered_many+0x765/0xba0 [ 28.547162] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 28.552582] ? netdev_state_change+0xf0/0xf0 [ 28.556965] ? lock_acquire+0x170/0x3f0 [ 28.560921] unregister_netdevice_many.part.0+0x18/0x2e0 [ 28.566342] unregister_netdevice_many+0x36/0x50 [ 28.571069] ip6gre_exit_net+0x41e/0x570 [ 28.575103] ? lock_downgrade+0x740/0x740 [ 28.579226] ? ip6gre_dellink+0x260/0x260 [ 28.583348] ? ip6gre_dellink+0x260/0x260 [ 28.587469] ops_exit_list+0xa5/0x150 [ 28.591254] cleanup_net+0x3b3/0x840 [ 28.594948] ? net_drop_ns+0x70/0x70 [ 28.598643] ? lock_acquire+0x170/0x3f0 [ 28.602588] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 28.608012] process_one_work+0x793/0x14a0 [ 28.612217] ? work_busy+0x320/0x320 [ 28.615898] ? worker_thread+0x158/0xff0 [ 28.619930] ? _raw_spin_unlock_irq+0x24/0x80 [ 28.624405] worker_thread+0x5cc/0xff0 [ 28.628297] ? rescuer_thread+0xc80/0xc80 [ 28.632421] kthread+0x30d/0x420 [ 28.635778] ? kthread_create_on_node+0xd0/0xd0 [ 28.640422] ret_from_fork+0x24/0x30 executing program [ 29.225571] IPVS: ftp: loaded support on port[0] = 21 executing program [ 29.254244] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 29.264699] IPVS: ftp: loaded support on port[0] = 21 [ 29.296663] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 29.933148] IPVS: ftp: loaded support on port[0] = 21 executing program [ 29.962554] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 29.972913] IPVS: ftp: loaded support on port[0] = 21 [ 30.004427] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 31.090891] IPVS: ftp: loaded support on port[0] = 21 [ 31.120779] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program executing program [ 32.145765] IPVS: ftp: loaded support on port[0] = 21 [ 32.173927] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 32.184371] IPVS: ftp: loaded support on port[0] = 21 [ 32.214493] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 32.811419] IPVS: ftp: loaded support on port[0] = 21 executing program [ 32.841573] IPVS: ftp: loaded support on port[0] = 21 executing program [ 33.964847] IPVS: ftp: loaded support on port[0] = 21 [ 33.993524] net_ratelimit: 2 callbacks suppressed [ 33.993526] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 35.079065] IPVS: ftp: loaded support on port[0] = 21 [ 35.109877] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 35.726627] IPVS: ftp: loaded support on port[0] = 21 [ 35.755238] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 36.369350] IPVS: ftp: loaded support on port[0] = 21 executing program [ 36.396345] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 36.406608] IPVS: ftp: loaded support on port[0] = 21 [ 36.435544] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 37.058515] IPVS: ftp: loaded support on port[0] = 21 [ 37.090731] ip6_tables: ip6tables: counters copy to user failed while replacing table