Warning: Permanently added '10.128.1.31' (ECDSA) to the list of known hosts. [ 42.162686] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 42.284335] audit: type=1400 audit(1580238745.065:36): avc: denied { map } for pid=7360 comm="syz-executor414" path="/root/syz-executor414108961" 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 [ 42.311156] audit: type=1400 audit(1580238745.065:37): avc: denied { relabelto } for pid=7361 comm="syz-executor414" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:logrotate_var_lib_t:s0 tclass=packet permissive=1 [ 42.311334] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 42.389055] netlink: 4 bytes leftover after parsing attributes in process `syz-executor414'. [ 42.405479] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7362 comm=syz-executor414 [ 42.417789] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7362 comm=syz-executor414 [ 42.430466] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7362 comm=syz-executor414 [ 42.442756] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7362 comm=syz-executor414 [ 42.455407] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7362 comm=syz-executor414 [ 42.468036] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7362 comm=syz-executor414 executing program [ 42.480568] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7362 comm=syz-executor414 [ 42.492963] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7362 comm=syz-executor414 [ 42.505945] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7362 comm=syz-executor414 [ 42.518512] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7362 comm=syz-executor414 [ 42.557503] [ 42.559236] ====================================================== [ 42.565570] WARNING: possible circular locking dependency detected [ 42.571979] 4.14.168-syzkaller #0 Not tainted [ 42.576501] ------------------------------------------------------ [ 42.582923] syz-executor414/7366 is trying to acquire lock: [ 42.588617] (rtnl_mutex){+.+.}, at: [] rtnl_lock+0x17/0x20 [ 42.596035] [ 42.596035] but task is already holding lock: [ 42.601992] (&xt[i].mutex){+.+.}, at: [] xt_find_table_lock+0x3c/0x3d0 [ 42.610430] [ 42.610430] which lock already depends on the new lock. [ 42.610430] [ 42.618834] [ 42.618834] the existing dependency chain (in reverse order) is: [ 42.626463] [ 42.626463] -> #1 (&xt[i].mutex){+.+.}: [ 42.631982] lock_acquire+0x16f/0x430 [ 42.636577] __mutex_lock+0xe8/0x1470 [ 42.640933] mutex_lock_nested+0x16/0x20 [ 42.645765] xt_find_target+0x3e/0x1e0 [ 42.648533] netlink: 4 bytes leftover after parsing attributes in process `syz-executor414'. [ 42.650165] xt_request_find_target+0x74/0xe0 [ 42.650172] ipt_init_target+0xce/0x290 [ 42.650177] __tcf_ipt_init+0x48c/0xb50 [ 42.650182] tcf_xt_init+0x4e/0x60 [ 42.650186] tcf_action_init_1+0x53c/0xaa0 [ 42.650194] tcf_action_init+0x2ab/0x480 [ 42.686641] tc_ctl_action+0x30a/0x548 [ 42.691137] rtnetlink_rcv_msg+0x3da/0xb70 [ 42.695909] netlink_rcv_skb+0x14f/0x3c0 [ 42.700478] rtnetlink_rcv+0x1d/0x30 [ 42.704701] netlink_unicast+0x44d/0x650 [ 42.709405] netlink_sendmsg+0x7c4/0xc60 [ 42.713974] sock_sendmsg+0xce/0x110 [ 42.718195] kernel_sendmsg+0x44/0x50 [ 42.722504] sock_no_sendpage+0x107/0x130 [ 42.727158] kernel_sendpage+0x92/0xf0 [ 42.731626] sock_sendpage+0x8b/0xc0 [ 42.735846] pipe_to_sendpage+0x242/0x340 [ 42.740522] __splice_from_pipe+0x348/0x780 [ 42.745496] splice_from_pipe+0xf0/0x150 [ 42.750126] generic_splice_sendpage+0x3c/0x50 [ 42.755222] SyS_splice+0xd92/0x1430 [ 42.759467] do_syscall_64+0x1e8/0x640 [ 42.764596] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 42.770472] [ 42.770472] -> #0 (rtnl_mutex){+.+.}: [ 42.775809] __lock_acquire+0x2cb3/0x4620 [ 42.780470] lock_acquire+0x16f/0x430 [ 42.784776] __mutex_lock+0xe8/0x1470 [ 42.789239] mutex_lock_nested+0x16/0x20 [ 42.793811] rtnl_lock+0x17/0x20 [ 42.797685] unregister_netdevice_notifier+0x5f/0x2c0 [ 42.803510] tee_tg_destroy+0x61/0xc0 [ 42.807827] cleanup_entry+0x1a6/0x260 [ 42.812275] __do_replace+0x3c5/0x5c0 [ 42.816587] do_ip6t_set_ctl+0x296/0x3f4 [ 42.821259] nf_setsockopt+0x67/0xc0 [ 42.825475] ipv6_setsockopt+0x105/0x130 [ 42.830048] rawv6_setsockopt+0x4f/0x110 [ 42.834758] sock_common_setsockopt+0x94/0xd0 [ 42.839858] SyS_setsockopt+0x13c/0x210 [ 42.844363] do_syscall_64+0x1e8/0x640 [ 42.848763] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 42.854455] [ 42.854455] other info that might help us debug this: [ 42.854455] [ 42.862734] Possible unsafe locking scenario: [ 42.862734] [ 42.868793] CPU0 CPU1 [ 42.874141] ---- ---- [ 42.878812] lock(&xt[i].mutex); [ 42.882304] lock(rtnl_mutex); [ 42.888088] lock(&xt[i].mutex); [ 42.894044] lock(rtnl_mutex); [ 42.897467] [ 42.897467] *** DEADLOCK *** [ 42.897467] [ 42.903511] 1 lock held by syz-executor414/7366: [ 42.908248] #0: (&xt[i].mutex){+.+.}, at: [] xt_find_table_lock+0x3c/0x3d0 [ 42.916998] [ 42.916998] stack backtrace: [ 42.921567] CPU: 1 PID: 7366 Comm: syz-executor414 Not tainted 4.14.168-syzkaller #0 [ 42.929433] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 42.938772] Call Trace: [ 42.941495] dump_stack+0x142/0x197 [ 42.945123] print_circular_bug.isra.0.cold+0x1cc/0x28f [ 42.950478] __lock_acquire+0x2cb3/0x4620 [ 42.954616] ? trace_hardirqs_on+0x10/0x10 [ 42.958843] ? __kernel_text_address+0xd/0x40 [ 42.963365] lock_acquire+0x16f/0x430 [ 42.967162] ? rtnl_lock+0x17/0x20 [ 42.970687] ? rtnl_lock+0x17/0x20 [ 42.974257] __mutex_lock+0xe8/0x1470 [ 42.978138] ? rtnl_lock+0x17/0x20 [ 42.981661] ? __bitmap_weight+0xbd/0xf0 [ 42.985708] ? rtnl_lock+0x17/0x20 [ 42.989343] ? pcpu_next_md_free_region+0x14c/0x2f0 [ 42.994344] ? mutex_trylock+0x1c0/0x1c0 [ 42.998523] ? pcpu_chunk_refresh_hint+0x29b/0x350 [ 43.003433] ? free_percpu+0x232/0x710 [ 43.007331] ? find_held_lock+0x35/0x130 [ 43.011589] ? free_percpu+0x232/0x710 [ 43.015465] mutex_lock_nested+0x16/0x20 [ 43.019646] ? mutex_lock_nested+0x16/0x20 [ 43.023862] rtnl_lock+0x17/0x20 [ 43.027215] unregister_netdevice_notifier+0x5f/0x2c0 [ 43.032400] ? trace_hardirqs_on_caller+0x400/0x590 [ 43.037461] ? register_netdevice_notifier+0x520/0x520 [ 43.042736] ? icmp6_checkentry+0x90/0x90 [ 43.046872] tee_tg_destroy+0x61/0xc0 [ 43.050654] ? tee_tg6+0x160/0x160 [ 43.054179] cleanup_entry+0x1a6/0x260 [ 43.058097] ? cleanup_match+0x140/0x140 [ 43.062263] __do_replace+0x3c5/0x5c0 [ 43.066119] ? compat_do_ip6t_get_ctl+0x870/0x870 [ 43.070948] ? _copy_from_user+0x99/0x110 [ 43.075089] do_ip6t_set_ctl+0x296/0x3f4 [ 43.079187] ? compat_do_ip6t_set_ctl+0x150/0x150 [ 43.084019] ? mutex_unlock+0xd/0x10 [ 43.087733] ? nf_sockopt_find.constprop.0+0x1b7/0x230 [ 43.093146] nf_setsockopt+0x67/0xc0 [ 43.096853] ipv6_setsockopt+0x105/0x130 [ 43.100904] rawv6_setsockopt+0x4f/0x110 [ 43.105064] sock_common_setsockopt+0x94/0xd0 [ 43.109546] SyS_setsockopt+0x13c/0x210 [ 43.113504] ? SyS_recv+0x40/0x40 [ 43.116944] ? do_syscall_64+0x53/0x640 [ 43.120955] ? SyS_recv+0x40/0x40 [ 43.124394] do_syscall_64+0x1e8/0x640 [ 43.128272] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 43.133099] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 43.138269] RIP: 0033:0x447d29 [ 43.141441] RSP: 002b:00007fd3a9367d98 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 [ 43.149132] RAX: ffffffffffffffda RBX: 00000000006dcc68 RCX: 0000000000447d29 executing program [ 43.156392] RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000004 [ 43.163649] RBP: 00000000006dcc60 R08: 00000000000004cf R09: 0000000000000000 [ 43.170945] R10: 00000000200002c0 R11: 0000000000000246 R12: 00000000006dcc6c [ 43.178197] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000454554 [ 43.186099] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 43.197002] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 43.251455] netlink: 4 bytes leftover after parsing attributes in process `syz-executor414'. executing program [ 43.378449] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 43.433589] netlink: 4 bytes leftover after parsing attributes in process `syz-executor414'. executing program [ 43.561272] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 43.615501] netlink: 4 bytes leftover after parsing attributes in process `syz-executor414'. executing program [ 43.744334] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 43.798488] netlink: 4 bytes leftover after parsing attributes in process `syz-executor414'. executing program [ 43.926058] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 43.980466] netlink: 4 bytes leftover after parsing attributes in process `syz-executor414'. executing program [ 44.108262] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 44.162492] netlink: 4 bytes leftover after parsing attributes in process `syz-executor414'. executing program [ 44.289227] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 44.343492] netlink: 4 bytes leftover after parsing attributes in process `syz-executor414'. executing program [ 44.471297] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 44.525558] netlink: 4 bytes leftover after parsing attributes in process `syz-executor414'. 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 [ 47.457470] net_ratelimit: 17 callbacks suppressed [ 47.457472] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 47.517514] nla_parse: 17 callbacks suppressed [ 47.517518] netlink: 4 bytes leftover after parsing attributes in process `syz-executor414'. [ 47.534914] selinux_nlmsg_perm: 2123 callbacks suppressed [ 47.534920] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7472 comm=syz-executor414 [ 47.552936] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7472 comm=syz-executor414 [ 47.565378] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7472 comm=syz-executor414 [ 47.577793] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7472 comm=syz-executor414 [ 47.590196] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7472 comm=syz-executor414 [ 47.603257] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7472 comm=syz-executor414 executing program [ 47.615542] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7472 comm=syz-executor414 [ 47.628206] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7472 comm=syz-executor414 [ 47.640707] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7472 comm=syz-executor414 [ 47.652974] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7472 comm=syz-executor414 [ 47.688133] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 47.742560] netlink: 4 bytes leftover after parsing attributes in process `syz-executor414'. executing program [ 47.870801] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 47.925545] netlink: 4 bytes leftover after parsing attributes in process `syz-executor414'. executing program [ 48.055291] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 48.110608] netlink: 4 bytes leftover after parsing attributes in process `syz-executor414'. executing program [ 48.238913] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 48.293483] netlink: 4 bytes leftover after parsing attributes in process `syz-executor414'. executing program [ 48.421568] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 48.476442] netlink: 4 bytes leftover after parsing attributes in process `syz-executor414'. executing program [ 48.604579] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 48.659498] netlink: 4 bytes leftover after parsing attributes in process `syz-executor414'. executing program [ 48.787437] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 48.842495] netlink: 4 bytes leftover after parsing attributes in process `syz-executor414'. executing program [ 48.969960] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 49.024552] netlink: 4 bytes leftover after parsing attributes in process `syz-executor414'. executing program [ 49.152576] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 49.208117] netlink: 4 bytes leftover after parsing attributes in process `syz-executor414'. 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 [ 52.474752] net_ratelimit: 19 callbacks suppressed [ 52.474757] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 52.534519] nla_parse: 19 callbacks suppressed [ 52.534523] netlink: 4 bytes leftover after parsing attributes in process `syz-executor414'. [ 52.551095] selinux_nlmsg_perm: 2281 callbacks suppressed [ 52.551100] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7588 comm=syz-executor414 [ 52.568967] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7588 comm=syz-executor414