[....] Starting enhanced syslogd: rsyslogd[ 12.020849] audit: type=1400 audit(1515680364.028:5): avc: denied { syslog } for pid=3355 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.183687] audit: type=1400 audit(1515680371.191:6): avc: denied { map } for pid=3494 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.45' (ECDSA) to the list of known hosts. [ 26.380838] audit: type=1400 audit(1515680378.388:7): avc: denied { map } for pid=3508 comm="syzkaller203412" path="/root/syzkaller203412781" 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 executing program [ 26.408089] audit: type=1400 audit(1515680378.393:8): avc: denied { sys_admin } for pid=3508 comm="syzkaller203412" capability=21 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 [ 26.438423] audit: type=1400 audit(1515680378.446:9): avc: denied { sys_chroot } for pid=3509 comm="syzkaller203412" capability=18 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 [ 26.440404] ================================================================== [ 26.440423] BUG: KASAN: use-after-free in array_map_update_elem+0x197/0x240 [ 26.440429] Write of size 1 at addr ffff8801cb125bc0 by task syzkaller203412/3509 [ 26.440431] [ 26.440439] CPU: 1 PID: 3509 Comm: syzkaller203412 Not tainted 4.15.0-rc7-next-20180111+ #94 [ 26.440443] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.440446] Call Trace: [ 26.440455] dump_stack+0x194/0x257 [ 26.440467] ? arch_local_irq_restore+0x53/0x53 [ 26.440475] ? show_regs_print_info+0x18/0x18 [ 26.440487] ? lock_acquire+0x1d5/0x580 [ 26.440494] ? bpf_prog_sub+0x60/0x60 [ 26.440503] ? array_map_update_elem+0x197/0x240 [ 26.440515] print_address_description+0x73/0x250 [ 26.440524] ? array_map_update_elem+0x197/0x240 [ 26.440533] kasan_report+0x23b/0x360 [ 26.440547] check_memory_region+0x137/0x190 [ 26.440557] memcpy+0x37/0x50 [ 26.440567] array_map_update_elem+0x197/0x240 [ 26.440575] ? array_of_map_gen_lookup+0xd50/0xd50 [ 26.440586] SyS_bpf+0x32df/0x4400 [ 26.440603] ? bpf_prog_get+0x20/0x20 [ 26.440616] ? lock_release+0xa40/0xa40 [ 26.440631] ? do_raw_spin_trylock+0x190/0x190 [ 26.440660] ? _raw_spin_unlock+0x22/0x30 [ 26.440669] ? __handle_mm_fault+0x80e/0x3ce0 [ 26.440685] ? check_noncircular+0x20/0x20 [ 26.440691] ? __pmd_alloc+0x4e0/0x4e0 [ 26.440696] ? vma_link+0xe9/0x170 [ 26.440714] ? find_held_lock+0x35/0x1d0 [ 26.440733] ? handle_mm_fault+0x2a0/0x930 [ 26.440746] ? find_held_lock+0x35/0x1d0 [ 26.440766] ? __do_page_fault+0x5f7/0xc90 [ 26.440776] ? lock_downgrade+0x980/0x980 [ 26.440796] ? handle_mm_fault+0x476/0x930 [ 26.440802] ? down_read_trylock+0xdb/0x170 [ 26.440813] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 26.440819] ? vmacache_find+0x5f/0x280 [ 26.440837] ? up_read+0x1a/0x40 [ 26.440846] ? __do_page_fault+0x3d6/0xc90 [ 26.440865] ? mm_fault_error+0x2c0/0x2c0 [ 26.440889] ? do_page_fault+0xee/0x720 [ 26.440898] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 26.440906] ? __do_page_fault+0xc90/0xc90 [ 26.440927] ? SyS_mmap_pgoff+0x243/0x5f0 [ 26.440950] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.440968] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.440973] RIP: 0033:0x440ac9 [ 26.440977] RSP: 002b:00000000007dff68 EFLAGS: 00000203 ORIG_RAX: 0000000000000141 [ 26.440985] RAX: ffffffffffffffda RBX: 00007ffe6a583b10 RCX: 0000000000440ac9 [ 26.440988] RDX: 0000000000000020 RSI: 0000000020eaf000 RDI: 0000000000000002 [ 26.440992] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 26.440996] R10: 0000000000000000 R11: 0000000000000203 R12: 00000000004022a0 [ 26.441000] R13: 0000000000402330 R14: 0000000000000000 R15: 0000000000000000 [ 26.441030] [ 26.441034] Allocated by task 3071: [ 26.441041] save_stack+0x43/0xd0 [ 26.441047] kasan_kmalloc+0xad/0xe0 [ 26.441053] kasan_slab_alloc+0x12/0x20 [ 26.441058] kmem_cache_alloc+0x12e/0x760 [ 26.441065] getname_flags+0xcb/0x580 [ 26.441070] user_path_at_empty+0x2d/0x50 [ 26.441076] SyS_access+0x22c/0x6a0 [ 26.441081] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.441083] [ 26.441086] Freed by task 3071: [ 26.441091] save_stack+0x43/0xd0 [ 26.441097] __kasan_slab_free+0x11a/0x170 [ 26.441103] kasan_slab_free+0xe/0x10 [ 26.441108] kmem_cache_free+0x86/0x2b0 [ 26.441113] putname+0xee/0x130 [ 26.441118] filename_lookup+0x315/0x500 [ 26.441123] user_path_at_empty+0x40/0x50 [ 26.441129] SyS_access+0x22c/0x6a0 [ 26.441134] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.441136] [ 26.441140] The buggy address belongs to the object at ffff8801cb124e40 [ 26.441140] which belongs to the cache names_cache of size 4096 [ 26.441146] The buggy address is located 3456 bytes inside of [ 26.441146] 4096-byte region [ffff8801cb124e40, ffff8801cb125e40) [ 26.441148] The buggy address belongs to the page: [ 26.441154] page:ffffea00072c4900 count:1 mapcount:0 mapping:ffff8801cb124e40 index:0x0 compound_mapcount: 0 [ 26.441163] flags: 0x2fffc0000008100(slab|head) [ 26.441172] raw: 02fffc0000008100 ffff8801cb124e40 0000000000000000 0000000100000001 [ 26.441179] raw: ffffea000729bc20 ffffea000729bca0 ffff8801dae30600 0000000000000000 [ 26.441182] page dumped because: kasan: bad access detected [ 26.441183] [ 26.441185] Memory state around the buggy address: [ 26.441191] ffff8801cb125a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.441196] ffff8801cb125b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.441200] >ffff8801cb125b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.441203] ^ [ 26.441208] ffff8801cb125c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.441213] ffff8801cb125c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.441215] ================================================================== [ 26.441217] Disabling lock debugging due to kernel taint [ 26.441244] Kernel panic - not syncing: panic_on_warn set ... [ 26.441244] [ 26.441250] CPU: 1 PID: 3509 Comm: syzkaller203412 Tainted: G B 4.15.0-rc7-next-20180111+ #94 [ 26.441253] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.441255] Call Trace: [ 26.441261] dump_stack+0x194/0x257 [ 26.441269] ? arch_local_irq_restore+0x53/0x53 [ 26.441277] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.441284] ? vsnprintf+0x1ed/0x1900 [ 26.441292] ? array_map_update_elem+0xa0/0x240 [ 26.441301] panic+0x1e4/0x41c [ 26.441308] ? refcount_error_report+0x214/0x214 [ 26.441317] ? add_taint+0x1c/0x50 [ 26.441324] ? add_taint+0x1c/0x50 [ 26.441333] ? array_map_update_elem+0x197/0x240 [ 26.441340] kasan_end_report+0x50/0x50 [ 26.441345] kasan_report+0x148/0x360 [ 26.441355] check_memory_region+0x137/0x190 [ 26.441362] memcpy+0x37/0x50 [ 26.441371] array_map_update_elem+0x197/0x240 [ 26.441377] ? array_of_map_gen_lookup+0xd50/0xd50 [ 26.441385] SyS_bpf+0x32df/0x4400 [ 26.441396] ? bpf_prog_get+0x20/0x20 [ 26.441405] ? lock_release+0xa40/0xa40 [ 26.441415] ? do_raw_spin_trylock+0x190/0x190 [ 26.441428] ? _raw_spin_unlock+0x22/0x30 [ 26.441435] ? __handle_mm_fault+0x80e/0x3ce0 [ 26.441445] ? check_noncircular+0x20/0x20 [ 26.441451] ? __pmd_alloc+0x4e0/0x4e0 [ 26.441455] ? vma_link+0xe9/0x170 [ 26.441467] ? find_held_lock+0x35/0x1d0 [ 26.441479] ? handle_mm_fault+0x2a0/0x930 [ 26.441488] ? find_held_lock+0x35/0x1d0 [ 26.441500] ? __do_page_fault+0x5f7/0xc90 [ 26.441507] ? lock_downgrade+0x980/0x980 [ 26.441520] ? handle_mm_fault+0x476/0x930 [ 26.441525] ? down_read_trylock+0xdb/0x170 [ 26.441533] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 26.441538] ? vmacache_find+0x5f/0x280 [ 26.441549] ? up_read+0x1a/0x40 [ 26.441556] ? __do_page_fault+0x3d6/0xc90 [ 26.441568] ? mm_fault_error+0x2c0/0x2c0 [ 26.441582] ? do_page_fault+0xee/0x720 [ 26.441589] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 26.441596] ? __do_page_fault+0xc90/0xc90 [ 26.441608] ? SyS_mmap_pgoff+0x243/0x5f0 [ 26.441622] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.441633] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.441641] RIP: 0033:0x440ac9 [ 26.441645] RSP: 002b:00000000007dff68 EFLAGS: 00000203 ORIG_RAX: 0000000000000141 [ 26.441651] RAX: ffffffffffffffda RBX: 00007ffe6a583b10 RCX: 0000000000440ac9 [ 26.441654] RDX: 0000000000000020 RSI: 0000000020eaf000 RDI: 0000000000000002 [ 26.441658] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 26.441661] R10: 0000000000000000 R11: 0000000000000203 R12: 00000000004022a0 [ 26.441664] R13: 0000000000402330 R14: 0000000000000000 R15: 0000000000000000 [ 26.463771] Dumping ftrace buffer: [ 26.463775] (ftrace buffer empty) [ 26.463778] Kernel Offset: disabled [ 27.216290] Rebooting in 86400 seconds..