Warning: Permanently added '10.128.0.158' (ECDSA) to the list of known hosts. [ 51.411397] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 51.540721] audit: type=1400 audit(1582735613.038:36): avc: denied { map } for pid=7761 comm="syz-executor699" path="/root/syz-executor699235954" 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 [ 51.567957] ip_tables: iptables: counters copy to user failed while replacing table executing program [ 51.604226] audit: type=1400 audit(1582735613.098:37): avc: denied { create } for pid=7762 comm="syz-executor699" 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 [ 51.632473] audit: type=1400 audit(1582735613.098:38): avc: denied { write } for pid=7762 comm="syz-executor699" 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 [ 51.654827] ip_tables: iptables: counters copy to user failed while replacing table [ 51.682934] [ 51.684637] ====================================================== [ 51.691038] WARNING: possible circular locking dependency detected [ 51.697359] 4.14.171-syzkaller #0 Not tainted [ 51.701864] ------------------------------------------------------ [ 51.708189] syz-executor699/7770 is trying to acquire lock: [ 51.713946] (&table[i].mutex){+.+.}, at: [] nf_tables_netdev_event+0x10d/0x4d0 [ 51.722993] [ 51.722993] but task is already holding lock: [ 51.728994] (rtnl_mutex){+.+.}, at: [] rtnetlink_rcv_msg+0x31d/0xb10 [ 51.737184] [ 51.737184] which lock already depends on the new lock. [ 51.737184] [ 51.745509] [ 51.745509] the existing dependency chain (in reverse order) is: [ 51.753137] [ 51.753137] -> #2 (rtnl_mutex){+.+.}: [ 51.758450] __mutex_lock+0xe8/0x1470 [ 51.762787] unregister_netdevice_notifier+0x5e/0x2b0 [ 51.768545] tee_tg_destroy+0x5c/0xb0 [ 51.772881] cleanup_entry+0x169/0x220 [ 51.777309] __do_replace+0x38d/0x570 [ 51.781677] do_ipt_set_ctl+0x255/0x39d [ 51.786196] nf_setsockopt+0x5f/0xb0 [ 51.790454] ip_setsockopt+0x94/0xb0 [ 51.794918] udp_setsockopt+0x45/0x80 [ 51.799252] SyS_setsockopt+0x110/0x1e0 [ 51.803761] do_syscall_64+0x1d5/0x640 [ 51.808180] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 51.813892] [ 51.813892] -> #1 (&xt[i].mutex){+.+.}: [ 51.819369] __mutex_lock+0xe8/0x1470 [ 51.823708] xt_find_revision+0x89/0x200 [ 51.828301] nfnl_compat_get+0x1f7/0x8a0 [ 51.832899] nfnetlink_rcv_msg+0xa08/0xc00 [ 51.837669] netlink_rcv_skb+0x127/0x370 [ 51.842394] nfnetlink_rcv+0x1ab/0x1650 [ 51.846997] netlink_unicast+0x437/0x620 [ 51.851595] netlink_sendmsg+0x733/0xbe0 [ 51.856189] sock_sendmsg+0xc5/0x100 [ 51.860614] ___sys_sendmsg+0x70a/0x840 [ 51.865157] __sys_sendmsg+0xa3/0x120 [ 51.869526] SyS_sendmsg+0x27/0x40 [ 51.873615] do_syscall_64+0x1d5/0x640 [ 51.878070] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 51.883960] [ 51.883960] -> #0 (&table[i].mutex){+.+.}: [ 51.889712] lock_acquire+0x170/0x3f0 [ 51.894065] __mutex_lock+0xe8/0x1470 [ 51.898418] nf_tables_netdev_event+0x10d/0x4d0 [ 51.903711] notifier_call_chain+0x107/0x1a0 [ 51.908660] rollback_registered_many+0x694/0xa70 [ 51.914039] rollback_registered+0xd6/0x180 [ 51.918925] unregister_netdevice_queue+0x1a1/0x220 [ 51.924474] veth_newlink+0x53e/0x8a0 [ 51.928843] rtnl_newlink+0xecb/0x1720 [ 51.933266] rtnetlink_rcv_msg+0x3be/0xb10 [ 51.938036] netlink_rcv_skb+0x127/0x370 [ 51.942633] netlink_unicast+0x437/0x620 [ 51.947231] netlink_sendmsg+0x733/0xbe0 [ 51.951830] sock_sendmsg+0xc5/0x100 [ 51.956071] ___sys_sendmsg+0x70a/0x840 [ 51.960578] __sys_sendmsg+0xa3/0x120 [ 51.964919] SyS_sendmsg+0x27/0x40 [ 51.969105] do_syscall_64+0x1d5/0x640 [ 51.973550] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 51.979267] [ 51.979267] other info that might help us debug this: [ 51.979267] [ 51.987417] Chain exists of: [ 51.987417] &table[i].mutex --> &xt[i].mutex --> rtnl_mutex [ 51.987417] [ 51.997733] Possible unsafe locking scenario: [ 51.997733] [ 52.003830] CPU0 CPU1 [ 52.008644] ---- ---- [ 52.014970] lock(rtnl_mutex); [ 52.018255] lock(&xt[i].mutex); [ 52.024223] lock(rtnl_mutex); [ 52.030030] lock(&table[i].mutex); [ 52.033773] [ 52.033773] *** DEADLOCK *** [ 52.033773] [ 52.039840] 1 lock held by syz-executor699/7770: [ 52.044606] #0: (rtnl_mutex){+.+.}, at: [] rtnetlink_rcv_msg+0x31d/0xb10 [ 52.053541] [ 52.053541] stack backtrace: [ 52.058049] CPU: 1 PID: 7770 Comm: syz-executor699 Not tainted 4.14.171-syzkaller #0 [ 52.065923] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 52.075309] Call Trace: [ 52.077894] dump_stack+0x13e/0x194 [ 52.081541] print_circular_bug.isra.0.cold+0x1c4/0x282 [ 52.086940] __lock_acquire+0x2cb3/0x4620 [ 52.091087] ? unwind_next_frame+0xbc6/0x17a0 [ 52.095700] ? trace_hardirqs_on+0x10/0x10 [ 52.099959] ? bpf_prog_kallsyms_find+0x36/0x260 [ 52.104794] ? is_bpf_text_address+0xa3/0x120 [ 52.109308] ? save_trace+0x290/0x290 [ 52.113228] lock_acquire+0x170/0x3f0 [ 52.117045] ? nf_tables_netdev_event+0x10d/0x4d0 [ 52.121890] ? nf_tables_netdev_event+0x10d/0x4d0 [ 52.126764] __mutex_lock+0xe8/0x1470 [ 52.130580] ? nf_tables_netdev_event+0x10d/0x4d0 [ 52.135418] ? find_held_lock+0x2d/0x110 [ 52.139559] ? nf_tables_netdev_event+0x10d/0x4d0 [ 52.144430] ? mutex_trylock+0x1a0/0x1a0 [ 52.148489] ? trace_hardirqs_on+0x10/0x10 [ 52.152726] ? find_held_lock+0x2d/0x110 [ 52.156794] ? save_trace+0x290/0x290 [ 52.160611] ? nf_tables_netdev_event+0x10d/0x4d0 [ 52.165472] nf_tables_netdev_event+0x10d/0x4d0 [ 52.170157] ? nf_tables_netdev_init_net+0x210/0x210 [ 52.175275] ? mirred_device_event+0x143/0x180 [ 52.179953] ? __local_bh_enable_ip+0x94/0x190 [ 52.184535] ? mirred_device_event+0x50/0x180 [ 52.189124] notifier_call_chain+0x107/0x1a0 [ 52.193556] rollback_registered_many+0x694/0xa70 [ 52.198418] ? mark_held_locks+0xa6/0xf0 [ 52.202488] ? netdev_info+0xf0/0xf0 [ 52.206261] ? trace_hardirqs_on_caller+0x3f6/0x590 [ 52.211456] rollback_registered+0xd6/0x180 [ 52.215829] ? rollback_registered_many+0xa70/0xa70 [ 52.220947] unregister_netdevice_queue+0x1a1/0x220 [ 52.226257] veth_newlink+0x53e/0x8a0 [ 52.230075] ? veth_poll_controller+0x10/0x10 [ 52.234578] ? rtnl_create_link+0x129/0x880 [ 52.238913] rtnl_newlink+0xecb/0x1720 [ 52.242824] ? veth_poll_controller+0x10/0x10 [ 52.247332] ? trace_hardirqs_on+0x10/0x10 [ 52.251572] ? rtnl_link_unregister+0x1f0/0x1f0 [ 52.256269] ? lock_acquire+0x170/0x3f0 [ 52.260275] ? lock_acquire+0x170/0x3f0 [ 52.264268] ? rtnetlink_rcv_msg+0x31d/0xb10 [ 52.268681] ? __lock_is_held+0xad/0x140 [ 52.272742] ? lock_downgrade+0x6e0/0x6e0 [ 52.276896] ? rtnl_link_unregister+0x1f0/0x1f0 [ 52.281593] rtnetlink_rcv_msg+0x3be/0xb10 [ 52.285830] ? rtnl_bridge_getlink+0x7a0/0x7a0 [ 52.290413] ? save_trace+0x290/0x290 [ 52.294215] ? save_trace+0x290/0x290 [ 52.298029] netlink_rcv_skb+0x127/0x370 [ 52.302117] ? rtnl_bridge_getlink+0x7a0/0x7a0 [ 52.306716] ? netlink_ack+0x960/0x960 [ 52.310601] netlink_unicast+0x437/0x620 [ 52.314663] ? netlink_attachskb+0x600/0x600 [ 52.319089] netlink_sendmsg+0x733/0xbe0 [ 52.323158] ? netlink_unicast+0x620/0x620 [ 52.327400] ? SYSC_sendto+0x2b0/0x2b0 [ 52.331301] ? security_socket_sendmsg+0x83/0xb0 [ 52.336072] ? netlink_unicast+0x620/0x620 [ 52.340302] sock_sendmsg+0xc5/0x100 [ 52.344012] ___sys_sendmsg+0x70a/0x840 [ 52.347998] ? copy_msghdr_from_user+0x380/0x380 [ 52.353034] ? trace_hardirqs_on+0x10/0x10 [ 52.357289] ? save_trace+0x290/0x290 [ 52.361084] ? selinux_file_alloc_security+0xaf/0x190 [ 52.366280] ? find_held_lock+0x2d/0x110 [ 52.370339] ? __fd_install+0x1ec/0x5c0 [ 52.374304] ? __lock_is_held+0xad/0x140 [ 52.378367] ? lock_downgrade+0x6e0/0x6e0 [ 52.382524] ? __fget_light+0x16a/0x1f0 [ 52.386489] ? sockfd_lookup_light+0xb2/0x160 [ 52.390982] __sys_sendmsg+0xa3/0x120 [ 52.394772] ? SyS_shutdown+0x160/0x160 [ 52.398737] ? move_addr_to_kernel+0x60/0x60 [ 52.403162] ? __do_page_fault+0x35b/0xb40 [ 52.407388] SyS_sendmsg+0x27/0x40 [ 52.410913] ? __sys_sendmsg+0x120/0x120 [ 52.414996] do_syscall_64+0x1d5/0x640 [ 52.418873] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 52.424077] RIP: 0033:0x441d79 [ 52.427266] RSP: 002b:00007ffcd8706bb8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 52.434976] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441d79 [ 52.442262] RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000004 [ 52.449562] RBP: 000000000000c957 R08: 00000000004002c8 R09: 00000000004002c8 [ 52.456932] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000402ba0 [ 52.464218] R13: 0000000000402c30 R14: 0000000000000000 R15: 0000000000000000 executing program executing program [ 52.522978] ip_tables: iptables: counters copy to user failed while replacing table executing program [ 52.576005] ip_tables: iptables: counters copy to user failed while replacing table [ 52.635318] ip_tables: iptables: counters copy to user failed while replacing table executing program [ 52.739777] ip_tables: iptables: counters copy to user failed while replacing table executing program [ 52.855412] ip_tables: iptables: counters copy to user failed while replacing table executing program [ 52.972478] ip_tables: iptables: counters copy to user failed while replacing table executing program [ 53.111041] ip_tables: iptables: counters copy to user failed while replacing table executing program [ 53.276493] 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 [ 56.573309] net_ratelimit: 26 callbacks suppressed [ 56.573312] ip_tables: iptables: counters copy to user failed while replacing table executing program [ 56.834319] ip_tables: iptables: counters copy to user failed while replacing table executing program [ 56.992571] ip_tables: iptables: counters copy to user failed while replacing table executing program [ 57.134505] ip_tables: iptables: counters copy to user failed while replacing table executing program [ 57.262923] ip_tables: iptables: counters copy to user failed while replacing table executing program [ 57.413665] ip_tables: iptables: counters copy to user failed while replacing table executing program [ 57.554834] ip_tables: iptables: counters copy to user failed while replacing table executing program [ 57.664288] ip_tables: iptables: counters copy to user failed while replacing table executing program [ 57.796729] ip_tables: iptables: counters copy to user failed while replacing table executing program [ 57.906392] 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