Warning: Permanently added '10.128.0.198' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 29.698786] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 29.779075] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 29.794347] [ 29.795987] ====================================================== [ 29.802282] WARNING: possible circular locking dependency detected [ 29.808576] 4.14.241-syzkaller #0 Not tainted [ 29.813059] ------------------------------------------------------ [ 29.819442] syz-executor556/7993 is trying to acquire lock: [ 29.825298] (&table[i].mutex){+.+.}, at: [] nf_tables_netdev_event+0x10d/0x4d0 [ 29.834648] [ 29.834648] but task is already holding lock: [ 29.840603] (rtnl_mutex){+.+.}, at: [] br_del_bridge+0x13/0xe0 [ 29.848489] [ 29.848489] which lock already depends on the new lock. [ 29.848489] [ 29.857922] [ 29.857922] the existing dependency chain (in reverse order) is: [ 29.865612] [ 29.865612] -> #2 (rtnl_mutex){+.+.}: [ 29.870896] __mutex_lock+0xc4/0x1310 [ 29.875291] unregister_netdevice_notifier+0x5e/0x2b0 [ 29.881176] tee_tg_destroy+0x5c/0xb0 [ 29.885801] cleanup_entry+0x232/0x310 [ 29.890399] __do_replace+0x38d/0x580 [ 29.894893] do_ip6t_set_ctl+0x256/0x3b0 [ 29.899457] nf_setsockopt+0x5f/0xb0 [ 29.903686] ipv6_setsockopt+0xc0/0x120 [ 29.908790] udpv6_setsockopt+0x45/0x80 [ 29.913504] SyS_setsockopt+0x110/0x1e0 [ 29.918239] do_syscall_64+0x1d5/0x640 [ 29.922631] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 29.928403] [ 29.928403] -> #1 (&xt[i].mutex){+.+.}: [ 29.933857] __mutex_lock+0xc4/0x1310 [ 29.938270] match_revfn+0x43/0x210 [ 29.942407] xt_find_revision+0x8d/0x1d0 [ 29.946981] nfnl_compat_get+0x1f7/0x870 [ 29.951695] nfnetlink_rcv_msg+0x9bb/0xc00 [ 29.956577] netlink_rcv_skb+0x125/0x390 [ 29.961250] nfnetlink_rcv+0x1ab/0x1da0 [ 29.965836] netlink_unicast+0x437/0x610 [ 29.970504] netlink_sendmsg+0x62e/0xb80 [ 29.975077] sock_sendmsg+0xb5/0x100 [ 29.979299] ___sys_sendmsg+0x6c8/0x800 [ 29.983827] __sys_sendmsg+0xa3/0x120 [ 29.988249] SyS_sendmsg+0x27/0x40 [ 29.992481] do_syscall_64+0x1d5/0x640 [ 29.996877] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 30.005210] [ 30.005210] -> #0 (&table[i].mutex){+.+.}: [ 30.010913] lock_acquire+0x170/0x3f0 [ 30.015305] __mutex_lock+0xc4/0x1310 [ 30.019967] nf_tables_netdev_event+0x10d/0x4d0 [ 30.025149] notifier_call_chain+0x108/0x1a0 [ 30.030236] rollback_registered_many+0x765/0xba0 [ 30.035777] rollback_registered+0xca/0x170 [ 30.040715] unregister_netdevice_queue+0x1b4/0x360 [ 30.046241] br_del_bridge+0xa9/0xe0 [ 30.050983] br_ioctl_deviceless_stub+0x1ff/0x5f0 [ 30.056333] sock_ioctl+0x254/0x4c0 [ 30.060469] do_vfs_ioctl+0x75a/0xff0 [ 30.064770] SyS_ioctl+0x7f/0xb0 [ 30.068726] do_syscall_64+0x1d5/0x640 [ 30.073115] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 30.078902] [ 30.078902] other info that might help us debug this: [ 30.078902] [ 30.087201] Chain exists of: [ 30.087201] &table[i].mutex --> &xt[i].mutex --> rtnl_mutex [ 30.087201] [ 30.097886] Possible unsafe locking scenario: [ 30.097886] [ 30.103930] CPU0 CPU1 [ 30.108587] ---- ---- [ 30.113426] lock(rtnl_mutex); [ 30.116690] lock(&xt[i].mutex); [ 30.122648] lock(rtnl_mutex); [ 30.128426] lock(&table[i].mutex); [ 30.132129] [ 30.132129] *** DEADLOCK *** [ 30.132129] [ 30.138179] 2 locks held by syz-executor556/7993: [ 30.143096] #0: (br_ioctl_mutex){+.+.}, at: [] sock_ioctl+0x239/0x4c0 [ 30.151420] #1: (rtnl_mutex){+.+.}, at: [] br_del_bridge+0x13/0xe0 [ 30.159469] [ 30.159469] stack backtrace: [ 30.164321] CPU: 0 PID: 7993 Comm: syz-executor556 Not tainted 4.14.241-syzkaller #0 [ 30.172211] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.181662] Call Trace: [ 30.184239] dump_stack+0x1b2/0x281 [ 30.187932] print_circular_bug.constprop.0.cold+0x2d7/0x41e [ 30.193845] __lock_acquire+0x2e0e/0x3f20 [ 30.197994] ? lock_downgrade+0x740/0x740 [ 30.202128] ? unwind_next_frame+0xe54/0x17d0 [ 30.206695] ? trace_hardirqs_on+0x10/0x10 [ 30.210908] ? kernel_text_address+0xbd/0xf0 [ 30.215295] ? __kernel_text_address+0x9/0x30 [ 30.219860] ? unwind_get_return_address+0x51/0x90 [ 30.224954] lock_acquire+0x170/0x3f0 [ 30.228867] ? nf_tables_netdev_event+0x10d/0x4d0 [ 30.233701] ? nf_tables_netdev_event+0x10d/0x4d0 [ 30.238527] __mutex_lock+0xc4/0x1310 [ 30.242403] ? nf_tables_netdev_event+0x10d/0x4d0 [ 30.247473] ? nf_tables_netdev_event+0x10d/0x4d0 [ 30.252322] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 30.257942] ? trace_hardirqs_on+0x10/0x10 [ 30.262168] ? trace_hardirqs_on_caller+0x3a8/0x580 [ 30.267339] ? lock_downgrade+0x740/0x740 [ 30.271819] nf_tables_netdev_event+0x10d/0x4d0 [ 30.276600] ? mirred_device_event+0x12f/0x170 [ 30.281451] ? nf_tables_netdev_init_net+0x140/0x140 [ 30.286546] ? mirred_device_event+0x12f/0x170 [ 30.291136] ? __local_bh_enable_ip+0xc1/0x170 [ 30.295705] notifier_call_chain+0x108/0x1a0 [ 30.300107] rollback_registered_many+0x765/0xba0 [ 30.305463] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 30.310892] ? netdev_state_change+0xf0/0xf0 [ 30.315281] ? kmem_cache_free+0x23a/0x2b0 [ 30.319595] ? kernfs_put.part.0+0x1e0/0x490 [ 30.324000] rollback_registered+0xca/0x170 [ 30.328311] ? rollback_registered_many+0xba0/0xba0 [ 30.333303] ? kernfs_put+0x26/0x30 [ 30.337257] unregister_netdevice_queue+0x1b4/0x360 [ 30.342481] br_del_bridge+0xa9/0xe0 [ 30.346274] br_ioctl_deviceless_stub+0x1ff/0x5f0 [ 30.351097] ? old_dev_ioctl.constprop.0.isra.0+0x1210/0x1210 [ 30.356960] ? __fd_install+0x1ec/0x5c0 [ 30.360921] ? lock_acquire+0x170/0x3f0 [ 30.365047] ? old_dev_ioctl.constprop.0.isra.0+0x1210/0x1210 [ 30.371006] sock_ioctl+0x254/0x4c0 [ 30.374889] ? sock_release+0x1e0/0x1e0 [ 30.378943] do_vfs_ioctl+0x75a/0xff0 [ 30.382740] ? __fd_install+0x227/0x5c0 [ 30.386763] ? ioctl_preallocate+0x1a0/0x1a0 [ 30.391423] ? sock_alloc_file+0x1ae/0x2e0 [ 30.395640] ? sock_poll+0x220/0x220 [ 30.399581] ? SyS_socket+0x12f/0x1b0 [ 30.403461] ? security_file_ioctl+0x83/0xb0 [ 30.407942] SyS_ioctl+0x7f/0xb0 [ 30.411301] ? do_vfs_ioctl+0xff0/0xff0 [ 30.415266] do_syscall_64+0x1d5/0x640 [ 30.419155] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 30.424321] RIP: 0033:0x440379 [ 30.427501] RSP: 002b:00007fffe37025b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 30.435445] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440379 [ 30.442874] RDX: 00000000200000c0 RSI: 00000000000089a1 RDI: 0000000000000004 [ 30.450494] RBP: 0000000000000000 R08: 00007fffe3702758 R09: 00007fffe3702758 [ 30.457768] R10: 00007fffe3702758 R11: 0000000000000246 R12: 00007fffe37025cc [ 30.465116] R13: 431bde82d7b634db R14: 00000000004ae018 R15: 0000000000400488 executing program [ 30.532109] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 30.599029] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program executing program [ 30.668605] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 30.719322] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 30.793001] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program executing program [ 30.879490] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 30.935110] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program executing program [ 31.000827] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 34.749355] net_ratelimit: 69 callbacks suppressed [ 34.749359] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 34.803222] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 34.860041] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 34.915872] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 34.976708] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 35.037756] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 35.097258] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program executing program [ 35.177008] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 35.232511] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 35.288357] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program