[....] Starting enhanced syslogd: rsyslogd[ 11.018679] audit: type=1400 audit(1515276154.407:5): avc: denied { syslog } for pid=3314 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: [ 17.106949] audit: type=1400 audit(1515276160.495:6): avc: denied { map } for pid=3453 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.234' (ECDSA) to the list of known hosts. executing program [ 24.463570] audit: type=1400 audit(1515276167.852:7): avc: denied { map } for pid=3468 comm="syzkaller701841" path="/root/syzkaller701841246" 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 [ 24.467599] ================================================================== [ 24.467610] BUG: KASAN: use-after-free in __lock_acquire+0x3c41/0x3cf0 [ 24.467614] Read of size 8 at addr ffff8801ca0b95b8 by task syzkaller701841/3468 [ 24.467615] [ 24.467621] CPU: 1 PID: 3468 Comm: syzkaller701841 Not tainted 4.15.0-rc6-next-20180105+ #89 [ 24.467623] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.467624] Call Trace: [ 24.467633] dump_stack+0x137/0x198 [ 24.467637] ? __lock_acquire+0x3c41/0x3cf0 [ 24.467644] print_address_description+0x73/0x250 [ 24.467648] ? __lock_acquire+0x3c41/0x3cf0 [ 24.467651] kasan_report+0x23b/0x360 [ 24.467656] __asan_report_load8_noabort+0x14/0x20 [ 24.467660] __lock_acquire+0x3c41/0x3cf0 [ 24.467666] ? bpf_prog_kallsyms_find+0x39/0x270 [ 24.467670] ? __lock_acquire+0x63e/0x3cf0 [ 24.467675] ? remove_wait_queue+0x24/0x1b0 [ 24.467680] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.467685] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.467692] ? __mutex_lock+0xec/0x1550 [ 24.467697] ? ep_free+0x72/0x230 [ 24.467700] ? save_stack+0x43/0xd0 [ 24.467704] ? __kasan_slab_free+0x11a/0x170 [ 24.467707] ? kasan_slab_free+0xe/0x10 [ 24.467711] lock_acquire+0x16b/0x420 [ 24.467714] ? lock_acquire+0x16b/0x420 [ 24.467718] ? remove_wait_queue+0x24/0x1b0 [ 24.467724] _raw_spin_lock_irqsave+0x96/0xc0 [ 24.467727] ? remove_wait_queue+0x24/0x1b0 [ 24.467731] remove_wait_queue+0x24/0x1b0 [ 24.467736] ep_unregister_pollwait.isra.7+0x9d/0x360 [ 24.467740] ? ep_free+0x230/0x230 [ 24.467744] ep_free+0xae/0x230 [ 24.467747] ? ep_free+0x230/0x230 [ 24.467751] ep_eventpoll_release+0x44/0x60 [ 24.467755] __fput+0x291/0x6e0 [ 24.467760] ____fput+0x15/0x20 [ 24.467763] task_work_run+0x122/0x1a0 [ 24.467769] do_exit+0x7f4/0x2da0 [ 24.467775] ? binder_ioctl_write_read.isra.39+0x8e0/0x8e0 [ 24.467780] ? do_vfs_ioctl+0x439/0xfe0 [ 24.467784] ? mm_update_next_owner+0x690/0x690 [ 24.467793] ? ioctl_preallocate+0x1c0/0x1c0 [ 24.467800] ? __do_page_fault+0x3c3/0xca0 [ 24.467806] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 24.467811] do_group_exit+0x108/0x320 [ 24.467815] SyS_exit_group+0x1d/0x20 [ 24.467819] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.467822] RIP: 0033:0x4429f8 [ 24.467824] RSP: 002b:00007ffd08b35b88 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 24.467828] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 24.467830] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 24.467833] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 24.467835] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 24.467837] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 24.467841] [ 24.467843] Allocated by task 3468: [ 24.467847] save_stack+0x43/0xd0 [ 24.467850] kasan_kmalloc+0xad/0xe0 [ 24.467853] kmem_cache_alloc_trace+0x136/0x750 [ 24.467856] binder_get_thread+0x15d/0x700 [ 24.467858] binder_poll+0x4a/0x210 [ 24.467862] ep_item_poll.isra.10+0xf2/0x320 [ 24.467865] SyS_epoll_ctl+0x11c4/0x27b0 [ 24.467869] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.467869] [ 24.467871] Freed by task 3468: [ 24.467874] save_stack+0x43/0xd0 [ 24.467877] __kasan_slab_free+0x11a/0x170 [ 24.467880] kasan_slab_free+0xe/0x10 [ 24.467882] kfree+0xd9/0x260 [ 24.467885] binder_thread_dec_tmpref+0x17d/0x1e0 [ 24.467888] binder_thread_release+0x27d/0x540 [ 24.467890] binder_ioctl+0xa1b/0x10ee [ 24.467893] do_vfs_ioctl+0x190/0xfe0 [ 24.467896] SyS_ioctl+0x8f/0xc0 [ 24.467899] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.467900] [ 24.467903] The buggy address belongs to the object at ffff8801ca0b9500 [ 24.467903] which belongs to the cache kmalloc-512 of size 512 [ 24.467906] The buggy address is located 184 bytes inside of [ 24.467906] 512-byte region [ffff8801ca0b9500, ffff8801ca0b9700) [ 24.467907] The buggy address belongs to the page: [ 24.467910] page:ffffea0007282e40 count:1 mapcount:0 mapping:ffff8801ca0b9000 index:0x0 [ 24.467913] flags: 0x2fffc0000000100(slab) [ 24.467919] raw: 02fffc0000000100 ffff8801ca0b9000 0000000000000000 0000000100000006 [ 24.467923] raw: ffffea0007281e20 ffffea00072980a0 ffff8801db000940 0000000000000000 [ 24.467924] page dumped because: kasan: bad access detected [ 24.467925] [ 24.467926] Memory state around the buggy address: [ 24.467928] ffff8801ca0b9480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.467931] ffff8801ca0b9500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.467934] >ffff8801ca0b9580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.467935] ^ [ 24.467937] ffff8801ca0b9600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.467940] ffff8801ca0b9680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.467941] ================================================================== [ 24.467942] Disabling lock debugging due to kernel taint [ 24.467944] Kernel panic - not syncing: panic_on_warn set ... [ 24.467944] [ 24.467948] CPU: 1 PID: 3468 Comm: syzkaller701841 Tainted: G B 4.15.0-rc6-next-20180105+ #89 [ 24.467950] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.467951] Call Trace: [ 24.467955] dump_stack+0x137/0x198 [ 24.467959] ? __lock_acquire+0x3b60/0x3cf0 [ 24.467962] panic+0x1e4/0x41c [ 24.467966] ? refcount_error_report+0x214/0x214 [ 24.467970] ? add_taint+0x40/0x50 [ 24.467973] ? add_taint+0x1c/0x50 [ 24.467977] ? __lock_acquire+0x3c41/0x3cf0 [ 24.467981] kasan_end_report+0x50/0x50 [ 24.467984] kasan_report+0x148/0x360 [ 24.467989] __asan_report_load8_noabort+0x14/0x20 [ 24.467993] __lock_acquire+0x3c41/0x3cf0 [ 24.467997] ? bpf_prog_kallsyms_find+0x39/0x270 [ 24.468004] ? __lock_acquire+0x63e/0x3cf0 [ 24.468008] ? remove_wait_queue+0x24/0x1b0 [ 24.468013] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.468017] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.468022] ? __mutex_lock+0xec/0x1550 [ 24.468025] ? ep_free+0x72/0x230 [ 24.468028] ? save_stack+0x43/0xd0 [ 24.468032] ? __kasan_slab_free+0x11a/0x170 [ 24.468035] ? kasan_slab_free+0xe/0x10 [ 24.468039] lock_acquire+0x16b/0x420 [ 24.468042] ? lock_acquire+0x16b/0x420 [ 24.468046] ? remove_wait_queue+0x24/0x1b0 [ 24.468051] _raw_spin_lock_irqsave+0x96/0xc0 [ 24.468054] ? remove_wait_queue+0x24/0x1b0 [ 24.468058] remove_wait_queue+0x24/0x1b0 [ 24.468063] ep_unregister_pollwait.isra.7+0x9d/0x360 [ 24.468067] ? ep_free+0x230/0x230 [ 24.468070] ep_free+0xae/0x230 [ 24.468074] ? ep_free+0x230/0x230 [ 24.468078] ep_eventpoll_release+0x44/0x60 [ 24.468080] __fput+0x291/0x6e0 [ 24.468085] ____fput+0x15/0x20 [ 24.468088] task_work_run+0x122/0x1a0 [ 24.468092] do_exit+0x7f4/0x2da0 [ 24.468096] ? binder_ioctl_write_read.isra.39+0x8e0/0x8e0 [ 24.468100] ? do_vfs_ioctl+0x439/0xfe0 [ 24.468104] ? mm_update_next_owner+0x690/0x690 [ 24.468107] ? ioctl_preallocate+0x1c0/0x1c0 [ 24.468111] ? __do_page_fault+0x3c3/0xca0 [ 24.468117] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 24.468121] do_group_exit+0x108/0x320 [ 24.468125] SyS_exit_group+0x1d/0x20 [ 24.468129] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.468131] RIP: 0033:0x4429f8 [ 24.468133] RSP: 002b:00007ffd08b35b88 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 24.468136] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 24.468138] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 24.468140] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 24.468142] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 24.468144] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 24.489469] Dumping ftrace buffer: [ 24.489473] (ftrace buffer empty) [ 24.489474] Kernel Offset: disabled [ 25.229692] Rebooting in 86400 seconds..