Warning: Permanently added '10.128.10.19' (ECDSA) to the list of known hosts. [ 46.112674] random: sshd: uninitialized urandom read (32 bytes read) [ 46.232585] audit: type=1400 audit(1579273441.698:36): avc: denied { map } for pid=7303 comm="syz-executor070" path="/root/syz-executor070119068" dev="sda1" ino=16483 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 [ 46.501136] IPVS: ftp: loaded support on port[0] = 21 executing program [ 48.754699] ip_tables: iptables: counters copy to user failed while replacing table [ 48.809862] netlink: 4 bytes leftover after parsing attributes in process `syz-executor070'. [ 48.824439] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7309 comm=syz-executor070 [ 48.838710] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7309 comm=syz-executor070 [ 48.851005] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7309 comm=syz-executor070 [ 48.863258] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7309 comm=syz-executor070 [ 48.875541] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7309 comm=syz-executor070 [ 48.888103] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7309 comm=syz-executor070 [ 48.900364] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7309 comm=syz-executor070 [ 48.912674] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7309 comm=syz-executor070 [ 48.925104] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7309 comm=syz-executor070 [ 48.937355] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7309 comm=syz-executor070 [ 48.976661] [ 48.978317] ====================================================== [ 48.984617] WARNING: possible circular locking dependency detected [ 48.990925] 4.14.165-syzkaller #0 Not tainted [ 48.995441] ------------------------------------------------------ [ 49.001764] syz-executor070/7304 is trying to acquire lock: [ 49.007456] (rtnl_mutex){+.+.}, at: [] rtnl_lock+0x17/0x20 [ 49.014740] [ 49.014740] but task is already holding lock: [ 49.020694] (&xt[i].mutex){+.+.}, at: [] xt_find_table_lock+0x3c/0x3d0 [ 49.029005] [ 49.029005] which lock already depends on the new lock. [ 49.029005] [ 49.037306] [ 49.037306] the existing dependency chain (in reverse order) is: [ 49.045101] [ 49.045101] -> #1 (&xt[i].mutex){+.+.}: [ 49.050599] lock_acquire+0x16f/0x430 [ 49.054898] __mutex_lock+0xe8/0x1470 [ 49.059263] mutex_lock_nested+0x16/0x20 [ 49.063835] xt_find_target+0x3e/0x1e0 [ 49.068238] xt_request_find_target+0x74/0xe0 [ 49.073300] ipt_init_target+0xce/0x290 [ 49.077780] __tcf_ipt_init+0x48c/0xb50 [ 49.082255] tcf_xt_init+0x4e/0x60 [ 49.086419] tcf_action_init_1+0x53c/0xaa0 [ 49.091161] tcf_action_init+0x2ab/0x480 [ 49.095726] tc_ctl_action+0x30a/0x548 [ 49.100125] rtnetlink_rcv_msg+0x3da/0xb70 [ 49.104867] netlink_rcv_skb+0x14f/0x3c0 [ 49.109468] rtnetlink_rcv+0x1d/0x30 [ 49.113682] netlink_unicast+0x44d/0x650 [ 49.118275] netlink_sendmsg+0x7c4/0xc60 [ 49.122968] sock_sendmsg+0xce/0x110 [ 49.127196] kernel_sendmsg+0x44/0x50 [ 49.131610] sock_no_sendpage+0x107/0x130 [ 49.136369] kernel_sendpage+0x92/0xf0 [ 49.140778] sock_sendpage+0x8b/0xc0 [ 49.146458] pipe_to_sendpage+0x242/0x340 [ 49.151131] __splice_from_pipe+0x348/0x780 [ 49.155996] splice_from_pipe+0xf0/0x150 [ 49.160568] generic_splice_sendpage+0x3c/0x50 [ 49.165741] SyS_splice+0xd92/0x1430 [ 49.170672] do_syscall_64+0x1e8/0x640 [ 49.175068] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 49.180771] [ 49.180771] -> #0 (rtnl_mutex){+.+.}: [ 49.186046] __lock_acquire+0x2cb3/0x4620 [ 49.190696] lock_acquire+0x16f/0x430 [ 49.195325] __mutex_lock+0xe8/0x1470 [ 49.199640] mutex_lock_nested+0x16/0x20 [ 49.204206] rtnl_lock+0x17/0x20 [ 49.208075] unregister_netdevice_notifier+0x5f/0x2c0 [ 49.213777] tee_tg_destroy+0x61/0xc0 [ 49.218160] cleanup_entry+0x17d/0x230 [ 49.222562] __do_replace+0x3c5/0x5b0 [ 49.226897] do_ipt_set_ctl+0x296/0x3ee [ 49.231429] nf_setsockopt+0x67/0xc0 [ 49.238437] ip_setsockopt+0x9b/0xb0 [ 49.242754] tcp_setsockopt+0x84/0xd0 [ 49.247096] sock_common_setsockopt+0x94/0xd0 [ 49.252192] SyS_setsockopt+0x13c/0x210 [ 49.256676] do_syscall_64+0x1e8/0x640 [ 49.261081] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 49.266779] [ 49.266779] other info that might help us debug this: [ 49.266779] [ 49.274917] Possible unsafe locking scenario: [ 49.274917] [ 49.280965] CPU0 CPU1 [ 49.285688] ---- ---- [ 49.290336] lock(&xt[i].mutex); [ 49.293772] lock(rtnl_mutex); [ 49.299568] lock(&xt[i].mutex); [ 49.305653] lock(rtnl_mutex); [ 49.308937] [ 49.308937] *** DEADLOCK *** [ 49.308937] [ 49.315045] 1 lock held by syz-executor070/7304: [ 49.319808] #0: (&xt[i].mutex){+.+.}, at: [] xt_find_table_lock+0x3c/0x3d0 [ 49.328953] [ 49.328953] stack backtrace: [ 49.333443] CPU: 0 PID: 7304 Comm: syz-executor070 Not tainted 4.14.165-syzkaller #0 [ 49.341393] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 49.350797] Call Trace: [ 49.353387] dump_stack+0x142/0x197 [ 49.357115] print_circular_bug.isra.0.cold+0x1cc/0x28f [ 49.362472] __lock_acquire+0x2cb3/0x4620 [ 49.366605] ? find_held_lock+0x35/0x130 [ 49.370729] ? trace_hardirqs_on+0x10/0x10 [ 49.374960] ? kernel_text_address+0x73/0xf0 [ 49.379480] lock_acquire+0x16f/0x430 [ 49.383295] ? rtnl_lock+0x17/0x20 [ 49.386818] ? rtnl_lock+0x17/0x20 [ 49.390380] __mutex_lock+0xe8/0x1470 [ 49.394166] ? rtnl_lock+0x17/0x20 [ 49.397939] ? kvmalloc_node+0x4e/0xe0 [ 49.401831] ? __bitmap_weight+0xbd/0xf0 [ 49.405885] ? rtnl_lock+0x17/0x20 [ 49.409420] ? mutex_trylock+0x1c0/0x1c0 [ 49.413474] ? save_trace+0x290/0x290 [ 49.417267] ? pcpu_chunk_refresh_hint+0x29b/0x350 [ 49.422256] ? free_percpu+0x232/0x710 [ 49.426277] ? find_held_lock+0x35/0x130 [ 49.430334] ? free_percpu+0x232/0x710 [ 49.434223] mutex_lock_nested+0x16/0x20 [ 49.438487] ? mutex_lock_nested+0x16/0x20 [ 49.442760] rtnl_lock+0x17/0x20 [ 49.446122] unregister_netdevice_notifier+0x5f/0x2c0 [ 49.451358] ? trace_hardirqs_on_caller+0x400/0x590 [ 49.456808] ? register_netdevice_notifier+0x520/0x520 [ 49.462081] ? free_percpu+0x24f/0x710 [ 49.466070] tee_tg_destroy+0x61/0xc0 [ 49.469880] ? tee_tg6+0x160/0x160 [ 49.473421] cleanup_entry+0x17d/0x230 [ 49.477313] ? cleanup_match+0x140/0x140 [ 49.481370] __do_replace+0x3c5/0x5b0 [ 49.485161] ? compat_do_ipt_get_ctl+0x7f0/0x7f0 [ 49.490045] ? _copy_from_user+0x99/0x110 [ 49.494196] do_ipt_set_ctl+0x296/0x3ee [ 49.498176] ? compat_do_ipt_set_ctl+0x150/0x150 [ 49.502936] ? mutex_unlock+0xd/0x10 [ 49.506654] ? nf_sockopt_find.constprop.0+0x1b7/0x230 [ 49.512364] nf_setsockopt+0x67/0xc0 [ 49.516350] ip_setsockopt+0x9b/0xb0 [ 49.520066] tcp_setsockopt+0x84/0xd0 [ 49.523874] sock_common_setsockopt+0x94/0xd0 [ 49.528374] SyS_setsockopt+0x13c/0x210 [ 49.532336] ? SyS_recv+0x40/0x40 [ 49.535810] ? do_syscall_64+0x53/0x640 [ 49.539771] ? SyS_recv+0x40/0x40 [ 49.543219] do_syscall_64+0x1e8/0x640 [ 49.547788] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 49.552777] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 49.557955] RIP: 0033:0x44b2fa [ 49.561130] RSP: 002b:00007ffe1bc8fc88 EFLAGS: 00000286 ORIG_RAX: 0000000000000036 [ 49.568996] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000044b2fa executing program [ 49.576431] RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000003 [ 49.584222] RBP: 00007ffe1bc8fdb0 R08: 0000000000000408 R09: 0000000000004000 [ 49.591632] R10: 00000000006e0a80 R11: 0000000000000286 R12: 00007ffe1bc8fcb0 [ 49.598947] R13: 00000000006e1f20 R14: 0000000000000000 R15: 00000000006e0ae0 [ 49.609611] ip_tables: iptables: counters copy to user failed while replacing table [ 49.664322] netlink: 4 bytes leftover after parsing attributes in process `syz-executor070'. executing program [ 49.794287] ip_tables: iptables: counters copy to user failed while replacing table [ 49.849331] netlink: 4 bytes leftover after parsing attributes in process `syz-executor070'. executing program [ 49.979470] ip_tables: iptables: counters copy to user failed while replacing table [ 50.034322] netlink: 4 bytes leftover after parsing attributes in process `syz-executor070'. executing program [ 50.164102] ip_tables: iptables: counters copy to user failed while replacing table [ 50.218338] netlink: 4 bytes leftover after parsing attributes in process `syz-executor070'. executing program [ 50.348212] ip_tables: iptables: counters copy to user failed while replacing table [ 50.403302] netlink: 4 bytes leftover after parsing attributes in process `syz-executor070'. executing program [ 50.533010] ip_tables: iptables: counters copy to user failed while replacing table [ 50.587271] netlink: 4 bytes leftover after parsing attributes in process `syz-executor070'. executing program [ 50.716338] ip_tables: iptables: counters copy to user failed while replacing table [ 50.771355] netlink: 4 bytes leftover after parsing attributes in process `syz-executor070'. executing program [ 50.901334] ip_tables: iptables: counters copy to user failed while replacing table [ 50.956298] netlink: 4 bytes leftover after parsing attributes in process `syz-executor070'. executing program [ 51.085839] ip_tables: iptables: counters copy to user failed while replacing table [ 51.140322] netlink: 4 bytes leftover after parsing attributes in process `syz-executor070'. 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 [ 53.773656] net_ratelimit: 15 callbacks suppressed [ 53.773658] ip_tables: iptables: counters copy to user failed while replacing table [ 53.833291] nla_parse: 15 callbacks suppressed [ 53.833294] netlink: 4 bytes leftover after parsing attributes in process `syz-executor070'. [ 53.850868] selinux_nlmsg_perm: 1965 callbacks suppressed [ 53.850873] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7409 comm=syz-executor070 [ 53.868582] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7409 comm=syz-executor070 [ 53.880802] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7409 comm=syz-executor070 [ 53.893220] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7409 comm=syz-executor070 [ 53.905498] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7409 comm=syz-executor070 [ 53.917835] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7409 comm=syz-executor070 executing program [ 53.930033] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7409 comm=syz-executor070 [ 53.942204] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7409 comm=syz-executor070 [ 53.954637] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7409 comm=syz-executor070 [ 53.967131] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7409 comm=syz-executor070 [ 54.006114] ip_tables: iptables: counters copy to user failed while replacing table [ 54.060320] netlink: 4 bytes leftover after parsing attributes in process `syz-executor070'. executing program [ 54.189534] ip_tables: iptables: counters copy to user failed while replacing table [ 54.243354] netlink: 4 bytes leftover after parsing attributes in process `syz-executor070'. executing program [ 54.372008] ip_tables: iptables: counters copy to user failed while replacing table [ 54.426339] netlink: 4 bytes leftover after parsing attributes in process `syz-executor070'. executing program [ 54.555975] ip_tables: iptables: counters copy to user failed while replacing table [ 54.610318] netlink: 4 bytes leftover after parsing attributes in process `syz-executor070'. executing program [ 54.738916] ip_tables: iptables: counters copy to user failed while replacing table [ 54.793316] netlink: 4 bytes leftover after parsing attributes in process `syz-executor070'. executing program [ 54.924077] ip_tables: iptables: counters copy to user failed while replacing table [ 54.978369] netlink: 4 bytes leftover after parsing attributes in process `syz-executor070'. executing program [ 55.107882] ip_tables: iptables: counters copy to user failed while replacing table [ 55.162341] netlink: 4 bytes leftover after parsing attributes in process `syz-executor070'. executing program [ 55.291806] ip_tables: iptables: counters copy to user failed while replacing table [ 55.346255] netlink: 4 bytes leftover after parsing attributes in process `syz-executor070'. executing program [ 55.476068] ip_tables: iptables: counters copy to user failed while replacing table [ 55.530336] netlink: 4 bytes leftover after parsing attributes in process `syz-executor070'. 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 [ 58.820285] net_ratelimit: 19 callbacks suppressed [ 58.820288] ip_tables: iptables: counters copy to user failed while replacing table [ 58.879858] nla_parse: 19 callbacks suppressed [ 58.879861] netlink: 4 bytes leftover after parsing attributes in process `syz-executor070'. [ 58.897108] selinux_nlmsg_perm: 2281 callbacks suppressed [ 58.897113] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7525 comm=syz-executor070 [ 58.915075] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7525 comm=syz-executor070 [ 58.927437] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7525 comm=syz-executor070 [ 58.939674] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7525 comm=syz-executor070 [ 58.952156] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7525 comm=syz-executor070 [ 58.964368] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7525 comm=syz-executor070