Warning: Permanently added '10.128.1.16' (ECDSA) to the list of known hosts. executing program executing program syzkaller login: [ 30.277750] xt_CT: netfilter: NOTRACK target is deprecated, use CT instead or upgrade iptables [ 30.287243] ip_tables: iptables: counters copy to user failed while replacing table [ 30.299866] IPVS: ftp: loaded support on port[0] = 21 executing program [ 30.334411] ip_tables: iptables: counters copy to user failed while replacing table [ 30.345084] IPVS: ftp: loaded support on port[0] = 21 [ 30.381691] ip_tables: iptables: counters copy to user failed while replacing table [ 30.448279] [ 30.449932] ====================================================== [ 30.456241] WARNING: possible circular locking dependency detected [ 30.462646] 4.14.231-syzkaller #0 Not tainted [ 30.467126] ------------------------------------------------------ [ 30.473431] kworker/u4:3/573 is trying to acquire lock: [ 30.478773] (&table[i].mutex){+.+.}, at: [] nf_tables_netdev_event+0x10d/0x4d0 [ 30.488021] [ 30.488021] but task is already holding lock: [ 30.493981] (rtnl_mutex){+.+.}, at: [] ip6gre_exit_net+0x70/0x570 [ 30.501973] [ 30.501973] which lock already depends on the new lock. [ 30.501973] [ 30.510624] [ 30.510624] the existing dependency chain (in reverse order) is: [ 30.518315] [ 30.518315] -> #2 (rtnl_mutex){+.+.}: [ 30.523694] __mutex_lock+0xc4/0x1310 [ 30.532614] unregister_netdevice_notifier+0x5e/0x2b0 [ 30.538513] tee_tg_destroy+0x5c/0xb0 [ 30.542832] cleanup_entry+0x1fd/0x2d0 [ 30.547373] __do_replace+0x38d/0x570 [ 30.551765] do_ipt_set_ctl+0x256/0x3a0 [ 30.556294] nf_setsockopt+0x5f/0xb0 [ 30.560628] ip_setsockopt+0x94/0xb0 [ 30.565537] udp_setsockopt+0x45/0x80 [ 30.570171] SyS_setsockopt+0x110/0x1e0 [ 30.574912] do_syscall_64+0x1d5/0x640 [ 30.579339] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 30.585111] [ 30.585111] -> #1 (&xt[i].mutex){+.+.}: [ 30.590632] __mutex_lock+0xc4/0x1310 [ 30.594946] target_revfn+0x43/0x210 [ 30.599326] xt_find_revision+0x15e/0x1d0 [ 30.604085] nfnl_compat_get+0x1f7/0x870 [ 30.608651] nfnetlink_rcv_msg+0x9bb/0xc00 [ 30.613395] netlink_rcv_skb+0x125/0x390 [ 30.618237] nfnetlink_rcv+0x1ab/0x1da0 [ 30.622711] netlink_unicast+0x437/0x610 [ 30.627908] netlink_sendmsg+0x62e/0xb80 [ 30.632490] sock_sendmsg+0xb5/0x100 [ 30.636707] ___sys_sendmsg+0x6c8/0x800 [ 30.641287] __sys_sendmsg+0xa3/0x120 [ 30.645599] SyS_sendmsg+0x27/0x40 [ 30.649996] do_syscall_64+0x1d5/0x640 [ 30.654393] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 30.660165] [ 30.660165] -> #0 (&table[i].mutex){+.+.}: [ 30.665894] lock_acquire+0x170/0x3f0 [ 30.670211] __mutex_lock+0xc4/0x1310 [ 30.674597] nf_tables_netdev_event+0x10d/0x4d0 [ 30.680165] notifier_call_chain+0x108/0x1a0 [ 30.685416] rollback_registered_many+0x765/0xba0 [ 30.691005] unregister_netdevice_many.part.0+0x18/0x2e0 [ 30.696972] unregister_netdevice_many+0x36/0x50 [ 30.702233] ip6gre_exit_net+0x41e/0x570 [ 30.706849] ops_exit_list+0xa5/0x150 [ 30.711180] cleanup_net+0x3b3/0x840 [ 30.715588] process_one_work+0x793/0x14a0 [ 30.720517] worker_thread+0x5cc/0xff0 [ 30.725141] kthread+0x30d/0x420 [ 30.729011] ret_from_fork+0x24/0x30 [ 30.733227] [ 30.733227] other info that might help us debug this: [ 30.733227] [ 30.741357] Chain exists of: [ 30.741357] &table[i].mutex --> &xt[i].mutex --> rtnl_mutex [ 30.741357] [ 30.751575] Possible unsafe locking scenario: [ 30.751575] [ 30.757789] CPU0 CPU1 [ 30.762505] ---- ---- [ 30.767220] lock(rtnl_mutex); [ 30.770783] lock(&xt[i].mutex); [ 30.776740] lock(rtnl_mutex); [ 30.782623] lock(&table[i].mutex); [ 30.786318] [ 30.786318] *** DEADLOCK *** [ 30.786318] [ 30.792355] 4 locks held by kworker/u4:3/573: [ 30.796825] #0: ("%s""netns"){+.+.}, at: [] process_one_work+0x6b0/0x14a0 [ 30.805578] #1: (net_cleanup_work){+.+.}, at: [] process_one_work+0x6e6/0x14a0 [ 30.814659] #2: (net_mutex){+.+.}, at: [] cleanup_net+0x110/0x840 [ 30.822618] #3: (rtnl_mutex){+.+.}, at: [] ip6gre_exit_net+0x70/0x570 [ 30.831259] [ 30.831259] stack backtrace: [ 30.835757] CPU: 1 PID: 573 Comm: kworker/u4:3 Not tainted 4.14.231-syzkaller #0 [ 30.843273] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.852613] Workqueue: netns cleanup_net [ 30.856648] Call Trace: [ 30.859217] dump_stack+0x1b2/0x281 [ 30.862831] print_circular_bug.constprop.0.cold+0x2d7/0x41e [ 30.868627] __lock_acquire+0x2e0e/0x3f20 [ 30.872853] ? unwind_next_frame+0x404/0x17d0 [ 30.877340] ? trace_hardirqs_on+0x10/0x10 [ 30.881567] ? check_usage_forwards+0x2d0/0x2d0 [ 30.886420] ? ret_from_fork+0x24/0x30 [ 30.890289] lock_acquire+0x170/0x3f0 [ 30.894447] ? nf_tables_netdev_event+0x10d/0x4d0 [ 30.899267] ? nf_tables_netdev_event+0x10d/0x4d0 [ 30.904087] __mutex_lock+0xc4/0x1310 [ 30.907892] ? nf_tables_netdev_event+0x10d/0x4d0 [ 30.912752] ? nf_tables_netdev_event+0x10d/0x4d0 [ 30.917581] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 30.923015] ? trace_hardirqs_on+0x10/0x10 [ 30.927228] ? trace_hardirqs_on_caller+0x3a8/0x580 [ 30.932220] ? lock_downgrade+0x740/0x740 [ 30.936365] nf_tables_netdev_event+0x10d/0x4d0 [ 30.941024] ? mirred_device_event+0x12f/0x170 [ 30.945622] ? nf_tables_netdev_init_net+0x140/0x140 [ 30.950824] ? mirred_device_event+0x12f/0x170 [ 30.955410] ? __local_bh_enable_ip+0xc1/0x170 [ 30.959985] notifier_call_chain+0x108/0x1a0 [ 30.964399] rollback_registered_many+0x765/0xba0 [ 30.969244] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 30.976063] ? netdev_state_change+0xf0/0xf0 [ 30.981310] ? lock_acquire+0x170/0x3f0 [ 30.985453] unregister_netdevice_many.part.0+0x18/0x2e0 [ 30.990993] unregister_netdevice_many+0x36/0x50 [ 30.995772] ip6gre_exit_net+0x41e/0x570 [ 30.999902] ? lock_downgrade+0x740/0x740 [ 31.004044] ? ip6gre_dellink+0x260/0x260 [ 31.008184] ? ip6gre_dellink+0x260/0x260 [ 31.012325] ops_exit_list+0xa5/0x150 [ 31.016274] cleanup_net+0x3b3/0x840 [ 31.019970] ? net_drop_ns+0x70/0x70 [ 31.023664] ? lock_acquire+0x170/0x3f0 [ 31.027702] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 31.033411] process_one_work+0x793/0x14a0 [ 31.037807] ? work_busy+0x320/0x320 [ 31.041508] ? worker_thread+0x158/0xff0 [ 31.045555] ? _raw_spin_unlock_irq+0x24/0x80 [ 31.050033] worker_thread+0x5cc/0xff0 [ 31.054204] ? rescuer_thread+0xc80/0xc80 [ 31.058332] kthread+0x30d/0x420 [ 31.061674] ? kthread_create_on_node+0xd0/0xd0 [ 31.066323] ret_from_fork+0x24/0x30 executing program [ 31.667178] IPVS: ftp: loaded support on port[0] = 21 executing program [ 31.694735] ip_tables: iptables: counters copy to user failed while replacing table [ 31.705469] IPVS: ftp: loaded support on port[0] = 21 [ 31.734840] ip_tables: iptables: counters copy to user failed while replacing table executing program [ 32.379286] IPVS: ftp: loaded support on port[0] = 21 [ 32.409564] ip_tables: iptables: counters copy to user failed while replacing table executing program [ 33.504309] IPVS: ftp: loaded support on port[0] = 21 [ 33.532189] ip_tables: iptables: counters copy to user failed while replacing table executing program executing program [ 34.217174] IPVS: ftp: loaded support on port[0] = 21 [ 34.247343] ip_tables: iptables: counters copy to user failed while replacing table [ 34.258057] IPVS: ftp: loaded support on port[0] = 21 [ 34.288833] ip_tables: iptables: counters copy to user failed while replacing table executing program [ 34.916551] IPVS: ftp: loaded support on port[0] = 21 [ 34.947388] ip_tables: iptables: counters copy to user failed while replacing table executing program [ 35.981734] IPVS: ftp: loaded support on port[0] = 21 [ 36.009335] ip_tables: iptables: counters copy to user failed while replacing table executing program [ 36.690839] IPVS: ftp: loaded support on port[0] = 21 [ 36.719175] ip_tables: iptables: counters copy to user failed while replacing table executing program [ 37.341356] IPVS: ftp: loaded support on port[0] = 21 executing program [ 37.368932] ip_tables: iptables: counters copy to user failed while replacing table [ 37.379387] IPVS: ftp: loaded support on port[0] = 21 [ 37.410918] ip_tables: iptables: counters copy to user failed while replacing table executing program executing program [ 38.059124] IPVS: ftp: loaded support on port[0] = 21 [ 38.088226] ip_tables: iptables: counters copy to user failed while replacing table [ 38.100228] IPVS: ftp: loaded support on port[0] = 21 [ 38.130357] ip_tables: iptables: counters copy to user failed while replacing table executing program executing program [ 39.226317] IPVS: ftp: loaded support on port[0] = 21 [ 39.255007] ip_tables: iptables: counters copy to user failed while replacing table [ 39.264910] IPVS: ftp: loaded support on port[0] = 21 [ 39.296343] ip_tables: iptables: counters copy to user failed while replacing table executing program [ 40.368104] IPVS: ftp: loaded support on port[0] = 21 [ 40.397916] ip_tables: iptables: counters copy to user failed while replacing table