[....] Starting enhanced syslogd: rsyslogd[ 13.428870] audit: type=1400 audit(1517214932.696: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 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.113641] audit: type=1400 audit(1517214938.381:6): avc: denied { map } for pid=3676 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.204' (ECDSA) to the list of known hosts. executing program [ 25.441509] audit: type=1400 audit(1517214944.709:7): avc: denied { map } for pid=3690 comm="syzkaller500186" path="/root/syzkaller500186278" 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 [ 25.526139] [ 25.527804] ====================================================== [ 25.534110] WARNING: possible circular locking dependency detected [ 25.540414] 4.15.0-rc9+ #284 Not tainted [ 25.544451] ------------------------------------------------------ [ 25.550739] syzkaller500186/3690 is trying to acquire lock: [ 25.556424] (rtnl_mutex){+.+.}, at: [<0000000007994156>] rtnl_lock+0x17/0x20 [ 25.563681] [ 25.563681] but task is already holding lock: [ 25.569616] (sk_lock-AF_INET){+.+.}, at: [<00000000bc141539>] ip_setsockopt+0x8c/0xb0 [ 25.577644] [ 25.577644] which lock already depends on the new lock. [ 25.577644] [ 25.585926] [ 25.585926] the existing dependency chain (in reverse order) is: [ 25.593514] [ 25.593514] -> #1 (sk_lock-AF_INET){+.+.}: [ 25.599217] lock_sock_nested+0xc2/0x110 [ 25.603771] do_ip_getsockopt+0x1b3/0x2170 [ 25.608500] ip_getsockopt+0x90/0x220 [ 25.612797] tcp_getsockopt+0x82/0xd0 [ 25.617097] sock_common_getsockopt+0x95/0xd0 [ 25.622082] SyS_getsockopt+0x178/0x340 [ 25.626550] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.631795] [ 25.631795] -> #0 (rtnl_mutex){+.+.}: [ 25.637049] lock_acquire+0x1d5/0x580 [ 25.641341] __mutex_lock+0x16f/0x1a80 [ 25.645733] mutex_lock_nested+0x16/0x20 [ 25.650287] rtnl_lock+0x17/0x20 [ 25.654142] register_netdevice_notifier+0xad/0x860 [ 25.659646] tee_tg_check+0x1a0/0x280 [ 25.663944] xt_check_target+0x22c/0x7d0 [ 25.668501] find_check_entry.isra.8+0x8c8/0xcb0 [ 25.673746] translate_table+0xed1/0x1610 [ 25.678383] do_ipt_set_ctl+0x370/0x5f0 [ 25.682846] nf_setsockopt+0x67/0xc0 [ 25.687058] ip_setsockopt+0xa1/0xb0 [ 25.691261] raw_setsockopt+0xb7/0xd0 [ 25.695552] sock_common_setsockopt+0x95/0xd0 [ 25.700536] SyS_setsockopt+0x189/0x360 [ 25.705015] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.710277] [ 25.710277] other info that might help us debug this: [ 25.710277] [ 25.718400] Possible unsafe locking scenario: [ 25.718400] [ 25.724428] CPU0 CPU1 [ 25.729061] ---- ---- [ 25.733698] lock(sk_lock-AF_INET); [ 25.737409] lock(rtnl_mutex); [ 25.743194] lock(sk_lock-AF_INET); [ 25.749395] lock(rtnl_mutex); [ 25.752646] [ 25.752646] *** DEADLOCK *** [ 25.752646] [ 25.758671] 1 lock held by syzkaller500186/3690: [ 25.763392] #0: (sk_lock-AF_INET){+.+.}, at: [<00000000bc141539>] ip_setsockopt+0x8c/0xb0 [ 25.771861] [ 25.771861] stack backtrace: [ 25.776324] CPU: 1 PID: 3690 Comm: syzkaller500186 Not tainted 4.15.0-rc9+ #284 [ 25.783734] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.793057] Call Trace: [ 25.795621] dump_stack+0x194/0x257 [ 25.799218] ? arch_local_irq_restore+0x53/0x53 [ 25.803865] print_circular_bug.isra.37+0x2cd/0x2dc [ 25.808849] ? save_trace+0xe0/0x2b0 [ 25.812529] __lock_acquire+0x30a8/0x3e00 [ 25.816643] ? print_irqtrace_events+0x270/0x270 [ 25.821382] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.826542] ? print_irqtrace_events+0x270/0x270 [ 25.831266] ? __lock_acquire+0x664/0x3e00 [ 25.835476] ? print_irqtrace_events+0x270/0x270 [ 25.840199] ? __lock_acquire+0x664/0x3e00 [ 25.844402] ? find_held_lock+0x35/0x1d0 [ 25.848441] ? check_noncircular+0x20/0x20 [ 25.852650] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.857814] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.862980] lock_acquire+0x1d5/0x580 [ 25.866758] ? lock_acquire+0x1d5/0x580 [ 25.870736] ? rtnl_lock+0x17/0x20 [ 25.874251] ? lock_release+0xa40/0xa40 [ 25.878218] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.884085] ? rcu_note_context_switch+0x710/0x710 [ 25.888985] ? __might_sleep+0x95/0x190 [ 25.892932] ? rtnl_lock+0x17/0x20 [ 25.896439] __mutex_lock+0x16f/0x1a80 [ 25.900300] ? rtnl_lock+0x17/0x20 [ 25.903812] ? lock_downgrade+0x980/0x980 [ 25.907933] ? rtnl_lock+0x17/0x20 [ 25.911444] ? mutex_lock_io_nested+0x1900/0x1900 [ 25.916264] ? is_bpf_text_address+0x7b/0x120 [ 25.920730] ? print_irqtrace_events+0x270/0x270 [ 25.925456] ? depot_save_stack+0x3b5/0x490 [ 25.929743] ? lock_downgrade+0x980/0x980 [ 25.933867] ? lock_release+0xa40/0xa40 [ 25.937811] ? mark_held_locks+0xaf/0x100 [ 25.941928] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 25.947003] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.952008] ? trace_hardirqs_on+0xd/0x10 [ 25.956138] ? depot_save_stack+0x3b5/0x490 [ 25.960432] ? save_stack+0xa3/0xd0 [ 25.964028] ? save_stack+0x43/0xd0 [ 25.967621] ? kasan_kmalloc+0xad/0xe0 [ 25.971478] ? kmem_cache_alloc_trace+0x136/0x750 [ 25.976288] ? tee_tg_check+0xed/0x280 [ 25.980144] ? xt_check_target+0x22c/0x7d0 [ 25.984348] ? find_check_entry.isra.8+0x8c8/0xcb0 [ 25.989244] ? translate_table+0xed1/0x1610 [ 25.993545] ? do_ipt_set_ctl+0x370/0x5f0 [ 25.997661] ? nf_setsockopt+0x67/0xc0 [ 26.001518] ? ip_setsockopt+0xa1/0xb0 [ 26.005373] ? raw_setsockopt+0xb7/0xd0 [ 26.009314] ? sock_common_setsockopt+0x95/0xd0 [ 26.013951] ? SyS_setsockopt+0x189/0x360 [ 26.018066] ? entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.022966] mutex_lock_nested+0x16/0x20 [ 26.026994] ? mutex_lock_nested+0x16/0x20 [ 26.031198] rtnl_lock+0x17/0x20 [ 26.034533] register_netdevice_notifier+0xad/0x860 [ 26.039518] ? __dev_close_many+0x330/0x330 [ 26.043817] ? __lock_is_held+0xb6/0x140 [ 26.047847] ? tee_tg_check+0xed/0x280 [ 26.051701] ? rcu_read_lock_sched_held+0x108/0x120 [ 26.056689] ? kmem_cache_alloc_trace+0x456/0x750 [ 26.061500] ? __kernel_text_address+0xd/0x40 [ 26.065960] ? wait_for_completion+0x770/0x770 [ 26.070516] tee_tg_check+0x1a0/0x280 [ 26.074285] ? tee_tg4+0x170/0x170 [ 26.077793] xt_check_target+0x22c/0x7d0 [ 26.081825] ? xt_target_seq_next+0x30/0x30 [ 26.086117] ? save_stack+0xa3/0xd0 [ 26.089717] ? kasan_slab_free+0x71/0xc0 [ 26.093759] ? kfree+0xd6/0x260 [ 26.097020] ? kvfree+0x36/0x60 [ 26.100283] ? mutex_unlock+0xd/0x10 [ 26.103966] ? xt_find_target+0x17b/0x1e0 [ 26.108084] find_check_entry.isra.8+0x8c8/0xcb0 [ 26.113070] ? ipt_do_table+0x1860/0x1860 [ 26.117191] ? mark_held_locks+0xaf/0x100 [ 26.121305] ? kfree+0xf0/0x260 [ 26.124553] ? trace_hardirqs_on+0xd/0x10 [ 26.128668] translate_table+0xed1/0x1610 [ 26.132801] ? alloc_counters.isra.11+0x7d0/0x7d0 [ 26.137621] ? kasan_check_write+0x14/0x20 [ 26.141834] ? _copy_from_user+0x99/0x110 [ 26.145956] do_ipt_set_ctl+0x370/0x5f0 [ 26.149986] ? translate_compat_table+0x1b90/0x1b90 [ 26.154974] ? mutex_unlock+0xd/0x10 [ 26.158655] ? nf_sockopt_find.constprop.0+0x1a7/0x220 [ 26.163900] nf_setsockopt+0x67/0xc0 [ 26.167586] ip_setsockopt+0xa1/0xb0 [ 26.171268] raw_setsockopt+0xb7/0xd0 [ 26.175041] sock_common_setsockopt+0x95/0xd0 [ 26.179506] SyS_setsockopt+0x189/0x360 [ 26.183450] ? SyS_recv+0x40/0x40 [ 26.186873] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 26.191688] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.196679] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.201406] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.206127] RIP: 0033:0x4409e9 [ 26.209287] RSP: 002b:00007fffe9872148 EFLAGS: 00000207 ORIG_RAX: 0000000000000036 [ 26.216964] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 00000000004409e9 [ 26.224208] RDX: 0000000000000040 RSI: 0000000000000000