[....] Starting enhanced syslogd: rsyslogd[ 15.848741] audit: type=1400 audit(1517310582.799:5): avc: denied { syslog } for pid=3994 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.294359] audit: type=1400 audit(1517310585.244:6): avc: denied { map } for pid=4133 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.22' (ECDSA) to the list of known hosts. executing program [ 29.523935] audit: type=1400 audit(1517310596.474:7): avc: denied { map } for pid=4149 comm="syzkaller945801" path="/root/syzkaller945801850" 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 [ 29.605073] [ 29.606714] ====================================================== [ 29.613002] WARNING: possible circular locking dependency detected [ 29.619284] 4.15.0+ #286 Not tainted [ 29.622961] ------------------------------------------------------ [ 29.629243] syzkaller945801/4149 is trying to acquire lock: [ 29.634915] (rtnl_mutex){+.+.}, at: [<000000008a3c01d2>] rtnl_lock+0x17/0x20 [ 29.642164] [ 29.642164] but task is already holding lock: [ 29.648098] (sk_lock-AF_INET){+.+.}, at: [<0000000071acd7aa>] ip_setsockopt+0x8c/0xb0 [ 29.656125] [ 29.656125] which lock already depends on the new lock. [ 29.656125] [ 29.664407] [ 29.664407] the existing dependency chain (in reverse order) is: [ 29.671991] [ 29.671991] -> #1 (sk_lock-AF_INET){+.+.}: [ 29.677677] lock_sock_nested+0xc2/0x110 [ 29.682232] do_ip_getsockopt+0x1b3/0x2170 [ 29.686956] ip_getsockopt+0x90/0x220 [ 29.691241] tcp_getsockopt+0x82/0xd0 [ 29.695531] sock_common_getsockopt+0x95/0xd0 [ 29.700513] SyS_getsockopt+0x178/0x340 [ 29.704978] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 29.710217] [ 29.710217] -> #0 (rtnl_mutex){+.+.}: [ 29.715470] lock_acquire+0x1d5/0x580 [ 29.719760] __mutex_lock+0x16f/0x1a80 [ 29.724134] mutex_lock_nested+0x16/0x20 [ 29.728688] rtnl_lock+0x17/0x20 [ 29.732544] register_netdevice_notifier+0xad/0x860 [ 29.738048] tee_tg_check+0x1a0/0x280 [ 29.742336] xt_check_target+0x22c/0x7d0 [ 29.746884] find_check_entry.isra.8+0x8c8/0xcb0 [ 29.752128] translate_table+0xed1/0x1610 [ 29.756762] do_ipt_set_ctl+0x370/0x5f0 [ 29.761224] nf_setsockopt+0x67/0xc0 [ 29.765428] ip_setsockopt+0xa1/0xb0 [ 29.769629] raw_setsockopt+0xb7/0xd0 [ 29.773920] sock_common_setsockopt+0x95/0xd0 [ 29.778901] SyS_setsockopt+0x189/0x360 [ 29.783369] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 29.788609] [ 29.788609] other info that might help us debug this: [ 29.788609] [ 29.796715] Possible unsafe locking scenario: [ 29.796715] [ 29.802736] CPU0 CPU1 [ 29.807366] ---- ---- [ 29.812000] lock(sk_lock-AF_INET); [ 29.815691] lock(rtnl_mutex); [ 29.821455] lock(sk_lock-AF_INET); [ 29.827661] lock(rtnl_mutex); [ 29.830908] [ 29.830908] *** DEADLOCK *** [ 29.830908] [ 29.836934] 1 lock held by syzkaller945801/4149: [ 29.841652] #0: (sk_lock-AF_INET){+.+.}, at: [<0000000071acd7aa>] ip_setsockopt+0x8c/0xb0 [ 29.850123] [ 29.850123] stack backtrace: [ 29.854588] CPU: 0 PID: 4149 Comm: syzkaller945801 Not tainted 4.15.0+ #286 [ 29.861650] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.870980] Call Trace: [ 29.873545] dump_stack+0x194/0x257 [ 29.877140] ? arch_local_irq_restore+0x53/0x53 [ 29.881781] print_circular_bug.isra.37+0x2cd/0x2dc [ 29.886765] ? save_trace+0xe0/0x2b0 [ 29.890447] __lock_acquire+0x30a8/0x3e00 [ 29.894561] ? print_irqtrace_events+0x270/0x270 [ 29.899294] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.904450] ? print_irqtrace_events+0x270/0x270 [ 29.909265] ? __lock_acquire+0x664/0x3e00 [ 29.913469] ? print_irqtrace_events+0x270/0x270 [ 29.918194] ? __lock_acquire+0x664/0x3e00 [ 29.922395] ? find_held_lock+0x35/0x1d0 [ 29.926431] ? check_noncircular+0x20/0x20 [ 29.930635] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.935794] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.940954] lock_acquire+0x1d5/0x580 [ 29.944724] ? lock_acquire+0x1d5/0x580 [ 29.948668] ? rtnl_lock+0x17/0x20 [ 29.952177] ? lock_release+0xa40/0xa40 [ 29.956122] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 29.961976] ? rcu_note_context_switch+0x710/0x710 [ 29.966874] ? __might_sleep+0x95/0x190 [ 29.970814] ? rtnl_lock+0x17/0x20 [ 29.974325] __mutex_lock+0x16f/0x1a80 [ 29.978181] ? rtnl_lock+0x17/0x20 [ 29.981687] ? lock_downgrade+0x980/0x980 [ 29.985803] ? rtnl_lock+0x17/0x20 [ 29.989311] ? mutex_lock_io_nested+0x1900/0x1900 [ 29.994122] ? is_bpf_text_address+0x7b/0x120 [ 29.998586] ? print_irqtrace_events+0x270/0x270 [ 30.003314] ? depot_save_stack+0x3b5/0x490 [ 30.007604] ? lock_downgrade+0x980/0x980 [ 30.011719] ? lock_release+0xa40/0xa40 [ 30.015669] ? mark_held_locks+0xaf/0x100 [ 30.019784] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 30.024860] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 30.029844] ? trace_hardirqs_on+0xd/0x10 [ 30.033960] ? depot_save_stack+0x3b5/0x490 [ 30.038263] ? save_stack+0xa3/0xd0 [ 30.041871] ? save_stack+0x43/0xd0 [ 30.045475] ? kasan_kmalloc+0xad/0xe0 [ 30.049342] ? kmem_cache_alloc_trace+0x136/0x750 [ 30.054155] ? tee_tg_check+0xed/0x280 [ 30.058009] ? xt_check_target+0x22c/0x7d0 [ 30.062215] ? find_check_entry.isra.8+0x8c8/0xcb0 [ 30.067125] ? translate_table+0xed1/0x1610 [ 30.071419] ? do_ipt_set_ctl+0x370/0x5f0 [ 30.075543] ? nf_setsockopt+0x67/0xc0 [ 30.079400] ? ip_setsockopt+0xa1/0xb0 [ 30.083255] ? raw_setsockopt+0xb7/0xd0 [ 30.087198] ? sock_common_setsockopt+0x95/0xd0 [ 30.091834] ? SyS_setsockopt+0x189/0x360 [ 30.095957] ? entry_SYSCALL_64_fastpath+0x29/0xa0 [ 30.100860] mutex_lock_nested+0x16/0x20 [ 30.104890] ? mutex_lock_nested+0x16/0x20 [ 30.109093] rtnl_lock+0x17/0x20 [ 30.112429] register_netdevice_notifier+0xad/0x860 [ 30.117416] ? __dev_close_many+0x330/0x330 [ 30.121709] ? __lock_is_held+0xb6/0x140 [ 30.125759] ? tee_tg_check+0xed/0x280 [ 30.129618] ? rcu_read_lock_sched_held+0x108/0x120 [ 30.134603] ? kmem_cache_alloc_trace+0x456/0x750 [ 30.139415] ? __kernel_text_address+0xd/0x40 [ 30.143884] ? wait_for_completion+0x770/0x770 [ 30.148440] tee_tg_check+0x1a0/0x280 [ 30.152212] ? tee_tg4+0x170/0x170 [ 30.155730] xt_check_target+0x22c/0x7d0 [ 30.159770] ? xt_target_seq_next+0x30/0x30 [ 30.164061] ? save_stack+0xa3/0xd0 [ 30.167657] ? kasan_slab_free+0x71/0xc0 [ 30.171684] ? kfree+0xd6/0x260 [ 30.174936] ? kvfree+0x36/0x60 [ 30.178194] ? mutex_unlock+0xd/0x10 [ 30.181877] ? xt_find_target+0x17b/0x1e0 [ 30.186000] find_check_entry.isra.8+0x8c8/0xcb0 [ 30.190727] ? ipt_do_table+0x1860/0x1860 [ 30.194847] ? mark_held_locks+0xaf/0x100 [ 30.198968] ? kfree+0xf0/0x260 [ 30.202216] ? trace_hardirqs_on+0xd/0x10 [ 30.206332] translate_table+0xed1/0x1610 [ 30.210454] ? alloc_counters.isra.11+0x7d0/0x7d0 [ 30.215270] ? kasan_check_write+0x14/0x20 [ 30.219478] ? _copy_from_user+0x99/0x110 [ 30.223593] do_ipt_set_ctl+0x370/0x5f0 [ 30.227534] ? translate_compat_table+0x1b90/0x1b90 [ 30.232524] ? mutex_unlock+0xd/0x10 [ 30.236207] ? nf_sockopt_find.constprop.0+0x1a7/0x220 [ 30.241450] nf_setsockopt+0x67/0xc0 [ 30.245136] ip_setsockopt+0xa1/0xb0 [ 30.248821] raw_setsockopt+0xb7/0xd0 [ 30.252595] sock_common_setsockopt+0x95/0xd0 [ 30.257064] SyS_setsockopt+0x189/0x360 [ 30.261006] ? SyS_recv+0x40/0x40 [ 30.264431] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 30.269242] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 30.274228] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 30.278956] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 30.283681] RIP: 0033:0x440a09 [ 30.286840] RSP: 002b:00007ffc1c71a178 EFLAGS: 00000207 ORIG_RAX: 0000000000000036 [ 30.294518] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 0000000000440a09 [ 30.301759] RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000