[....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 34.495196] random: sshd: uninitialized urandom read (32 bytes read) [ 34.762293] kauditd_printk_skb: 10 callbacks suppressed [ 34.762306] audit: type=1400 audit(1580775915.552:35): avc: denied { map } for pid=7174 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 [ 34.816880] random: sshd: uninitialized urandom read (32 bytes read) [ 35.494823] random: sshd: uninitialized urandom read (32 bytes read) [ 35.675727] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.31' (ECDSA) to the list of known hosts. [ 41.257833] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 41.369318] audit: type=1400 audit(1580775922.152:36): avc: denied { map } for pid=7187 comm="syz-executor052" path="/root/syz-executor052408543" 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 [ 41.396182] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 41.451168] netlink: 4 bytes leftover after parsing attributes in process `syz-executor052'. [ 41.464925] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7190 comm=syz-executor052 [ 41.477279] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7190 comm=syz-executor052 [ 41.489591] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7190 comm=syz-executor052 [ 41.501765] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7190 comm=syz-executor052 [ 41.514083] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7190 comm=syz-executor052 [ 41.526355] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7190 comm=syz-executor052 [ 41.538707] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7190 comm=syz-executor052 executing program [ 41.551031] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7190 comm=syz-executor052 [ 41.563712] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7190 comm=syz-executor052 [ 41.575918] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7190 comm=syz-executor052 [ 41.615674] [ 41.617311] ====================================================== [ 41.623606] WARNING: possible circular locking dependency detected [ 41.629905] 4.14.169-syzkaller #0 Not tainted [ 41.634377] ------------------------------------------------------ [ 41.640668] syz-executor052/7193 is trying to acquire lock: [ 41.646356] (rtnl_mutex){+.+.}, at: [] rtnl_lock+0x17/0x20 [ 41.653620] [ 41.653620] but task is already holding lock: [ 41.659572] (&xt[i].mutex){+.+.}, at: [] xt_find_table_lock+0x3c/0x3d0 [ 41.667896] [ 41.667896] which lock already depends on the new lock. [ 41.667896] [ 41.676228] [ 41.676228] the existing dependency chain (in reverse order) is: [ 41.683828] [ 41.683828] -> #1 (&xt[i].mutex){+.+.}: [ 41.689269] lock_acquire+0x16f/0x430 [ 41.693569] __mutex_lock+0xe8/0x1470 [ 41.697904] mutex_lock_nested+0x16/0x20 [ 41.702469] xt_find_target+0x3e/0x1e0 [ 41.706524] netlink: 4 bytes leftover after parsing attributes in process `syz-executor052'. [ 41.706908] xt_request_find_target+0x74/0xe0 [ 41.720491] ipt_init_target+0xce/0x290 [ 41.724969] __tcf_ipt_init+0x48c/0xb50 [ 41.729539] tcf_xt_init+0x4e/0x60 [ 41.733590] tcf_action_init_1+0x53c/0xaa0 [ 41.738327] tcf_action_init+0x2ab/0x480 [ 41.742894] tc_ctl_action+0x30a/0x548 [ 41.747299] rtnetlink_rcv_msg+0x3da/0xb70 [ 41.752043] netlink_rcv_skb+0x14f/0x3c0 [ 41.756601] rtnetlink_rcv+0x1d/0x30 [ 41.760817] netlink_unicast+0x44d/0x650 [ 41.765374] netlink_sendmsg+0x7c4/0xc60 [ 41.769933] sock_sendmsg+0xce/0x110 [ 41.774143] kernel_sendmsg+0x44/0x50 [ 41.778441] sock_no_sendpage+0x107/0x130 [ 41.783162] kernel_sendpage+0x92/0xf0 [ 41.787553] sock_sendpage+0x8b/0xc0 [ 41.791771] pipe_to_sendpage+0x242/0x340 [ 41.796417] __splice_from_pipe+0x348/0x780 [ 41.801237] splice_from_pipe+0xf0/0x150 [ 41.805796] generic_splice_sendpage+0x3c/0x50 [ 41.810875] SyS_splice+0xd92/0x1430 [ 41.815087] do_syscall_64+0x1e8/0x640 [ 41.819478] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 41.825162] [ 41.825162] -> #0 (rtnl_mutex){+.+.}: [ 41.830545] __lock_acquire+0x2cb3/0x4620 [ 41.835192] lock_acquire+0x16f/0x430 [ 41.839491] __mutex_lock+0xe8/0x1470 [ 41.843785] mutex_lock_nested+0x16/0x20 [ 41.848343] rtnl_lock+0x17/0x20 [ 41.852226] unregister_netdevice_notifier+0x5f/0x2c0 [ 41.857914] tee_tg_destroy+0x61/0xc0 [ 41.862217] cleanup_entry+0x1a6/0x260 [ 41.866814] __do_replace+0x3c5/0x5c0 [ 41.871113] do_ip6t_set_ctl+0x296/0x3f4 [ 41.875670] nf_setsockopt+0x67/0xc0 [ 41.879879] ipv6_setsockopt+0x105/0x130 [ 41.884453] udpv6_setsockopt+0x4e/0x90 [ 41.888942] sock_common_setsockopt+0x94/0xd0 [ 41.893932] SyS_setsockopt+0x13c/0x210 [ 41.898518] do_syscall_64+0x1e8/0x640 [ 41.902901] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 41.908585] [ 41.908585] other info that might help us debug this: [ 41.908585] [ 41.916700] Possible unsafe locking scenario: [ 41.916700] [ 41.922730] CPU0 CPU1 [ 41.927381] ---- ---- [ 41.932020] lock(&xt[i].mutex); [ 41.935450] lock(rtnl_mutex); [ 41.941227] lock(&xt[i].mutex); [ 41.947174] lock(rtnl_mutex); [ 41.950431] [ 41.950431] *** DEADLOCK *** [ 41.950431] [ 41.956483] 1 lock held by syz-executor052/7193: [ 41.961213] #0: (&xt[i].mutex){+.+.}, at: [] xt_find_table_lock+0x3c/0x3d0 [ 41.969947] [ 41.969947] stack backtrace: [ 41.974430] CPU: 0 PID: 7193 Comm: syz-executor052 Not tainted 4.14.169-syzkaller #0 [ 41.982304] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.991643] Call Trace: [ 41.994211] dump_stack+0x142/0x197 [ 41.997822] print_circular_bug.isra.0.cold+0x1cc/0x28f [ 42.003165] __lock_acquire+0x2cb3/0x4620 [ 42.007294] ? trace_hardirqs_on+0x10/0x10 [ 42.011505] ? __kernel_text_address+0xd/0x40 [ 42.015982] lock_acquire+0x16f/0x430 [ 42.019776] ? rtnl_lock+0x17/0x20 [ 42.023316] ? rtnl_lock+0x17/0x20 [ 42.026842] __mutex_lock+0xe8/0x1470 [ 42.030621] ? rtnl_lock+0x17/0x20 [ 42.034141] ? __lock_acquire+0x5f7/0x4620 [ 42.038353] ? rtnl_lock+0x17/0x20 [ 42.041872] ? trace_hardirqs_on+0x10/0x10 [ 42.046089] ? mutex_trylock+0x1c0/0x1c0 [ 42.050167] ? trace_hardirqs_on+0x10/0x10 [ 42.054384] ? save_trace+0x290/0x290 [ 42.058174] mutex_lock_nested+0x16/0x20 [ 42.062211] ? mutex_lock_nested+0x16/0x20 [ 42.066568] rtnl_lock+0x17/0x20 [ 42.069926] unregister_netdevice_notifier+0x5f/0x2c0 [ 42.075107] ? __lock_is_held+0xb6/0x140 [ 42.079148] ? register_netdevice_notifier+0x520/0x520 [ 42.084407] ? _find_next_bit+0xee/0x120 [ 42.088446] tee_tg_destroy+0x61/0xc0 [ 42.092223] ? tee_tg6+0x160/0x160 [ 42.095738] cleanup_entry+0x1a6/0x260 [ 42.099617] ? cleanup_match+0x140/0x140 [ 42.103658] __do_replace+0x3c5/0x5c0 [ 42.107436] ? compat_do_ip6t_get_ctl+0x870/0x870 [ 42.112258] ? _copy_from_user+0x99/0x110 [ 42.116387] do_ip6t_set_ctl+0x296/0x3f4 [ 42.120478] ? compat_do_ip6t_set_ctl+0x150/0x150 [ 42.125317] ? mutex_unlock+0xd/0x10 [ 42.129025] ? nf_sockopt_find.constprop.0+0x1b7/0x230 [ 42.134280] nf_setsockopt+0x67/0xc0 [ 42.137972] ipv6_setsockopt+0x105/0x130 [ 42.142046] udpv6_setsockopt+0x4e/0x90 [ 42.145998] sock_common_setsockopt+0x94/0xd0 [ 42.150474] SyS_setsockopt+0x13c/0x210 [ 42.154427] ? SyS_recv+0x40/0x40 [ 42.157860] ? do_syscall_64+0x53/0x640 [ 42.161849] ? SyS_recv+0x40/0x40 [ 42.165283] do_syscall_64+0x1e8/0x640 [ 42.169152] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 42.173983] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 42.179153] RIP: 0033:0x447979 [ 42.182329] RSP: 002b:00007f02a048bd98 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 [ 42.190018] RAX: ffffffffffffffda RBX: 00000000006dcc48 RCX: 0000000000447979 [ 42.197272] RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000003 [ 42.204519] RBP: 00000000006dcc40 R08: 00000000000003e8 R09: 0000000000000000 executing program [ 42.211767] R10: 0000000020000c80 R11: 0000000000000246 R12: 00000000006dcc4c [ 42.219012] R13: 0000000000000000 R14: 0000000000000000 R15: 00007265746c6966 [ 42.226631] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 42.236801] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 42.291402] netlink: 4 bytes leftover after parsing attributes in process `syz-executor052'. executing program [ 42.417586] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 42.471448] netlink: 4 bytes leftover after parsing attributes in process `syz-executor052'. executing program [ 42.596207] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 42.650476] netlink: 4 bytes leftover after parsing attributes in process `syz-executor052'. executing program [ 42.776295] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 42.830457] netlink: 4 bytes leftover after parsing attributes in process `syz-executor052'. executing program [ 42.955480] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 43.010462] netlink: 4 bytes leftover after parsing attributes in process `syz-executor052'. executing program [ 43.136492] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 43.191436] netlink: 4 bytes leftover after parsing attributes in process `syz-executor052'. executing program [ 43.316814] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 43.371446] netlink: 4 bytes leftover after parsing attributes in process `syz-executor052'. executing program [ 43.497817] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 43.552389] netlink: 4 bytes leftover after parsing attributes in process `syz-executor052'. 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 [ 46.454658] net_ratelimit: 17 callbacks suppressed [ 46.454660] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 46.514501] nla_parse: 17 callbacks suppressed [ 46.514505] netlink: 4 bytes leftover after parsing attributes in process `syz-executor052'. [ 46.532009] selinux_nlmsg_perm: 2123 callbacks suppressed [ 46.532014] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7299 comm=syz-executor052 [ 46.549720] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7299 comm=syz-executor052 [ 46.561991] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7299 comm=syz-executor052 [ 46.574278] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7299 comm=syz-executor052 [ 46.586565] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7299 comm=syz-executor052 [ 46.598736] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7299 comm=syz-executor052 executing program [ 46.610957] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7299 comm=syz-executor052 [ 46.623058] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7299 comm=syz-executor052 [ 46.635223] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7299 comm=syz-executor052 [ 46.647351] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7299 comm=syz-executor052 [ 46.684311] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 46.738437] netlink: 4 bytes leftover after parsing attributes in process `syz-executor052'. executing program [ 46.864368] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 46.918580] netlink: 4 bytes leftover after parsing attributes in process `syz-executor052'. executing program [ 47.044887] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 47.099464] netlink: 4 bytes leftover after parsing attributes in process `syz-executor052'. executing program [ 47.225540] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 47.280486] netlink: 4 bytes leftover after parsing attributes in process `syz-executor052'. executing program [ 47.406412] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 47.461439] netlink: 4 bytes leftover after parsing attributes in process `syz-executor052'. executing program [ 47.586543] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 47.640406] netlink: 4 bytes leftover after parsing attributes in process `syz-executor052'. executing program [ 47.766830] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 47.821429] netlink: 4 bytes leftover after parsing attributes in process `syz-executor052'. executing program [ 47.947868] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 48.002393] netlink: 4 bytes leftover after parsing attributes in process `syz-executor052'. executing program [ 48.127300] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 48.181530] netlink: 4 bytes leftover after parsing attributes in process `syz-executor052'. 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 [ 51.572175] net_ratelimit: 20 callbacks suppressed [ 51.572177] ip6_tables: ip6tables: counters copy to user failed while replacing table