[....] Starting enhanced syslogd: rsyslogd[ 13.790981] audit: type=1400 audit(1517175679.113:5): avc: denied { syslog } for pid=3535 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: [ 18.977143] audit: type=1400 audit(1517175684.299:6): avc: denied { map } for pid=3674 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.202' (ECDSA) to the list of known hosts. net.ipv6.conf.syz0.accept_dad = 0 net.ipv6.conf.syz0.router_solicitations = 0 [ 25.296079] audit: type=1400 audit(1517175690.618:7): avc: denied { map } for pid=3688 comm="syzkaller484750" path="/root/syzkaller484750200" 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 [ 25.571960] 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 [ 25.907815] [ 25.909493] ====================================================== [ 25.915786] WARNING: possible circular locking dependency detected [ 25.922086] 4.15.0-rc9+ #284 Not tainted [ 25.926119] ------------------------------------------------------ [ 25.932406] syzkaller484750/3688 is trying to acquire lock: [ 25.938083] (rtnl_mutex){+.+.}, at: [<0000000073f9b677>] rtnl_lock+0x17/0x20 [ 25.945335] [ 25.945335] but task is already holding lock: [ 25.951282] (sk_lock-AF_INET){+.+.}, at: [<00000000087f98f4>] ip_setsockopt+0x8c/0xb0 [ 25.959312] [ 25.959312] which lock already depends on the new lock. [ 25.959312] [ 25.967593] [ 25.967593] the existing dependency chain (in reverse order) is: [ 25.975183] [ 25.975183] -> #1 (sk_lock-AF_INET){+.+.}: [ 25.980882] lock_sock_nested+0xc2/0x110 [ 25.985432] do_ip_getsockopt+0x1b3/0x2170 [ 25.990173] ip_getsockopt+0x90/0x220 [ 25.994466] tcp_getsockopt+0x82/0xd0 [ 25.998755] sock_common_getsockopt+0x95/0xd0 [ 26.003738] SyS_getsockopt+0x178/0x340 [ 26.008202] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.013442] [ 26.013442] -> #0 (rtnl_mutex){+.+.}: [ 26.018695] lock_acquire+0x1d5/0x580 [ 26.022984] __mutex_lock+0x16f/0x1a80 [ 26.027377] mutex_lock_nested+0x16/0x20 [ 26.031928] rtnl_lock+0x17/0x20 [ 26.035783] register_netdevice_notifier+0xad/0x860 [ 26.041287] clusterip_tg_check+0xeb9/0x1570 [ 26.046195] xt_check_target+0x22c/0x7d0 [ 26.050746] find_check_entry.isra.8+0x8c8/0xcb0 [ 26.056000] translate_table+0xed1/0x1610 [ 26.060637] do_ipt_set_ctl+0x370/0x5f0 [ 26.065100] nf_setsockopt+0x67/0xc0 [ 26.069303] ip_setsockopt+0xa1/0xb0 [ 26.073507] raw_setsockopt+0xb7/0xd0 [ 26.077796] sock_common_setsockopt+0x95/0xd0 [ 26.082792] SyS_setsockopt+0x189/0x360 [ 26.087265] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.092508] [ 26.092508] other info that might help us debug this: [ 26.092508] [ 26.100616] Possible unsafe locking scenario: [ 26.100616] [ 26.106638] CPU0 CPU1 [ 26.111271] ---- ---- [ 26.115905] lock(sk_lock-AF_INET); [ 26.119586] lock(rtnl_mutex); [ 26.125352] lock(sk_lock-AF_INET); [ 26.131549] lock(rtnl_mutex); [ 26.134795] [ 26.134795] *** DEADLOCK *** [ 26.134795] [ 26.140821] 1 lock held by syzkaller484750/3688: [ 26.145540] #0: (sk_lock-AF_INET){+.+.}, at: [<00000000087f98f4>] ip_setsockopt+0x8c/0xb0 [ 26.154014] [ 26.154014] stack backtrace: [ 26.158480] CPU: 1 PID: 3688 Comm: syzkaller484750 Not tainted 4.15.0-rc9+ #284 [ 26.165902] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.175226] Call Trace: [ 26.177784] dump_stack+0x194/0x257 [ 26.181393] ? arch_local_irq_restore+0x53/0x53 [ 26.186033] print_circular_bug.isra.37+0x2cd/0x2dc [ 26.191017] ? save_trace+0xe0/0x2b0 [ 26.194710] __lock_acquire+0x30a8/0x3e00 [ 26.198830] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.204000] ? trace_hardirqs_off+0x10/0x10 [ 26.208293] ? __is_insn_slot_addr+0x1fc/0x330 [ 26.212851] ? lock_downgrade+0x980/0x980 [ 26.216975] ? lock_release+0xa40/0xa40 [ 26.220917] ? bpf_prog_kallsyms_find+0xbd/0x440 [ 26.225643] ? modules_open+0xa0/0xa0 [ 26.229413] ? trace_raw_output_xdp_redirect_map_err+0x440/0x440 [ 26.235525] ? is_bpf_text_address+0x7b/0x120 [ 26.239990] ? lock_downgrade+0x980/0x980 [ 26.244106] ? lock_release+0xa40/0xa40 [ 26.248048] ? __free_insn_slot+0x5c0/0x5c0 [ 26.252339] ? check_noncircular+0x20/0x20 [ 26.256546] ? kernel_text_address+0x102/0x140 [ 26.261097] lock_acquire+0x1d5/0x580 [ 26.264866] ? lock_acquire+0x1d5/0x580 [ 26.268811] ? rtnl_lock+0x17/0x20 [ 26.272321] ? lock_release+0xa40/0xa40 [ 26.276264] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.282116] ? print_irqtrace_events+0x270/0x270 [ 26.286841] ? idr_get_free_cmn+0x64e/0xfd0 [ 26.291132] ? rcu_note_context_switch+0x710/0x710 [ 26.296032] ? __might_sleep+0x95/0x190 [ 26.299975] ? rtnl_lock+0x17/0x20 [ 26.303483] __mutex_lock+0x16f/0x1a80 [ 26.307337] ? rtnl_lock+0x17/0x20 [ 26.310843] ? rtnl_lock+0x17/0x20 [ 26.314351] ? __lock_acquire+0x664/0x3e00 [ 26.318556] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 26.323628] ? mutex_lock_io_nested+0x1900/0x1900 [ 26.328440] ? trace_hardirqs_on+0xd/0x10 [ 26.332569] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.337727] ? save_stack+0xa3/0xd0 [ 26.341324] ? kasan_kmalloc+0xad/0xe0 [ 26.345180] ? __proc_create+0x21a/0x880 [ 26.349211] ? proc_create_data+0x76/0x180 [ 26.353413] ? clusterip_tg_check+0xe4d/0x1570 [ 26.357964] ? rb_insert_color+0x1580/0x1580 [ 26.362341] ? do_ipt_set_ctl+0x370/0x5f0 [ 26.366459] ? ip_setsockopt+0xa1/0xb0 [ 26.370314] ? raw_setsockopt+0xb7/0xd0 [ 26.374259] ? sock_common_setsockopt+0x95/0xd0 [ 26.378897] ? SyS_setsockopt+0x189/0x360 [ 26.383013] ? entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.387913] ? _find_next_bit+0xee/0x120 [ 26.391941] ? check_noncircular+0x20/0x20 [ 26.396145] ? find_first_zero_bit+0x93/0xe0 [ 26.400525] ? ida_get_new_above+0x421/0x9d0 [ 26.404902] ? print_irqtrace_events+0x270/0x270 [ 26.409639] ? check_noncircular+0x20/0x20 [ 26.413842] ? print_irqtrace_events+0x270/0x270 [ 26.418567] ? ida_simple_get+0x15c/0x220 [ 26.422693] ? lock_downgrade+0x980/0x980 [ 26.426811] ? find_held_lock+0x35/0x1d0 [ 26.430840] mutex_lock_nested+0x16/0x20 [ 26.434879] ? mutex_lock_nested+0x16/0x20 [ 26.439082] rtnl_lock+0x17/0x20 [ 26.442419] register_netdevice_notifier+0xad/0x860 [ 26.447404] ? lock_downgrade+0x980/0x980 [ 26.451521] ? __dev_close_many+0x330/0x330 [ 26.455811] ? ida_simple_get+0x176/0x220 [ 26.459929] ? do_raw_write_trylock+0x190/0x190 [ 26.464569] ? ida_remove+0x3f0/0x3f0 [ 26.468340] ? _raw_write_unlock+0x22/0x30 [ 26.472544] ? proc_register+0x261/0x370 [ 26.476574] ? proc_create_data+0x101/0x180 [ 26.480865] clusterip_tg_check+0xeb9/0x1570 [ 26.485243] ? arp_mangle+0x550/0x550 [ 26.489023] ? xt_find_target+0x150/0x1e0 [ 26.493138] ? lock_downgrade+0x980/0x980 [ 26.497257] ? rcu_read_lock_sched_held+0x108/0x120 [ 26.502243] ? pcpu_alloc+0x146/0x10e0 [ 26.506102] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 26.510910] ? pcpu_free_area+0xa00/0xa00 [ 26.515029] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 26.519841] ? __kernel_text_address+0xd/0x40 [ 26.524303] ? wait_for_completion+0x770/0x770 [ 26.528853] ? trace_hardirqs_off+0xd/0x10 [ 26.533057] ? arp_mangle+0x550/0x550 [ 26.536828] xt_check_target+0x22c/0x7d0 [ 26.540857] ? xt_target_seq_next+0x30/0x30 [ 26.545163] ? mutex_unlock+0xd/0x10 [ 26.548849] ? mutex_unlock+0xd/0x10 [ 26.552531] ? xt_find_target+0x17b/0x1e0 [ 26.556660] find_check_entry.isra.8+0x8c8/0xcb0 [ 26.561386] ? ipt_do_table+0x1860/0x1860 [ 26.565503] ? mark_held_locks+0xaf/0x100 [ 26.569619] ? kfree+0xf0/0x260 [ 26.572867] ? trace_hardirqs_on+0xd/0x10 [ 26.576994] translate_table+0xed1/0x1610 [ 26.581115] ? alloc_counters.isra.11+0x7d0/0x7d0 [ 26.585925] ? kasan_check_write+0x14/0x20 [ 26.590130] ? _copy_from_user+0x99/0x110 [ 26.594248] do_ipt_set_ctl+0x370/0x5f0 [ 26.598192] ? translate_compat_table+0x1b90/0x1b90 [ 26.603178] ? mutex_unlock+0xd/0x10 [ 26.606871] ? nf_sockopt_find.constprop.0+0x1a7/0x220 [ 26.612116] nf_setsockopt+0x67/0xc0 [ 26.615803] ip_setsockopt+0xa1/0xb0 [ 26.619484] raw_setsockopt+0xb7/0xd0 [ 26.623256] sock_common_setsockopt+0x95/0xd0 [ 26.627720] SyS_setsockopt+0x189/0x360 [ 26.631665] ? SyS_recv+0x40/0x40 [ 26.635090] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 26.639903] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.644889] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.649614] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.654339] RIP: 0033:0x445d19 [ 26.657498] RSP: 002b:00007ffd4fd567d8 EFLAGS: 00000203 ORIG_RAX: 0000000000000036 [ 26.665172] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 0000000000445d19 [ 26.672410] RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000005 [ 26.679649] RBP: 00007ffd4fd56918 R08: 00000000000002f8 R09: 0000000000000000 [ 26.686889] R10: 000000002000b000 R11: 0000000000000203 R12: 00007ffd4fd56918 [ 26.694131] R13: 00000000004031e0 R14: 0000000000000000 R15: 0000000000000000