[....] Starting enhanced syslogd: rsyslogd[ 13.034714] audit: type=1400 audit(1517071596.444:5): avc: denied { syslog } for pid=3527 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.153359] audit: type=1400 audit(1517071602.563:6): avc: denied { map } for pid=3668 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.206' (ECDSA) to the list of known hosts. executing program [ 25.421227] audit: type=1400 audit(1517071608.831:7): avc: denied { map } for pid=3682 comm="syzkaller041579" path="/root/syzkaller041579251" 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.448045] [ 25.449672] ====================================================== [ 25.455956] WARNING: possible circular locking dependency detected [ 25.462241] 4.15.0-rc9+ #212 Not tainted [ 25.466270] ------------------------------------------------------ [ 25.472553] syzkaller041579/3682 is trying to acquire lock: [ 25.478227] (sk_lock-AF_INET6){+.+.}, at: [<000000008775e4dd>] do_ipv6_setsockopt.isra.8+0x3c5/0x39d0 [ 25.487654] [ 25.487654] but task is already holding lock: [ 25.493588] (rtnl_mutex){+.+.}, at: [<000000004342eaa9>] rtnl_lock+0x17/0x20 [ 25.500836] [ 25.500836] which lock already depends on the new lock. [ 25.500836] [ 25.509118] [ 25.509118] the existing dependency chain (in reverse order) is: [ 25.516702] [ 25.516702] -> #1 (rtnl_mutex){+.+.}: [ 25.521954] __mutex_lock+0x16f/0x1a80 [ 25.526331] mutex_lock_nested+0x16/0x20 [ 25.530887] rtnl_lock+0x17/0x20 [ 25.534744] register_netdevice_notifier+0xad/0x860 [ 25.540246] tee_tg_check+0x1a0/0x280 [ 25.544535] xt_check_target+0x22c/0x7d0 [ 25.549087] find_check_entry.isra.7+0x935/0xcf0 [ 25.554332] translate_table+0xf52/0x1690 [ 25.558969] do_ip6t_set_ctl+0x370/0x5f0 [ 25.563519] nf_setsockopt+0x67/0xc0 [ 25.567722] ipv6_setsockopt+0x115/0x150 [ 25.572270] udpv6_setsockopt+0x45/0x80 [ 25.576735] sock_common_setsockopt+0x95/0xd0 [ 25.581720] SyS_setsockopt+0x189/0x360 [ 25.586192] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.591432] [ 25.591432] -> #0 (sk_lock-AF_INET6){+.+.}: [ 25.597203] lock_acquire+0x1d5/0x580 [ 25.601492] lock_sock_nested+0xc2/0x110 [ 25.606046] do_ipv6_setsockopt.isra.8+0x3c5/0x39d0 [ 25.611552] ipv6_setsockopt+0xd7/0x150 [ 25.616019] udpv6_setsockopt+0x45/0x80 [ 25.620487] sock_common_setsockopt+0x95/0xd0 [ 25.625471] SyS_setsockopt+0x189/0x360 [ 25.629935] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.635175] [ 25.635175] other info that might help us debug this: [ 25.635175] [ 25.643280] Possible unsafe locking scenario: [ 25.643280] [ 25.649388] CPU0 CPU1 [ 25.654026] ---- ---- [ 25.658660] lock(rtnl_mutex); [ 25.661907] lock(sk_lock-AF_INET6); [ 25.668192] lock(rtnl_mutex); [ 25.673954] lock(sk_lock-AF_INET6); [ 25.677719] [ 25.677719] *** DEADLOCK *** [ 25.677719] [ 25.683744] 1 lock held by syzkaller041579/3682: [ 25.688462] #0: (rtnl_mutex){+.+.}, at: [<000000004342eaa9>] rtnl_lock+0x17/0x20 [ 25.696143] [ 25.696143] stack backtrace: [ 25.700610] CPU: 1 PID: 3682 Comm: syzkaller041579 Not tainted 4.15.0-rc9+ #212 [ 25.708023] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.717346] Call Trace: [ 25.719907] dump_stack+0x194/0x257 [ 25.723507] ? arch_local_irq_restore+0x53/0x53 [ 25.728147] print_circular_bug.isra.37+0x2cd/0x2dc [ 25.733130] ? save_trace+0xe0/0x2b0 [ 25.736811] __lock_acquire+0x30a8/0x3e00 [ 25.740934] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.746094] ? rtnl_lock+0x17/0x20 [ 25.749609] ? __mutex_lock+0x16f/0x1a80 [ 25.753637] ? rtnl_lock+0x17/0x20 [ 25.757143] ? check_noncircular+0x20/0x20 [ 25.761347] ? lru_cache_add+0x1c7/0x3a0 [ 25.765376] ? get_mem_cgroup_from_mm+0x710/0x710 [ 25.770184] ? rtnl_lock+0x17/0x20 [ 25.773695] ? __mem_cgroup_threshold+0x8f0/0x8f0 [ 25.778506] ? mutex_lock_io_nested+0x1900/0x1900 [ 25.783317] ? mark_held_locks+0xaf/0x100 [ 25.787436] ? print_irqtrace_events+0x270/0x270 [ 25.792162] ? retint_kernel+0x10/0x10 [ 25.796029] ? trace_hardirqs_on_caller+0x19e/0x5c0 [ 25.801020] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.805747] ? retint_kernel+0x10/0x10 [ 25.809602] ? find_held_lock+0x35/0x1d0 [ 25.813635] lock_acquire+0x1d5/0x580 [ 25.817403] ? lock_sock_nested+0xa3/0x110 [ 25.821605] ? lock_acquire+0x1d5/0x580 [ 25.825548] ? do_ipv6_setsockopt.isra.8+0x3c5/0x39d0 [ 25.830707] ? lock_release+0xa40/0xa40 [ 25.834647] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.840502] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.846354] ? do_raw_spin_trylock+0x190/0x190 [ 25.850903] ? lock_sock_nested+0x44/0x110 [ 25.855107] lock_sock_nested+0xc2/0x110 [ 25.859136] ? do_ipv6_setsockopt.isra.8+0x3c5/0x39d0 [ 25.864291] do_ipv6_setsockopt.isra.8+0x3c5/0x39d0 [ 25.869276] ? ipv6_update_options+0x330/0x330 [ 25.873824] ? save_stack+0x43/0xd0 [ 25.877417] ? kasan_kmalloc+0xad/0xe0 [ 25.881272] ? kasan_slab_alloc+0x12/0x20 [ 25.885388] ? kmem_cache_alloc+0x12e/0x760 [ 25.889680] ? selinux_file_alloc_security+0xae/0x190 [ 25.894838] ? security_file_alloc+0x6d/0xa0 [ 25.899214] ? get_empty_filp+0x189/0x4f0 [ 25.903330] ? alloc_file+0x26/0x390 [ 25.907016] ? sock_alloc_file+0x1f3/0x560 [ 25.911226] ? sock_map_fd+0x34/0x90 [ 25.914913] ? SyS_socket+0x125/0x1d0 [ 25.918682] ? entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.923580] ? kasan_slab_alloc+0x12/0x20 [ 25.927696] ? kmem_cache_alloc+0x12e/0x760 [ 25.931984] ? get_empty_filp+0xfb/0x4f0 [ 25.936020] ? alloc_file+0x26/0x390 [ 25.939705] ? sock_alloc_file+0x1f3/0x560 [ 25.943910] ? find_held_lock+0x35/0x1d0 [ 25.947943] ? avc_has_perm+0x35e/0x680 [ 25.951885] ? lock_downgrade+0x980/0x980 [ 25.956005] ? lock_release+0xa40/0xa40 [ 25.959951] ? check_noncircular+0x20/0x20 [ 25.964152] ? __pmd_alloc+0x4e0/0x4e0 [ 25.968008] ? __lockdep_init_map+0xe4/0x650 [ 25.972390] ? find_held_lock+0x35/0x1d0 [ 25.976418] ? avc_has_perm+0x43e/0x680 [ 25.980360] ? avc_has_perm_noaudit+0x520/0x520 [ 25.984999] ? __do_page_fault+0x5f7/0xc90 [ 25.989204] ? lock_downgrade+0x980/0x980 [ 25.993326] ? handle_mm_fault+0x410/0x8d0 [ 25.997529] ? down_read_trylock+0xdb/0x170 [ 26.001817] ? __do_page_fault+0x32d/0xc90 [ 26.006024] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 26.010576] ? vmacache_find+0x5f/0x280 [ 26.014518] ? sock_has_perm+0x2a4/0x420 [ 26.018546] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 26.023876] ? __do_page_fault+0x3d6/0xc90 [ 26.028083] ? selinux_netlbl_socket_setsockopt+0x10c/0x460 [ 26.033762] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 26.039011] ipv6_setsockopt+0xd7/0x150 [ 26.042961] ? ipv6_setsockopt+0xd7/0x150 [ 26.047077] udpv6_setsockopt+0x45/0x80 [ 26.051036] sock_common_setsockopt+0x95/0xd0 [ 26.055502] SyS_setsockopt+0x189/0x360 [ 26.059443] ? SyS_recv+0x40/0x40 [ 26.062865] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 26.067673] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.072661] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.077392] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.082113] RIP: 0033:0x4411d9 [ 26.085273] RSP: 002b:00007ffc60dba938 EFLAGS: 00000207 ORIG_RAX: 0000000000000036 [ 26.092948] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 00000000004411d9 [ 26.100193] RDX: 000000000000002d RSI: 0000000000000029 RDI: 0000000000000004 [ 26.107433] RBP: 00000000006cb018 R08: 0000000000000088 R09: 0000000000000000 [ 26.114673] R10: 0000000020d01f78 R11: 0000000000000207 R12: 0000000000402b00 [ 26.121912] R13: 00000000