[ 33.583630] audit: type=1800 audit(1579180671.845:33): pid=7167 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 [ 33.611100] audit: type=1800 audit(1579180671.845:34): pid=7167 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.446403] random: sshd: uninitialized urandom read (32 bytes read) [ 37.742550] audit: type=1400 audit(1579180676.005:35): avc: denied { map } for pid=7343 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.795344] random: sshd: uninitialized urandom read (32 bytes read) [ 38.518677] random: sshd: uninitialized urandom read (32 bytes read) [ 38.724243] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.1.11' (ECDSA) to the list of known hosts. [ 44.332533] random: sshd: uninitialized urandom read (32 bytes read) [ 44.455644] audit: type=1400 audit(1579180682.715:36): avc: denied { map } for pid=7355 comm="syz-executor243" path="/root/syz-executor243239082" dev="sda1" ino=16483 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.701021] IPVS: ftp: loaded support on port[0] = 21 executing program [ 46.735409] ip_tables: iptables: counters copy to user failed while replacing table [ 46.744115] netlink: 20 bytes leftover after parsing attributes in process `syz-executor243'. [ 46.757062] audit: type=1400 audit(1579180685.015:37): avc: denied { create } for pid=7359 comm="syz-executor243" 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 executing program [ 46.781467] audit: type=1400 audit(1579180685.015:38): avc: denied { write } for pid=7359 comm="syz-executor243" 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 [ 46.809698] ip_tables: iptables: counters copy to user failed while replacing table [ 46.817889] netlink: 20 bytes leftover after parsing attributes in process `syz-executor243'. [ 46.830804] [ 46.832442] ====================================================== [ 46.838745] WARNING: possible circular locking dependency detected [ 46.845102] 4.14.165-syzkaller #0 Not tainted [ 46.849589] ------------------------------------------------------ [ 46.855902] syz-executor243/7361 is trying to acquire lock: [ 46.861598] (&table[i].mutex){+.+.}, at: [] nfnl_lock+0x24/0x30 [ 46.869329] [ 46.869329] but task is already holding lock: [ 46.875489] (rtnl_mutex){+.+.}, at: [] rtnetlink_rcv_msg+0x339/0xb70 [ 46.884164] [ 46.884164] which lock already depends on the new lock. [ 46.884164] [ 46.892595] [ 46.892595] the existing dependency chain (in reverse order) is: [ 46.900205] [ 46.900205] -> #2 (rtnl_mutex){+.+.}: [ 46.905559] lock_acquire+0x16f/0x430 [ 46.909883] __mutex_lock+0xe8/0x1470 [ 46.914196] mutex_lock_nested+0x16/0x20 [ 46.918872] rtnl_lock+0x17/0x20 [ 46.922755] unregister_netdevice_notifier+0x5f/0x2c0 [ 46.928455] tee_tg_destroy+0x61/0xc0 [ 46.932836] cleanup_entry+0x17d/0x230 [ 46.937393] __do_replace+0x3c5/0x5b0 [ 46.941731] do_ipt_set_ctl+0x296/0x3ee [ 46.946234] nf_setsockopt+0x67/0xc0 [ 46.950465] ip_setsockopt+0x9b/0xb0 [ 46.954698] tcp_setsockopt+0x84/0xd0 [ 46.959312] sock_common_setsockopt+0x94/0xd0 [ 46.964317] SyS_setsockopt+0x13c/0x210 [ 46.968800] do_syscall_64+0x1e8/0x640 [ 46.973217] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 46.978913] [ 46.978913] -> #1 (&xt[i].mutex){+.+.}: [ 46.984377] lock_acquire+0x16f/0x430 [ 46.988692] __mutex_lock+0xe8/0x1470 [ 46.993000] mutex_lock_nested+0x16/0x20 [ 46.997620] xt_find_revision+0x82/0x200 [ 47.002269] nfnl_compat_get+0x229/0x950 [ 47.006913] nfnetlink_rcv_msg+0xa08/0xc00 [ 47.011668] netlink_rcv_skb+0x14f/0x3c0 [ 47.016315] nfnetlink_rcv+0x1ab/0x1650 [ 47.020811] netlink_unicast+0x44d/0x650 [ 47.025425] netlink_sendmsg+0x7c4/0xc60 [ 47.029992] sock_sendmsg+0xce/0x110 [ 47.034385] ___sys_sendmsg+0x70a/0x840 [ 47.038868] __sys_sendmsg+0xb9/0x140 [ 47.043261] SyS_sendmsg+0x2d/0x50 [ 47.047455] do_syscall_64+0x1e8/0x640 [ 47.051948] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 47.057839] [ 47.057839] -> #0 (&table[i].mutex){+.+.}: [ 47.063555] __lock_acquire+0x2cb3/0x4620 [ 47.068212] lock_acquire+0x16f/0x430 [ 47.072662] __mutex_lock+0xe8/0x1470 [ 47.077009] mutex_lock_nested+0x16/0x20 [ 47.081599] nfnl_lock+0x24/0x30 [ 47.085499] nf_tables_netdev_event+0x13f/0x580 [ 47.090706] notifier_call_chain+0x111/0x1b0 [ 47.095645] raw_notifier_call_chain+0x2e/0x40 [ 47.100741] call_netdevice_notifiers_info+0x56/0x70 [ 47.106365] rollback_registered_many+0x70d/0xb60 [ 47.111722] rollback_registered+0xdd/0x180 [ 47.116552] unregister_netdevice_queue+0x1ae/0x230 [ 47.122090] veth_newlink+0x58e/0x900 [ 47.126411] rtnl_newlink+0xecb/0x1700 [ 47.130813] rtnetlink_rcv_msg+0x3da/0xb70 [ 47.135613] netlink_rcv_skb+0x14f/0x3c0 [ 47.140263] rtnetlink_rcv+0x1d/0x30 [ 47.144594] netlink_unicast+0x44d/0x650 [ 47.149166] netlink_sendmsg+0x7c4/0xc60 [ 47.153760] sock_sendmsg+0xce/0x110 [ 47.157997] ___sys_sendmsg+0x70a/0x840 [ 47.162484] __sys_sendmsg+0xb9/0x140 [ 47.166800] SyS_sendmsg+0x2d/0x50 [ 47.170847] do_syscall_64+0x1e8/0x640 [ 47.175242] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 47.180937] [ 47.180937] other info that might help us debug this: [ 47.180937] [ 47.189075] Chain exists of: [ 47.189075] &table[i].mutex --> &xt[i].mutex --> rtnl_mutex [ 47.189075] [ 47.199300] Possible unsafe locking scenario: [ 47.199300] [ 47.205447] CPU0 CPU1 [ 47.210207] ---- ---- [ 47.214855] lock(rtnl_mutex); [ 47.218131] lock(&xt[i].mutex); [ 47.224087] lock(rtnl_mutex); [ 47.229873] lock(&table[i].mutex); [ 47.233573] [ 47.233573] *** DEADLOCK *** [ 47.233573] [ 47.239614] 1 lock held by syz-executor243/7361: [ 47.244355] #0: (rtnl_mutex){+.+.}, at: [] rtnetlink_rcv_msg+0x339/0xb70 [ 47.252941] [ 47.252941] stack backtrace: [ 47.257429] CPU: 0 PID: 7361 Comm: syz-executor243 Not tainted 4.14.165-syzkaller #0 [ 47.265300] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 47.274699] Call Trace: [ 47.277280] dump_stack+0x142/0x197 [ 47.281017] print_circular_bug.isra.0.cold+0x1cc/0x28f [ 47.286411] __lock_acquire+0x2cb3/0x4620 [ 47.290559] ? trace_hardirqs_on+0x10/0x10 [ 47.294802] ? bpf_prog_kallsyms_find+0x39/0x280 [ 47.299562] ? is_bpf_text_address+0xa6/0x120 [ 47.304177] lock_acquire+0x16f/0x430 [ 47.307974] ? nfnl_lock+0x24/0x30 [ 47.311516] ? nfnl_lock+0x24/0x30 [ 47.315157] __mutex_lock+0xe8/0x1470 [ 47.318957] ? nfnl_lock+0x24/0x30 [ 47.322488] ? __lock_acquire+0x2298/0x4620 [ 47.326813] ? debug_object_active_state+0x23c/0x370 [ 47.331948] ? nfnl_lock+0x24/0x30 [ 47.335489] ? mutex_trylock+0x1c0/0x1c0 [ 47.339543] ? trace_hardirqs_on+0x10/0x10 [ 47.343816] ? dropmon_net_event+0x210/0x440 [ 47.348253] ? save_trace+0x290/0x290 [ 47.352059] mutex_lock_nested+0x16/0x20 [ 47.356107] ? mutex_lock_nested+0x16/0x20 [ 47.360331] nfnl_lock+0x24/0x30 [ 47.363687] nf_tables_netdev_event+0x13f/0x580 [ 47.368363] ? mark_held_locks+0xb1/0x100 [ 47.372705] ? __local_bh_enable_ip+0x99/0x1a0 [ 47.377292] ? nf_tables_netdev_init_net+0x220/0x220 [ 47.382495] ? mirred_device_event+0x152/0x190 [ 47.387079] ? _raw_spin_unlock_bh+0x31/0x40 [ 47.391490] ? mirred_device_event+0x57/0x190 [ 47.396044] ? nfqnl_rcv_dev_event+0x23/0x440 [ 47.400541] notifier_call_chain+0x111/0x1b0 [ 47.404952] raw_notifier_call_chain+0x2e/0x40 [ 47.409528] call_netdevice_notifiers_info+0x56/0x70 [ 47.414632] rollback_registered_many+0x70d/0xb60 [ 47.419523] ? netdev_info+0xf0/0xf0 [ 47.423235] ? cpumask_next+0x35/0x40 [ 47.427027] rollback_registered+0xdd/0x180 [ 47.431340] ? rollback_registered_many+0xb60/0xb60 [ 47.436465] unregister_netdevice_queue+0x1ae/0x230 [ 47.441475] veth_newlink+0x58e/0x900 [ 47.445259] ? veth_poll_controller+0x10/0x10 [ 47.449770] ? rcu_lockdep_current_cpu_online+0xf2/0x140 [ 47.455216] ? __kmalloc_node+0x3d/0x80 [ 47.459195] ? rcu_read_lock_sched_held+0x110/0x130 [ 47.464203] ? kmem_cache_alloc_node_trace+0x379/0x770 [ 47.469478] ? __hw_addr_add_ex+0x1c0/0x280 [ 47.473852] ? kasan_unpoison_shadow+0x35/0x50 [ 47.478437] ? kasan_kmalloc+0xce/0xf0 [ 47.482319] ? __kmalloc_node+0x51/0x80 [ 47.486322] ? kvmalloc_node+0x56/0xe0 [ 47.490209] ? alloc_netdev_mqs+0x918/0xbc0 [ 47.494520] ? rtnl_create_link+0x12c/0x850 [ 47.498843] ? __netlink_ns_capable+0xe2/0x130 [ 47.503433] rtnl_newlink+0xecb/0x1700 [ 47.507362] ? veth_poll_controller+0x10/0x10 [ 47.511869] ? rtnl_link_unregister+0x200/0x200 [ 47.516539] ? avc_has_perm_noaudit+0x2b2/0x420 [ 47.521200] ? lock_acquire+0x16f/0x430 [ 47.525519] ? rtnetlink_rcv_msg+0x339/0xb70 [ 47.529955] ? rtnl_link_unregister+0x200/0x200 [ 47.534623] rtnetlink_rcv_msg+0x3da/0xb70 [ 47.538849] ? rtnl_bridge_getlink+0x7a0/0x7a0 [ 47.543457] ? netlink_deliver_tap+0x93/0x8f0 [ 47.547956] netlink_rcv_skb+0x14f/0x3c0 [ 47.552016] ? rtnl_bridge_getlink+0x7a0/0x7a0 [ 47.556596] ? lock_downgrade+0x740/0x740 [ 47.560735] ? netlink_ack+0x9a0/0x9a0 [ 47.564614] ? netlink_deliver_tap+0xba/0x8f0 [ 47.569115] rtnetlink_rcv+0x1d/0x30 [ 47.572819] netlink_unicast+0x44d/0x650 [ 47.576865] ? netlink_attachskb+0x6a0/0x6a0 [ 47.581328] ? security_netlink_send+0x81/0xb0 [ 47.585896] netlink_sendmsg+0x7c4/0xc60 [ 47.589962] ? netlink_unicast+0x650/0x650 [ 47.594191] ? security_socket_sendmsg+0x89/0xb0 [ 47.599295] ? netlink_unicast+0x650/0x650 [ 47.603640] sock_sendmsg+0xce/0x110 [ 47.607356] ___sys_sendmsg+0x70a/0x840 [ 47.611318] ? copy_msghdr_from_user+0x3f0/0x3f0 [ 47.616068] ? save_trace+0x290/0x290 [ 47.619858] ? selinux_file_alloc_security+0xb4/0x190 [ 47.625052] ? __fd_install+0x1fb/0x5f0 [ 47.629041] ? find_held_lock+0x35/0x130 [ 47.633117] ? __lock_is_held+0xb6/0x140 [ 47.637183] ? lock_downgrade+0x740/0x740 [ 47.641349] ? __fd_install+0x236/0x5f0 [ 47.645327] ? errseq_sample+0x4d/0x60 [ 47.649240] ? __fget_light+0x172/0x1f0 [ 47.653216] ? __fdget+0x1b/0x20 [ 47.656588] ? sockfd_lookup_light+0xb4/0x160 [ 47.661077] __sys_sendmsg+0xb9/0x140 [ 47.664959] ? SyS_shutdown+0x170/0x170 [ 47.668930] ? fd_install+0x4d/0x60 [ 47.672661] ? SyS_recv+0x40/0x40 [ 47.676130] SyS_sendmsg+0x2d/0x50 [ 47.679669] ? __sys_sendmsg+0x140/0x140 [ 47.683731] do_syscall_64+0x1e8/0x640 [ 47.687618] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 47.692463] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 47.697655] RIP: 0033:0x4431f9 [ 47.700973] RSP: 002b:00007fff194f5b88 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 47.708666] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004431f9 [ 47.715933] RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000004 [ 47.723300] RBP: 000000000000b68c R08: 00007fff194f5d38 R09: 00007fff194f5d38 [ 47.730576] R10: 00007fff194f5d38 R11: 0000000000000246 R12: 00000000006cedc8 executing program [ 47.737895] R13: 00000000006cf440 R14: 0000000000000000 R15: 0000000000000000 executing program [ 47.784902] ip_tables: iptables: counters copy to user failed while replacing table [ 47.793008] netlink: 20 bytes leftover after parsing attributes in process `syz-executor243'. executing program [ 47.844493] ip_tables: iptables: counters copy to user failed while replacing table [ 47.852575] netlink: 20 bytes leftover after parsing attributes in process `syz-executor243'. executing program [ 47.905636] ip_tables: iptables: counters copy to user failed while replacing table [ 47.913910] netlink: 20 bytes leftover after parsing attributes in process `syz-executor243'. [ 47.965400] ip_tables: iptables: counters copy to user failed while replacing table [ 47.973462] netlink: 20 bytes leftover after parsing attributes in process `syz-executor243'. executing program [ 48.035394] ip_tables: iptables: counters copy to user failed while replacing table [ 48.043466] netlink: 20 bytes leftover after parsing attributes in process `syz-executor243'. executing program [ 48.105413] ip_tables: iptables: counters copy to user failed while replacing table [ 48.113721] netlink: 20 bytes leftover after parsing attributes in process `syz-executor243'. executing program executing program [ 48.175396] ip_tables: iptables: counters copy to user failed while replacing table [ 48.183618] netlink: 20 bytes leftover after parsing attributes in process `syz-executor243'. executing program [ 48.224429] ip_tables: iptables: counters copy to user failed while replacing table [ 48.232554] netlink: 20 bytes leftover after parsing attributes in process `syz-executor243'. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 51.794856] net_ratelimit: 78 callbacks suppressed [ 51.794859] ip_tables: iptables: counters copy to user failed while replacing table [ 51.808131] nla_parse: 78 callbacks suppressed [ 51.808134] netlink: 20 bytes leftover after parsing attributes in process `syz-executor243'. executing program [ 51.885091] ip_tables: iptables: counters copy to user failed while replacing table [ 51.893489] netlink: 20 bytes leftover after parsing attributes in process `syz-executor243'. executing program [ 51.955208] ip_tables: iptables: counters copy to user failed while replacing table [ 51.963458] netlink: 20 bytes leftover after parsing attributes in process `syz-executor243'. executing program [ 52.035201] ip_tables: iptables: counters copy to user failed while replacing table [ 52.043361] netlink: 20 bytes leftover after parsing attributes in process `syz-executor243'. executing program executing program [ 52.104787] ip_tables: iptables: counters copy to user failed while replacing table [ 52.112971] netlink: 20 bytes leftover after parsing attributes in process `syz-executor243'. [ 52.164613] ip_tables: iptables: counters copy to user failed while replacing table [ 52.172661] netlink: 20 bytes leftover after parsing attributes in process `syz-executor243'. executing program [ 52.234248] ip_tables: iptables: counters copy to user failed while replacing table [ 52.242386] netlink: 20 bytes leftover after parsing attributes in process `syz-executor243'. executing program executing program [ 52.305209] ip_tables: iptables: counters copy to user failed while replacing table [ 52.313577] netlink: 20 bytes leftover after parsing attributes in process `syz-executor243'. executing program [ 52.355150] ip_tables: iptables: counters copy to user failed while replacing table [ 52.364341] netlink: 20 bytes leftover after parsing attributes in process `syz-executor243'. executing program [ 52.404946] ip_tables: iptables: counters copy to user failed while replacing table [ 52.413106] netlink: 20 bytes leftover after parsing attributes in process `syz-executor243'. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program