[ 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.38' (ECDSA) to the list of known hosts. executing program executing program syzkaller login: [ 27.887568] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 27.946073] [ 27.947738] ====================================================== [ 27.954041] WARNING: possible circular locking dependency detected [ 27.960350] 4.14.257-syzkaller #0 Not tainted [ 27.964831] ------------------------------------------------------ [ 27.971133] syz-executor127/7989 is trying to acquire lock: [ 27.976829] (rtnl_mutex){+.+.}, at: [] unregister_netdevice_notifier+0x5e/0x2b0 [ 27.985933] [ 27.985933] but task is already holding lock: [ 27.991891] (&xt[i].mutex){+.+.}, at: [] xt_find_table_lock+0x38/0x3d0 [ 28.000203] [ 28.000203] which lock already depends on the new lock. [ 28.000203] [ 28.008645] [ 28.008645] the existing dependency chain (in reverse order) is: [ 28.016329] [ 28.016329] -> #2 (&xt[i].mutex){+.+.}: [ 28.021773] __mutex_lock+0xc4/0x1310 [ 28.026081] match_revfn+0x43/0x210 [ 28.030208] xt_find_revision+0x8d/0x1d0 [ 28.034896] nfnl_compat_get+0x1f7/0x870 [ 28.039472] nfnetlink_rcv_msg+0x9bb/0xc00 [ 28.044214] netlink_rcv_skb+0x125/0x390 [ 28.048862] nfnetlink_rcv+0x1ab/0x1da0 [ 28.053333] netlink_unicast+0x437/0x610 [ 28.057889] netlink_sendmsg+0x638/0xb90 [ 28.062446] sock_sendmsg+0xb5/0x100 [ 28.066670] ___sys_sendmsg+0x6c8/0x800 [ 28.071138] __sys_sendmsg+0xa3/0x120 [ 28.075435] SyS_sendmsg+0x27/0x40 [ 28.079468] do_syscall_64+0x1d5/0x640 [ 28.083851] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 28.089530] [ 28.089530] -> #1 (&table[i].mutex){+.+.}: [ 28.095220] __mutex_lock+0xc4/0x1310 [ 28.099516] nf_tables_netdev_event+0x10d/0x4d0 [ 28.104680] notifier_call_chain+0x108/0x1a0 [ 28.109581] rollback_registered_many+0x765/0xba0 [ 28.115020] rollback_registered+0xca/0x170 [ 28.119843] unregister_netdevice_queue+0x1b4/0x360 [ 28.125454] unregister_netdev+0x18/0x20 [ 28.130019] gprs_attach+0x391/0x460 [ 28.134251] pep_setsockopt+0x2d7/0x3c0 [ 28.138731] SyS_setsockopt+0x110/0x1e0 [ 28.143207] do_syscall_64+0x1d5/0x640 [ 28.147597] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 28.153283] [ 28.153283] -> #0 (rtnl_mutex){+.+.}: [ 28.158556] lock_acquire+0x170/0x3f0 [ 28.162852] __mutex_lock+0xc4/0x1310 [ 28.167164] unregister_netdevice_notifier+0x5e/0x2b0 [ 28.173103] tee_tg_destroy+0x5c/0xb0 [ 28.177404] cleanup_entry+0x232/0x310 [ 28.181790] __do_replace+0x38d/0x580 [ 28.186093] do_ip6t_set_ctl+0x256/0x3b0 [ 28.190648] nf_setsockopt+0x5f/0xb0 [ 28.194858] ipv6_setsockopt+0xc0/0x120 [ 28.199329] tcp_setsockopt+0x7b/0xc0 [ 28.203623] SyS_setsockopt+0x110/0x1e0 [ 28.208094] do_syscall_64+0x1d5/0x640 [ 28.212476] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 28.218165] [ 28.218165] other info that might help us debug this: [ 28.218165] [ 28.226290] Chain exists of: [ 28.226290] rtnl_mutex --> &table[i].mutex --> &xt[i].mutex [ 28.226290] [ 28.236507] Possible unsafe locking scenario: [ 28.236507] [ 28.242533] CPU0 CPU1 [ 28.247170] ---- ---- [ 28.251810] lock(&xt[i].mutex); [ 28.255237] lock(&table[i].mutex); [ 28.261442] lock(&xt[i].mutex); [ 28.267385] lock(rtnl_mutex); [ 28.270639] [ 28.270639] *** DEADLOCK *** [ 28.270639] [ 28.276672] 1 lock held by syz-executor127/7989: [ 28.281397] #0: (&xt[i].mutex){+.+.}, at: [] xt_find_table_lock+0x38/0x3d0 [ 28.290127] [ 28.290127] stack backtrace: [ 28.294600] CPU: 1 PID: 7989 Comm: syz-executor127 Not tainted 4.14.257-syzkaller #0 [ 28.302458] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.311823] Call Trace: [ 28.314389] dump_stack+0x1b2/0x281 [ 28.317993] print_circular_bug.constprop.0.cold+0x2d7/0x41e [ 28.323776] __lock_acquire+0x2e0e/0x3f20 [ 28.327902] ? lock_acquire+0x170/0x3f0 [ 28.331856] ? lock_downgrade+0x740/0x740 [ 28.335976] ? trace_hardirqs_on+0x10/0x10 [ 28.340184] ? is_bpf_text_address+0xb8/0x150 [ 28.344671] ? kernel_text_address+0xbd/0xf0 [ 28.349104] ? __lock_acquire+0x5fc/0x3f20 [ 28.353320] ? __kernel_text_address+0x9/0x30 [ 28.357811] ? __save_stack_trace+0xa0/0x160 [ 28.362194] lock_acquire+0x170/0x3f0 [ 28.365972] ? unregister_netdevice_notifier+0x5e/0x2b0 [ 28.371309] ? unregister_netdevice_notifier+0x5e/0x2b0 [ 28.376655] __mutex_lock+0xc4/0x1310 [ 28.380431] ? unregister_netdevice_notifier+0x5e/0x2b0 [ 28.385775] ? trace_hardirqs_on+0x10/0x10 [ 28.389985] ? unregister_netdevice_notifier+0x5e/0x2b0 [ 28.395324] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 28.400749] ? pcpu_next_fit_region.constprop.0+0x3a0/0x3a0 [ 28.406434] ? trace_hardirqs_on+0x10/0x10 [ 28.410656] ? free_percpu+0x23e/0x730 [ 28.414515] unregister_netdevice_notifier+0x5e/0x2b0 [ 28.419680] ? register_netdevice_notifier+0x4d0/0x4d0 [ 28.424931] ? _raw_spin_unlock_irqrestore+0x66/0xe0 [ 28.430004] ? free_percpu+0x23e/0x730 [ 28.433890] tee_tg_destroy+0x5c/0xb0 [ 28.437680] ? tee_tg6+0x160/0x160 [ 28.441201] cleanup_entry+0x232/0x310 [ 28.445068] ? cpumask_next+0x30/0x40 [ 28.448845] ? compat_do_ip6t_get_ctl+0x820/0x820 [ 28.453770] __do_replace+0x38d/0x580 [ 28.457550] ? ip6t_unregister_table+0x60/0x60 [ 28.462107] do_ip6t_set_ctl+0x256/0x3b0 [ 28.466140] ? compat_do_ip6t_set_ctl+0x140/0x140 [ 28.470957] ? nf_sockopt_find.constprop.0+0x1ad/0x220 [ 28.476210] nf_setsockopt+0x5f/0xb0 [ 28.479899] ipv6_setsockopt+0xc0/0x120 [ 28.483849] tcp_setsockopt+0x7b/0xc0 [ 28.487626] SyS_setsockopt+0x110/0x1e0 [ 28.491570] ? SyS_recv+0x40/0x40 [ 28.494995] ? up_read+0x17/0x30 [ 28.498336] ? __do_page_fault+0x159/0xad0 [ 28.502544] ? do_syscall_64+0x4c/0x640 [ 28.506490] ? SyS_recv+0x40/0x40 [ 28.509917] do_syscall_64+0x1d5/0x640 [ 28.513784] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 28.518947] RIP: 0033:0x7f6a26a78529 [ 28.522630] RSP: 002b:00007ffdaad24d08 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 [ 28.530431] RAX: ffffffffffffffda RBX: 00306e616c767069 RCX: 00007f6a26a78529 [ 28.537684] RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000003 executing program [ 28.545075] RBP: 0000000000000000 R08: 0000000000000460 R09: 00007ffdaad24ea8 [ 28.552335] R10: 00000000200000c0 R11: 0000000000000246 R12: 00007ffdaad24d1c [ 28.559583] R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000 [ 28.569091] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 28.623408] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 28.696076] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program executing program [ 28.761983] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 28.816654] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program executing program [ 28.893405] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 28.931964] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program executing program [ 28.993633] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 29.053512] 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 [ 32.909440] net_ratelimit: 87 callbacks suppressed [ 32.909444] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 32.963075] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 33.010116] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 33.060836] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 33.101106] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 33.150404] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 33.210191] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program [ 33.251001] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 33.290089] ip6_tables: ip6tables: counters copy to user failed while replacing table executing program executing program [ 33.341098] 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 executing program executing program executing program executing program executing program executing program executing program