[....] Starting enhanced syslogd: rsyslogd[ 13.042394] audit: type=1400 audit(1517084194.115:5): avc: denied { syslog } for pid=3537 comm="rsyslogd" capability=34 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=capability2 permissive=1 [?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 19.893165] audit: type=1400 audit(1517084200.965:6): avc: denied { map } for pid=3679 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 Warning: Permanently added '10.128.15.230' (ECDSA) to the list of known hosts. net.ipv6.conf.syz0.accept_dad = 0 net.ipv6.conf.syz0.router_solicitations = 0 [ 26.180857] audit: type=1400 audit(1517084207.253:7): avc: denied { map } for pid=3693 comm="syzkaller186433" path="/root/syzkaller186433284" dev="sda1" ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 RTNETLINK answers: Operation not supported RTNETLINK answers: No buffer space available RTNETLINK answers: Operation not supported RTNETLINK answers: Operation not supported [ 26.463506] IPv6: ADDRCONF(NETDEV_UP): bridge0: link is not ready RTNETLINK answers: Operation not supported RTNETLINK answers: Operation not supported RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument executing program [ 26.775516] [ 26.777189] ====================================================== [ 26.783483] WARNING: possible circular locking dependency detected [ 26.789769] 4.15.0-rc9+ #212 Not tainted [ 26.793799] ------------------------------------------------------ [ 26.800084] syzkaller186433/3693 is trying to acquire lock: [ 26.805761] (rtnl_mutex){+.+.}, at: [<000000004b2f2475>] rtnl_lock+0x17/0x20 [ 26.813014] [ 26.813014] but task is already holding lock: [ 26.818952] (sk_lock-AF_INET){+.+.}, at: [<00000000e260200c>] ip_setsockopt+0x8c/0xb0 [ 26.826986] [ 26.826986] which lock already depends on the new lock. [ 26.826986] [ 26.835268] [ 26.835268] the existing dependency chain (in reverse order) is: [ 26.842859] [ 26.842859] -> #1 (sk_lock-AF_INET){+.+.}: [ 26.848547] lock_sock_nested+0xc2/0x110 [ 26.853118] do_ip_setsockopt.isra.12+0x1d9/0x3210 [ 26.858538] ip_setsockopt+0x3a/0xb0 [ 26.862745] udp_setsockopt+0x45/0x80 [ 26.867036] sock_common_setsockopt+0x95/0xd0 [ 26.872021] SyS_setsockopt+0x189/0x360 [ 26.876486] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.881738] [ 26.881738] -> #0 (rtnl_mutex){+.+.}: [ 26.886990] lock_acquire+0x1d5/0x580 [ 26.891287] __mutex_lock+0x16f/0x1a80 [ 26.895662] mutex_lock_nested+0x16/0x20 [ 26.900212] rtnl_lock+0x17/0x20 [ 26.904069] register_netdevice_notifier+0xad/0x860 [ 26.909573] clusterip_tg_check+0xeb9/0x1570 [ 26.914473] xt_check_target+0x22c/0x7d0 [ 26.919029] find_check_entry.isra.8+0x8c8/0xcb0 [ 26.924280] translate_table+0xed1/0x1610 [ 26.928916] do_ipt_set_ctl+0x370/0x5f0 [ 26.933380] nf_setsockopt+0x67/0xc0 [ 26.937586] ip_setsockopt+0xa1/0xb0 [ 26.941796] raw_setsockopt+0xb7/0xd0 [ 26.946095] sock_common_setsockopt+0x95/0xd0 [ 26.951079] SyS_setsockopt+0x189/0x360 [ 26.955554] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.960798] [ 26.960798] other info that might help us debug this: [ 26.960798] [ 26.968906] Possible unsafe locking scenario: [ 26.968906] [ 26.974942] CPU0 CPU1 [ 26.979580] ---- ---- [ 26.984223] lock(sk_lock-AF_INET); [ 26.987904] lock(rtnl_mutex); [ 26.993679] lock(sk_lock-AF_INET); [ 26.999877] lock(rtnl_mutex); [ 27.003124] [ 27.003124] *** DEADLOCK *** [ 27.003124] [ 27.009151] 1 lock held by syzkaller186433/3693: [ 27.013870] #0: (sk_lock-AF_INET){+.+.}, at: [<00000000e260200c>] ip_setsockopt+0x8c/0xb0 [ 27.022351] [ 27.022351] stack backtrace: [ 27.026818] CPU: 1 PID: 3693 Comm: syzkaller186433 Not tainted 4.15.0-rc9+ #212 [ 27.034235] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.043561] Call Trace: [ 27.046120] dump_stack+0x194/0x257 [ 27.049718] ? arch_local_irq_restore+0x53/0x53 [ 27.054361] print_circular_bug.isra.37+0x2cd/0x2dc [ 27.059343] ? save_trace+0xe0/0x2b0 [ 27.063028] __lock_acquire+0x30a8/0x3e00 [ 27.067149] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 27.072311] ? trace_hardirqs_off+0x10/0x10 [ 27.076603] ? noop_count+0x40/0x40 [ 27.080200] ? trace_hardirqs_off+0x10/0x10 [ 27.084504] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 27.089662] ? check_noncircular+0x20/0x20 [ 27.093866] ? check_usage+0x22f/0xb60 [ 27.097725] ? trace_raw_output_xdp_redirect_map_err+0x440/0x440 [ 27.103841] ? check_usage+0x22f/0xb60 [ 27.107715] ? check_noncircular+0x20/0x20 [ 27.111924] ? check_noncircular+0x20/0x20 [ 27.116130] ? find_held_lock+0x35/0x1d0 [ 27.120160] ? __bfs+0x2e0/0x750 [ 27.123513] ? __is_insn_slot_addr+0x1fc/0x330 [ 27.128066] lock_acquire+0x1d5/0x580 [ 27.131837] ? lock_acquire+0x1d5/0x580 [ 27.135782] ? rtnl_lock+0x17/0x20 [ 27.139293] ? lock_release+0xa40/0xa40 [ 27.143235] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 27.149088] ? print_irqtrace_events+0x270/0x270 [ 27.153834] ? idr_get_free_cmn+0x64e/0xfd0 [ 27.158127] ? rcu_note_context_switch+0x710/0x710 [ 27.163026] ? __might_sleep+0x95/0x190 [ 27.166968] ? rtnl_lock+0x17/0x20 [ 27.170481] __mutex_lock+0x16f/0x1a80 [ 27.174335] ? rtnl_lock+0x17/0x20 [ 27.177845] ? rtnl_lock+0x17/0x20 [ 27.181354] ? __lock_acquire+0x664/0x3e00 [ 27.185575] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 27.190647] ? mutex_lock_io_nested+0x1900/0x1900 [ 27.195479] ? trace_hardirqs_on+0xd/0x10 [ 27.199608] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 27.204794] ? save_stack+0xa3/0xd0 [ 27.208401] ? kasan_kmalloc+0xad/0xe0 [ 27.212284] ? __proc_create+0x21a/0x880 [ 27.216315] ? proc_create_data+0x76/0x180 [ 27.220520] ? clusterip_tg_check+0xe4d/0x1570 [ 27.225083] ? rb_insert_color+0x1580/0x1580 [ 27.229462] ? do_ipt_set_ctl+0x370/0x5f0 [ 27.233581] ? ip_setsockopt+0xa1/0xb0 [ 27.237442] ? raw_setsockopt+0xb7/0xd0 [ 27.241404] ? sock_common_setsockopt+0x95/0xd0 [ 27.246054] ? SyS_setsockopt+0x189/0x360 [ 27.250177] ? entry_SYSCALL_64_fastpath+0x29/0xa0 [ 27.255098] ? _find_next_bit+0xee/0x120 [ 27.259129] ? check_noncircular+0x20/0x20 [ 27.263340] ? find_first_zero_bit+0x93/0xe0 [ 27.267739] ? ida_get_new_above+0x421/0x9d0 [ 27.272115] ? print_irqtrace_events+0x270/0x270 [ 27.276839] ? check_noncircular+0x20/0x20 [ 27.281041] ? print_irqtrace_events+0x270/0x270 [ 27.285778] ? ida_simple_get+0x15c/0x220 [ 27.289893] ? lock_downgrade+0x980/0x980 [ 27.294011] ? find_held_lock+0x35/0x1d0 [ 27.298040] mutex_lock_nested+0x16/0x20 [ 27.302067] ? mutex_lock_nested+0x16/0x20 [ 27.306278] rtnl_lock+0x17/0x20 [ 27.309616] register_netdevice_notifier+0xad/0x860 [ 27.314602] ? lock_downgrade+0x980/0x980 [ 27.318718] ? __dev_close_many+0x350/0x350 [ 27.323006] ? ida_simple_get+0x176/0x220 [ 27.327133] ? do_raw_write_trylock+0x190/0x190 [ 27.331769] ? ida_remove+0x3f0/0x3f0 [ 27.335542] ? _raw_write_unlock+0x22/0x30 [ 27.339746] ? proc_register+0x261/0x370 [ 27.343775] ? proc_create_data+0x101/0x180 [ 27.348066] clusterip_tg_check+0xeb9/0x1570 [ 27.352445] ? arp_mangle+0x550/0x550 [ 27.356215] ? xt_find_target+0x150/0x1e0 [ 27.360329] ? lock_downgrade+0x980/0x980 [ 27.364453] ? mutex_unlock+0xd/0x10 [ 27.368134] ? ipv4_hooks_register+0x1fb/0x3e0 [ 27.372684] ? ipv4_conntrack_in+0x90/0x90 [ 27.376887] ? ipv4_conntrack_in+0x90/0x90 [ 27.381092] ? nf_ct_netns_do_get+0x20f/0x340 [ 27.385568] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 27.390380] ? __kernel_text_address+0xd/0x40 [ 27.394843] ? wait_for_completion+0x770/0x770 [ 27.399399] ? nf_ct_netns_get+0x35/0x90 [ 27.403429] ? arp_mangle+0x550/0x550 [ 27.407200] xt_check_target+0x22c/0x7d0 [ 27.411247] ? xt_target_seq_next+0x30/0x30 [ 27.415557] ? mutex_unlock+0xd/0x10 [ 27.419239] ? mutex_unlock+0xd/0x10 [ 27.422922] ? xt_find_target+0x17b/0x1e0 [ 27.427041] find_check_entry.isra.8+0x8c8/0xcb0 [ 27.431768] ? ipt_do_table+0x1860/0x1860 [ 27.435886] ? mark_held_locks+0xaf/0x100 [ 27.440002] ? kfree+0xf0/0x260 [ 27.443250] ? trace_hardirqs_on+0xd/0x10 [ 27.447367] translate_table+0xed1/0x1610 [ 27.451487] ? alloc_counters.isra.11+0x7d0/0x7d0 [ 27.456299] ? kasan_check_write+0x14/0x20 [ 27.460504] ? _copy_from_user+0x99/0x110 [ 27.464620] do_ipt_set_ctl+0x370/0x5f0 [ 27.468572] ? translate_compat_table+0x1b90/0x1b90 [ 27.473557] ? mutex_unlock+0xd/0x10 [ 27.477240] ? nf_sockopt_find.constprop.0+0x1a7/0x220 [ 27.482483] nf_setsockopt+0x67/0xc0 [ 27.486165] ip_setsockopt+0xa1/0xb0 [ 27.489849] raw_setsockopt+0xb7/0xd0 [ 27.493832] sock_common_setsockopt+0x95/0xd0 [ 27.498296] SyS_setsockopt+0x189/0x360 [ 27.502240] ? SyS_recv+0x40/0x40 [ 27.505676] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 27.510490] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.515480] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.520205] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 27.524931] RIP: 0033:0x445bd9 [ 27.528090] RSP: 002b:00007ffcd8cd2ec8 EFLAGS: 00000203 ORIG_RAX: 0000000000000036 [ 27.535769] RAX: ffffffffffffffda RBX: cffdad35d0ad864a RCX: 0000000000445bd9 [ 27.543009] RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000005 [ 27.550249] RBP: 00007ffcd8cd2fd8 R08: 0000000000000328 R09: 0000000000000000 [ 27.557489] R10: 0000000020397cd8 R11: 0000000000000203 R12: 00007ffcd8cd2fd8 [ 27.564730] R13: 00000000004030a0 R14: 0000000000000000 R15: 0000000000000000 [ 27.575004] ipt_CLUSTERIP: ipt_CLUSTERIP