[ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... [ OK ] Started Update UTMP about System Runlevel Changes. Starting Load/Save RF Kill Switch Status... [ OK ] Started Load/Save RF Kill Switch Status. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.113' (ECDSA) to the list of known hosts. executing program executing program syzkaller login: [ 27.207065] ip_tables: iptables: counters copy to user failed while replacing table [ 27.215186] netlink: 24 bytes leftover after parsing attributes in process `syz-executor212'. [ 27.241965] ip_tables: iptables: counters copy to user failed while replacing table [ 27.249883] netlink: 24 bytes leftover after parsing attributes in process `syz-executor212'. [ 27.267778] [ 27.269414] ====================================================== [ 27.275716] WARNING: possible circular locking dependency detected [ 27.282015] 4.14.300-syzkaller #0 Not tainted [ 27.286489] ------------------------------------------------------ [ 27.292785] syz-executor212/7996 is trying to acquire lock: [ 27.298463] (&table[i].mutex){+.+.}, at: [] nf_tables_netdev_event+0x10d/0x4d0 [ 27.307455] [ 27.307455] but task is already holding lock: [ 27.313398] (rtnl_mutex){+.+.}, at: [] rtnetlink_rcv_msg+0x31d/0xb10 [ 27.321521] [ 27.321521] which lock already depends on the new lock. [ 27.321521] [ 27.329811] [ 27.329811] the existing dependency chain (in reverse order) is: [ 27.337405] [ 27.337405] -> #2 (rtnl_mutex){+.+.}: [ 27.342664] __mutex_lock+0xc4/0x1310 [ 27.346957] unregister_netdevice_notifier+0x5e/0x2b0 [ 27.352644] tee_tg_destroy+0x5c/0xb0 [ 27.356953] cleanup_entry+0x1fd/0x2d0 [ 27.361350] __do_replace+0x38d/0x570 [ 27.365655] do_ipt_set_ctl+0x256/0x3a0 [ 27.370122] nf_setsockopt+0x5f/0xb0 [ 27.374329] ip_setsockopt+0x94/0xb0 [ 27.378536] udp_setsockopt+0x45/0x80 [ 27.382837] SyS_setsockopt+0x110/0x1e0 [ 27.387302] do_syscall_64+0x1d5/0x640 [ 27.391683] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 27.397360] [ 27.397360] -> #1 (&xt[i].mutex){+.+.}: [ 27.402792] __mutex_lock+0xc4/0x1310 [ 27.407084] match_revfn+0x43/0x210 [ 27.411199] xt_find_revision+0x8d/0x1d0 [ 27.415752] nfnl_compat_get+0x1f7/0x870 [ 27.420304] nfnetlink_rcv_msg+0x9bb/0xc00 [ 27.425028] netlink_rcv_skb+0x125/0x390 [ 27.429581] nfnetlink_rcv+0x1ab/0x1da0 [ 27.434044] netlink_unicast+0x437/0x610 [ 27.438596] netlink_sendmsg+0x648/0xbc0 [ 27.443148] sock_sendmsg+0xb5/0x100 [ 27.447353] ___sys_sendmsg+0x6c8/0x800 [ 27.451817] __sys_sendmsg+0xa3/0x120 [ 27.456108] SyS_sendmsg+0x27/0x40 [ 27.460143] do_syscall_64+0x1d5/0x640 [ 27.464521] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 27.470199] [ 27.470199] -> #0 (&table[i].mutex){+.+.}: [ 27.475889] lock_acquire+0x170/0x3f0 [ 27.480187] __mutex_lock+0xc4/0x1310 [ 27.484480] nf_tables_netdev_event+0x10d/0x4d0 [ 27.489645] notifier_call_chain+0x108/0x1a0 [ 27.494547] rollback_registered_many+0x765/0xbb0 [ 27.499895] rollback_registered+0xca/0x170 [ 27.504707] unregister_netdevice_queue+0x1b4/0x360 [ 27.510217] veth_newlink+0x52a/0x890 [ 27.514508] rtnl_newlink+0xf7c/0x1830 [ 27.518885] rtnetlink_rcv_msg+0x3be/0xb10 [ 27.523616] netlink_rcv_skb+0x125/0x390 [ 27.528175] netlink_unicast+0x437/0x610 [ 27.532735] netlink_sendmsg+0x648/0xbc0 [ 27.537288] sock_sendmsg+0xb5/0x100 [ 27.541493] ___sys_sendmsg+0x6c8/0x800 [ 27.545958] __sys_sendmsg+0xa3/0x120 [ 27.550262] SyS_sendmsg+0x27/0x40 [ 27.554297] do_syscall_64+0x1d5/0x640 [ 27.558676] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 27.564353] [ 27.564353] other info that might help us debug this: [ 27.564353] [ 27.572463] Chain exists of: [ 27.572463] &table[i].mutex --> &xt[i].mutex --> rtnl_mutex [ 27.572463] [ 27.582663] Possible unsafe locking scenario: [ 27.582663] [ 27.588700] CPU0 CPU1 [ 27.593348] ---- ---- [ 27.597984] lock(rtnl_mutex); [ 27.601233] lock(&xt[i].mutex); [ 27.607172] lock(rtnl_mutex); [ 27.612942] lock(&table[i].mutex); [ 27.616628] [ 27.616628] *** DEADLOCK *** [ 27.616628] [ 27.622656] 1 lock held by syz-executor212/7996: [ 27.627442] #0: (rtnl_mutex){+.+.}, at: [] rtnetlink_rcv_msg+0x31d/0xb10 [ 27.635997] [ 27.635997] stack backtrace: [ 27.640474] CPU: 0 PID: 7996 Comm: syz-executor212 Not tainted 4.14.300-syzkaller #0 [ 27.648321] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 27.657643] Call Trace: [ 27.660206] dump_stack+0x1b2/0x281 [ 27.663813] print_circular_bug.constprop.0.cold+0x2d7/0x41e [ 27.669584] __lock_acquire+0x2e0e/0x3f20 [ 27.673708] ? unwind_next_frame+0x404/0x17d0 [ 27.678174] ? trace_hardirqs_on+0x10/0x10 [ 27.682383] ? check_usage_forwards+0x2d0/0x2d0 [ 27.687020] ? __is_kernel_percpu_address+0x19c/0x1f0 [ 27.692182] ? entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 27.697518] lock_acquire+0x170/0x3f0 [ 27.701290] ? nf_tables_netdev_event+0x10d/0x4d0 [ 27.706109] ? nf_tables_netdev_event+0x10d/0x4d0 [ 27.710928] __mutex_lock+0xc4/0x1310 [ 27.714701] ? nf_tables_netdev_event+0x10d/0x4d0 [ 27.719513] ? nf_tables_netdev_event+0x10d/0x4d0 [ 27.724329] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 27.729749] ? trace_hardirqs_on+0x10/0x10 [ 27.733952] ? trace_hardirqs_on_caller+0x3a8/0x580 [ 27.738937] ? lock_downgrade+0x740/0x740 [ 27.743053] nf_tables_netdev_event+0x10d/0x4d0 [ 27.747692] ? mirred_device_event+0x141/0x180 [ 27.752243] ? nf_tables_netdev_init_net+0x140/0x140 [ 27.757315] ? mirred_device_event+0x141/0x180 [ 27.761872] ? __local_bh_enable_ip+0xc1/0x170 [ 27.766424] notifier_call_chain+0x108/0x1a0 [ 27.770818] rollback_registered_many+0x765/0xbb0 [ 27.775636] ? _raw_spin_unlock_irqrestore+0x79/0xe0 [ 27.780715] ? netdev_state_change+0xf0/0xf0 [ 27.785105] ? trace_hardirqs_on_caller+0x3a8/0x580 [ 27.790097] ? _raw_spin_unlock_irqrestore+0x66/0xe0 [ 27.795258] rollback_registered+0xca/0x170 [ 27.799552] ? rollback_registered_many+0xbb0/0xbb0 [ 27.804540] ? netdev_change_features+0xa0/0xa0 [ 27.809178] unregister_netdevice_queue+0x1b4/0x360 [ 27.814166] veth_newlink+0x52a/0x890 [ 27.817940] ? veth_close+0xb0/0xb0 [ 27.821539] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 27.826524] ? fs_reclaim_release+0xd0/0x110 [ 27.830904] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 27.836334] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 27.841342] ? __kmalloc_node+0x38/0x70 [ 27.845296] ? kmem_cache_alloc_node_trace+0x383/0x400 [ 27.850546] ? __kmalloc_node+0x4c/0x70 [ 27.854495] ? alloc_netdev_mqs+0x8c0/0xb70 [ 27.858789] ? rtnl_create_link+0x129/0x890 [ 27.863080] rtnl_newlink+0xf7c/0x1830 [ 27.866939] ? rtnl_newlink+0x437/0x1830 [ 27.870972] ? __lock_acquire+0x5fc/0x3f20 [ 27.875179] ? veth_close+0xb0/0xb0 [ 27.878776] ? deref_stack_reg+0x124/0x1a0 [ 27.882980] ? rtnl_dellink+0x6a0/0x6a0 [ 27.886926] ? trace_hardirqs_on+0x10/0x10 [ 27.891134] ? __read_once_size_nocheck.constprop.0+0x10/0x10 [ 27.896986] ? deref_stack_reg+0x124/0x1a0 [ 27.901191] ? deref_stack_reg+0x124/0x1a0 [ 27.905400] ? lock_acquire+0x170/0x3f0 [ 27.909346] ? lock_downgrade+0x740/0x740 [ 27.913466] ? rtnl_dellink+0x6a0/0x6a0 [ 27.917410] rtnetlink_rcv_msg+0x3be/0xb10 [ 27.921617] ? rtnl_calcit.isra.0+0x3a0/0x3a0 [ 27.926082] ? __netlink_lookup+0x345/0x5d0 [ 27.930373] netlink_rcv_skb+0x125/0x390 [ 27.934500] ? rtnl_calcit.isra.0+0x3a0/0x3a0 [ 27.938965] ? netlink_ack+0x9a0/0x9a0 [ 27.942821] netlink_unicast+0x437/0x610 [ 27.946853] ? netlink_sendskb+0xd0/0xd0 [ 27.950881] ? __check_object_size+0x179/0x230 [ 27.955431] netlink_sendmsg+0x648/0xbc0 [ 27.959463] ? nlmsg_notify+0x1b0/0x1b0 [ 27.963410] ? kernel_recvmsg+0x210/0x210 [ 27.967540] ? security_socket_sendmsg+0x83/0xb0 [ 27.972271] ? nlmsg_notify+0x1b0/0x1b0 [ 27.976218] sock_sendmsg+0xb5/0x100 [ 27.979906] ___sys_sendmsg+0x6c8/0x800 [ 27.983857] ? copy_msghdr_from_user+0x3b0/0x3b0 [ 27.988587] ? trace_hardirqs_on+0x10/0x10 [ 27.992799] ? trace_hardirqs_on+0x10/0x10 [ 27.997011] ? apparmor_file_alloc_security+0x129/0x800 [ 28.002345] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 28.007766] ? __lockdep_init_map+0x100/0x560 [ 28.012230] ? __fd_install+0x1ec/0x5c0 [ 28.016182] ? lock_acquire+0x170/0x3f0 [ 28.020125] ? lock_downgrade+0x740/0x740 [ 28.024241] ? __fdget+0x167/0x1f0 [ 28.027758] ? sockfd_lookup_light+0xb2/0x160 [ 28.032236] __sys_sendmsg+0xa3/0x120 [ 28.036012] ? SyS_shutdown+0x160/0x160 [ 28.039964] ? move_addr_to_kernel+0x60/0x60 [ 28.044359] ? __do_page_fault+0x159/0xad0 [ 28.048572] SyS_sendmsg+0x27/0x40 [ 28.052084] ? __sys_sendmsg+0x120/0x120 [ 28.056117] do_syscall_64+0x1d5/0x640 [ 28.059979] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 executing program [ 28.123464] ip_tables: iptables: counters copy to user failed while replacing table [ 28.132079] netlink: 24 bytes leftover after parsing attributes in process `syz-executor212'. executing program [ 28.195000] ip_tables: iptables: counters copy to user failed while replacing table [ 28.202958] netlink: 24 bytes leftover after parsing attributes in process `syz-executor212'. executing program [ 28.272742] ip_tables: iptables: counters copy to user failed while replacing table [ 28.280848] netlink: 24 bytes leftover after parsing attributes in process `syz-executor212'. executing program executing program [ 28.336043] ip_tables: iptables: counters copy to user failed while replacing table [ 28.344229] netlink: 24 bytes leftover after parsing attributes in process `syz-executor212'. executing program [ 28.382679] ip_tables: iptables: counters copy to user failed while replacing table [ 28.390930] netlink: 24 bytes leftover after parsing attributes in process `syz-executor212'. executing program [ 28.442734] ip_tables: iptables: counters copy to user failed while replacing table [ 28.451914] netlink: 24 bytes leftover after parsing attributes in process `syz-executor212'. executing program [ 28.503852] ip_tables: iptables: counters copy to user failed while replacing table [ 28.512253] netlink: 24 bytes leftover after parsing attributes in process `syz-executor212'. executing program [ 28.544042] ip_tables: iptables: counters copy to user failed while replacing table [ 28.552122] netlink: 24 bytes leftover after parsing attributes in process `syz-executor212'. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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.211360] net_ratelimit: 82 callbacks suppressed [ 32.211364] ip_tables: iptables: counters copy to user failed while replacing table [ 32.224974] nla_parse: 82 callbacks suppressed [ 32.224978] netlink: 24 bytes leftover after parsing attributes in process `syz-executor212'. [ 32.269934] ip_tables: iptables: counters copy to user failed while replacing table [ 32.281294] netlink: 24 bytes leftover after parsing attributes in process `syz-executor212'. executing program executing program [ 32.350070] ip_tables: iptables: counters copy to user failed while replacing table [ 32.358203] netlink: 24 bytes leftover after parsing attributes in process `syz-executor212'. [ 32.400871] ip_tables: iptables: counters copy to user failed while replacing table [ 32.408875] netlink: 24 bytes leftover after parsing attributes in process `syz-executor212'. executing program [ 32.470094] ip_tables: iptables: counters copy to user failed while replacing table [ 32.478855] netlink: 24 bytes leftover after parsing attributes in process `syz-executor212'. executing program [ 32.534732] ip_tables: iptables: counters copy to user failed while replacing table [ 32.543185] netlink: 24 bytes leftover after parsing attributes in process `syz-executor212'. executing program [ 32.609534] ip_tables: iptables: counters copy to user failed while replacing table [ 32.617807] netlink: 24 bytes leftover after parsing attributes in process `syz-executor212'. executing program executing program [ 32.679485] ip_tables: iptables: counters copy to user failed while replacing table [ 32.687794] netlink: 24 bytes leftover after parsing attributes in process `syz-executor212'. [ 32.739444] ip_tables: iptables: counters copy to user failed while replacing table [ 32.747565] netlink: 24 bytes leftover after parsing attributes in process `syz-executor212'. executing program executing program [ 32.809932] ip_tables: iptables: counters copy to user failed while replacing table [ 32.820625] netlink: 24 bytes leftover after parsing attributes in process `syz-executor212'. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program