[ OK ] Started Getty on tty2. [ OK ] Started Getty on tty1. [ OK ] Started Serial Getty on ttyS0. [ OK ] Reached target Login Prompts. [ 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.10.37' (ECDSA) to the list of known hosts. syzkaller login: [ 29.266409] IPVS: ftp: loaded support on port[0] = 21 [ 29.332585] chnl_net:caif_netlink_parms(): no params data found [ 29.401574] bridge0: port 1(bridge_slave_0) entered blocking state [ 29.408148] bridge0: port 1(bridge_slave_0) entered disabled state [ 29.415836] device bridge_slave_0 entered promiscuous mode [ 29.423864] bridge0: port 2(bridge_slave_1) entered blocking state [ 29.430220] bridge0: port 2(bridge_slave_1) entered disabled state [ 29.437727] device bridge_slave_1 entered promiscuous mode [ 29.453876] bond0: Enslaving bond_slave_0 as an active interface with an up link [ 29.462697] bond0: Enslaving bond_slave_1 as an active interface with an up link [ 29.480400] IPv6: ADDRCONF(NETDEV_UP): team_slave_0: link is not ready [ 29.487614] team0: Port device team_slave_0 added [ 29.493584] IPv6: ADDRCONF(NETDEV_UP): team_slave_1: link is not ready [ 29.500594] team0: Port device team_slave_1 added [ 29.515629] batman_adv: batadv0: Adding interface: batadv_slave_0 [ 29.522259] batman_adv: batadv0: The MTU of interface batadv_slave_0 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1560 would solve the problem. [ 29.548337] batman_adv: batadv0: Not using interface batadv_slave_0 (retrying later): interface not active [ 29.559900] batman_adv: batadv0: Adding interface: batadv_slave_1 [ 29.567242] batman_adv: batadv0: The MTU of interface batadv_slave_1 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1560 would solve the problem. [ 29.592812] batman_adv: batadv0: Not using interface batadv_slave_1 (retrying later): interface not active [ 29.603783] IPv6: ADDRCONF(NETDEV_UP): bridge_slave_0: link is not ready [ 29.611727] IPv6: ADDRCONF(NETDEV_UP): bridge_slave_1: link is not ready [ 29.630510] device hsr_slave_0 entered promiscuous mode [ 29.636282] device hsr_slave_1 entered promiscuous mode [ 29.642574] IPv6: ADDRCONF(NETDEV_UP): hsr_slave_0: link is not ready [ 29.649491] IPv6: ADDRCONF(NETDEV_UP): hsr_slave_1: link is not ready [ 29.708091] bridge0: port 2(bridge_slave_1) entered blocking state [ 29.714635] bridge0: port 2(bridge_slave_1) entered forwarding state [ 29.721538] bridge0: port 1(bridge_slave_0) entered blocking state [ 29.727908] bridge0: port 1(bridge_slave_0) entered forwarding state [ 29.755351] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 29.762107] 8021q: adding VLAN 0 to HW filter on device bond0 [ 29.769785] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 29.778966] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 29.797703] bridge0: port 1(bridge_slave_0) entered disabled state [ 29.804730] bridge0: port 2(bridge_slave_1) entered disabled state [ 29.815070] IPv6: ADDRCONF(NETDEV_UP): team0: link is not ready [ 29.821564] 8021q: adding VLAN 0 to HW filter on device team0 [ 29.829481] IPv6: ADDRCONF(NETDEV_CHANGE): bridge_slave_0: link becomes ready [ 29.837933] bridge0: port 1(bridge_slave_0) entered blocking state [ 29.844321] bridge0: port 1(bridge_slave_0) entered forwarding state [ 29.861655] IPv6: ADDRCONF(NETDEV_CHANGE): bridge_slave_1: link becomes ready [ 29.869216] bridge0: port 2(bridge_slave_1) entered blocking state [ 29.875609] bridge0: port 2(bridge_slave_1) entered forwarding state [ 29.883785] IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_0: link becomes ready [ 29.891551] IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_1: link becomes ready [ 29.899500] IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready [ 29.908754] IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_0: link becomes ready [ 29.919580] hsr0: Slave B (hsr_slave_1) is not up; please bring it up to get a fully working HSR network [ 29.930947] IPv6: ADDRCONF(NETDEV_UP): hsr0: link is not ready [ 29.937069] IPv6: ADDRCONF(NETDEV_CHANGE): hsr0: link becomes ready [ 29.944786] IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_1: link becomes ready [ 29.957215] IPv6: ADDRCONF(NETDEV_UP): vxcan0: link is not ready [ 29.965294] IPv6: ADDRCONF(NETDEV_CHANGE): vxcan0: link becomes ready [ 29.972112] IPv6: ADDRCONF(NETDEV_CHANGE): vxcan1: link becomes ready [ 29.982651] 8021q: adding VLAN 0 to HW filter on device batadv0 [ 30.028987] IPv6: ADDRCONF(NETDEV_UP): veth0_virt_wifi: link is not ready [ 30.038916] IPv6: ADDRCONF(NETDEV_CHANGE): veth0_virt_wifi: link becomes ready [ 30.068201] IPv6: ADDRCONF(NETDEV_UP): veth0_vlan: link is not ready [ 30.075493] IPv6: ADDRCONF(NETDEV_UP): vlan0: link is not ready [ 30.082876] IPv6: ADDRCONF(NETDEV_UP): vlan1: link is not ready [ 30.091770] IPv6: ADDRCONF(NETDEV_CHANGE): veth0_vlan: link becomes ready [ 30.099157] IPv6: ADDRCONF(NETDEV_CHANGE): vlan0: link becomes ready [ 30.106828] IPv6: ADDRCONF(NETDEV_CHANGE): vlan1: link becomes ready [ 30.115499] device veth0_vlan entered promiscuous mode [ 30.124571] device veth1_vlan entered promiscuous mode [ 30.130285] IPv6: ADDRCONF(NETDEV_UP): macvlan0: link is not ready [ 30.138968] IPv6: ADDRCONF(NETDEV_UP): macvlan1: link is not ready [ 30.149120] IPv6: ADDRCONF(NETDEV_UP): veth0_macvtap: link is not ready [ 30.158396] IPv6: ADDRCONF(NETDEV_CHANGE): macvlan0: link becomes ready [ 30.165908] IPv6: ADDRCONF(NETDEV_CHANGE): macvlan1: link becomes ready [ 30.173650] IPv6: ADDRCONF(NETDEV_CHANGE): veth0_macvtap: link becomes ready [ 30.183537] device veth0_macvtap entered promiscuous mode [ 30.189518] IPv6: ADDRCONF(NETDEV_UP): macvtap0: link is not ready [ 30.197542] device veth1_macvtap entered promiscuous mode [ 30.206017] IPv6: ADDRCONF(NETDEV_UP): veth0_to_batadv: link is not ready [ 30.215490] IPv6: ADDRCONF(NETDEV_UP): veth1_to_batadv: link is not ready [ 30.225511] batman_adv: batadv0: Interface activated: batadv_slave_0 [ 30.232620] IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_batadv: link becomes ready [ 30.240914] IPv6: ADDRCONF(NETDEV_CHANGE): macvtap0: link becomes ready [ 30.251246] batman_adv: batadv0: Interface activated: batadv_slave_1 [ 30.257847] IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready executing program [ 30.320649] IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready [ 30.344583] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 30.411713] [ 30.413342] ====================================================== [ 30.419644] WARNING: possible circular locking dependency detected [ 30.425936] 4.14.258-syzkaller #0 Not tainted [ 30.430408] ------------------------------------------------------ [ 30.436703] syz-executor266/8211 is trying to acquire lock: [ 30.442391] (rtnl_mutex){+.+.}, at: [] unregister_netdevice_notifier+0x5e/0x2b0 [ 30.451480] [ 30.451480] but task is already holding lock: [ 30.457424] (&xt[i].mutex){+.+.}, at: [] xt_find_table_lock+0x38/0x3d0 [ 30.465728] [ 30.465728] which lock already depends on the new lock. [ 30.465728] [ 30.474017] [ 30.474017] the existing dependency chain (in reverse order) is: [ 30.481934] [ 30.481934] -> #2 (&xt[i].mutex){+.+.}: [ 30.487375] __mutex_lock+0xc4/0x1310 [ 30.491673] match_revfn+0x43/0x210 [ 30.495794] xt_find_revision+0x8d/0x1d0 [ 30.500358] nfnl_compat_get+0x1f7/0x870 [ 30.505014] nfnetlink_rcv_msg+0x9bb/0xc00 [ 30.509757] netlink_rcv_skb+0x125/0x390 [ 30.514331] nfnetlink_rcv+0x1ab/0x1da0 [ 30.518803] netlink_unicast+0x437/0x610 [ 30.523364] netlink_sendmsg+0x638/0xb90 [ 30.527918] sock_sendmsg+0xb5/0x100 [ 30.532125] ___sys_sendmsg+0x6c8/0x800 [ 30.536593] __sys_sendmsg+0xa3/0x120 [ 30.540885] SyS_sendmsg+0x27/0x40 [ 30.544921] do_syscall_64+0x1d5/0x640 [ 30.549302] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 30.554979] [ 30.554979] -> #1 (&table[i].mutex){+.+.}: [ 30.560672] __mutex_lock+0xc4/0x1310 [ 30.564967] nf_tables_netdev_event+0x10d/0x4d0 [ 30.570129] notifier_call_chain+0x108/0x1a0 [ 30.575034] rollback_registered_many+0x765/0xba0 [ 30.580371] unregister_netdevice_many.part.0+0x18/0x2e0 [ 30.586316] unregister_netdevice_many+0x36/0x50 [ 30.591566] rtnl_newlink+0x1416/0x1860 [ 30.596043] rtnetlink_rcv_msg+0x3be/0xb10 [ 30.600771] netlink_rcv_skb+0x125/0x390 [ 30.605330] netlink_unicast+0x437/0x610 [ 30.609899] netlink_sendmsg+0x638/0xb90 [ 30.614464] sock_sendmsg+0xb5/0x100 [ 30.618671] ___sys_sendmsg+0x6c8/0x800 [ 30.623138] __sys_sendmsg+0xa3/0x120 [ 30.627438] SyS_sendmsg+0x27/0x40 [ 30.631473] do_syscall_64+0x1d5/0x640 [ 30.635854] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 30.641536] [ 30.641536] -> #0 (rtnl_mutex){+.+.}: [ 30.646801] lock_acquire+0x170/0x3f0 [ 30.651094] __mutex_lock+0xc4/0x1310 [ 30.655390] unregister_netdevice_notifier+0x5e/0x2b0 [ 30.661080] tee_tg_destroy+0x5c/0xb0 [ 30.665375] cleanup_entry+0x232/0x310 [ 30.669753] __do_replace+0x38d/0x580 [ 30.674046] do_ip6t_set_ctl+0x256/0x3b0 [ 30.678603] nf_setsockopt+0x5f/0xb0 [ 30.682812] ipv6_setsockopt+0xc0/0x120 [ 30.687282] tcp_setsockopt+0x7b/0xc0 [ 30.691583] SyS_setsockopt+0x110/0x1e0 [ 30.696058] do_syscall_64+0x1d5/0x640 [ 30.700448] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 30.706130] [ 30.706130] other info that might help us debug this: [ 30.706130] [ 30.714242] Chain exists of: [ 30.714242] rtnl_mutex --> &table[i].mutex --> &xt[i].mutex [ 30.714242] [ 30.724446] Possible unsafe locking scenario: [ 30.724446] [ 30.730475] CPU0 CPU1 [ 30.735114] ---- ---- [ 30.739751] lock(&xt[i].mutex); [ 30.743179] lock(&table[i].mutex); [ 30.749381] lock(&xt[i].mutex); [ 30.755343] lock(rtnl_mutex); [ 30.758605] [ 30.758605] *** DEADLOCK *** [ 30.758605] [ 30.764644] 1 lock held by syz-executor266/8211: [ 30.769368] #0: (&xt[i].mutex){+.+.}, at: [] xt_find_table_lock+0x38/0x3d0 [ 30.778106] [ 30.778106] stack backtrace: [ 30.782599] CPU: 0 PID: 8211 Comm: syz-executor266 Not tainted 4.14.258-syzkaller #0 [ 30.790453] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.799786] Call Trace: [ 30.802363] dump_stack+0x1b2/0x281 [ 30.805967] print_circular_bug.constprop.0.cold+0x2d7/0x41e [ 30.811753] __lock_acquire+0x2e0e/0x3f20 [ 30.815877] ? __lock_acquire+0x2190/0x3f20 [ 30.820171] ? trace_hardirqs_on+0x10/0x10 [ 30.824382] ? __lock_acquire+0x5fc/0x3f20 [ 30.828591] ? __kernel_text_address+0x9/0x30 [ 30.833060] ? __save_stack_trace+0xa0/0x160 [ 30.837453] lock_acquire+0x170/0x3f0 [ 30.841230] ? unregister_netdevice_notifier+0x5e/0x2b0 [ 30.846569] ? hashlimit_mt_destroy+0x70/0x70 [ 30.851036] ? unregister_netdevice_notifier+0x5e/0x2b0 [ 30.856374] __mutex_lock+0xc4/0x1310 [ 30.860150] ? unregister_netdevice_notifier+0x5e/0x2b0 [ 30.865489] ? lock_acquire+0x170/0x3f0 [ 30.869445] ? htable_put+0x1a/0x1b0 [ 30.873131] ? unregister_netdevice_notifier+0x5e/0x2b0 [ 30.878493] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 30.883916] ? htable_put+0x1a/0x1b0 [ 30.887605] ? __mutex_lock+0x360/0x1310 [ 30.891644] ? cleanup_entry+0x141/0x310 [ 30.895681] ? lock_downgrade+0x740/0x740 [ 30.899825] ? __mutex_lock+0x360/0x1310 [ 30.903862] ? hashlimit_mt_destroy+0x70/0x70 [ 30.908340] unregister_netdevice_notifier+0x5e/0x2b0 [ 30.913538] ? __mutex_unlock_slowpath+0x75/0x770 [ 30.918355] ? register_netdevice_notifier+0x4d0/0x4d0 [ 30.923607] ? wait_for_completion_io+0x10/0x10 [ 30.928337] ? hashlimit_mt_destroy+0x70/0x70 [ 30.932810] tee_tg_destroy+0x5c/0xb0 [ 30.936685] ? tee_tg6+0x160/0x160 [ 30.940198] cleanup_entry+0x232/0x310 [ 30.944060] ? compat_do_ip6t_get_ctl+0x820/0x820 [ 30.948879] __do_replace+0x38d/0x580 [ 30.952653] ? ip6t_unregister_table+0x60/0x60 [ 30.957208] do_ip6t_set_ctl+0x256/0x3b0 [ 30.961248] ? compat_do_ip6t_set_ctl+0x140/0x140 [ 30.966071] ? nf_sockopt_find.constprop.0+0x1ad/0x220 [ 30.971326] nf_setsockopt+0x5f/0xb0 [ 30.975013] ipv6_setsockopt+0xc0/0x120 [ 30.978990] tcp_setsockopt+0x7b/0xc0 [ 30.982767] SyS_setsockopt+0x110/0x1e0 [ 30.986715] ? SyS_recv+0x40/0x40 [ 30.990141] ? up_read+0x17/0x30 [ 30.993486] ? __do_page_fault+0x159/0xad0 [ 30.997703] ? do_syscall_64+0x4c/0x640 [ 31.001653] ? SyS_recv+0x40/0x40 [ 31.005088] do_syscall_64+0x1d5/0x640 [ 31.008949] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 31.014114] RIP: 0033:0x7fc63ee1a389 [ 31.017800] RSP: 002b:00007ffc548f6c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 [ 31.025482] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fc63ee1a389 [ 31.032728] RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000003 [ 31.039978] RBP: 0000000000000000 R08: 0000000000000560 R09: 000000000000000d [ 31.047222] R10: 0000000020000300 R11: 0000000000000246 R12: 00007ffc548f6c80 [ 31.054468] R13: 00000000000f4240 R14: 000000000000769a R15: 00007ffc548f6c74 executing program [ 31.074489] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 31.116681] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 31.154966] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program executing program [ 31.206287] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 31.256780] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 31.305580] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 31.355534] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 31.405548] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 31.455618] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 31.506691] bridge0: port 3(macvlan2) entered blocking state [ 31.514005] bridge0: port 3(macvlan2) entered disabled state [ 31.520587] device macvlan2 entered promiscuous mode executing program executing program executing program [ 31.587937] bond0: Enslaving macvlan3 as an active interface with an up link [ 31.605235] team0: Port device macvlan4 added executing program executing program executing program executing program [ 31.768003] batman_adv: batadv0: Adding interface: macvlan5 [ 31.775179] batman_adv: batadv0: The MTU of interface macvlan5 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1560 would solve the problem. [ 31.800773] batman_adv: batadv0: Not using interface macvlan5 (retrying later): interface not active executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 35.362902] net_ratelimit: 83 callbacks suppressed [ 35.362905] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program executing program [ 35.432735] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 35.483097] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 35.532948] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 35.582873] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 35.632692] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 35.681506] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 35.742560] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 35.792351] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 35.851716] 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 executing program executing program executing program executing program executing program [ 40.390238] net_ratelimit: 94 callbacks suppressed [ 40.390241] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program