[ 35.135030] audit: type=1800 audit(1582785692.277:33): pid=7242 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op="collect_data" cause="failed(directio)" comm="startpar" name="rc.local" dev="sda1" ino=2465 res=0 [ 35.161928] audit: type=1800 audit(1582785692.277:34): pid=7242 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op="collect_data" cause="failed(directio)" comm="startpar" name="rmnologin" dev="sda1" ino=2456 res=0 Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 37.357949] random: sshd: uninitialized urandom read (32 bytes read) [ 37.638330] audit: type=1400 audit(1582785694.777:35): avc: denied { map } for pid=7415 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 [ 37.689739] random: sshd: uninitialized urandom read (32 bytes read) [ 38.430884] random: sshd: uninitialized urandom read (32 bytes read) [ 38.678896] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.244' (ECDSA) to the list of known hosts. [ 44.378270] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 44.492759] audit: type=1400 audit(1582785701.637:36): avc: denied { map } for pid=7427 comm="syz-executor867" path="/root/syz-executor867866049" dev="sda1" ino=16484 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 [ 44.502616] netlink: 20 bytes leftover after parsing attributes in process `syz-executor867'. executing program [ 44.544381] ip_tables: iptables: counters copy to user failed while replacing table [ 44.566051] audit: type=1400 audit(1582785701.707:37): avc: denied { create } for pid=7428 comm="syz-executor867" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_netfilter_socket permissive=1 [ 44.602386] netlink: 20 bytes leftover after parsing attributes in process `syz-executor867'. [ 44.611614] audit: type=1400 audit(1582785701.707:38): avc: denied { write } for pid=7428 comm="syz-executor867" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_netfilter_socket permissive=1 [ 44.683120] [ 44.684800] ====================================================== [ 44.691110] WARNING: possible circular locking dependency detected [ 44.697424] 4.14.171-syzkaller #0 Not tainted [ 44.701916] ------------------------------------------------------ [ 44.708231] syz-executor867/7439 is trying to acquire lock: [ 44.713935] (rtnl_mutex){+.+.}, at: [] unregister_netdevice_notifier+0x5e/0x2b0 [ 44.723051] [ 44.723051] but task is already holding lock: [ 44.729031] (&xt[i].mutex){+.+.}, at: [] xt_find_table_lock+0x35/0x3d0 [ 44.737541] [ 44.737541] which lock already depends on the new lock. [ 44.737541] [ 44.745851] [ 44.745851] the existing dependency chain (in reverse order) is: [ 44.753573] [ 44.753573] -> #2 (&xt[i].mutex){+.+.}: [ 44.759027] __mutex_lock+0xe8/0x1470 [ 44.763342] xt_find_revision+0x89/0x200 [ 44.767967] nfnl_compat_get+0x1f7/0x8a0 [ 44.772537] nfnetlink_rcv_msg+0xa08/0xc00 [ 44.777393] netlink_rcv_skb+0x127/0x370 [ 44.781974] nfnetlink_rcv+0x1ab/0x1650 [ 44.786475] netlink_unicast+0x437/0x620 [ 44.791115] netlink_sendmsg+0x733/0xbe0 [ 44.795740] sock_sendmsg+0xc5/0x100 [ 44.799969] ___sys_sendmsg+0x70a/0x840 [ 44.804452] __sys_sendmsg+0xa3/0x120 [ 44.808876] SyS_sendmsg+0x27/0x40 [ 44.813033] do_syscall_64+0x1d5/0x640 [ 44.817481] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 44.823217] [ 44.823217] -> #1 (&table[i].mutex){+.+.}: [ 44.829049] __mutex_lock+0xe8/0x1470 [ 44.833510] nf_tables_netdev_event+0x10d/0x4d0 [ 44.838700] notifier_call_chain+0x107/0x1a0 [ 44.843621] rollback_registered_many+0x694/0xa70 [ 44.848978] rollback_registered+0xd6/0x180 [ 44.853918] unregister_netdevice_queue+0x1a1/0x220 [ 44.859676] veth_newlink+0x53e/0x8a0 [ 44.864141] rtnl_newlink+0xecb/0x1720 [ 44.868669] rtnetlink_rcv_msg+0x3be/0xb10 [ 44.873469] netlink_rcv_skb+0x127/0x370 [ 44.878146] netlink_unicast+0x437/0x620 [ 44.882709] netlink_sendmsg+0x733/0xbe0 [ 44.887282] sock_sendmsg+0xc5/0x100 [ 44.891501] ___sys_sendmsg+0x70a/0x840 [ 44.896004] __sys_sendmsg+0xa3/0x120 [ 44.900515] SyS_sendmsg+0x27/0x40 [ 44.904684] do_syscall_64+0x1d5/0x640 [ 44.909158] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 44.914853] [ 44.914853] -> #0 (rtnl_mutex){+.+.}: [ 44.920191] lock_acquire+0x170/0x3f0 [ 44.924508] __mutex_lock+0xe8/0x1470 [ 44.928916] unregister_netdevice_notifier+0x5e/0x2b0 [ 44.934861] tee_tg_destroy+0x5c/0xb0 [ 44.939204] cleanup_entry+0x169/0x220 [ 44.943596] __do_replace+0x38d/0x570 [ 44.947965] do_ipt_set_ctl+0x255/0x39d [ 44.952454] nf_setsockopt+0x5f/0xb0 [ 44.956684] ip_setsockopt+0x94/0xb0 [ 44.960959] udp_setsockopt+0x45/0x80 [ 44.965411] SyS_setsockopt+0x110/0x1e0 [ 44.969905] do_syscall_64+0x1d5/0x640 [ 44.974312] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 44.980156] [ 44.980156] other info that might help us debug this: [ 44.980156] [ 44.988395] Chain exists of: [ 44.988395] rtnl_mutex --> &table[i].mutex --> &xt[i].mutex [ 44.988395] [ 44.998722] Possible unsafe locking scenario: [ 44.998722] [ 45.004778] CPU0 CPU1 [ 45.009433] ---- ---- [ 45.014087] lock(&xt[i].mutex); [ 45.017528] lock(&table[i].mutex); [ 45.023794] lock(&xt[i].mutex); [ 45.029765] lock(rtnl_mutex); [ 45.033079] [ 45.033079] *** DEADLOCK *** [ 45.033079] [ 45.039137] 1 lock held by syz-executor867/7439: [ 45.043902] #0: (&xt[i].mutex){+.+.}, at: [] xt_find_table_lock+0x35/0x3d0 [ 45.052658] [ 45.052658] stack backtrace: [ 45.057202] CPU: 0 PID: 7439 Comm: syz-executor867 Not tainted 4.14.171-syzkaller #0 [ 45.065097] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 45.074603] Call Trace: [ 45.077184] dump_stack+0x13e/0x194 [ 45.080848] print_circular_bug.isra.0.cold+0x1c4/0x282 [ 45.086199] __lock_acquire+0x2cb3/0x4620 [ 45.090330] ? is_bpf_text_address+0x7c/0x120 [ 45.094822] ? trace_hardirqs_on+0x10/0x10 [ 45.099043] ? is_bpf_text_address+0xa3/0x120 [ 45.103537] ? kernel_text_address+0x6e/0xe0 [ 45.107936] ? unwind_get_return_address+0x5a/0xa0 [ 45.112846] ? __save_stack_trace+0x7b/0xd0 [ 45.117264] ? save_trace+0x290/0x290 [ 45.121052] lock_acquire+0x170/0x3f0 [ 45.124893] ? unregister_netdevice_notifier+0x5e/0x2b0 [ 45.130236] ? unregister_netdevice_notifier+0x5e/0x2b0 [ 45.135581] __mutex_lock+0xe8/0x1470 [ 45.139362] ? unregister_netdevice_notifier+0x5e/0x2b0 [ 45.144709] ? unregister_netdevice_notifier+0x5e/0x2b0 [ 45.150060] ? mutex_trylock+0x1a0/0x1a0 [ 45.154099] ? save_trace+0x290/0x290 [ 45.157879] ? pcpu_chunk_refresh_hint+0x267/0x310 [ 45.162787] ? find_held_lock+0x2d/0x110 [ 45.166882] ? free_percpu+0x233/0x6f0 [ 45.170765] ? unregister_netdevice_notifier+0x5e/0x2b0 [ 45.176125] ? rtnl_lock+0x5/0x20 [ 45.179746] unregister_netdevice_notifier+0x5e/0x2b0 [ 45.184993] ? register_netdevice_notifier+0x4d0/0x4d0 [ 45.190270] ? _raw_spin_unlock_irqrestore+0xa0/0xe0 [ 45.195418] ? free_percpu+0x233/0x6f0 [ 45.199295] tee_tg_destroy+0x5c/0xb0 [ 45.203083] ? tee_tg6+0x160/0x160 [ 45.206642] cleanup_entry+0x169/0x220 [ 45.210661] ? cleanup_match+0x130/0x130 [ 45.214710] __do_replace+0x38d/0x570 [ 45.218509] ? compat_do_ipt_get_ctl+0x750/0x750 [ 45.223246] do_ipt_set_ctl+0x255/0x39d [ 45.227204] ? compat_do_ipt_set_ctl+0x140/0x140 [ 45.231942] ? nf_sockopt_find.constprop.0+0x1ad/0x220 [ 45.237195] nf_setsockopt+0x5f/0xb0 [ 45.240907] ip_setsockopt+0x94/0xb0 [ 45.244599] udp_setsockopt+0x45/0x80 [ 45.248395] SyS_setsockopt+0x110/0x1e0 [ 45.252365] ? SyS_recv+0x40/0x40 [ 45.255814] ? __do_page_fault+0x35b/0xb40 [ 45.260036] ? do_syscall_64+0x4c/0x640 [ 45.263992] ? SyS_recv+0x40/0x40 [ 45.267422] do_syscall_64+0x1d5/0x640 [ 45.271290] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 45.276459] RIP: 0033:0x441329 [ 45.279625] RSP: 002b:00007ffc8852f188 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 [ 45.287311] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441329 [ 45.294572] RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000004 [ 45.301830] RBP: 000000000000adcf R08: 0000000000000001 R09: 00000000004002c8 [ 45.309080] R10: 0000000020000b80 R11: 0000000000000246 R12: 0000000000402150 [ 45.316331] R13: 00000000004021e0 R14: 0000000000000000 R15: 0000000000000000 executing program [ 45.356947] ip_tables: iptables: counters copy to user failed while replacing table [ 45.377105] netlink: 20 bytes leftover after parsing attributes in process `syz-executor867'. executing program [ 45.421480] ip_tables: iptables: counters copy to user failed while replacing table [ 45.442237] netlink: 20 bytes leftover after parsing attributes in process `syz-executor867'. executing program [ 45.501022] ip_tables: iptables: counters copy to user failed while replacing table [ 45.531614] netlink: 20 bytes leftover after parsing attributes in process `syz-executor867'. executing program [ 45.621475] ip_tables: iptables: counters copy to user failed while replacing table [ 45.642317] netlink: 20 bytes leftover after parsing attributes in process `syz-executor867'. executing program [ 45.721117] ip_tables: iptables: counters copy to user failed while replacing table [ 45.754468] netlink: 20 bytes leftover after parsing attributes in process `syz-executor867'. executing program [ 45.831189] ip_tables: iptables: counters copy to user failed while replacing table [ 45.856082] netlink: 20 bytes leftover after parsing attributes in process `syz-executor867'. executing program [ 45.951253] ip_tables: iptables: counters copy to user failed while replacing table [ 45.981666] netlink: 20 bytes leftover after parsing attributes in process `syz-executor867'. executing program [ 46.081727] ip_tables: iptables: counters copy to user failed while replacing table [ 46.115828] netlink: 20 bytes leftover after parsing attributes in process `syz-executor867'. executing program [ 46.212118] ip_tables: iptables: 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 [ 49.551604] net_ratelimit: 29 callbacks suppressed [ 49.551608] ip_tables: iptables: counters copy to user failed while replacing table executing program [ 49.631167] nla_parse: 30 callbacks suppressed [ 49.631171] netlink: 20 bytes leftover after parsing attributes in process `syz-executor867'. executing program [ 49.741105] ip_tables: iptables: counters copy to user failed while replacing table [ 49.778722] netlink: 20 bytes leftover after parsing attributes in process `syz-executor867'. executing program [ 49.882144] ip_tables: iptables: counters copy to user failed while replacing table [ 49.912093] netlink: 20 bytes leftover after parsing attributes in process `syz-executor867'. executing program [ 49.991037] ip_tables: iptables: counters copy to user failed while replacing table [ 50.024939] netlink: 20 bytes leftover after parsing attributes in process `syz-executor867'. executing program [ 50.111027] ip_tables: iptables: counters copy to user failed while replacing table [ 50.157181] netlink: 20 bytes leftover after parsing attributes in process `syz-executor867'. executing program [ 50.262355] ip_tables: iptables: counters copy to user failed while replacing table [ 50.305091] netlink: 20 bytes leftover after parsing attributes in process `syz-executor867'. executing program [ 50.381077] ip_tables: iptables: counters copy to user failed while replacing table [ 50.416869] netlink: 20 bytes leftover after parsing attributes in process `syz-executor867'. executing program [ 50.521744] ip_tables: iptables: counters copy to user failed while replacing table [ 50.555318] netlink: 20 bytes leftover after parsing attributes in process `syz-executor867'. executing program [ 50.641132] ip_tables: iptables: counters copy to user failed while replacing table [ 50.672074] netlink: 20 bytes leftover after parsing attributes in process `syz-executor867'. executing program [ 50.740909] ip_tables: iptables: counters copy to user failed while replacing table [ 50.768777] netlink: 20 bytes leftover after parsing attributes in process `syz-executor867'. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 54.641683] net_ratelimit: 34 callbacks suppressed [ 54.641686] ip_tables: iptables: counters copy to user failed while replacing table