[....] Starting enhanced syslogd: rsyslogd[ 10.494978] audit: type=1400 audit(1515322730.140:5): avc: denied { syslog } for pid=3311 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: [ 15.589449] audit: type=1400 audit(1515322735.235:6): avc: denied { map } for pid=3450 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.58' (ECDSA) to the list of known hosts. executing program [ 27.195098] audit: type=1400 audit(1515322746.840:7): avc: denied { map } for pid=3466 comm="syzkaller153282" path="/root/syzkaller153282001" 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 [ 27.201176] ================================================================== [ 27.201192] BUG: KASAN: use-after-free in __lock_acquire+0x3c41/0x3cf0 [ 27.201196] Read of size 8 at addr ffff8801cb665878 by task syzkaller153282/3466 [ 27.201197] [ 27.201203] CPU: 0 PID: 3466 Comm: syzkaller153282 Not tainted 4.15.0-rc6-next-20180105+ #89 [ 27.201206] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.201208] Call Trace: [ 27.201218] dump_stack+0x137/0x198 [ 27.201222] ? __lock_acquire+0x3c41/0x3cf0 [ 27.201231] print_address_description+0x73/0x250 [ 27.201234] ? __lock_acquire+0x3c41/0x3cf0 [ 27.201238] kasan_report+0x23b/0x360 [ 27.201243] __asan_report_load8_noabort+0x14/0x20 [ 27.201246] __lock_acquire+0x3c41/0x3cf0 [ 27.201254] ? bpf_prog_kallsyms_find+0x39/0x270 [ 27.201259] ? __lock_acquire+0x63e/0x3cf0 [ 27.201264] ? remove_wait_queue+0x24/0x1b0 [ 27.201270] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 27.201275] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 27.201282] ? __mutex_lock+0xec/0x1550 [ 27.201290] ? ep_free+0x72/0x230 [ 27.201294] ? save_stack+0x43/0xd0 [ 27.201297] ? __kasan_slab_free+0x11a/0x170 [ 27.201300] ? kasan_slab_free+0xe/0x10 [ 27.201304] lock_acquire+0x16b/0x420 [ 27.201307] ? lock_acquire+0x16b/0x420 [ 27.201311] ? remove_wait_queue+0x24/0x1b0 [ 27.201317] _raw_spin_lock_irqsave+0x96/0xc0 [ 27.201320] ? remove_wait_queue+0x24/0x1b0 [ 27.201324] remove_wait_queue+0x24/0x1b0 [ 27.201329] ep_unregister_pollwait.isra.7+0x9d/0x360 [ 27.201333] ? ep_free+0x230/0x230 [ 27.201337] ep_free+0xae/0x230 [ 27.201341] ? ep_free+0x230/0x230 [ 27.201344] ep_eventpoll_release+0x44/0x60 [ 27.201350] __fput+0x291/0x6e0 [ 27.201354] ____fput+0x15/0x20 [ 27.201358] task_work_run+0x122/0x1a0 [ 27.201365] do_exit+0x7f4/0x2da0 [ 27.201371] ? binder_ioctl_write_read.isra.39+0x8e0/0x8e0 [ 27.201377] ? do_vfs_ioctl+0x439/0xfe0 [ 27.201381] ? mm_update_next_owner+0x690/0x690 [ 27.201384] ? ioctl_preallocate+0x1c0/0x1c0 [ 27.201390] ? __do_page_fault+0x3c3/0xca0 [ 27.201396] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 27.201401] do_group_exit+0x108/0x320 [ 27.201405] SyS_exit_group+0x1d/0x20 [ 27.201409] entry_SYSCALL_64_fastpath+0x23/0x9a [ 27.201413] RIP: 0033:0x4429f8 [ 27.201415] RSP: 002b:00007ffc906cb4f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 27.201420] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 27.201422] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 27.201424] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 27.201426] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 27.201428] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 27.201432] [ 27.201433] Allocated by task 3466: [ 27.201438] save_stack+0x43/0xd0 [ 27.201441] kasan_kmalloc+0xad/0xe0 [ 27.201444] kmem_cache_alloc_trace+0x136/0x750 [ 27.201447] binder_get_thread+0x15d/0x700 [ 27.201449] binder_poll+0x4a/0x210 [ 27.201453] ep_item_poll.isra.10+0xf2/0x320 [ 27.201457] SyS_epoll_ctl+0x11c4/0x27b0 [ 27.201461] entry_SYSCALL_64_fastpath+0x23/0x9a [ 27.201461] [ 27.201463] Freed by task 3466: [ 27.201466] save_stack+0x43/0xd0 [ 27.201469] __kasan_slab_free+0x11a/0x170 [ 27.201475] kasan_slab_free+0xe/0x10 [ 27.201478] kfree+0xd9/0x260 [ 27.201481] binder_thread_dec_tmpref+0x17d/0x1e0 [ 27.201484] binder_thread_release+0x27d/0x540 [ 27.201487] binder_ioctl+0xa1b/0x10ee [ 27.201489] do_vfs_ioctl+0x190/0xfe0 [ 27.201492] SyS_ioctl+0x8f/0xc0 [ 27.201496] entry_SYSCALL_64_fastpath+0x23/0x9a [ 27.201496] [ 27.201499] The buggy address belongs to the object at ffff8801cb6657c0 [ 27.201499] which belongs to the cache kmalloc-512 of size 512 [ 27.201502] The buggy address is located 184 bytes inside of [ 27.201502] 512-byte region [ffff8801cb6657c0, ffff8801cb6659c0) [ 27.201503] The buggy address belongs to the page: [ 27.201506] page:ffffea00072d9940 count:1 mapcount:0 mapping:ffff8801cb665040 index:0x0 [ 27.201511] flags: 0x2fffc0000000100(slab) [ 27.201517] raw: 02fffc0000000100 ffff8801cb665040 0000000000000000 0000000100000006 [ 27.201521] raw: ffffea00072c0fa0 ffffea000735cbe0 ffff8801db000940 0000000000000000 [ 27.201523] page dumped because: kasan: bad access detected [ 27.201523] [ 27.201524] Memory state around the buggy address: [ 27.201527] ffff8801cb665700: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 27.201530] ffff8801cb665780: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 27.201533] >ffff8801cb665800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.201534] ^ [ 27.201537] ffff8801cb665880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.201539] ffff8801cb665900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.201540] ================================================================== [ 27.201541] Disabling lock debugging due to kernel taint [ 27.201544] Kernel panic - not syncing: panic_on_warn set ... [ 27.201544] [ 27.201548] CPU: 0 PID: 3466 Comm: syzkaller153282 Tainted: G B 4.15.0-rc6-next-20180105+ #89 [ 27.201550] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.201551] Call Trace: [ 27.201555] dump_stack+0x137/0x198 [ 27.201559] ? __lock_acquire+0x3b60/0x3cf0 [ 27.201563] panic+0x1e4/0x41c [ 27.201566] ? refcount_error_report+0x214/0x214 [ 27.201570] ? add_taint+0x40/0x50 [ 27.201573] ? add_taint+0x1c/0x50 [ 27.201577] ? __lock_acquire+0x3c41/0x3cf0 [ 27.201581] kasan_end_report+0x50/0x50 [ 27.201585] kasan_report+0x148/0x360 [ 27.201589] __asan_report_load8_noabort+0x14/0x20 [ 27.201593] __lock_acquire+0x3c41/0x3cf0 [ 27.201597] ? bpf_prog_kallsyms_find+0x39/0x270 [ 27.201601] ? __lock_acquire+0x63e/0x3cf0 [ 27.201604] ? remove_wait_queue+0x24/0x1b0 [ 27.201609] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 27.201614] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 27.201619] ? __mutex_lock+0xec/0x1550 [ 27.201622] ? ep_free+0x72/0x230 [ 27.201625] ? save_stack+0x43/0xd0 [ 27.201629] ? __kasan_slab_free+0x11a/0x170 [ 27.201632] ? kasan_slab_free+0xe/0x10 [ 27.201636] lock_acquire+0x16b/0x420 [ 27.201639] ? lock_acquire+0x16b/0x420 [ 27.201643] ? remove_wait_queue+0x24/0x1b0 [ 27.201648] _raw_spin_lock_irqsave+0x96/0xc0 [ 27.201652] ? remove_wait_queue+0x24/0x1b0 [ 27.201655] remove_wait_queue+0x24/0x1b0 [ 27.201660] ep_unregister_pollwait.isra.7+0x9d/0x360 [ 27.201664] ? ep_free+0x230/0x230 [ 27.201668] ep_free+0xae/0x230 [ 27.201671] ? ep_free+0x230/0x230 [ 27.201675] ep_eventpoll_release+0x44/0x60 [ 27.201678] __fput+0x291/0x6e0 [ 27.201682] ____fput+0x15/0x20 [ 27.201685] task_work_run+0x122/0x1a0 [ 27.201690] do_exit+0x7f4/0x2da0 [ 27.201694] ? binder_ioctl_write_read.isra.39+0x8e0/0x8e0 [ 27.201697] ? do_vfs_ioctl+0x439/0xfe0 [ 27.201702] ? mm_update_next_owner+0x690/0x690 [ 27.201705] ? ioctl_preallocate+0x1c0/0x1c0 [ 27.201709] ? __do_page_fault+0x3c3/0xca0 [ 27.201715] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 27.201719] do_group_exit+0x108/0x320 [ 27.201723] SyS_exit_group+0x1d/0x20 [ 27.201727] entry_SYSCALL_64_fastpath+0x23/0x9a [ 27.201729] RIP: 0033:0x4429f8 [ 27.201731] RSP: 002b:00007ffc906cb4f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 27.201734] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 27.201736] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 27.201738] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 27.201740] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 27.201742] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 27.221006] Dumping ftrace buffer: [ 27.221011] (ftrace buffer empty) [ 27.221014] Kernel Offset: disabled [ 27.964373] Rebooting in 86400 seconds..