[....] Starting enhanced syslogd: rsyslogd[ 12.633048] audit: type=1400 audit(1517082155.497:5): avc: denied { syslog } for pid=3524 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 file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?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: [ 18.996586] audit: type=1400 audit(1517082161.861:6): avc: denied { map } for pid=3663 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.0.31' (ECDSA) to the list of known hosts. net.ipv6.conf.syz0.accept_dad = 0 net.ipv6.conf.syz0.router_solicitations = 0 [ 26.303455] audit: type=1400 audit(1517082169.168:7): avc: denied { map } for pid=3677 comm="syzkaller066301" path="/root/syzkaller066301328" 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 [ 26.681788] IPv6: ADDRCONF(NETDEV_UP): bridge0: link is not ready RTNETLINK answers: Operation not supported RTNETLINK answers: Operation not supported RTNETLINK answers: Operation not supported RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument executing program [ 27.007581] [ 27.009211] ====================================================== [ 27.015500] WARNING: possible circular locking dependency detected [ 27.021784] 4.15.0-rc9+ #212 Not tainted [ 27.025809] ------------------------------------------------------ [ 27.032091] syzkaller066301/3677 is trying to acquire lock: [ 27.037764] (rtnl_mutex){+.+.}, at: [<0000000097d0011f>] rtnl_lock+0x17/0x20 [ 27.045016] [ 27.045016] but task is already holding lock: [ 27.050955] (sk_lock-AF_INET){+.+.}, at: [<0000000069c67fb3>] ip_setsockopt+0x8c/0xb0 [ 27.058983] [ 27.058983] which lock already depends on the new lock. [ 27.058983] [ 27.067265] [ 27.067265] the existing dependency chain (in reverse order) is: [ 27.074851] [ 27.074851] -> #1 (sk_lock-AF_INET){+.+.}: [ 27.080537] lock_sock_nested+0xc2/0x110 [ 27.085086] do_ip_setsockopt.isra.12+0x1d9/0x3210 [ 27.090505] ip_setsockopt+0x3a/0xb0 [ 27.094705] dccp_setsockopt+0x85/0xd0 [ 27.099083] sock_common_setsockopt+0x95/0xd0 [ 27.104064] SyS_setsockopt+0x189/0x360 [ 27.108529] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 27.113774] [ 27.113774] -> #0 (rtnl_mutex){+.+.}: [ 27.119035] lock_acquire+0x1d5/0x580 [ 27.123326] __mutex_lock+0x16f/0x1a80 [ 27.127699] mutex_lock_nested+0x16/0x20 [ 27.132247] rtnl_lock+0x17/0x20 [ 27.136104] register_netdevice_notifier+0xad/0x860 [ 27.141607] clusterip_tg_check+0xeb9/0x1570 [ 27.146506] xt_check_target+0x22c/0x7d0 [ 27.151056] find_check_entry.isra.8+0x8c8/0xcb0 [ 27.156298] translate_table+0xed1/0x1610 [ 27.160933] do_ipt_set_ctl+0x370/0x5f0 [ 27.165396] nf_setsockopt+0x67/0xc0 [ 27.169600] ip_setsockopt+0xa1/0xb0 [ 27.173804] raw_setsockopt+0xb7/0xd0 [ 27.178094] sock_common_setsockopt+0x95/0xd0 [ 27.183076] SyS_setsockopt+0x189/0x360 [ 27.187539] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 27.192779] [ 27.192779] other info that might help us debug this: [ 27.192779] [ 27.200886] Possible unsafe locking scenario: [ 27.200886] [ 27.206911] CPU0 CPU1 [ 27.211545] ---- ---- [ 27.216176] lock(sk_lock-AF_INET); [ 27.219861] lock(rtnl_mutex); [ 27.225626] lock(sk_lock-AF_INET); [ 27.231823] lock(rtnl_mutex); [ 27.235069] [ 27.235069] *** DEADLOCK *** [ 27.235069] [ 27.241094] 1 lock held by syzkaller066301/3677: [ 27.245811] #0: (sk_lock-AF_INET){+.+.}, at: [<0000000069c67fb3>] ip_setsockopt+0x8c/0xb0 [ 27.254276] [ 27.254276] stack backtrace: [ 27.258745] CPU: 1 PID: 3677 Comm: syzkaller066301 Not tainted 4.15.0-rc9+ #212 [ 27.266157] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.275482] Call Trace: [ 27.278041] dump_stack+0x194/0x257 [ 27.281636] ? arch_local_irq_restore+0x53/0x53 [ 27.286277] print_circular_bug.isra.37+0x2cd/0x2dc [ 27.291260] ? save_trace+0xe0/0x2b0 [ 27.294944] __lock_acquire+0x30a8/0x3e00 [ 27.299069] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 27.304232] ? trace_hardirqs_off+0x10/0x10 [ 27.308526] ? noop_count+0x40/0x40 [ 27.312123] ? trace_hardirqs_off+0x10/0x10 [ 27.316411] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 27.321569] ? check_noncircular+0x20/0x20 [ 27.325781] ? check_usage+0x22f/0xb60 [ 27.329639] ? trace_raw_output_xdp_redirect_map_err+0x440/0x440 [ 27.335753] ? check_usage+0x22f/0xb60 [ 27.339609] ? check_noncircular+0x20/0x20 [ 27.343812] ? check_noncircular+0x20/0x20 [ 27.348018] ? find_held_lock+0x35/0x1d0 [ 27.352050] ? __bfs+0x2e0/0x750 [ 27.355386] ? __is_insn_slot_addr+0x1fc/0x330 [ 27.359937] lock_acquire+0x1d5/0x580 [ 27.363704] ? lock_acquire+0x1d5/0x580 [ 27.367648] ? rtnl_lock+0x17/0x20 [ 27.371157] ? lock_release+0xa40/0xa40 [ 27.375101] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 27.380954] ? print_irqtrace_events+0x270/0x270 [ 27.385678] ? idr_get_free_cmn+0x64e/0xfd0 [ 27.389967] ? rcu_note_context_switch+0x710/0x710 [ 27.394865] ? __might_sleep+0x95/0x190 [ 27.398808] ? rtnl_lock+0x17/0x20 [ 27.402315] __mutex_lock+0x16f/0x1a80 [ 27.406172] ? rtnl_lock+0x17/0x20 [ 27.409678] ? rtnl_lock+0x17/0x20 [ 27.413186] ? __lock_acquire+0x664/0x3e00 [ 27.417395] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 27.422467] ? mutex_lock_io_nested+0x1900/0x1900 [ 27.427288] ? trace_hardirqs_on+0xd/0x10 [ 27.431407] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 27.436570] ? save_stack+0xa3/0xd0 [ 27.440167] ? kasan_kmalloc+0xad/0xe0 [ 27.444025] ? __proc_create+0x21a/0x880 [ 27.448055] ? proc_create_data+0x76/0x180 [ 27.452260] ? clusterip_tg_check+0xe4d/0x1570 [ 27.456814] ? rb_insert_color+0x1580/0x1580 [ 27.461191] ? do_ipt_set_ctl+0x370/0x5f0 [ 27.465310] ? ip_setsockopt+0xa1/0xb0 [ 27.469164] ? raw_setsockopt+0xb7/0xd0 [ 27.473106] ? sock_common_setsockopt+0x95/0xd0 [ 27.477742] ? SyS_setsockopt+0x189/0x360 [ 27.481858] ? entry_SYSCALL_64_fastpath+0x29/0xa0 [ 27.486763] ? _find_next_bit+0xee/0x120 [ 27.490792] ? check_noncircular+0x20/0x20 [ 27.494993] ? find_first_zero_bit+0x93/0xe0 [ 27.499375] ? ida_get_new_above+0x421/0x9d0 [ 27.503754] ? print_irqtrace_events+0x270/0x270 [ 27.508481] ? check_noncircular+0x20/0x20 [ 27.512683] ? print_irqtrace_events+0x270/0x270 [ 27.517408] ? ida_simple_get+0x15c/0x220 [ 27.521525] ? lock_downgrade+0x980/0x980 [ 27.525641] ? find_held_lock+0x35/0x1d0 [ 27.529671] mutex_lock_nested+0x16/0x20 [ 27.533699] ? mutex_lock_nested+0x16/0x20 [ 27.537902] rtnl_lock+0x17/0x20 [ 27.541238] register_netdevice_notifier+0xad/0x860 [ 27.546224] ? lock_downgrade+0x980/0x980 [ 27.550339] ? __dev_close_many+0x350/0x350 [ 27.554633] ? ida_simple_get+0x176/0x220 [ 27.558751] ? do_raw_write_trylock+0x190/0x190 [ 27.563388] ? ida_remove+0x3f0/0x3f0 [ 27.567158] ? _raw_write_unlock+0x22/0x30 [ 27.571364] ? proc_register+0x261/0x370 [ 27.575394] ? proc_create_data+0x101/0x180 [ 27.579695] clusterip_tg_check+0xeb9/0x1570 [ 27.584077] ? arp_mangle+0x550/0x550 [ 27.587846] ? xt_find_target+0x150/0x1e0 [ 27.591965] ? lock_downgrade+0x980/0x980 [ 27.596083] ? mutex_unlock+0xd/0x10 [ 27.599763] ? ipv4_hooks_register+0x1fb/0x3e0 [ 27.604316] ? ipv4_conntrack_in+0x90/0x90 [ 27.608521] ? ipv4_conntrack_in+0x90/0x90 [ 27.612726] ? nf_ct_netns_do_get+0x20f/0x340 [ 27.617196] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 27.622019] ? __kernel_text_address+0xd/0x40 [ 27.626494] ? wait_for_completion+0x770/0x770 [ 27.631048] ? nf_ct_netns_get+0x35/0x90 [ 27.635078] ? arp_mangle+0x550/0x550 [ 27.638847] xt_check_target+0x22c/0x7d0 [ 27.642877] ? xt_target_seq_next+0x30/0x30 [ 27.647167] ? mutex_unlock+0xd/0x10 [ 27.650851] ? mutex_unlock+0xd/0x10 [ 27.654534] ? xt_find_target+0x17b/0x1e0 [ 27.658651] find_check_entry.isra.8+0x8c8/0xcb0 [ 27.663380] ? ipt_do_table+0x1860/0x1860 [ 27.667501] ? mark_held_locks+0xaf/0x100 [ 27.671617] ? kfree+0xf0/0x260 [ 27.674870] ? trace_hardirqs_on+0xd/0x10 [ 27.678986] translate_table+0xed1/0x1610 [ 27.683107] ? alloc_counters.isra.11+0x7d0/0x7d0 [ 27.687918] ? kasan_check_write+0x14/0x20 [ 27.692122] ? _copy_from_user+0x99/0x110 [ 27.696240] do_ipt_set_ctl+0x370/0x5f0 [ 27.700187] ? translate_compat_table+0x1b90/0x1b90 [ 27.705185] ? mutex_unlock+0xd/0x10 [ 27.708868] ? nf_sockopt_find.constprop.0+0x1a7/0x220 [ 27.714113] nf_setsockopt+0x67/0xc0 [ 27.717796] ip_setsockopt+0xa1/0xb0 [ 27.721811] raw_setsockopt+0xb7/0xd0 [ 27.725582] sock_common_setsockopt+0x95/0xd0 [ 27.730047] SyS_setsockopt+0x189/0x360 [ 27.733990] ? SyS_recv+0x40/0x40 [ 27.737414] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 27.742227] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.747213] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.751939] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 27.756661] RIP: 0033:0x445f09 [ 27.759819] RSP: 002b:00007ffcf908d518 EFLAGS: 00000203 ORIG_RAX: 0000000000000036 [ 27.767495] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 0000000000445f09 [ 27.774732] RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000005 [ 27.781970] RBP: 00007ffcf908d618 R08: 0000000000000328 R09: 0000000020e83000 [ 27.789211] R10: 0000000020397cd8 R11: 0000000000000203 R12: 00007ffcf908d618 [ 27.796451] R13: 00000000004033d0 R14: 0000000000000000 R15: 0000000000000000 [ 27.804875] ipt_CLUSTERIP: ipt_CLUSTERIP is deprecated and it will r