Warning: Permanently added '10.128.1.10' (ECDSA) to the list of known hosts. [ 47.116262] random: sshd: uninitialized urandom read (32 bytes read) [ 47.234926] audit: type=1400 audit(1582699731.090:36): avc: denied { map } for pid=7241 comm="syz-executor587" path="/root/syz-executor587325883" dev="sda1" ino=16484 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 [ 47.480966] IPVS: ftp: loaded support on port[0] = 21 executing program [ 49.504837] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 49.570916] audit: type=1400 audit(1582699733.430:37): avc: denied { create } for pid=7245 comm="syz-executor587" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_netfilter_socket permissive=1 [ 49.595179] audit: type=1400 audit(1582699733.430:38): avc: denied { write } for pid=7245 comm="syz-executor587" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_netfilter_socket permissive=1 [ 49.596907] [ 49.620825] ====================================================== [ 49.627115] WARNING: possible circular locking dependency detected [ 49.633546] 4.14.171-syzkaller #0 Not tainted [ 49.638022] ------------------------------------------------------ [ 49.644321] syz-executor587/7242 is trying to acquire lock: [ 49.650018] (rtnl_mutex){+.+.}, at: [] rtnl_lock+0x17/0x20 [ 49.657300] [ 49.657300] but task is already holding lock: [ 49.663297] (&xt[i].mutex){+.+.}, at: [] xt_find_table_lock+0x3c/0x3d0 [ 49.671600] [ 49.671600] which lock already depends on the new lock. [ 49.671600] [ 49.679893] [ 49.679893] the existing dependency chain (in reverse order) is: [ 49.687500] [ 49.687500] -> #2 (&xt[i].mutex){+.+.}: [ 49.692934] lock_acquire+0x16f/0x430 [ 49.697232] __mutex_lock+0xe8/0x1470 [ 49.701529] mutex_lock_nested+0x16/0x20 [ 49.706085] xt_find_revision+0x82/0x200 [ 49.710656] nfnl_compat_get+0x229/0x950 [ 49.715214] nfnetlink_rcv_msg+0xa08/0xc00 [ 49.719943] netlink_rcv_skb+0x14f/0x3c0 [ 49.724500] nfnetlink_rcv+0x1ab/0x1650 [ 49.729009] netlink_unicast+0x44d/0x650 [ 49.733600] netlink_sendmsg+0x7c4/0xc60 [ 49.738157] sock_sendmsg+0xce/0x110 [ 49.742365] ___sys_sendmsg+0x70a/0x840 [ 49.746839] __sys_sendmsg+0xb9/0x140 [ 49.751137] SyS_sendmsg+0x2d/0x50 [ 49.755176] do_syscall_64+0x1e8/0x640 [ 49.759556] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 49.765254] [ 49.765254] -> #1 (&table[i].mutex){+.+.}: [ 49.770949] lock_acquire+0x16f/0x430 [ 49.775248] __mutex_lock+0xe8/0x1470 [ 49.779543] mutex_lock_nested+0x16/0x20 [ 49.784101] nfnl_lock+0x24/0x30 [ 49.787963] nf_tables_netdev_event+0x13f/0x580 [ 49.793129] notifier_call_chain+0x111/0x1b0 [ 49.798046] raw_notifier_call_chain+0x2e/0x40 [ 49.803140] call_netdevice_notifiers_info+0x56/0x70 [ 49.808739] rollback_registered_many+0x70d/0xb60 [ 49.814079] rollback_registered+0xdd/0x180 [ 49.818895] unregister_netdevice_queue+0x1ae/0x230 [ 49.824406] veth_newlink+0x58e/0x900 [ 49.828703] rtnl_newlink+0xecb/0x1700 [ 49.833231] rtnetlink_rcv_msg+0x3da/0xb70 [ 49.837964] netlink_rcv_skb+0x14f/0x3c0 [ 49.842537] rtnetlink_rcv+0x1d/0x30 [ 49.846752] netlink_unicast+0x44d/0x650 [ 49.851317] netlink_sendmsg+0x7c4/0xc60 [ 49.855921] sock_sendmsg+0xce/0x110 [ 49.860138] ___sys_sendmsg+0x70a/0x840 [ 49.864611] __sys_sendmsg+0xb9/0x140 [ 49.868912] SyS_sendmsg+0x2d/0x50 [ 49.872952] do_syscall_64+0x1e8/0x640 [ 49.877351] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 49.883035] [ 49.883035] -> #0 (rtnl_mutex){+.+.}: [ 49.888295] __lock_acquire+0x2cb3/0x4620 [ 49.892948] lock_acquire+0x16f/0x430 [ 49.897264] __mutex_lock+0xe8/0x1470 [ 49.901577] mutex_lock_nested+0x16/0x20 [ 49.906199] rtnl_lock+0x17/0x20 [ 49.910082] unregister_netdevice_notifier+0x5f/0x2c0 [ 49.915879] tee_tg_destroy+0x61/0xc0 [ 49.920180] cleanup_entry+0x1a6/0x260 [ 49.924570] __do_replace+0x3c5/0x5c0 [ 49.928870] do_ip6t_set_ctl+0x296/0x3f4 [ 49.933435] nf_setsockopt+0x67/0xc0 [ 49.937655] ipv6_setsockopt+0x105/0x130 [ 49.942216] tcp_setsockopt+0x84/0xd0 [ 49.946552] sock_common_setsockopt+0x94/0xd0 [ 49.951556] SyS_setsockopt+0x13c/0x210 [ 49.956047] do_syscall_64+0x1e8/0x640 [ 49.960436] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 49.966126] [ 49.966126] other info that might help us debug this: [ 49.966126] [ 49.974245] Chain exists of: [ 49.974245] rtnl_mutex --> &table[i].mutex --> &xt[i].mutex [ 49.974245] [ 49.984453] Possible unsafe locking scenario: [ 49.984453] [ 49.990486] CPU0 CPU1 [ 49.995126] ---- ---- [ 49.999766] lock(&xt[i].mutex); [ 50.003194] lock(&table[i].mutex); [ 50.009399] lock(&xt[i].mutex); [ 50.015342] lock(rtnl_mutex); [ 50.018607] [ 50.018607] *** DEADLOCK *** [ 50.018607] [ 50.024644] 1 lock held by syz-executor587/7242: [ 50.029372] #0: (&xt[i].mutex){+.+.}, at: [] xt_find_table_lock+0x3c/0x3d0 [ 50.038112] [ 50.038112] stack backtrace: [ 50.042600] CPU: 1 PID: 7242 Comm: syz-executor587 Not tainted 4.14.171-syzkaller #0 [ 50.050452] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 50.059806] Call Trace: [ 50.062388] dump_stack+0x142/0x197 [ 50.065994] print_circular_bug.isra.0.cold+0x1cc/0x28f [ 50.071336] __lock_acquire+0x2cb3/0x4620 [ 50.075457] ? find_held_lock+0x35/0x130 [ 50.079492] ? trace_hardirqs_on+0x10/0x10 [ 50.083704] ? kernel_text_address+0x73/0xf0 [ 50.088102] lock_acquire+0x16f/0x430 [ 50.091881] ? rtnl_lock+0x17/0x20 [ 50.095407] ? rtnl_lock+0x17/0x20 [ 50.098922] __mutex_lock+0xe8/0x1470 [ 50.102699] ? rtnl_lock+0x17/0x20 [ 50.106215] ? kvmalloc_node+0x4e/0xe0 [ 50.110101] ? rtnl_lock+0x17/0x20 [ 50.113678] ? do_syscall_64+0x1e8/0x640 [ 50.117722] ? entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 50.123069] ? trace_hardirqs_on+0x10/0x10 [ 50.127280] ? mutex_trylock+0x1c0/0x1c0 [ 50.131318] ? trace_hardirqs_on+0x10/0x10 [ 50.135528] ? save_trace+0x290/0x290 [ 50.139322] mutex_lock_nested+0x16/0x20 [ 50.143382] ? mutex_lock_nested+0x16/0x20 [ 50.147598] rtnl_lock+0x17/0x20 [ 50.150956] unregister_netdevice_notifier+0x5f/0x2c0 [ 50.156146] ? __lock_is_held+0xb6/0x140 [ 50.160210] ? register_netdevice_notifier+0x520/0x520 [ 50.165586] ? _find_next_bit+0xee/0x120 [ 50.169648] tee_tg_destroy+0x61/0xc0 [ 50.173447] ? tee_tg6+0x160/0x160 [ 50.176983] cleanup_entry+0x1a6/0x260 [ 50.180979] ? cleanup_match+0x140/0x140 [ 50.185024] __do_replace+0x3c5/0x5c0 [ 50.188823] ? compat_do_ip6t_get_ctl+0x870/0x870 [ 50.193675] ? _copy_from_user+0x99/0x110 [ 50.197806] do_ip6t_set_ctl+0x296/0x3f4 [ 50.201858] ? compat_do_ip6t_set_ctl+0x150/0x150 [ 50.206694] ? mutex_unlock+0xd/0x10 [ 50.210399] ? nf_sockopt_find.constprop.0+0x1b7/0x230 [ 50.215662] nf_setsockopt+0x67/0xc0 [ 50.219369] ipv6_setsockopt+0x105/0x130 [ 50.223423] tcp_setsockopt+0x84/0xd0 [ 50.227218] sock_common_setsockopt+0x94/0xd0 [ 50.231703] SyS_setsockopt+0x13c/0x210 [ 50.235665] ? SyS_recv+0x40/0x40 [ 50.239149] ? do_syscall_64+0x53/0x640 [ 50.243122] ? SyS_recv+0x40/0x40 [ 50.246607] do_syscall_64+0x1e8/0x640 [ 50.250487] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 50.255395] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 50.260573] RIP: 0033:0x444a8a [ 50.263741] RSP: 002b:00007ffe26544838 EFLAGS: 00000282 ORIG_RAX: 0000000000000036 executing program [ 50.271433] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000444a8a [ 50.278694] RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000003 [ 50.285954] RBP: 00007ffe26544960 R08: 00000000000003b8 R09: 0000000000004000 [ 50.293213] R10: 00000000006ceb60 R11: 0000000000000282 R12: 00007ffe26544860 [ 50.300520] R13: 00000000006d0d80 R14: 0000000000000029 R15: 00000000006cebc0 [ 50.310863] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program executing program [ 50.374383] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 50.423851] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 50.484727] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 50.544419] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 50.594427] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 50.644084] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 50.683737] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program executing program [ 50.734570] ip6_tables: ip6tables: counters copy to user failed while replacing table 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 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 [ 54.544339] net_ratelimit: 82 callbacks suppressed [ 54.544341] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 54.595009] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 54.654353] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 54.704038] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 54.754054] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 54.794266] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 54.843881] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 54.894244] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 54.953743] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 55.004623] ip6_tables: ip6tables: counters copy to user failed while replacing table 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 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 [ 59.574053] net_ratelimit: 99 callbacks suppressed [ 59.574055] ip6_tables: ip6tables: counters copy to user failed while replacing table