[ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... Starting Load/Save RF Kill Switch Status... [ OK ] Started Update UTMP about System Runlevel Changes. [ OK ] Started Load/Save RF Kill Switch Status. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.1.41' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 38.142402] audit: type=1400 audit(1595229136.617:8): avc: denied { execmem } for pid=6346 comm="syz-executor681" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=process permissive=1 [ 38.163367] ip_tables: iptables: counters copy to user failed while replacing table [ 38.171808] netlink: 24 bytes leftover after parsing attributes in process `syz-executor681'. executing program [ 38.270575] ip_tables: iptables: counters copy to user failed while replacing table [ 38.278929] netlink: 24 bytes leftover after parsing attributes in process `syz-executor681'. [ 38.293239] [ 38.294876] ====================================================== [ 38.301175] WARNING: possible circular locking dependency detected [ 38.307480] 4.14.184-syzkaller #0 Not tainted [ 38.311960] ------------------------------------------------------ [ 38.318253] syz-executor681/6362 is trying to acquire lock: [ 38.323938] (&table[i].mutex){+.+.}, at: [] nf_tables_netdev_event+0x10d/0x4d0 [ 38.332935] [ 38.332935] but task is already holding lock: [ 38.338877] (rtnl_mutex){+.+.}, at: [] rtnetlink_rcv_msg+0x31d/0xb10 [ 38.346999] [ 38.346999] which lock already depends on the new lock. [ 38.346999] [ 38.355284] [ 38.355284] the existing dependency chain (in reverse order) is: [ 38.362908] [ 38.362908] -> #2 (rtnl_mutex){+.+.}: [ 38.368166] __mutex_lock+0xe8/0x1430 [ 38.372470] unregister_netdevice_notifier+0x5e/0x2b0 [ 38.378170] tee_tg_destroy+0x5c/0xb0 [ 38.382465] cleanup_entry+0x169/0x220 [ 38.386849] __do_replace+0x38d/0x570 [ 38.391174] do_ipt_set_ctl+0x255/0x39d [ 38.395643] nf_setsockopt+0x5f/0xb0 [ 38.399868] ip_setsockopt+0x94/0xb0 [ 38.404106] udp_setsockopt+0x45/0x80 [ 38.408411] SyS_setsockopt+0x110/0x1e0 [ 38.412907] do_syscall_64+0x1d5/0x640 [ 38.417289] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 38.422968] [ 38.422968] -> #1 (&xt[i].mutex){+.+.}: [ 38.428399] __mutex_lock+0xe8/0x1430 [ 38.432692] xt_find_revision+0x89/0x200 [ 38.437247] nfnl_compat_get+0x1f7/0x870 [ 38.441801] nfnetlink_rcv_msg+0x9e1/0xc00 [ 38.446533] netlink_rcv_skb+0x127/0x370 [ 38.451087] nfnetlink_rcv+0x1ab/0x1650 [ 38.455552] netlink_unicast+0x437/0x610 [ 38.460122] netlink_sendmsg+0x64a/0xbb0 [ 38.464682] sock_sendmsg+0xb5/0x100 [ 38.468910] ___sys_sendmsg+0x70a/0x840 [ 38.473383] __sys_sendmsg+0xa3/0x120 [ 38.477687] SyS_sendmsg+0x27/0x40 [ 38.481729] do_syscall_64+0x1d5/0x640 [ 38.486108] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 38.491788] [ 38.491788] -> #0 (&table[i].mutex){+.+.}: [ 38.497479] lock_acquire+0x170/0x3f0 [ 38.501771] __mutex_lock+0xe8/0x1430 [ 38.506065] nf_tables_netdev_event+0x10d/0x4d0 [ 38.511238] notifier_call_chain+0x107/0x1a0 [ 38.516141] rollback_registered_many+0x694/0xa70 [ 38.521489] rollback_registered+0xd6/0x180 [ 38.526305] unregister_netdevice_queue+0x1a1/0x220 [ 38.531813] veth_newlink+0x53e/0x8a0 [ 38.536106] rtnl_newlink+0xecb/0x1720 [ 38.540495] rtnetlink_rcv_msg+0x3be/0xb10 [ 38.545234] netlink_rcv_skb+0x127/0x370 [ 38.549799] netlink_unicast+0x437/0x610 [ 38.554360] netlink_sendmsg+0x64a/0xbb0 [ 38.558913] sock_sendmsg+0xb5/0x100 [ 38.563119] ___sys_sendmsg+0x70a/0x840 [ 38.567585] __sys_sendmsg+0xa3/0x120 [ 38.571876] SyS_sendmsg+0x27/0x40 [ 38.575918] do_syscall_64+0x1d5/0x640 [ 38.580297] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 38.585974] [ 38.585974] other info that might help us debug this: [ 38.585974] [ 38.594085] Chain exists of: [ 38.594085] &table[i].mutex --> &xt[i].mutex --> rtnl_mutex [ 38.594085] [ 38.604288] Possible unsafe locking scenario: [ 38.604288] [ 38.610327] CPU0 CPU1 [ 38.615050] ---- ---- [ 38.619686] lock(rtnl_mutex); [ 38.622935] lock(&xt[i].mutex); [ 38.628882] lock(rtnl_mutex); [ 38.634658] lock(&table[i].mutex); [ 38.638340] [ 38.638340] *** DEADLOCK *** [ 38.638340] [ 38.644393] 1 lock held by syz-executor681/6362: [ 38.649117] #0: (rtnl_mutex){+.+.}, at: [] rtnetlink_rcv_msg+0x31d/0xb10 [ 38.657685] [ 38.657685] stack backtrace: [ 38.662155] CPU: 1 PID: 6362 Comm: syz-executor681 Not tainted 4.14.184-syzkaller #0 [ 38.670014] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.679339] Call Trace: [ 38.681904] dump_stack+0x1b2/0x283 [ 38.685508] print_circular_bug.isra.0.cold+0x2dc/0x425 [ 38.690857] __lock_acquire+0x3057/0x42a0 [ 38.694977] ? trace_hardirqs_on+0x10/0x10 [ 38.699182] ? unwind_next_frame+0xe38/0x1700 [ 38.703649] ? bpf_prog_kallsyms_find+0x36/0x260 [ 38.708377] ? is_bpf_text_address+0xa3/0x120 [ 38.712862] ? kernel_text_address+0x6e/0xe0 [ 38.717290] ? unwind_get_return_address+0x51/0x90 [ 38.722196] ? __save_stack_trace+0x7b/0xd0 [ 38.726495] lock_acquire+0x170/0x3f0 [ 38.730271] ? nf_tables_netdev_event+0x10d/0x4d0 [ 38.735085] ? nf_tables_netdev_event+0x10d/0x4d0 [ 38.739903] __mutex_lock+0xe8/0x1430 [ 38.743715] ? nf_tables_netdev_event+0x10d/0x4d0 [ 38.748534] ? _raw_spin_unlock_irqrestore+0x66/0xe0 [ 38.753608] ? nf_tables_netdev_event+0x10d/0x4d0 [ 38.758422] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 38.763845] ? trace_hardirqs_on+0x10/0x10 [ 38.768057] ? trace_hardirqs_on_caller+0x3a8/0x580 [ 38.773060] ? nf_tables_netdev_event+0x10d/0x4d0 [ 38.777876] nf_tables_netdev_event+0x10d/0x4d0 [ 38.782520] ? nf_tables_netdev_init_net+0x210/0x210 [ 38.787616] ? mirred_device_event+0x143/0x180 [ 38.792181] ? __local_bh_enable_ip+0xc1/0x160 [ 38.796734] ? mirred_device_event+0x50/0x180 [ 38.801217] notifier_call_chain+0x107/0x1a0 [ 38.805609] rollback_registered_many+0x694/0xa70 [ 38.810425] ? free_netdev+0x360/0x360 [ 38.814311] ? trace_hardirqs_on_caller+0x3a8/0x580 [ 38.819313] ? free_percpu+0x233/0x6f0 [ 38.823182] rollback_registered+0xd6/0x180 [ 38.827490] ? rollback_registered_many+0xa70/0xa70 [ 38.832480] unregister_netdevice_queue+0x1a1/0x220 [ 38.837486] veth_newlink+0x53e/0x8a0 [ 38.841259] ? veth_close+0xb0/0xb0 [ 38.844859] ? rcu_read_lock_sched_held+0x10a/0x130 [ 38.849873] ? fs_reclaim_acquire+0x10/0x10 [ 38.854172] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 38.859598] ? kasan_unpoison_shadow+0x30/0x40 [ 38.864167] ? kasan_kmalloc+0x76/0xc0 [ 38.868028] ? __kmalloc_node+0x4c/0x70 [ 38.871976] ? kvmalloc_node+0x4e/0xd0 [ 38.875854] ? alloc_netdev_mqs+0x8c0/0xb70 [ 38.880153] ? rtnl_create_link+0x129/0x880 [ 38.884489] rtnl_newlink+0xecb/0x1720 [ 38.888358] ? rtnl_newlink+0x3f5/0x1720 [ 38.892394] ? veth_close+0xb0/0xb0 [ 38.895993] ? rtnl_link_unregister+0x1f0/0x1f0 [ 38.900635] ? avc_has_perm_noaudit+0x157/0x2a0 [ 38.905293] ? lock_acquire+0x170/0x3f0 [ 38.909243] ? lock_acquire+0x170/0x3f0 [ 38.913208] ? lock_acquire+0x170/0x3f0 [ 38.917168] ? lock_downgrade+0x6e0/0x6e0 [ 38.921291] ? rtnl_link_unregister+0x1f0/0x1f0 [ 38.925949] rtnetlink_rcv_msg+0x3be/0xb10 [ 38.930159] ? rtnl_calcit.isra.0+0x3a0/0x3a0 [ 38.934631] ? __netlink_lookup+0x332/0x5c0 [ 38.938934] netlink_rcv_skb+0x127/0x370 [ 38.942985] ? rtnl_calcit.isra.0+0x3a0/0x3a0 [ 38.947463] ? netlink_ack+0x970/0x970 [ 38.951325] netlink_unicast+0x437/0x610 [ 38.955359] ? netlink_sendskb+0x50/0x50 [ 38.959395] netlink_sendmsg+0x64a/0xbb0 [ 38.963431] ? nlmsg_notify+0x160/0x160 [ 38.967378] ? move_addr_to_kernel.part.0+0xf0/0xf0 [ 38.972370] ? security_socket_sendmsg+0x83/0xb0 [ 38.977099] ? nlmsg_notify+0x160/0x160 [ 38.981046] sock_sendmsg+0xb5/0x100 [ 38.984746] ___sys_sendmsg+0x70a/0x840 [ 38.988693] ? copy_msghdr_from_user+0x380/0x380 [ 38.993421] ? trace_hardirqs_on+0x10/0x10 [ 38.997635] ? fs_reclaim_acquire+0x10/0x10 [ 39.001936] ? selinux_file_alloc_security+0xaf/0x190 [ 39.007105] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 39.012526] ? __fd_install+0x1ec/0x5c0 [ 39.016471] ? lock_acquire+0x170/0x3f0 [ 39.020422] ? lock_downgrade+0x6e0/0x6e0 [ 39.024565] ? __fget_light+0x16a/0x1f0 [ 39.028515] ? sockfd_lookup_light+0xb2/0x160 [ 39.032983] __sys_sendmsg+0xa3/0x120 [ 39.036762] ? SyS_shutdown+0x160/0x160 [ 39.040712] ? move_addr_to_kernel+0x60/0x60 [ 39.045093] ? __do_page_fault+0x19a/0xb50 [ 39.049307] SyS_sendmsg+0x27/0x40 [ 39.052845] ? __sys_sendmsg+0x120/0x120 [ 39.056893] do_syscall_64+0x1d5/0x640 [ 39.060770] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 39.065946] RIP: 0033:0x441e89 [ 39.069110] RSP: 002b:00007fff541b45f8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 39.076790] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441e89 [ 39.084034] RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000004 [ 39.091276] RBP: 000000000000950c R08: 00000000004002c8 R09: 00000000004002c8 [ 39.098535] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000402c30 [ 39.105778] R13: 0000000000402cc0 R14: 0000000000000000 R15: 0000000000000000 executing program [ 39.171270] ip_tables: iptables: counters copy to user failed while replacing table [ 39.182757] netlink: 24 bytes leftover after parsing attributes in process `syz-executor681'. executing program [ 39.254048] ip_tables: iptables: counters copy to user failed while replacing table [ 39.262649] netlink: 24 bytes leftover after parsing attributes in process `syz-executor681'. executing program executing program [ 39.352473] ip_tables: iptables: counters copy to user failed while replacing table [ 39.360954] netlink: 24 bytes leftover after parsing attributes in process `syz-executor681'. [ 39.407278] ip_tables: iptables: counters copy to user failed while replacing table [ 39.415281] netlink: 24 bytes leftover after parsing attributes in process `syz-executor681'. executing program [ 39.488042] ip_tables: iptables: counters copy to user failed while replacing table [ 39.496045] netlink: 24 bytes leftover after parsing attributes in process `syz-executor681'. executing program executing program [ 39.564879] ip_tables: iptables: counters copy to user failed while replacing table [ 39.573217] netlink: 24 bytes leftover after parsing attributes in process `syz-executor681'. [ 39.623925] ip_tables: iptables: counters copy to user failed while replacing table [ 39.632011] netlink: 24 bytes leftover after parsing attributes in process `syz-executor681'. executing program executing program [ 39.704995] ip_tables: iptables: counters copy to user failed while replacing table [ 39.715260] netlink: 24 bytes leftover after parsing attributes in process `syz-executor681'. 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 [ 43.198219] net_ratelimit: 65 callbacks suppressed [ 43.198223] ip_tables: iptables: counters copy to user failed while replacing table [ 43.211244] nla_parse: 65 callbacks suppressed [ 43.211248] netlink: 24 bytes leftover after parsing attributes in process `syz-executor681'. [ 43.265902] ip_tables: iptables: counters copy to user failed while replacing table [ 43.274037] netlink: 24 bytes leftover after parsing attributes in process `syz-executor681'. executing program executing program [ 43.335775] ip_tables: iptables: counters copy to user failed while replacing table [ 43.343815] netlink: 24 bytes leftover after parsing attributes in process `syz-executor681'. [ 43.395802] ip_tables: iptables: counters copy to user failed while replacing table [ 43.403851] netlink: 24 bytes leftover after parsing attributes in process `syz-executor681'. executing program [ 43.472798] ip_tables: iptables: counters copy to user failed while replacing table [ 43.481607] netlink: 24 bytes leftover after parsing attributes in process `syz-executor681'. executing program executing program [ 43.572562] ip_tables: iptables: counters copy to user failed while replacing table [ 43.581236] netlink: 24 bytes leftover after parsing attributes in process `syz-executor681'. [ 43.632662] ip_tables: iptables: counters copy to user failed while replacing table [ 43.641160] netlink: 24 bytes leftover after parsing attributes in process `syz-executor681'. executing program [ 43.715692] ip_tables: iptables: counters copy to user failed while replacing table [ 43.723715] netlink: 24 bytes leftover after parsing attributes in process `syz-executor681'. executing program executing program [ 43.794816] ip_tables: iptables: counters copy to user failed while replacing table [ 43.802851] netlink: 24 bytes leftover after parsing attributes in process `syz-executor681'. [ 43.856427] ip_tables: iptables: counters copy to user failed while replacing table [ 43.864436] netlink: 24 bytes leftover after parsing attributes in process `syz-executor681'. 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 [ 48.225057] net_ratelimit: 82 callbacks suppressed [ 48.225061] ip_tables: iptables: counters copy to user failed while replacing table [ 48.238544] nla_parse: 82 callbacks suppressed [ 48.238549] netlink: 24 bytes leftover after parsing attributes in process `syz-executor681'. executing program