[....] Starting enhanced syslogd: rsyslogd[ 12.593319] audit: type=1400 audit(1515719227.793: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: [ 18.927007] audit: type=1400 audit(1515719234.127:6): avc: denied { map } for pid=3496 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.238' (ECDSA) to the list of known hosts. [ 25.158654] audit: type=1400 audit(1515719240.359:7): avc: denied { map } for pid=3510 comm="syzkaller886548" path="/root/syzkaller886548625" 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 [ 25.184840] audit: type=1400 audit(1515719240.359:8): avc: denied { sys_admin } for pid=3510 comm="syzkaller886548" 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 [ 25.216464] audit: type=1400 audit(1515719240.417:9): avc: denied { sys_chroot } for pid=3511 comm="syzkaller886548" 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 [ 25.219310] ================================================================== [ 25.219330] BUG: KASAN: use-after-free in map_lookup_elem+0x4dc/0xbd0 [ 25.219336] Read of size 4 at addr ffff8801bf5a9858 by task syzkaller886548/3511 [ 25.219338] [ 25.219347] CPU: 0 PID: 3511 Comm: syzkaller886548 Not tainted 4.15.0-rc7-mm1+ #53 [ 25.219351] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.219354] Call Trace: [ 25.219365] dump_stack+0x194/0x257 [ 25.219378] ? arch_local_irq_restore+0x53/0x53 [ 25.219386] ? show_regs_print_info+0x18/0x18 [ 25.219402] ? map_lookup_elem+0x4dc/0xbd0 [ 25.219416] print_address_description+0x73/0x250 [ 25.219424] ? map_lookup_elem+0x4dc/0xbd0 [ 25.219434] kasan_report+0x23b/0x360 [ 25.219449] check_memory_region+0x137/0x190 [ 25.219458] memcpy+0x23/0x50 [ 25.219468] map_lookup_elem+0x4dc/0xbd0 [ 25.219484] ? bpf_map_get_with_uref+0x110/0x110 [ 25.219496] ? __might_sleep+0x95/0x190 [ 25.219509] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 25.219519] ? selinux_bpf+0xd1/0x110 [ 25.219531] ? security_bpf+0x89/0xb0 [ 25.219545] SyS_bpf+0x922/0x4400 [ 25.219555] ? perf_event_mmap+0x115/0x12a0 [ 25.219567] ? bpf_prog_get+0x20/0x20 [ 25.219580] ? perf_event_fork+0x30/0x30 [ 25.219606] ? __lock_is_held+0xb6/0x140 [ 25.219617] ? check_noncircular+0x20/0x20 [ 25.219625] ? vma_wants_writenotify+0x51/0x3b0 [ 25.219640] ? __handle_mm_fault+0x80e/0x3ce0 [ 25.219656] ? check_noncircular+0x20/0x20 [ 25.219662] ? __pmd_alloc+0x4e0/0x4e0 [ 25.219667] ? vma_link+0xe9/0x170 [ 25.219685] ? find_held_lock+0x35/0x1d0 [ 25.219704] ? handle_mm_fault+0x2a0/0x930 [ 25.219717] ? find_held_lock+0x35/0x1d0 [ 25.219740] ? __do_page_fault+0x5f7/0xc90 [ 25.219749] ? lock_downgrade+0x980/0x980 [ 25.219770] ? handle_mm_fault+0x476/0x930 [ 25.219776] ? down_read_trylock+0xdb/0x170 [ 25.219787] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 25.219793] ? vmacache_find+0x5f/0x280 [ 25.219811] ? up_read+0x1a/0x40 [ 25.219820] ? __do_page_fault+0x3d6/0xc90 [ 25.219839] ? mm_fault_error+0x2c0/0x2c0 [ 25.219863] ? do_page_fault+0xee/0x720 [ 25.219873] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 25.219881] ? __do_page_fault+0xc90/0xc90 [ 25.219902] ? SyS_mmap_pgoff+0x243/0x5f0 [ 25.219925] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.219945] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.219951] RIP: 0033:0x440ab9 [ 25.219955] RSP: 002b:00000000007dff68 EFLAGS: 00000203 ORIG_RAX: 0000000000000141 [ 25.219963] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 0000000000440ab9 [ 25.219967] RDX: 0000000000000018 RSI: 0000000020c3c000 RDI: 0000000000000001 [ 25.219971] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 25.219974] R10: 0000000000000000 R11: 0000000000000203 R12: 0000000000402290 [ 25.219978] R13: 0000000000402320 R14: 0000000000000000 R15: 0000000000000000 [ 25.220009] [ 25.220012] Allocated by task 3510: [ 25.220019] save_stack+0x43/0xd0 [ 25.220025] kasan_kmalloc+0xad/0xe0 [ 25.220031] kmem_cache_alloc_trace+0x136/0x750 [ 25.220039] do_execveat_common.isra.30+0x3ea/0x22a0 [ 25.220044] SyS_execve+0x39/0x50 [ 25.220049] do_syscall_64+0x273/0x920 [ 25.220054] return_from_SYSCALL_64+0x0/0x75 [ 25.220056] [ 25.220059] Freed by task 3510: [ 25.220065] save_stack+0x43/0xd0 [ 25.220070] __kasan_slab_free+0x11a/0x170 [ 25.220076] kasan_slab_free+0xe/0x10 [ 25.220081] kfree+0xd9/0x260 [ 25.220086] free_bprm+0x19d/0x200 [ 25.220093] do_execveat_common.isra.30+0x19e1/0x22a0 [ 25.220097] SyS_execve+0x39/0x50 [ 25.220102] do_syscall_64+0x273/0x920 [ 25.220108] return_from_SYSCALL_64+0x0/0x75 [ 25.220109] [ 25.220114] The buggy address belongs to the object at ffff8801bf5a97c0 [ 25.220114] which belongs to the cache kmalloc-256 of size 256 [ 25.220120] The buggy address is located 152 bytes inside of [ 25.220120] 256-byte region [ffff8801bf5a97c0, ffff8801bf5a98c0) [ 25.220122] The buggy address belongs to the page: [ 25.220128] page:ffffea0006fd6a40 count:1 mapcount:0 mapping:ffff8801bf5a9040 index:0x0 [ 25.220134] flags: 0x2fffc0000000100(slab) [ 25.220144] raw: 02fffc0000000100 ffff8801bf5a9040 0000000000000000 000000010000000c [ 25.220153] raw: ffffea0006fd6920 ffffea0006fdc520 ffff8801dac007c0 0000000000000000 [ 25.220156] page dumped because: kasan: bad access detected [ 25.220157] [ 25.220159] Memory state around the buggy address: [ 25.220165] ffff8801bf5a9700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.220170] ffff8801bf5a9780: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 25.220175] >ffff8801bf5a9800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.220177] ^ [ 25.220182] ffff8801bf5a9880: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 25.220187] ffff8801bf5a9900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.220189] ================================================================== [ 25.220192] Disabling lock debugging due to kernel taint [ 25.220210] Kernel panic - not syncing: panic_on_warn set ... [ 25.220210] [ 25.220216] CPU: 0 PID: 3511 Comm: syzkaller886548 Tainted: G B 4.15.0-rc7-mm1+ #53 [ 25.220220] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.220221] Call Trace: [ 25.220227] dump_stack+0x194/0x257 [ 25.220236] ? arch_local_irq_restore+0x53/0x53 [ 25.220243] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.220251] ? vsnprintf+0x1ed/0x1900 [ 25.220258] ? map_lookup_elem+0x470/0xbd0 [ 25.220267] panic+0x1e4/0x41c [ 25.220273] ? refcount_error_report+0x214/0x214 [ 25.220282] ? add_taint+0x1c/0x50 [ 25.220290] ? add_taint+0x1c/0x50 [ 25.220298] ? map_lookup_elem+0x4dc/0xbd0 [ 25.220305] kasan_end_report+0x50/0x50 [ 25.220312] kasan_report+0x148/0x360 [ 25.220322] check_memory_region+0x137/0x190 [ 25.220329] memcpy+0x23/0x50 [ 25.220336] map_lookup_elem+0x4dc/0xbd0 [ 25.220347] ? bpf_map_get_with_uref+0x110/0x110 [ 25.220354] ? __might_sleep+0x95/0x190 [ 25.220362] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 25.220368] ? selinux_bpf+0xd1/0x110 [ 25.220375] ? security_bpf+0x89/0xb0 [ 25.220385] SyS_bpf+0x922/0x4400 [ 25.220392] ? perf_event_mmap+0x115/0x12a0 [ 25.220400] ? bpf_prog_get+0x20/0x20 [ 25.220409] ? perf_event_fork+0x30/0x30 [ 25.220421] ? __lock_is_held+0xb6/0x140 [ 25.220429] ? check_noncircular+0x20/0x20 [ 25.220435] ? vma_wants_writenotify+0x51/0x3b0 [ 25.220445] ? __handle_mm_fault+0x80e/0x3ce0 [ 25.220455] ? check_noncircular+0x20/0x20 [ 25.220460] ? __pmd_alloc+0x4e0/0x4e0 [ 25.220465] ? vma_link+0xe9/0x170 [ 25.220476] ? find_held_lock+0x35/0x1d0 [ 25.220489] ? handle_mm_fault+0x2a0/0x930 [ 25.220498] ? find_held_lock+0x35/0x1d0 [ 25.220510] ? __do_page_fault+0x5f7/0xc90 [ 25.220517] ? lock_downgrade+0x980/0x980 [ 25.220530] ? handle_mm_fault+0x476/0x930 [ 25.220536] ? down_read_trylock+0xdb/0x170 [ 25.220544] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 25.220549] ? vmacache_find+0x5f/0x280 [ 25.220561] ? up_read+0x1a/0x40 [ 25.220567] ? __do_page_fault+0x3d6/0xc90 [ 25.220580] ? mm_fault_error+0x2c0/0x2c0 [ 25.220599] ? do_page_fault+0xee/0x720 [ 25.220606] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 25.220613] ? __do_page_fault+0xc90/0xc90 [ 25.220627] ? SyS_mmap_pgoff+0x243/0x5f0 [ 25.220641] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.220653] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.220656] RIP: 0033:0x440ab9 [ 25.220659] RSP: 002b:00000000007dff68 EFLAGS: 00000203 ORIG_RAX: 0000000000000141 [ 25.220665] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 0000000000440ab9 [ 25.220669] RDX: 0000000000000018 RSI: 0000000020c3c000 RDI: 0000000000000001 [ 25.220672] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 25.220676] R10: 0000000000000000 R11: 0000000000000203 R12: 0000000000402290 [ 25.220679] R13: 0000000000402320 R14: 0000000000000000 R15: 0000000000000000 [ 25.240978] Dumping ftrace buffer: [ 25.240981] (ftrace buffer empty) [ 25.240984] Kernel Offset: disabled [ 25.999951] Rebooting in 86400 seconds..