[ 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.1.93' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 28.454768] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 28.465391] batman_adv: Cannot find parent device executing program [ 28.522944] [ 28.524586] ====================================================== [ 28.530888] WARNING: possible circular locking dependency detected [ 28.537198] 4.14.290-syzkaller #0 Not tainted [ 28.541678] ------------------------------------------------------ [ 28.547983] syz-executor100/7986 is trying to acquire lock: [ 28.553675] (rtnl_mutex){+.+.}, at: [] unregister_netdevice_notifier+0x5e/0x2b0 [ 28.562797] [ 28.562797] but task is already holding lock: [ 28.568754] (&xt[i].mutex){+.+.}, at: [] xt_find_table_lock+0x38/0x3d0 [ 28.577067] [ 28.577067] which lock already depends on the new lock. [ 28.577067] [ 28.585390] [ 28.585390] the existing dependency chain (in reverse order) is: [ 28.592993] [ 28.592993] -> #2 (&xt[i].mutex){+.+.}: [ 28.598433] __mutex_lock+0xc4/0x1310 [ 28.602727] match_revfn+0x43/0x210 [ 28.606848] xt_find_revision+0x8d/0x1d0 [ 28.611404] nfnl_compat_get+0x1f7/0x870 [ 28.615955] nfnetlink_rcv_msg+0x9bb/0xc00 [ 28.620682] netlink_rcv_skb+0x125/0x390 [ 28.625237] nfnetlink_rcv+0x1ab/0x1da0 [ 28.629705] netlink_unicast+0x437/0x610 [ 28.634258] netlink_sendmsg+0x648/0xbc0 [ 28.638807] sock_sendmsg+0xb5/0x100 [ 28.643022] ___sys_sendmsg+0x6c8/0x800 [ 28.647490] __sys_sendmsg+0xa3/0x120 [ 28.651778] SyS_sendmsg+0x27/0x40 [ 28.655809] do_syscall_64+0x1d5/0x640 [ 28.660188] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 28.665866] [ 28.665866] -> #1 (&table[i].mutex){+.+.}: [ 28.671557] __mutex_lock+0xc4/0x1310 [ 28.675858] nf_tables_netdev_event+0x10d/0x4d0 [ 28.681032] notifier_call_chain+0x108/0x1a0 [ 28.685940] rollback_registered_many+0x765/0xbb0 [ 28.691278] unregister_netdevice_many.part.0+0x18/0x2e0 [ 28.697229] unregister_netdevice_many+0x36/0x50 [ 28.702573] rtnl_newlink+0x13fd/0x1830 [ 28.707042] rtnetlink_rcv_msg+0x3be/0xb10 [ 28.711860] netlink_rcv_skb+0x125/0x390 [ 28.716490] netlink_unicast+0x437/0x610 [ 28.721049] netlink_sendmsg+0x648/0xbc0 [ 28.725603] sock_sendmsg+0xb5/0x100 [ 28.729810] ___sys_sendmsg+0x6c8/0x800 [ 28.734277] __sys_sendmsg+0xa3/0x120 [ 28.738567] SyS_sendmsg+0x27/0x40 [ 28.742600] do_syscall_64+0x1d5/0x640 [ 28.746980] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 28.752682] [ 28.752682] -> #0 (rtnl_mutex){+.+.}: [ 28.757939] lock_acquire+0x170/0x3f0 [ 28.762234] __mutex_lock+0xc4/0x1310 [ 28.766530] unregister_netdevice_notifier+0x5e/0x2b0 [ 28.772223] tee_tg_destroy+0x5c/0xb0 [ 28.776521] cleanup_entry+0x232/0x310 [ 28.780903] __do_replace+0x38d/0x580 [ 28.785201] do_ip6t_set_ctl+0x256/0x3b0 [ 28.789756] nf_setsockopt+0x5f/0xb0 [ 28.793973] ipv6_setsockopt+0xc0/0x120 [ 28.798440] udpv6_setsockopt+0x45/0x80 [ 28.802906] SyS_setsockopt+0x110/0x1e0 [ 28.807406] do_syscall_64+0x1d5/0x640 [ 28.811790] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 28.817728] [ 28.817728] other info that might help us debug this: [ 28.817728] [ 28.825867] Chain exists of: [ 28.825867] rtnl_mutex --> &table[i].mutex --> &xt[i].mutex [ 28.825867] [ 28.836078] Possible unsafe locking scenario: [ 28.836078] [ 28.842117] CPU0 CPU1 [ 28.846842] ---- ---- [ 28.851480] lock(&xt[i].mutex); [ 28.854911] lock(&table[i].mutex); [ 28.861373] lock(&xt[i].mutex); [ 28.867314] lock(rtnl_mutex); [ 28.870572] [ 28.870572] *** DEADLOCK *** [ 28.870572] [ 28.876603] 1 lock held by syz-executor100/7986: [ 28.881327] #0: (&xt[i].mutex){+.+.}, at: [] xt_find_table_lock+0x38/0x3d0 [ 28.890058] [ 28.890058] stack backtrace: [ 28.894529] CPU: 1 PID: 7986 Comm: syz-executor100 Not tainted 4.14.290-syzkaller #0 [ 28.902378] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 [ 28.911702] Call Trace: [ 28.914269] dump_stack+0x1b2/0x281 [ 28.917871] print_circular_bug.constprop.0.cold+0x2d7/0x41e [ 28.923644] __lock_acquire+0x2e0e/0x3f20 [ 28.927766] ? lock_acquire+0x170/0x3f0 [ 28.931712] ? lock_downgrade+0x740/0x740 [ 28.935860] ? trace_hardirqs_on+0x10/0x10 [ 28.940178] ? is_bpf_text_address+0xb8/0x150 [ 28.944681] ? kernel_text_address+0xbd/0xf0 [ 28.949070] ? __lock_acquire+0x5fc/0x3f20 [ 28.953305] ? __kernel_text_address+0x9/0x30 [ 28.957775] ? __save_stack_trace+0xa0/0x160 [ 28.962158] lock_acquire+0x170/0x3f0 [ 28.965933] ? unregister_netdevice_notifier+0x5e/0x2b0 [ 28.971269] ? unregister_netdevice_notifier+0x5e/0x2b0 [ 28.976703] __mutex_lock+0xc4/0x1310 [ 28.980530] ? unregister_netdevice_notifier+0x5e/0x2b0 [ 28.985874] ? unregister_netdevice_notifier+0x5e/0x2b0 [ 28.991214] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 28.996728] ? trace_hardirqs_on+0x10/0x10 [ 29.000953] ? lock_acquire+0x170/0x3f0 [ 29.004900] ? trace_hardirqs_on+0x10/0x10 [ 29.009109] ? xt_find_table_lock+0x38/0x3d0 [ 29.013488] ? __mutex_lock+0x360/0x1310 [ 29.017538] unregister_netdevice_notifier+0x5e/0x2b0 [ 29.022710] ? fs_reclaim_release+0xd0/0x110 [ 29.027093] ? register_netdevice_notifier+0x4d0/0x4d0 [ 29.032343] tee_tg_destroy+0x5c/0xb0 [ 29.036115] ? tee_tg6+0x160/0x160 [ 29.039625] cleanup_entry+0x232/0x310 [ 29.043493] ? cpumask_next+0x30/0x40 [ 29.047272] ? compat_do_ip6t_get_ctl+0x820/0x820 [ 29.052086] __do_replace+0x38d/0x580 [ 29.056385] ? ip6t_unregister_table+0x60/0x60 [ 29.060938] do_ip6t_set_ctl+0x256/0x3b0 [ 29.064970] ? compat_do_ip6t_set_ctl+0x140/0x140 [ 29.069785] ? nf_sockopt_find.constprop.0+0x1ad/0x220 [ 29.075052] nf_setsockopt+0x5f/0xb0 [ 29.078753] ipv6_setsockopt+0xc0/0x120 [ 29.082700] udpv6_setsockopt+0x45/0x80 [ 29.086648] SyS_setsockopt+0x110/0x1e0 [ 29.090600] ? SyS_recv+0x40/0x40 [ 29.094028] ? up_read+0x17/0x30 [ 29.097368] ? __do_page_fault+0x159/0xad0 [ 29.101574] ? do_syscall_64+0x4c/0x640 [ 29.105527] ? SyS_recv+0x40/0x40 [ 29.108960] do_syscall_64+0x1d5/0x640 [ 29.112840] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 29.118011] RIP: 0033:0x7f70f7114609 [ 29.121702] RSP: 002b:00007ffd8f6bbfa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 [ 29.129385] RAX: ffffffffffffffda RBX: 000000306e616c76 RCX: 00007f70f7114609 [ 29.136639] RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000005 [ 29.143891] RBP: 0000000000000000 R08: 0000000000000410 R09: 00007ffd8f6bc148 [ 29.151227] R10: 00000000200001c0 R11: 0000000000000246 R12: 00007ffd8f6bbfbc [ 29.158476] R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000 [ 29.166879] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 29.177686] batman_adv: Cannot find parent device executing program [ 29.224185] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 29.236507] batman_adv: Cannot find parent device executing program executing program [ 29.296541] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 29.308589] batman_adv: Cannot find parent device executing program [ 29.352821] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 29.368230] batman_adv: Cannot find parent device [ 29.413693] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 29.424355] batman_adv: Cannot find parent device executing program executing program [ 29.483462] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 29.494409] batman_adv: Cannot find parent device executing program [ 29.544825] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 29.557535] batman_adv: Cannot find parent device [ 29.594337] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 29.606036] batman_adv: Cannot find parent device executing program executing program [ 29.665210] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 29.676493] batman_adv: Cannot find parent device [ 29.729719] batman_adv: Cannot find parent device executing program [ 29.780436] batman_adv: Cannot find parent device executing program executing program [ 29.837390] batman_adv: Cannot find parent device [ 29.875829] batman_adv: Cannot find parent device executing program executing program [ 29.925277] batman_adv: Cannot find parent device executing program [ 29.967655] batman_adv: Cannot find parent device executing program [ 30.008233] batman_adv: Cannot find parent device executing program [ 30.045270] batman_adv: Cannot find parent device [ 30.089830] batman_adv: Cannot find parent device executing program executing program [ 30.136253] batman_adv: Cannot find parent device [ 30.179885] batman_adv: Cannot find parent device executing program executing program [ 30.232991] batman_adv: Cannot find parent device [ 30.275345] batman_adv: Cannot find parent device executing program [ 30.337163] batman_adv: Cannot find parent device executing program executing program [ 30.406830] batman_adv: Cannot find parent device [ 30.447500] batman_adv: Cannot find parent device executing program executing program [ 30.506687] batman_adv: Cannot find parent device [ 30.548139] batman_adv: Cannot find parent device executing program [ 30.629795] batman_adv: Cannot find parent device executing program [ 30.679414] batman_adv: Cannot find parent device executing program [ 30.745454] batman_adv: Cannot find parent device executing program [ 30.796221] batman_adv: Cannot find parent device executing program [ 30.848410] batman_adv: Cannot find parent device executing program [ 30.908307] batman_adv: Cannot find parent device executing program executing program [ 30.972889] batman_adv: Cannot find parent device [ 31.017513] batman_adv: Cannot find parent device executing program [ 31.066935] batman_adv: Cannot find parent device executing program [ 31.113781] batman_adv: Cannot find parent device executing program executing program [ 31.162901] batman_adv: Cannot find parent device [ 31.198386] batman_adv: Cannot find parent device executing program [ 31.245574] batman_adv: Cannot find parent device executing program [ 31.296815] batman_adv: Cannot find parent device executing program [ 31.354525] batman_adv: Cannot find parent device executing program [ 31.417251] batman_adv: Cannot find parent device executing program [ 31.464174] batman_adv: Cannot find parent device executing program [ 31.516276] batman_adv: Cannot find parent device executing program [ 31.566326] batman_adv: Cannot find parent device executing program [ 31.615076] batman_adv: Cannot find parent device executing program [ 31.670762] batman_adv: Cannot find parent device executing program [ 31.726061] batman_adv: Cannot find parent device executing program [ 31.791695] batman_adv: Cannot find parent device executing program [ 31.861616] batman_adv: Cannot find parent device executing program [ 31.920285] batman_adv: Cannot find parent device executing program [ 32.000567] batman_adv: Cannot find parent device executing program [ 32.061183] batman_adv: Cannot find parent device executing program [ 32.115199] batman_adv: Cannot find parent device executing program [ 32.166290] batman_adv: Cannot find parent device executing program [ 32.230588] batman_adv: Cannot find parent device executing program [ 32.285361] batman_adv: Cannot find parent device executing program executing program [ 32.350505] batman_adv: Cannot find parent device executing program [ 32.393689] batman_adv: Cannot find parent device [ 32.432760] batman_adv: Cannot find parent device executing program [ 32.484546] batman_adv: Cannot find parent device executing program [ 32.534963] batman_adv: Cannot find parent device executing program [ 32.584172] batman_adv: Cannot find parent device executing program [ 32.643619] batman_adv: Cannot find parent device executing program [ 32.703484] batman_adv: Cannot find parent device executing program executing program [ 32.754764] batman_adv: Cannot find parent device [ 32.791372] batman_adv: Cannot find parent device executing program [ 32.853945] batman_adv: Cannot find parent device executing program [ 32.915951] batman_adv: Cannot find parent device executing program [ 32.968495] batman_adv: Cannot find parent device executing program [ 33.040310] batman_adv: Cannot find parent device executing program [ 33.096437] batman_adv: Cannot find parent device executing program [ 33.170905] batman_adv: Cannot find parent device executing program [ 33.229609] batman_adv: Cannot find parent device executing program [ 33.283541] batman_adv: Cannot find parent device executing program executing program [ 33.334358] batman_adv: Cannot find parent device [ 33.372646] batman_adv: Cannot find parent device executing program [ 33.426181] batman_adv: Cannot find parent device executing program executing program [ 33.480274] net_ratelimit: 70 callbacks suppressed [ 33.480279] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 33.495863] batman_adv: Cannot find parent device [ 33.531835] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 33.544189] batman_adv: Cannot find parent device executing program executing program [ 33.602136] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 33.613932] batman_adv: Cannot find parent device [ 33.661587] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 33.673373] batman_adv: Cannot find parent device executing program [ 33.727399] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 33.738217] batman_adv: Cannot find parent device executing program executing program [ 33.797189] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 33.807459] batman_adv: Cannot find parent device [ 33.852770] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 33.864446] batman_adv: Cannot find parent device executing program [ 33.927879] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 33.937854] batman_adv: Cannot find parent device executing program [ 33.997119] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 34.007440] batman_adv: Cannot find parent device executing program [ 34.068340] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 34.078327] batman_adv: Cannot find parent device executing program executing program [ 34.139083] batman_adv: Cannot find parent device [ 34.182440] batman_adv: Cannot find parent device executing program [ 34.236562] batman_adv: Cannot find parent device executing program [ 34.293699] batman_adv: Cannot find parent device executing program [ 34.352683] batman_adv: Cannot find parent device executing program executing program [ 34.409246] batman_adv: Cannot find parent device [ 34.454112] batman_adv: Cannot find parent device executing program [ 34.506552] batman_adv: Cannot find parent device executing program [ 34.557799] batman_adv: Cannot find parent device executing program executing program [ 34.611201] batman_adv: Cannot find parent device [ 34.651301] batman_adv: Cannot find parent device executing program [ 34.718201] batman_adv: Cannot find parent device executing program [ 34.766354] batman_adv: Cannot find parent device executing program [ 34.823223] batman_adv: Cannot find parent device executing program [ 34.874762] batman_adv: Cannot find parent device executing program [ 34.921927] batman_adv: Cannot find parent device executing program [ 34.979312] batman_adv: Cannot find parent device executing program executing program [ 35.033893] batman_adv: Cannot find parent device [ 35.071233] batman_adv: Cannot find parent device executing program executing program [ 35.132180] batman_adv: Cannot find parent device [ 35.174725] batman_adv: Cannot find parent device executing program [ 35.241805] batman_adv: Cannot find parent device executing program [ 35.298300] batman_adv: Cannot find parent device executing program executing program [ 35.357604] batman_adv: Cannot find parent device [ 35.391443] batman_adv: Cannot find parent device executing program [ 35.459008] batman_adv: Cannot find parent device executing program [ 35.513720] batman_adv: Cannot find parent device executing program [ 35.562694] batman_adv: Cannot find parent device executing program [ 35.619373] batman_adv: Cannot find parent device executing program [ 35.674687] batman_adv: Cannot find parent device executing program [ 35.729900] batman_adv: Cannot find parent device executing program [ 35.798414] batman_adv: Cannot find parent device executing program executing program [ 35.851877] batman_adv: Cannot find parent device [ 35.885207] batman_adv: Cannot find parent device executing program [ 35.947794] batman_adv: Cannot find parent device executing program [ 36.001536] batman_adv: Cannot find parent device executing program executing program [ 36.067786] batman_adv: Cannot find parent device [ 36.112713] batman_adv: Cannot find parent device executing program [ 36.163836] batman_adv: Cannot find parent device executing program [ 36.228127] batman_adv: Cannot find parent device executing program [ 36.283479] batman_adv: Cannot find parent device executing program [ 36.337532] batman_adv: Cannot find parent device executing program [ 36.393653] batman_adv: Cannot find parent device executing program [ 36.445894] batman_adv: Cannot find parent device executing program executing program [ 36.507483] batman_adv: Cannot find parent device [ 36.552759] batman_adv: Cannot find parent device executing program [ 36.609393] batman_adv: Cannot find parent device executing program [ 36.662036] batman_adv: Cannot find parent device executing program [ 36.717342] batman_adv: Cannot find parent device executing program [ 36.763905] batman_adv: Cannot find parent device executing program [ 36.821765] batman_adv: Cannot find parent device executing program [ 36.887665] batman_adv: Cannot find parent device executing program executing program [ 36.941550] batman_adv: Cannot find parent device executing program [ 36.988770] batman_adv: Cannot find parent device [ 37.031417] batman_adv: Cannot find parent device executing program [ 37.094958] batman_adv: Cannot find parent device executing program [ 37.157545] batman_adv: Cannot find parent device executing program [ 37.211500] batman_adv: Cannot find parent device executing program executing program [ 37.267509] batman_adv: Cannot find parent device executing program [ 37.309332] batman_adv: Cannot find parent device [ 37.352381] batman_adv: Cannot find parent device executing program [ 37.420918] batman_adv: Cannot find parent device executing program [ 37.481753] batman_adv: Cannot find parent device executing program [ 37.529438] batman_adv: Cannot find parent device executing program [ 37.580525] batman_adv: Cannot find parent device executing program executing program [ 37.630265] batman_adv: Cannot find parent device [ 37.668704] batman_adv: Cannot find parent device executing program [ 37.736716] batman_adv: Cannot find parent device executing program executing program [ 37.790264] batman_adv: Cannot find parent device [ 37.829999] batman_adv: Cannot find parent device executing program executing program [ 37.889728] batman_adv: Cannot find parent device [ 37.928842] batman_adv: Cannot find parent device executing program [ 37.982844] batman_adv: Cannot find parent device executing program executing program [ 38.037608] batman_adv: Cannot find parent device [ 38.079317] batman_adv: Cannot find parent device executing program executing program [ 38.138685] batman_adv: Cannot find parent device [ 38.179017] batman_adv: Cannot find parent device executing program [ 38.234827] batman_adv: Cannot find parent device executing program executing program [ 38.296307] batman_adv: Cannot find parent device [ 38.328704] batman_adv: Cannot find parent device executing program [ 38.386936] batman_adv: Cannot find parent device executing program [ 38.450198] batman_adv: Cannot find parent device executing program [ 38.503785] net_ratelimit: 82 callbacks suppressed [ 38.503787] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 38.518923] batman_adv: Cannot find parent device executing program