[....] Starting enhanced syslogd: rsyslogd[ 13.510881] audit: type=1400 audit(1517213465.971:5): avc: denied { syslog } for pid=3534 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.228852] audit: type=1400 audit(1517213471.689:6): avc: denied { map } for pid=3675 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.2' (ECDSA) to the list of known hosts. net.ipv6.conf.syz0.accept_dad = 0 net.ipv6.conf.syz0.router_solicitations = 0 [ 25.509239] audit: type=1400 audit(1517213477.970:7): avc: denied { map } for pid=3689 comm="syzkaller277328" path="/root/syzkaller277328429" 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.900658] 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.246115] [ 26.247756] ====================================================== [ 26.254048] WARNING: possible circular locking dependency detected [ 26.260335] 4.15.0-rc9+ #214 Not tainted [ 26.264361] ------------------------------------------------------ [ 26.270648] syzkaller277328/3689 is trying to acquire lock: [ 26.276323] (rtnl_mutex){+.+.}, at: [<000000006cde58f3>] rtnl_lock+0x17/0x20 [ 26.283578] [ 26.283578] but task is already holding lock: [ 26.289522] (sk_lock-AF_INET){+.+.}, at: [<0000000017b77ca3>] ip_setsockopt+0x8c/0xb0 [ 26.297563] [ 26.297563] which lock already depends on the new lock. [ 26.297563] [ 26.305853] [ 26.305853] the existing dependency chain (in reverse order) is: [ 26.313450] [ 26.313450] -> #1 (sk_lock-AF_INET){+.+.}: [ 26.319148] lock_sock_nested+0xc2/0x110 [ 26.323708] do_ip_getsockopt+0x1b3/0x2170 [ 26.328443] ip_getsockopt+0x90/0x220 [ 26.332743] tcp_getsockopt+0x82/0xd0 [ 26.337047] sock_common_getsockopt+0x95/0xd0 [ 26.342035] SyS_getsockopt+0x178/0x340 [ 26.346503] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.351761] [ 26.351761] -> #0 (rtnl_mutex){+.+.}: [ 26.357026] lock_acquire+0x1d5/0x580 [ 26.361321] __mutex_lock+0x16f/0x1a80 [ 26.365710] mutex_lock_nested+0x16/0x20 [ 26.370263] rtnl_lock+0x17/0x20 [ 26.374123] register_netdevice_notifier+0xad/0x860 [ 26.379631] tee_tg_check+0x1a0/0x280 [ 26.383921] xt_check_target+0x22c/0x7d0 [ 26.388472] find_check_entry.isra.8+0x8c8/0xcb0 [ 26.393719] translate_table+0xed1/0x1610 [ 26.398357] do_ipt_set_ctl+0x370/0x5f0 [ 26.402830] nf_setsockopt+0x67/0xc0 [ 26.407039] ip_setsockopt+0xa1/0xb0 [ 26.411245] raw_setsockopt+0xb7/0xd0 [ 26.415543] sock_common_setsockopt+0x95/0xd0 [ 26.420528] SyS_setsockopt+0x189/0x360 [ 26.424995] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.430240] [ 26.430240] other info that might help us debug this: [ 26.430240] [ 26.438350] Possible unsafe locking scenario: [ 26.438350] [ 26.444382] CPU0 CPU1 [ 26.449017] ---- ---- [ 26.453658] lock(sk_lock-AF_INET); [ 26.457349] lock(rtnl_mutex); [ 26.463115] lock(sk_lock-AF_INET); [ 26.469321] lock(rtnl_mutex); [ 26.472572] [ 26.472572] *** DEADLOCK *** [ 26.472572] [ 26.478604] 1 lock held by syzkaller277328/3689: [ 26.483345] #0: (sk_lock-AF_INET){+.+.}, at: [<0000000017b77ca3>] ip_setsockopt+0x8c/0xb0 [ 26.491820] [ 26.491820] stack backtrace: [ 26.496289] CPU: 1 PID: 3689 Comm: syzkaller277328 Not tainted 4.15.0-rc9+ #214 [ 26.503706] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.513036] Call Trace: [ 26.515598] dump_stack+0x194/0x257 [ 26.519197] ? arch_local_irq_restore+0x53/0x53 [ 26.523843] print_circular_bug.isra.37+0x2cd/0x2dc [ 26.528829] ? save_trace+0xe0/0x2b0 [ 26.532525] __lock_acquire+0x30a8/0x3e00 [ 26.536645] ? print_irqtrace_events+0x270/0x270 [ 26.541379] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.546539] ? check_noncircular+0x20/0x20 [ 26.550746] ? print_irqtrace_events+0x270/0x270 [ 26.555473] ? __lock_acquire+0x664/0x3e00 [ 26.559686] ? __debug_object_init+0x235/0x1040 [ 26.564327] ? lock_downgrade+0x980/0x980 [ 26.568445] ? print_irqtrace_events+0x270/0x270 [ 26.573173] ? __lock_acquire+0x664/0x3e00 [ 26.577378] ? debug_object_activate+0x307/0x730 [ 26.582108] ? check_noncircular+0x20/0x20 [ 26.586319] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.591482] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.596641] lock_acquire+0x1d5/0x580 [ 26.600409] ? lock_acquire+0x1d5/0x580 [ 26.604355] ? rtnl_lock+0x17/0x20 [ 26.607869] ? lock_release+0xa40/0xa40 [ 26.611818] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.617675] ? rcu_note_context_switch+0x710/0x710 [ 26.622576] ? __might_sleep+0x95/0x190 [ 26.626521] ? rtnl_lock+0x17/0x20 [ 26.630034] __mutex_lock+0x16f/0x1a80 [ 26.633897] ? rtnl_lock+0x17/0x20 [ 26.637410] ? lock_downgrade+0x980/0x980 [ 26.641531] ? rtnl_lock+0x17/0x20 [ 26.645050] ? mutex_lock_io_nested+0x1900/0x1900 [ 26.649867] ? is_bpf_text_address+0x7b/0x120 [ 26.654331] ? print_irqtrace_events+0x270/0x270 [ 26.659066] ? depot_save_stack+0x3b5/0x490 [ 26.663364] ? lock_downgrade+0x980/0x980 [ 26.667485] ? lock_release+0xa40/0xa40 [ 26.671429] ? mark_held_locks+0xaf/0x100 [ 26.675549] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 26.680624] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.685612] ? trace_hardirqs_on+0xd/0x10 [ 26.689731] ? depot_save_stack+0x3b5/0x490 [ 26.694029] ? save_stack+0xa3/0xd0 [ 26.697628] ? save_stack+0x43/0xd0 [ 26.701223] ? kasan_kmalloc+0xad/0xe0 [ 26.705088] ? kmem_cache_alloc_trace+0x136/0x750 [ 26.709899] ? tee_tg_check+0xed/0x280 [ 26.713756] ? xt_check_target+0x22c/0x7d0 [ 26.717969] ? find_check_entry.isra.8+0x8c8/0xcb0 [ 26.722883] ? translate_table+0xed1/0x1610 [ 26.727179] ? do_ipt_set_ctl+0x370/0x5f0 [ 26.731299] ? nf_setsockopt+0x67/0xc0 [ 26.735155] ? ip_setsockopt+0xa1/0xb0 [ 26.739015] ? raw_setsockopt+0xb7/0xd0 [ 26.742962] ? sock_common_setsockopt+0x95/0xd0 [ 26.747604] ? SyS_setsockopt+0x189/0x360 [ 26.751721] ? entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.756622] mutex_lock_nested+0x16/0x20 [ 26.760652] ? mutex_lock_nested+0x16/0x20 [ 26.764876] rtnl_lock+0x17/0x20 [ 26.768220] register_netdevice_notifier+0xad/0x860 [ 26.773210] ? __dev_close_many+0x350/0x350 [ 26.777505] ? __lock_is_held+0xb6/0x140 [ 26.781538] ? tee_tg_check+0xed/0x280 [ 26.785410] ? rcu_read_lock_sched_held+0x108/0x120 [ 26.790409] ? kmem_cache_alloc_trace+0x456/0x750 [ 26.795222] ? __kernel_text_address+0xd/0x40 [ 26.799687] ? wait_for_completion+0x770/0x770 [ 26.804239] tee_tg_check+0x1a0/0x280 [ 26.808011] ? tee_tg4+0x170/0x170 [ 26.811529] xt_check_target+0x22c/0x7d0 [ 26.815560] ? xt_target_seq_next+0x30/0x30 [ 26.819860] ? save_stack+0xa3/0xd0 [ 26.823460] ? kasan_slab_free+0x71/0xc0 [ 26.827489] ? kfree+0xd6/0x260 [ 26.830739] ? kvfree+0x36/0x60 [ 26.833990] ? mutex_unlock+0xd/0x10 [ 26.838407] ? xt_find_target+0x17b/0x1e0 [ 26.842538] find_check_entry.isra.8+0x8c8/0xcb0 [ 26.847265] ? ipt_do_table+0x1860/0x1860 [ 26.851384] ? mark_held_locks+0xaf/0x100 [ 26.855504] ? kfree+0xf0/0x260 [ 26.858768] ? trace_hardirqs_on+0xd/0x10 [ 26.862888] translate_table+0xed1/0x1610 [ 26.867026] ? alloc_counters.isra.11+0x7d0/0x7d0 [ 26.871842] ? kasan_check_write+0x14/0x20 [ 26.876050] ? _copy_from_user+0x99/0x110 [ 26.880170] do_ipt_set_ctl+0x370/0x5f0 [ 26.884120] ? translate_compat_table+0x1b90/0x1b90 [ 26.889109] ? mutex_unlock+0xd/0x10 [ 26.892795] ? nf_sockopt_find.constprop.0+0x1a7/0x220 [ 26.898041] nf_setsockopt+0x67/0xc0 [ 26.901724] ip_setsockopt+0xa1/0xb0 [ 26.905408] raw_setsockopt+0xb7/0xd0 [ 26.909183] sock_common_setsockopt+0x95/0xd0 [ 26.913656] SyS_setsockopt+0x189/0x360 [ 26.917605] ? SyS_recv+0x40/0x40 [ 26.921039] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 26.925856] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.930842] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.935569] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.940295] RIP: 0033:0x4459f9 [ 26.943462] RSP: 002b:00007fffbc307d48 EFLAGS: 00000203 ORIG_RAX: