[ OK ] Started Getty on tty3. [ OK ] Started Getty on tty2. [ 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... [ 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.1.56' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 27.126744] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 27.138068] netlink: 32 bytes leftover after parsing attributes in process `syz-executor248'. executing program [ 27.213170] [ 27.214815] ====================================================== [ 27.221135] WARNING: possible circular locking dependency detected [ 27.227432] 4.14.290-syzkaller #0 Not tainted [ 27.231900] ------------------------------------------------------ [ 27.238196] syz-executor248/8001 is trying to acquire lock: [ 27.243954] (rtnl_mutex){+.+.}, at: [] unregister_netdevice_notifier+0x5e/0x2b0 [ 27.253037] [ 27.253037] but task is already holding lock: [ 27.258980] (&xt[i].mutex){+.+.}, at: [] xt_find_table_lock+0x38/0x3d0 [ 27.267283] [ 27.267283] which lock already depends on the new lock. [ 27.267283] [ 27.275579] [ 27.275579] the existing dependency chain (in reverse order) is: [ 27.283173] [ 27.283173] -> #2 (&xt[i].mutex){+.+.}: [ 27.288610] __mutex_lock+0xc4/0x1310 [ 27.292918] match_revfn+0x43/0x210 [ 27.297046] xt_find_revision+0x8d/0x1d0 [ 27.301613] nfnl_compat_get+0x1f7/0x870 [ 27.306177] nfnetlink_rcv_msg+0x9bb/0xc00 [ 27.310915] netlink_rcv_skb+0x125/0x390 [ 27.315479] nfnetlink_rcv+0x1ab/0x1da0 [ 27.319960] netlink_unicast+0x437/0x610 [ 27.324525] netlink_sendmsg+0x648/0xbc0 [ 27.329087] sock_sendmsg+0xb5/0x100 [ 27.333305] ___sys_sendmsg+0x6c8/0x800 [ 27.337800] __sys_sendmsg+0xa3/0x120 [ 27.342100] SyS_sendmsg+0x27/0x40 [ 27.346172] do_syscall_64+0x1d5/0x640 [ 27.350563] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 27.356249] [ 27.356249] -> #1 (&table[i].mutex){+.+.}: [ 27.361946] __mutex_lock+0xc4/0x1310 [ 27.366246] nf_tables_netdev_event+0x10d/0x4d0 [ 27.371415] notifier_call_chain+0x108/0x1a0 [ 27.376322] rollback_registered_many+0x765/0xbb0 [ 27.381671] rollback_registered+0xca/0x170 [ 27.386498] unregister_netdevice_queue+0x1b4/0x360 [ 27.392021] ppp_release+0x177/0x1a0 [ 27.396259] __fput+0x25f/0x7a0 [ 27.400125] task_work_run+0x11f/0x190 [ 27.404524] do_exit+0xa44/0x2850 [ 27.408481] do_group_exit+0x100/0x2e0 [ 27.412963] SyS_exit_group+0x19/0x20 [ 27.417264] do_syscall_64+0x1d5/0x640 [ 27.421660] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 27.427405] [ 27.427405] -> #0 (rtnl_mutex){+.+.}: [ 27.432676] lock_acquire+0x170/0x3f0 [ 27.436977] __mutex_lock+0xc4/0x1310 [ 27.441277] unregister_netdevice_notifier+0x5e/0x2b0 [ 27.446968] tee_tg_destroy+0x5c/0xb0 [ 27.451268] cleanup_entry+0x232/0x310 [ 27.455650] __do_replace+0x38d/0x580 [ 27.459976] do_ip6t_set_ctl+0x256/0x3b0 [ 27.464534] nf_setsockopt+0x5f/0xb0 [ 27.468746] ipv6_setsockopt+0xc0/0x120 [ 27.473218] tcp_setsockopt+0x7b/0xc0 [ 27.477512] SyS_setsockopt+0x110/0x1e0 [ 27.482000] do_syscall_64+0x1d5/0x640 [ 27.486386] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 27.492069] [ 27.492069] other info that might help us debug this: [ 27.492069] [ 27.500274] Chain exists of: [ 27.500274] rtnl_mutex --> &table[i].mutex --> &xt[i].mutex [ 27.500274] [ 27.510485] Possible unsafe locking scenario: [ 27.510485] [ 27.516520] CPU0 CPU1 [ 27.521164] ---- ---- [ 27.525805] lock(&xt[i].mutex); [ 27.529238] lock(&table[i].mutex); [ 27.535450] lock(&xt[i].mutex); [ 27.541396] lock(rtnl_mutex); [ 27.544650] [ 27.544650] *** DEADLOCK *** [ 27.544650] [ 27.550807] 1 lock held by syz-executor248/8001: [ 27.555537] #0: (&xt[i].mutex){+.+.}, at: [] xt_find_table_lock+0x38/0x3d0 [ 27.564273] [ 27.564273] stack backtrace: [ 27.568748] CPU: 0 PID: 8001 Comm: syz-executor248 Not tainted 4.14.290-syzkaller #0 [ 27.576602] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 [ 27.585935] Call Trace: [ 27.588508] dump_stack+0x1b2/0x281 [ 27.592120] print_circular_bug.constprop.0.cold+0x2d7/0x41e [ 27.597900] __lock_acquire+0x2e0e/0x3f20 [ 27.602027] ? lock_acquire+0x170/0x3f0 [ 27.605986] ? lock_downgrade+0x740/0x740 [ 27.610117] ? trace_hardirqs_on+0x10/0x10 [ 27.614335] ? is_bpf_text_address+0xb8/0x150 [ 27.618809] ? kernel_text_address+0xbd/0xf0 [ 27.623207] ? __lock_acquire+0x5fc/0x3f20 [ 27.627423] ? __kernel_text_address+0x9/0x30 [ 27.631899] ? __save_stack_trace+0xa0/0x160 [ 27.636292] lock_acquire+0x170/0x3f0 [ 27.640081] ? unregister_netdevice_notifier+0x5e/0x2b0 [ 27.645424] ? unregister_netdevice_notifier+0x5e/0x2b0 [ 27.650766] __mutex_lock+0xc4/0x1310 [ 27.654544] ? unregister_netdevice_notifier+0x5e/0x2b0 [ 27.659885] ? trace_hardirqs_on+0x10/0x10 [ 27.664097] ? unregister_netdevice_notifier+0x5e/0x2b0 [ 27.669442] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 27.674881] ? pcpu_next_fit_region.constprop.0+0x3a0/0x3a0 [ 27.680569] ? trace_hardirqs_on+0x10/0x10 [ 27.684778] ? free_percpu+0x23e/0x730 [ 27.688641] unregister_netdevice_notifier+0x5e/0x2b0 [ 27.693810] ? register_netdevice_notifier+0x4d0/0x4d0 [ 27.699062] ? _raw_spin_unlock_irqrestore+0x66/0xe0 [ 27.704141] ? free_percpu+0x23e/0x730 [ 27.708005] tee_tg_destroy+0x5c/0xb0 [ 27.711779] ? tee_tg6+0x160/0x160 [ 27.715296] cleanup_entry+0x232/0x310 [ 27.719160] ? compat_do_ip6t_get_ctl+0x820/0x820 [ 27.723981] __do_replace+0x38d/0x580 [ 27.727756] ? ip6t_unregister_table+0x60/0x60 [ 27.732311] do_ip6t_set_ctl+0x256/0x3b0 [ 27.736347] ? compat_do_ip6t_set_ctl+0x140/0x140 [ 27.741164] ? nf_sockopt_find.constprop.0+0x1ad/0x220 [ 27.746417] nf_setsockopt+0x5f/0xb0 [ 27.750110] ipv6_setsockopt+0xc0/0x120 [ 27.754063] tcp_setsockopt+0x7b/0xc0 [ 27.757840] SyS_setsockopt+0x110/0x1e0 [ 27.761791] ? SyS_recv+0x40/0x40 [ 27.765222] ? up_read+0x17/0x30 [ 27.768563] ? __do_page_fault+0x159/0xad0 [ 27.772800] ? do_syscall_64+0x4c/0x640 [ 27.776751] ? SyS_recv+0x40/0x40 [ 27.780190] do_syscall_64+0x1d5/0x640 [ 27.784064] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 27.789229] RIP: 0033:0x7fc8a82c6369 [ 27.792915] RSP: 002b:00007ffd5cb82928 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 [ 27.800596] RAX: ffffffffffffffda RBX: 307061747663616d RCX: 00007fc8a82c6369 [ 27.807840] RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000003 [ 27.815085] RBP: 0000000000000000 R08: 00000000000003f0 R09: 00007ffd5cb82ac8 [ 27.822333] R10: 0000000020000000 R11: 0000000000000246 R12: 00007ffd5cb8293c [ 27.829606] R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000 [ 27.839098] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 27.849939] netlink: 32 bytes leftover after parsing attributes in process `syz-executor248'. executing program executing program [ 27.911383] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 27.921405] netlink: 32 bytes leftover after parsing attributes in process `syz-executor248'. executing program [ 27.970958] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 27.981277] netlink: 32 bytes leftover after parsing attributes in process `syz-executor248'. executing program [ 28.030912] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 28.041387] netlink: 32 bytes leftover after parsing attributes in process `syz-executor248'. [ 28.082465] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 28.095561] netlink: 32 bytes leftover after parsing attributes in process `syz-executor248'. executing program executing program [ 28.150957] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 28.160570] netlink: 32 bytes leftover after parsing attributes in process `syz-executor248'. [ 28.210567] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 28.221383] netlink: 32 bytes leftover after parsing attributes in process `syz-executor248'. executing program executing program [ 28.280707] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 28.290639] netlink: 32 bytes leftover after parsing attributes in process `syz-executor248'. executing program [ 28.341096] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 28.351492] netlink: 32 bytes leftover after parsing attributes in process `syz-executor248'. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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.169178] net_ratelimit: 75 callbacks suppressed [ 32.169182] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 32.188876] nla_parse: 75 callbacks suppressed [ 32.188880] netlink: 32 bytes leftover after parsing attributes in process `syz-executor248'. [ 32.237355] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 32.247543] netlink: 32 bytes leftover after parsing attributes in process `syz-executor248'. executing program [ 32.307177] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 32.317199] netlink: 32 bytes leftover after parsing attributes in process `syz-executor248'. executing program [ 32.377807] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 32.387425] netlink: 32 bytes leftover after parsing attributes in process `syz-executor248'. executing program executing program [ 32.446994] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 32.457558] netlink: 32 bytes leftover after parsing attributes in process `syz-executor248'. [ 32.498049] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 32.510398] netlink: 32 bytes leftover after parsing attributes in process `syz-executor248'. executing program executing program [ 32.587241] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 32.597511] netlink: 32 bytes leftover after parsing attributes in process `syz-executor248'. executing program [ 32.647729] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 32.658157] netlink: 32 bytes leftover after parsing attributes in process `syz-executor248'. [ 32.707332] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 32.719287] netlink: 32 bytes leftover after parsing attributes in process `syz-executor248'. executing program [ 32.776739] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 32.787426] netlink: 32 bytes leftover after parsing attributes in process `syz-executor248'. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program