[ OK ] Reached target Multi-User System. [ 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.15.218' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 27.926050] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 27.935364] netlink: 24 bytes leftover after parsing attributes in process `syz-executor698'. executing program [ 28.004652] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 28.012941] netlink: 24 bytes leftover after parsing attributes in process `syz-executor698'. [ 28.028806] [ 28.030446] ====================================================== [ 28.036808] WARNING: possible circular locking dependency detected [ 28.043118] 4.14.256-syzkaller #0 Not tainted [ 28.047591] ------------------------------------------------------ [ 28.053909] syz-executor698/8006 is trying to acquire lock: [ 28.059592] (&table[i].mutex){+.+.}, at: [] nf_tables_netdev_event+0x10d/0x4d0 [ 28.068592] [ 28.068592] but task is already holding lock: [ 28.074650] (rtnl_mutex){+.+.}, at: [] rtnetlink_rcv_msg+0x31d/0xb10 [ 28.082786] [ 28.082786] which lock already depends on the new lock. [ 28.082786] [ 28.091085] [ 28.091085] the existing dependency chain (in reverse order) is: [ 28.098685] [ 28.098685] -> #2 (rtnl_mutex){+.+.}: [ 28.103959] __mutex_lock+0xc4/0x1310 [ 28.108257] unregister_netdevice_notifier+0x5e/0x2b0 [ 28.113945] tee_tg_destroy+0x5c/0xb0 [ 28.118245] cleanup_entry+0x232/0x310 [ 28.122629] __do_replace+0x38d/0x580 [ 28.126925] do_ip6t_set_ctl+0x256/0x3b0 [ 28.131486] nf_setsockopt+0x5f/0xb0 [ 28.135697] ipv6_setsockopt+0xc0/0x120 [ 28.140170] tcp_setsockopt+0x7b/0xc0 [ 28.144471] SyS_setsockopt+0x110/0x1e0 [ 28.148941] do_syscall_64+0x1d5/0x640 [ 28.153343] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 28.159031] [ 28.159031] -> #1 (&xt[i].mutex){+.+.}: [ 28.164488] __mutex_lock+0xc4/0x1310 [ 28.168785] match_revfn+0x43/0x210 [ 28.173002] xt_find_revision+0x8d/0x1d0 [ 28.177560] nfnl_compat_get+0x1f7/0x870 [ 28.182117] nfnetlink_rcv_msg+0x9bb/0xc00 [ 28.186849] netlink_rcv_skb+0x125/0x390 [ 28.191404] nfnetlink_rcv+0x1ab/0x1da0 [ 28.195899] netlink_unicast+0x437/0x610 [ 28.200476] netlink_sendmsg+0x638/0xb90 [ 28.205038] sock_sendmsg+0xb5/0x100 [ 28.209267] ___sys_sendmsg+0x6c8/0x800 [ 28.213735] __sys_sendmsg+0xa3/0x120 [ 28.218045] SyS_sendmsg+0x27/0x40 [ 28.222101] do_syscall_64+0x1d5/0x640 [ 28.226491] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 28.232194] [ 28.232194] -> #0 (&table[i].mutex){+.+.}: [ 28.237997] lock_acquire+0x170/0x3f0 [ 28.242301] __mutex_lock+0xc4/0x1310 [ 28.246606] nf_tables_netdev_event+0x10d/0x4d0 [ 28.251775] notifier_call_chain+0x108/0x1a0 [ 28.256685] rollback_registered_many+0x765/0xba0 [ 28.262323] rollback_registered+0xca/0x170 [ 28.267269] unregister_netdevice_queue+0x1b4/0x360 [ 28.272785] veth_newlink+0x52a/0x890 [ 28.277085] rtnl_newlink+0xfab/0x1860 [ 28.281472] rtnetlink_rcv_msg+0x3be/0xb10 [ 28.286213] netlink_rcv_skb+0x125/0x390 [ 28.290774] netlink_unicast+0x437/0x610 [ 28.295329] netlink_sendmsg+0x638/0xb90 [ 28.299892] sock_sendmsg+0xb5/0x100 [ 28.304111] ___sys_sendmsg+0x6c8/0x800 [ 28.308600] __sys_sendmsg+0xa3/0x120 [ 28.312913] SyS_sendmsg+0x27/0x40 [ 28.316951] do_syscall_64+0x1d5/0x640 [ 28.321340] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 28.327021] [ 28.327021] other info that might help us debug this: [ 28.327021] [ 28.335136] Chain exists of: [ 28.335136] &table[i].mutex --> &xt[i].mutex --> rtnl_mutex [ 28.335136] [ 28.345358] Possible unsafe locking scenario: [ 28.345358] [ 28.351407] CPU0 CPU1 [ 28.356045] ---- ---- [ 28.360685] lock(rtnl_mutex); [ 28.363941] lock(&xt[i].mutex); [ 28.369886] lock(rtnl_mutex); [ 28.375667] lock(&table[i].mutex); [ 28.379353] [ 28.379353] *** DEADLOCK *** [ 28.379353] [ 28.385388] 1 lock held by syz-executor698/8006: [ 28.390132] #0: (rtnl_mutex){+.+.}, at: [] rtnetlink_rcv_msg+0x31d/0xb10 [ 28.398693] [ 28.398693] stack backtrace: [ 28.403183] CPU: 1 PID: 8006 Comm: syz-executor698 Not tainted 4.14.256-syzkaller #0 [ 28.411034] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.420389] Call Trace: [ 28.422971] dump_stack+0x1b2/0x281 [ 28.426579] print_circular_bug.constprop.0.cold+0x2d7/0x41e [ 28.432351] __lock_acquire+0x2e0e/0x3f20 [ 28.436474] ? lock_downgrade+0x740/0x740 [ 28.440597] ? unwind_next_frame+0xe54/0x17d0 [ 28.445067] ? trace_hardirqs_on+0x10/0x10 [ 28.449295] ? kernel_text_address+0xbd/0xf0 [ 28.453677] ? __kernel_text_address+0x9/0x30 [ 28.458148] ? unwind_get_return_address+0x51/0x90 [ 28.463055] lock_acquire+0x170/0x3f0 [ 28.466832] ? nf_tables_netdev_event+0x10d/0x4d0 [ 28.471667] ? nf_tables_netdev_event+0x10d/0x4d0 [ 28.476499] __mutex_lock+0xc4/0x1310 [ 28.480277] ? nf_tables_netdev_event+0x10d/0x4d0 [ 28.485110] ? nf_tables_netdev_event+0x10d/0x4d0 [ 28.489930] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 28.495444] ? trace_hardirqs_on+0x10/0x10 [ 28.499653] ? trace_hardirqs_on_caller+0x3a8/0x580 [ 28.504652] ? lock_downgrade+0x740/0x740 [ 28.508886] nf_tables_netdev_event+0x10d/0x4d0 [ 28.513549] ? mirred_device_event+0x12f/0x170 [ 28.518107] ? nf_tables_netdev_init_net+0x140/0x140 [ 28.523193] ? mirred_device_event+0x12f/0x170 [ 28.527767] ? __local_bh_enable_ip+0xc1/0x170 [ 28.532326] notifier_call_chain+0x108/0x1a0 [ 28.536712] rollback_registered_many+0x765/0xba0 [ 28.541529] ? _raw_spin_unlock_irqrestore+0x79/0xe0 [ 28.546632] ? netdev_state_change+0xf0/0xf0 [ 28.551024] ? trace_hardirqs_on_caller+0x3a8/0x580 [ 28.556018] ? _raw_spin_unlock_irqrestore+0x66/0xe0 [ 28.561099] rollback_registered+0xca/0x170 [ 28.565397] ? rollback_registered_many+0xba0/0xba0 [ 28.570414] ? netdev_change_features+0xa0/0xa0 [ 28.575058] unregister_netdevice_queue+0x1b4/0x360 [ 28.580050] veth_newlink+0x52a/0x890 [ 28.583824] ? veth_close+0xb0/0xb0 [ 28.587428] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 28.592429] ? fs_reclaim_release+0xd0/0x110 [ 28.596818] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 28.602244] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 28.607235] ? __kmalloc_node+0x38/0x70 [ 28.611187] ? kmem_cache_alloc_node_trace+0x383/0x400 [ 28.616441] ? __kmalloc_node+0x4c/0x70 [ 28.620478] ? alloc_netdev_mqs+0x8c0/0xb70 [ 28.624888] ? rtnl_create_link+0x129/0x890 [ 28.629184] rtnl_newlink+0xfab/0x1860 [ 28.633052] ? rtnl_newlink+0x43d/0x1860 [ 28.637103] ? __lock_acquire+0x5fc/0x3f20 [ 28.641322] ? veth_close+0xb0/0xb0 [ 28.644927] ? trace_hardirqs_on+0x10/0x10 [ 28.649140] ? rtnl_dellink+0x6a0/0x6a0 [ 28.653085] ? trace_hardirqs_on+0x10/0x10 [ 28.657324] ? __read_once_size_nocheck.constprop.0+0x10/0x10 [ 28.663184] ? deref_stack_reg+0x124/0x1a0 [ 28.667397] ? lock_acquire+0x170/0x3f0 [ 28.671347] ? lock_downgrade+0x740/0x740 [ 28.675559] ? rtnl_dellink+0x6a0/0x6a0 [ 28.679512] rtnetlink_rcv_msg+0x3be/0xb10 [ 28.683738] ? rtnl_calcit.isra.0+0x3a0/0x3a0 [ 28.688208] ? __netlink_lookup+0x345/0x5d0 [ 28.692502] netlink_rcv_skb+0x125/0x390 [ 28.696539] ? rtnl_calcit.isra.0+0x3a0/0x3a0 [ 28.701015] ? netlink_ack+0x9a0/0x9a0 [ 28.704884] netlink_unicast+0x437/0x610 [ 28.708925] ? netlink_sendskb+0xd0/0xd0 [ 28.712964] ? __check_object_size+0x179/0x230 [ 28.717544] netlink_sendmsg+0x638/0xb90 [ 28.721579] ? nlmsg_notify+0x1b0/0x1b0 [ 28.725548] ? kernel_recvmsg+0x210/0x210 [ 28.729675] ? security_socket_sendmsg+0x83/0xb0 [ 28.734493] ? nlmsg_notify+0x1b0/0x1b0 [ 28.738443] sock_sendmsg+0xb5/0x100 [ 28.742137] ___sys_sendmsg+0x6c8/0x800 [ 28.746087] ? copy_msghdr_from_user+0x3b0/0x3b0 [ 28.750819] ? trace_hardirqs_on+0x10/0x10 [ 28.755028] ? trace_hardirqs_on+0x10/0x10 [ 28.759240] ? apparmor_file_alloc_security+0x129/0x800 [ 28.764591] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 28.770033] ? __lockdep_init_map+0x100/0x560 [ 28.774507] ? __fd_install+0x1ec/0x5c0 [ 28.778463] ? lock_acquire+0x170/0x3f0 [ 28.782439] ? lock_downgrade+0x740/0x740 [ 28.786572] ? __fdget+0x167/0x1f0 [ 28.790246] ? sockfd_lookup_light+0xb2/0x160 [ 28.794900] __sys_sendmsg+0xa3/0x120 [ 28.798785] ? SyS_shutdown+0x160/0x160 [ 28.802736] ? move_addr_to_kernel+0x60/0x60 [ 28.807123] ? __do_page_fault+0x159/0xad0 [ 28.811340] SyS_sendmsg+0x27/0x40 [ 28.814857] ? __sys_sendmsg+0x120/0x120 [ 28.818911] do_syscall_64+0x1d5/0x640 [ 28.822797] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 28.827963] RIP: 0033:0x7f3d64fae4d9 [ 28.831651] RSP: 002b:00007ffe0e6b7418 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 28.839334] RAX: ffffffffffffffda RBX: 0000003065736f72 RCX: 00007f3d64fae4d9 [ 28.846595] RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000004 [ 28.853841] RBP: 0000000000000000 R08: 00007ffe0e6b75b8 R09: 00007ffe0e6b75b8 [ 28.861090] R10: 00007ffe0e6b75b8 R11: 0000000000000246 R12: 00007ffe0e6b742c [ 28.868356] R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000 executing program [ 28.942806] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 28.951425] netlink: 24 bytes leftover after parsing attributes in process `syz-executor698'. executing program [ 29.011775] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 29.021319] netlink: 24 bytes leftover after parsing attributes in process `syz-executor698'. executing program [ 29.078274] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 29.086649] netlink: 24 bytes leftover after parsing attributes in process `syz-executor698'. executing program executing program [ 29.146628] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 29.154720] netlink: 24 bytes leftover after parsing attributes in process `syz-executor698'. [ 29.202149] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 29.210527] netlink: 24 bytes leftover after parsing attributes in process `syz-executor698'. executing program [ 29.275286] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 29.283652] netlink: 24 bytes leftover after parsing attributes in process `syz-executor698'. executing program executing program [ 29.352593] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 29.361057] netlink: 24 bytes leftover after parsing attributes in process `syz-executor698'. [ 29.412487] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 29.421154] netlink: 24 bytes leftover after parsing attributes in process `syz-executor698'. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 32.944249] net_ratelimit: 69 callbacks suppressed [ 32.944253] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 32.957378] nla_parse: 69 callbacks suppressed [ 32.957381] netlink: 24 bytes leftover after parsing attributes in process `syz-executor698'. executing program [ 33.048486] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 33.057782] netlink: 24 bytes leftover after parsing attributes in process `syz-executor698'. executing program [ 33.129152] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 33.137413] netlink: 24 bytes leftover after parsing attributes in process `syz-executor698'. executing program executing program [ 33.209533] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 33.217643] netlink: 24 bytes leftover after parsing attributes in process `syz-executor698'. [ 33.259654] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 33.267835] netlink: 24 bytes leftover after parsing attributes in process `syz-executor698'. executing program [ 33.341231] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 33.349623] netlink: 24 bytes leftover after parsing attributes in process `syz-executor698'. executing program executing program [ 33.418334] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 33.426489] netlink: 24 bytes leftover after parsing attributes in process `syz-executor698'. [ 33.471513] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 33.479706] netlink: 24 bytes leftover after parsing attributes in process `syz-executor698'. executing program [ 33.539918] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 33.550196] netlink: 24 bytes leftover after parsing attributes in process `syz-executor698'. executing program [ 33.610418] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 33.618918] netlink: 24 bytes leftover after parsing attributes in process `syz-executor698'. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program