Warning: Permanently added '10.128.0.114' (ECDSA) to the list of known hosts. executing program executing program syzkaller login: [ 65.847840] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 65.877247] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 65.897652] [ 65.901026] ====================================================== [ 65.911160] WARNING: possible circular locking dependency detected [ 65.920218] 4.14.226-syzkaller #0 Not tainted [ 65.925921] ------------------------------------------------------ [ 65.932600] syz-executor966/7991 is trying to acquire lock: [ 65.940077] (&table[i].mutex){+.+.}, at: [] nf_tables_netdev_event+0x10d/0x4d0 [ 65.956198] [ 65.956198] but task is already holding lock: [ 65.971569] (rtnl_mutex){+.+.}, at: [] br_del_bridge+0x13/0xe0 [ 66.001433] [ 66.001433] which lock already depends on the new lock. [ 66.001433] [ 66.034934] [ 66.034934] the existing dependency chain (in reverse order) is: [ 66.065449] [ 66.065449] -> #2 (rtnl_mutex){+.+.}: [ 66.091361] __mutex_lock+0xc4/0x1310 [ 66.106640] unregister_netdevice_notifier+0x5e/0x2b0 [ 66.124345] tee_tg_destroy+0x5c/0xb0 [ 66.136656] cleanup_entry+0x232/0x310 [ 66.144653] __do_replace+0x38d/0x580 [ 66.151370] do_ip6t_set_ctl+0x256/0x3b0 [ 66.161142] nf_setsockopt+0x5f/0xb0 [ 66.169450] ipv6_setsockopt+0xc0/0x120 [ 66.176751] tcp_setsockopt+0x7b/0xc0 [ 66.183765] SyS_setsockopt+0x110/0x1e0 [ 66.191755] do_syscall_64+0x1d5/0x640 [ 66.198568] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 66.211136] [ 66.211136] -> #1 (&xt[i].mutex){+.+.}: [ 66.221470] __mutex_lock+0xc4/0x1310 [ 66.230759] target_revfn+0x43/0x210 [ 66.238372] xt_find_revision+0x15e/0x1d0 [ 66.247108] nfnl_compat_get+0x1f7/0x870 [ 66.256036] nfnetlink_rcv_msg+0x9bb/0xc00 [ 66.263727] netlink_rcv_skb+0x125/0x390 [ 66.271286] nfnetlink_rcv+0x1ab/0x1da0 [ 66.279824] netlink_unicast+0x437/0x610 [ 66.288322] netlink_sendmsg+0x62e/0xb80 [ 66.295321] sock_sendmsg+0xb5/0x100 [ 66.303040] ___sys_sendmsg+0x6c8/0x800 [ 66.312977] __sys_sendmsg+0xa3/0x120 [ 66.322303] SyS_sendmsg+0x27/0x40 [ 66.333039] do_syscall_64+0x1d5/0x640 [ 66.340998] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 66.355980] [ 66.355980] -> #0 (&table[i].mutex){+.+.}: [ 66.368345] lock_acquire+0x170/0x3f0 [ 66.376111] __mutex_lock+0xc4/0x1310 [ 66.382493] nf_tables_netdev_event+0x10d/0x4d0 [ 66.391634] notifier_call_chain+0x108/0x1a0 [ 66.401814] rollback_registered_many+0x765/0xba0 [ 66.411063] rollback_registered+0xca/0x170 [ 66.417762] unregister_netdevice_queue+0x1b4/0x360 [ 66.427913] br_del_bridge+0xa9/0xe0 [ 66.433756] br_ioctl_deviceless_stub+0x1ff/0x5f0 [ 66.445473] sock_ioctl+0x254/0x4c0 [ 66.450500] do_vfs_ioctl+0x75a/0xff0 [ 66.455994] SyS_ioctl+0x7f/0xb0 [ 66.462425] do_syscall_64+0x1d5/0x640 [ 66.468538] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 66.476352] [ 66.476352] other info that might help us debug this: [ 66.476352] [ 66.489780] Chain exists of: [ 66.489780] &table[i].mutex --> &xt[i].mutex --> rtnl_mutex [ 66.489780] [ 66.503526] Possible unsafe locking scenario: [ 66.503526] [ 66.515524] CPU0 CPU1 [ 66.524685] ---- ---- [ 66.550329] lock(rtnl_mutex); [ 66.562977] lock(&xt[i].mutex); [ 66.575743] lock(rtnl_mutex); [ 66.585186] lock(&table[i].mutex); [ 66.593639] [ 66.593639] *** DEADLOCK *** [ 66.593639] [ 66.603584] 2 locks held by syz-executor966/7991: [ 66.612000] #0: (br_ioctl_mutex){+.+.}, at: [] sock_ioctl+0x239/0x4c0 [ 66.630250] #1: (rtnl_mutex){+.+.}, at: [] br_del_bridge+0x13/0xe0 [ 66.642685] [ 66.642685] stack backtrace: [ 66.647930] CPU: 1 PID: 7991 Comm: syz-executor966 Not tainted 4.14.226-syzkaller #0 [ 66.658756] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 66.678040] Call Trace: [ 66.682855] dump_stack+0x1b2/0x281 [ 66.689652] print_circular_bug.constprop.0.cold+0x2d7/0x41e [ 66.700995] __lock_acquire+0x2e0e/0x3f20 [ 66.708192] ? lock_downgrade+0x740/0x740 [ 66.713826] ? unwind_next_frame+0xe54/0x17d0 [ 66.720666] ? trace_hardirqs_on+0x10/0x10 [ 66.727497] ? kernel_text_address+0xbd/0xf0 [ 66.735716] ? __kernel_text_address+0x9/0x30 [ 66.744723] ? unwind_get_return_address+0x51/0x90 [ 66.753822] lock_acquire+0x170/0x3f0 [ 66.764301] ? nf_tables_netdev_event+0x10d/0x4d0 [ 66.771488] ? nf_tables_netdev_event+0x10d/0x4d0 [ 66.779594] __mutex_lock+0xc4/0x1310 [ 66.785060] ? nf_tables_netdev_event+0x10d/0x4d0 [ 66.791014] ? nf_tables_netdev_event+0x10d/0x4d0 [ 66.798512] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 66.806073] ? trace_hardirqs_on+0x10/0x10 [ 66.810884] ? trace_hardirqs_on_caller+0x3a8/0x580 [ 66.817533] ? lock_downgrade+0x740/0x740 [ 66.828198] nf_tables_netdev_event+0x10d/0x4d0 [ 66.840909] ? mirred_device_event+0x12f/0x170 [ 66.848786] ? nf_tables_netdev_init_net+0x140/0x140 [ 66.857295] ? mirred_device_event+0x12f/0x170 [ 66.865100] ? __local_bh_enable_ip+0xc1/0x170 [ 66.873917] notifier_call_chain+0x108/0x1a0 [ 66.879872] rollback_registered_many+0x765/0xba0 [ 66.885473] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 66.892936] ? netdev_state_change+0xf0/0xf0 [ 66.898343] ? kmem_cache_free+0x23a/0x2b0 [ 66.904157] ? kernfs_put.part.0+0x1e0/0x490 [ 66.909312] rollback_registered+0xca/0x170 [ 66.916360] ? rollback_registered_many+0xba0/0xba0 [ 66.922343] ? kernfs_put+0x26/0x30 [ 66.927397] unregister_netdevice_queue+0x1b4/0x360 [ 66.941133] br_del_bridge+0xa9/0xe0 [ 66.950734] br_ioctl_deviceless_stub+0x1ff/0x5f0 [ 66.960899] ? old_dev_ioctl.constprop.0.isra.0+0x1210/0x1210 [ 66.969303] ? __fd_install+0x1ec/0x5c0 [ 66.974198] ? lock_acquire+0x170/0x3f0 [ 66.980292] ? old_dev_ioctl.constprop.0.isra.0+0x1210/0x1210 [ 66.988363] sock_ioctl+0x254/0x4c0 [ 66.996583] ? sock_release+0x1e0/0x1e0 [ 67.004438] do_vfs_ioctl+0x75a/0xff0 [ 67.017530] ? __fd_install+0x227/0x5c0 [ 67.031093] ? ioctl_preallocate+0x1a0/0x1a0 [ 67.045694] ? sock_alloc_file+0x1ae/0x2e0 [ 67.052594] ? sock_poll+0x220/0x220 [ 67.060283] ? SyS_socket+0x12f/0x1b0 [ 67.068276] ? security_file_ioctl+0x83/0xb0 [ 67.076270] SyS_ioctl+0x7f/0xb0 [ 67.081374] ? do_vfs_ioctl+0xff0/0xff0 [ 67.090629] do_syscall_64+0x1d5/0x640 [ 67.097997] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 67.109091] RIP: 0033:0x440ea9 [ 67.116184] RSP: 002b:00007fff14e77a48 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 67.130158] RAX: ffffffffffffffda RBX: 0000000000010163 RCX: 0000000000440ea9 [ 67.145230] RDX: 00000000200000c0 RSI: 00000000000089a1 RDI: 0000000000000004 [ 67.159467] RBP: 0000000000000000 R08: 00007fff14e77be8 R09: 00007fff14e77be8 [ 67.170932] R10: 00007fff14e77be8 R11: 0000000000000246 R12: 00007fff14e77a5c [ 67.181590] R13: 431bde82d7b634db R14: 00000000004af018 R15: 0000000000400488 executing program [ 67.248716] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program executing program [ 67.313342] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 67.394070] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 67.460274] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 67.534308] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 67.596631] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 67.661515] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 67.733192] 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 [ 70.883442] net_ratelimit: 62 callbacks suppressed [ 70.883447] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 70.968393] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program executing program [ 71.042065] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 71.103156] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program executing program [ 71.170480] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 71.210618] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program executing program [ 71.282802] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 71.331888] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 71.380811] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 71.452341] 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 executing program executing program executing program executing program