[....] Starting enhanced syslogd: rsyslogd[ 16.229650] audit: type=1400 audit(1517392290.861:5): avc: denied { syslog } for pid=4008 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 periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] 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.588738] audit: type=1400 audit(1517392294.220:6): avc: denied { map } for pid=4146 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.8' (ECDSA) to the list of known hosts. net.ipv6.conf.syz0.accept_dad = 0 net.ipv6.conf.syz0.router_solicitations = 0 [ 25.915856] audit: type=1400 audit(1517392300.547:7): avc: denied { map } for pid=4160 comm="syzkaller282746" path="/root/syzkaller282746733" 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.354853] 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 [ 26.725980] [ 26.727642] ====================================================== [ 26.733939] WARNING: possible circular locking dependency detected [ 26.740226] 4.15.0-rc9+ #217 Not tainted [ 26.744256] ------------------------------------------------------ [ 26.750541] syzkaller282746/4160 is trying to acquire lock: [ 26.756218] (rtnl_mutex){+.+.}, at: [<0000000083e87462>] rtnl_lock+0x17/0x20 [ 26.763478] [ 26.763478] but task is already holding lock: [ 26.769428] (sk_lock-AF_INET){+.+.}, at: [<000000004af06876>] ip_setsockopt+0x8c/0xb0 [ 26.777464] [ 26.777464] which lock already depends on the new lock. [ 26.777464] [ 26.785752] [ 26.785752] the existing dependency chain (in reverse order) is: [ 26.793353] [ 26.793353] -> #1 (sk_lock-AF_INET){+.+.}: [ 26.799049] lock_sock_nested+0xc2/0x110 [ 26.803602] do_ip_getsockopt+0x1b3/0x2170 [ 26.808328] ip_getsockopt+0x90/0x220 [ 26.812623] udp_getsockopt+0x45/0x80 [ 26.816916] sock_common_getsockopt+0x95/0xd0 [ 26.821901] SyS_getsockopt+0x178/0x340 [ 26.826371] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.831616] [ 26.831616] -> #0 (rtnl_mutex){+.+.}: [ 26.836881] lock_acquire+0x1d5/0x580 [ 26.841173] __mutex_lock+0x16f/0x1a80 [ 26.845549] mutex_lock_nested+0x16/0x20 [ 26.850106] rtnl_lock+0x17/0x20 [ 26.853963] register_netdevice_notifier+0xad/0x860 [ 26.859473] tee_tg_check+0x1a0/0x280 [ 26.863765] xt_check_target+0x22c/0x7d0 [ 26.868319] find_check_entry.isra.8+0x8c8/0xcb0 [ 26.873574] translate_table+0xed1/0x1610 [ 26.878215] do_ipt_set_ctl+0x370/0x5f0 [ 26.882682] nf_setsockopt+0x67/0xc0 [ 26.886889] ip_setsockopt+0xa1/0xb0 [ 26.891096] sctp_setsockopt+0x2b6/0x61d0 [ 26.895738] sock_common_setsockopt+0x95/0xd0 [ 26.900727] SyS_setsockopt+0x189/0x360 [ 26.905200] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.910443] [ 26.910443] other info that might help us debug this: [ 26.910443] [ 26.918553] Possible unsafe locking scenario: [ 26.918553] [ 26.924580] CPU0 CPU1 [ 26.929217] ---- ---- [ 26.933853] lock(sk_lock-AF_INET); [ 26.937537] lock(rtnl_mutex); [ 26.943303] lock(sk_lock-AF_INET); [ 26.949505] lock(rtnl_mutex); [ 26.952755] [ 26.952755] *** DEADLOCK *** [ 26.952755] [ 26.958787] 1 lock held by syzkaller282746/4160: [ 26.963509] #0: (sk_lock-AF_INET){+.+.}, at: [<000000004af06876>] ip_setsockopt+0x8c/0xb0 [ 26.971982] [ 26.971982] stack backtrace: [ 26.976450] CPU: 0 PID: 4160 Comm: syzkaller282746 Not tainted 4.15.0-rc9+ #217 [ 26.983874] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.993210] Call Trace: [ 26.995775] dump_stack+0x194/0x257 [ 26.999374] ? arch_local_irq_restore+0x53/0x53 [ 27.004026] print_circular_bug.isra.37+0x2cd/0x2dc [ 27.009024] ? save_trace+0xe0/0x2b0 [ 27.012712] __lock_acquire+0x30a8/0x3e00 [ 27.016831] ? print_irqtrace_events+0x270/0x270 [ 27.021569] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 27.026731] ? print_irqtrace_events+0x270/0x270 [ 27.031457] ? __lock_acquire+0x664/0x3e00 [ 27.035668] ? rcutorture_record_progress+0x10/0x10 [ 27.040659] ? print_irqtrace_events+0x270/0x270 [ 27.045389] ? __lock_acquire+0x664/0x3e00 [ 27.049597] ? __save_stack_trace+0x7e/0xd0 [ 27.053893] ? add_lock_to_list.isra.28+0x24d/0x352 [ 27.058892] ? check_noncircular+0x20/0x20 [ 27.063101] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 27.068263] ? __lock_acquire+0x664/0x3e00 [ 27.072473] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 27.077635] lock_acquire+0x1d5/0x580 [ 27.081410] ? lock_acquire+0x1d5/0x580 [ 27.085360] ? rtnl_lock+0x17/0x20 [ 27.088873] ? lock_release+0xa40/0xa40 [ 27.092818] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 27.098685] ? rcu_note_context_switch+0x710/0x710 [ 27.103597] ? find_held_lock+0x35/0x1d0 [ 27.107640] ? __might_sleep+0x95/0x190 [ 27.111593] ? rtnl_lock+0x17/0x20 [ 27.115110] __mutex_lock+0x16f/0x1a80 [ 27.118970] ? rtnl_lock+0x17/0x20 [ 27.122482] ? check_noncircular+0x20/0x20 [ 27.126697] ? lock_downgrade+0x980/0x980 [ 27.130816] ? rtnl_lock+0x17/0x20 [ 27.134328] ? find_held_lock+0x35/0x1d0 [ 27.138358] ? mutex_lock_io_nested+0x1900/0x1900 [ 27.143175] ? is_bpf_text_address+0x7b/0x120 [ 27.147645] ? print_irqtrace_events+0x270/0x270 [ 27.152384] ? depot_save_stack+0x3b5/0x490 [ 27.156689] ? lock_downgrade+0x980/0x980 [ 27.160811] ? lock_release+0xa40/0xa40 [ 27.164776] ? mark_held_locks+0xaf/0x100 [ 27.168899] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 27.173973] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.179069] ? trace_hardirqs_on+0xd/0x10 [ 27.183191] ? depot_save_stack+0x3b5/0x490 [ 27.187487] ? save_stack+0xa3/0xd0 [ 27.191096] ? save_stack+0x43/0xd0 [ 27.194707] ? kasan_kmalloc+0xad/0xe0 [ 27.198577] ? kmem_cache_alloc_trace+0x136/0x750 [ 27.203392] ? tee_tg_check+0xed/0x280 [ 27.207252] ? xt_check_target+0x22c/0x7d0 [ 27.211462] ? find_check_entry.isra.8+0x8c8/0xcb0 [ 27.216362] ? translate_table+0xed1/0x1610 [ 27.220658] ? do_ipt_set_ctl+0x370/0x5f0 [ 27.224779] ? nf_setsockopt+0x67/0xc0 [ 27.228640] ? ip_setsockopt+0xa1/0xb0 [ 27.232516] ? sctp_setsockopt+0x2b6/0x61d0 [ 27.236810] ? sock_common_setsockopt+0x95/0xd0 [ 27.241451] ? SyS_setsockopt+0x189/0x360 [ 27.245572] ? entry_SYSCALL_64_fastpath+0x29/0xa0 [ 27.250476] mutex_lock_nested+0x16/0x20 [ 27.254513] ? print_irqtrace_events+0x270/0x270 [ 27.259242] ? mutex_lock_nested+0x16/0x20 [ 27.263448] rtnl_lock+0x17/0x20 [ 27.266789] register_netdevice_notifier+0xad/0x860 [ 27.271779] ? __dev_close_many+0x350/0x350 [ 27.276076] ? __lock_is_held+0xb6/0x140 [ 27.280115] ? tee_tg_check+0xed/0x280 [ 27.283986] ? rcu_read_lock_sched_held+0x108/0x120 [ 27.288979] ? kmem_cache_alloc_trace+0x456/0x750 [ 27.293798] ? __kernel_text_address+0xd/0x40 [ 27.298266] ? wait_for_completion+0x770/0x770 [ 27.302839] tee_tg_check+0x1a0/0x280 [ 27.306611] ? tee_tg4+0x170/0x170 [ 27.310124] xt_check_target+0x22c/0x7d0 [ 27.314158] ? xt_target_seq_next+0x30/0x30 [ 27.318452] ? save_stack+0xa3/0xd0 [ 27.322052] ? kasan_slab_free+0x71/0xc0 [ 27.326083] ? kfree+0xd6/0x260 [ 27.329336] ? kvfree+0x36/0x60 [ 27.332586] ? translate_table+0xdd2/0x1610 [ 27.336881] ? mutex_unlock+0xd/0x10 [ 27.340565] ? xt_find_target+0x17b/0x1e0 [ 27.344687] find_check_entry.isra.8+0x8c8/0xcb0 [ 27.349416] ? ipt_do_table+0x1860/0x1860 [ 27.353539] ? mark_held_locks+0xaf/0x100 [ 27.357662] ? kfree+0xf0/0x260 [ 27.360917] ? trace_hardirqs_on+0xd/0x10 [ 27.365045] translate_table+0xed1/0x1610 [ 27.369182] ? alloc_counters.isra.11+0x7d0/0x7d0 [ 27.373999] ? kasan_check_write+0x14/0x20 [ 27.378226] ? _copy_from_user+0x99/0x110 [ 27.382364] do_ipt_set_ctl+0x370/0x5f0 [ 27.386312] ? translate_compat_table+0x1b90/0x1b90 [ 27.391302] ? mutex_unlock+0xd/0x10 [ 27.394988] ? nf_sockopt_find.constprop.0+0x1a7/0x220 [ 27.400236] nf_setsockopt+0x67/0xc0 [ 27.403923] ip_setsockopt+0xa1/0xb0 [ 27.407610] sctp_setsockopt+0x2b6/0x61d0 [ 27.411730] ? sctp_setsockopt_paddr_thresholds+0x550/0x550 [ 27.417414] ? __free_insn_slot+0x5c0/0x5c0 [ 27.421709] ? rcutorture_record_progress+0x10/0x10 [ 27.426710] ? is_bpf_text_address+0xa4/0x120 [ 27.431186] ? __lock_acquire+0x664/0x3e00 [ 27.435401] ? unwind_get_return_address+0x61/0xa0 [ 27.440306] ? __save_stack_trace+0x7e/0xd0 [ 27.444602] ? check_noncircular+0x20/0x20 [ 27.448816] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 27.453978] ? save_stack+0xa3/0xd0 [ 27.457574] ? save_stack+0x43/0xd0 [ 27.461169] ? kasan_kmalloc+0xad/0xe0 [ 27.465033] ? kasan_slab_alloc+0x12/0x20 [ 27.469155] ? kmem_cache_alloc+0x12e/0x760 [ 27.473448] ? selinux_file_alloc_security+0xae/0x190 [ 27.478620] ? security_file_alloc+0x6d/0xa0 [ 27.483011] ? get_empty_filp+0x189/0x4f0 [ 27.487137] ? alloc_file+0x26/0x390 [ 27.490829] ? sock_alloc_file+0x1f3/0x560 [ 27.495035] ? sock_map_fd+0x34/0x90 [ 27.498720] ? SyS_socket+0x125/0x1d0 [ 27.502496] ? entry_SYSCALL_64_fastpath+0x29/0xa0 [ 27.507399] ? kasan_slab_alloc+0x12/0x20 [ 27.511605] ? kmem_cache_alloc+0x12e/0x760 [ 27.515897] ? get_empty_filp+0xfb/0x4f0 [ 27.519928] ? alloc_file+0x26/0x390 [ 27.523623] ? sock_alloc_file+0x1f3/0x560 [ 27.527848] ? find_held_lock+0x35/0x1d0 [ 27.531886] ? avc_has_perm+0x35e/0x680 [ 27.535833] ? lock_downgrade+0x980/0x980 [ 27.539984] ? debug_mutex_init+0x1c/0x60 [ 27.544109] ? lock_release+0xa40/0xa40 [ 27.548057] ? __lockdep_init_map+0xe4/0x650 [ 27.552441] ? avc_has_perm+0x43e/0x680 [ 27.556387] ? avc_has_perm_noaudit+0x520/0x520 [ 27.561034] ? __fd_install+0x25f/0x740 [ 27.564981] ? lock_downgrade+0x980/0x980 [ 27.569099] ? __lock_is_held+0xb6/0x140 [ 27.573134] ? sock_has_perm+0x2a4/0x420 [ 27.577165] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 27.582499] ? selinux_netlbl_socket_setsockopt+0x10c/0x460 [ 27.588183] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 27.593430] ? alloc_file+0x27e/0x390 [ 27.597208] sock_common_setsockopt+0x95/0xd0 [ 27.601677] SyS_setsockopt+0x189/0x360 [ 27.605621] ? SyS_recv+0x40/0x40 [ 27.609050] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 27.613865] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.618857] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.623586] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 27.628312] RIP: