[....] Starting enhanced syslogd: rsyslogd[ 12.982920] audit: type=1400 audit(1517078577.109:5): avc: denied { syslog } for pid=3523 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: [ 19.697636] audit: type=1400 audit(1517078583.824:6): avc: denied { map } for pid=3664 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.14' (ECDSA) to the list of known hosts. executing program [ 25.982980] audit: type=1400 audit(1517078590.109:7): avc: denied { map } for pid=3678 comm="syzkaller788474" path="/root/syzkaller788474707" 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 [ 26.063075] [ 26.064714] ====================================================== [ 26.070999] WARNING: possible circular locking dependency detected [ 26.077288] 4.15.0-rc9+ #283 Not tainted [ 26.081324] ------------------------------------------------------ [ 26.087610] syzkaller788474/3678 is trying to acquire lock: [ 26.093285] (rtnl_mutex){+.+.}, at: [<00000000286efcac>] rtnl_lock+0x17/0x20 [ 26.100536] [ 26.100536] but task is already holding lock: [ 26.106474] (sk_lock-AF_INET){+.+.}, at: [<00000000b7ab9256>] ip_setsockopt+0x8c/0xb0 [ 26.114503] [ 26.114503] which lock already depends on the new lock. [ 26.114503] [ 26.122784] [ 26.122784] the existing dependency chain (in reverse order) is: [ 26.130381] [ 26.130381] -> #1 (sk_lock-AF_INET){+.+.}: [ 26.136077] lock_sock_nested+0xc2/0x110 [ 26.140641] do_ip_setsockopt.isra.12+0x1d9/0x32e0 [ 26.146074] ip_setsockopt+0x3a/0xb0 [ 26.150290] dccp_setsockopt+0x85/0xd0 [ 26.154673] sock_common_setsockopt+0x95/0xd0 [ 26.159663] SyS_setsockopt+0x189/0x360 [ 26.164132] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.169375] [ 26.169375] -> #0 (rtnl_mutex){+.+.}: [ 26.174636] lock_acquire+0x1d5/0x580 [ 26.178938] __mutex_lock+0x16f/0x1a80 [ 26.183324] mutex_lock_nested+0x16/0x20 [ 26.187889] rtnl_lock+0x17/0x20 [ 26.191747] register_netdevice_notifier+0xad/0x860 [ 26.197252] tee_tg_check+0x1a0/0x280 [ 26.201543] xt_check_target+0x22c/0x7d0 [ 26.206096] find_check_entry.isra.8+0x8c8/0xcb0 [ 26.211342] translate_table+0xed1/0x1610 [ 26.215982] do_ipt_set_ctl+0x370/0x5f0 [ 26.220451] nf_setsockopt+0x67/0xc0 [ 26.224655] ip_setsockopt+0xa1/0xb0 [ 26.228856] raw_setsockopt+0xb7/0xd0 [ 26.233147] sock_common_setsockopt+0x95/0xd0 [ 26.238137] SyS_setsockopt+0x189/0x360 [ 26.242616] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.247861] [ 26.247861] other info that might help us debug this: [ 26.247861] [ 26.255969] Possible unsafe locking scenario: [ 26.255969] [ 26.261993] CPU0 CPU1 [ 26.266625] ---- ---- [ 26.271262] lock(sk_lock-AF_INET); [ 26.274942] lock(rtnl_mutex); [ 26.280708] lock(sk_lock-AF_INET); [ 26.286904] lock(rtnl_mutex); [ 26.290151] [ 26.290151] *** DEADLOCK *** [ 26.290151] [ 26.296176] 1 lock held by syzkaller788474/3678: [ 26.300895] #0: (sk_lock-AF_INET){+.+.}, at: [<00000000b7ab9256>] ip_setsockopt+0x8c/0xb0 [ 26.309372] [ 26.309372] stack backtrace: [ 26.313841] CPU: 1 PID: 3678 Comm: syzkaller788474 Not tainted 4.15.0-rc9+ #283 [ 26.321254] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.330575] Call Trace: [ 26.333137] dump_stack+0x194/0x257 [ 26.336732] ? arch_local_irq_restore+0x53/0x53 [ 26.341376] print_circular_bug.isra.37+0x2cd/0x2dc [ 26.346367] ? save_trace+0xe0/0x2b0 [ 26.350062] __lock_acquire+0x30a8/0x3e00 [ 26.354181] ? print_irqtrace_events+0x270/0x270 [ 26.358908] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.364065] ? print_irqtrace_events+0x270/0x270 [ 26.368791] ? __lock_acquire+0x664/0x3e00 [ 26.373006] ? print_irqtrace_events+0x270/0x270 [ 26.377737] ? __lock_acquire+0x664/0x3e00 [ 26.381937] ? find_held_lock+0x35/0x1d0 [ 26.385968] ? check_noncircular+0x20/0x20 [ 26.390171] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.395332] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.400492] lock_acquire+0x1d5/0x580 [ 26.404263] ? lock_acquire+0x1d5/0x580 [ 26.408211] ? rtnl_lock+0x17/0x20 [ 26.411722] ? lock_release+0xa40/0xa40 [ 26.415663] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.421520] ? rcu_note_context_switch+0x710/0x710 [ 26.426423] ? __might_sleep+0x95/0x190 [ 26.430367] ? rtnl_lock+0x17/0x20 [ 26.433876] __mutex_lock+0x16f/0x1a80 [ 26.437731] ? rtnl_lock+0x17/0x20 [ 26.441239] ? lock_downgrade+0x980/0x980 [ 26.445354] ? rtnl_lock+0x17/0x20 [ 26.448862] ? mutex_lock_io_nested+0x1900/0x1900 [ 26.453677] ? is_bpf_text_address+0x7b/0x120 [ 26.458146] ? print_irqtrace_events+0x270/0x270 [ 26.462876] ? depot_save_stack+0x3b5/0x490 [ 26.467168] ? lock_downgrade+0x980/0x980 [ 26.471283] ? lock_release+0xa40/0xa40 [ 26.475224] ? mark_held_locks+0xaf/0x100 [ 26.479341] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 26.484415] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.489403] ? trace_hardirqs_on+0xd/0x10 [ 26.493519] ? depot_save_stack+0x3b5/0x490 [ 26.497820] ? save_stack+0xa3/0xd0 [ 26.501423] ? save_stack+0x43/0xd0 [ 26.505025] ? kasan_kmalloc+0xad/0xe0 [ 26.508879] ? kmem_cache_alloc_trace+0x136/0x750 [ 26.513690] ? tee_tg_check+0xed/0x280 [ 26.517547] ? xt_check_target+0x22c/0x7d0 [ 26.521750] ? find_check_entry.isra.8+0x8c8/0xcb0 [ 26.526647] ? translate_table+0xed1/0x1610 [ 26.530935] ? do_ipt_set_ctl+0x370/0x5f0 [ 26.535051] ? nf_setsockopt+0x67/0xc0 [ 26.538908] ? ip_setsockopt+0xa1/0xb0 [ 26.542774] ? raw_setsockopt+0xb7/0xd0 [ 26.546728] ? sock_common_setsockopt+0x95/0xd0 [ 26.551370] ? SyS_setsockopt+0x189/0x360 [ 26.555497] ? entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.560404] mutex_lock_nested+0x16/0x20 [ 26.564433] ? mutex_lock_nested+0x16/0x20 [ 26.568641] rtnl_lock+0x17/0x20 [ 26.571977] register_netdevice_notifier+0xad/0x860 [ 26.576968] ? __dev_close_many+0x330/0x330 [ 26.581259] ? __lock_is_held+0xb6/0x140 [ 26.585290] ? tee_tg_check+0xed/0x280 [ 26.589147] ? rcu_read_lock_sched_held+0x108/0x120 [ 26.594131] ? kmem_cache_alloc_trace+0x456/0x750 [ 26.598942] ? __kernel_text_address+0xd/0x40 [ 26.603417] ? wait_for_completion+0x770/0x770 [ 26.607973] tee_tg_check+0x1a0/0x280 [ 26.611741] ? tee_tg4+0x170/0x170 [ 26.615258] xt_check_target+0x22c/0x7d0 [ 26.619301] ? xt_target_seq_next+0x30/0x30 [ 26.623593] ? save_stack+0xa3/0xd0 [ 26.627190] ? kasan_slab_free+0x71/0xc0 [ 26.631217] ? kfree+0xd6/0x260 [ 26.634471] ? kvfree+0x36/0x60 [ 26.637721] ? mutex_unlock+0xd/0x10 [ 26.641405] ? xt_find_target+0x17b/0x1e0 [ 26.645532] find_check_entry.isra.8+0x8c8/0xcb0 [ 26.650264] ? ipt_do_table+0x1860/0x1860 [ 26.654384] ? mark_held_locks+0xaf/0x100 [ 26.658503] ? kfree+0xf0/0x260 [ 26.661750] ? trace_hardirqs_on+0xd/0x10 [ 26.665871] translate_table+0xed1/0x1610 [ 26.669991] ? alloc_counters.isra.11+0x7d0/0x7d0 [ 26.674804] ? kasan_check_write+0x14/0x20 [ 26.679009] ? _copy_from_user+0x99/0x110 [ 26.683126] do_ipt_set_ctl+0x370/0x5f0 [ 26.687069] ? translate_compat_table+0x1b90/0x1b90 [ 26.692059] ? mutex_unlock+0xd/0x10 [ 26.695749] ? nf_sockopt_find.constprop.0+0x1a7/0x220 [ 26.700994] nf_setsockopt+0x67/0xc0 [ 26.704680] ip_setsockopt+0xa1/0xb0 [ 26.708363] raw_setsockopt+0xb7/0xd0 [ 26.712135] sock_common_setsockopt+0x95/0xd0 [ 26.717290] SyS_setsockopt+0x189/0x360 [ 26.721247] ? SyS_recv+0x40/0x40 [ 26.724672] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 26.729492] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.734487] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.739217] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.743947] RIP: 0033:0x440c29 [ 26.747108] RSP: 002b:00007ffe92748488 EFLAGS: 00000207 ORIG_RAX: 0000000000000036 [ 26.754787] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 0000000000440c29 [ 26.762026] RDX: 0000000000000040 RSI: 00000000