[....] Starting enhanced syslogd: rsyslogd[ 10.159382] audit: type=1400 audit(1515009913.009:5): avc: denied { syslog } for pid=3307 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 OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 12.678096] audit: type=1400 audit(1515009915.527:6): avc: denied { map } for pid=3449 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.224' (ECDSA) to the list of known hosts. executing program [ 31.196909] audit: type=1400 audit(1515009934.046:7): avc: denied { map } for pid=3467 comm="syzkaller648273" path="/root/syzkaller648273888" 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 [ 31.201194] ================================================================== [ 31.201204] BUG: KASAN: use-after-free in __lock_acquire+0x3c41/0x3cf0 [ 31.201208] Read of size 8 at addr ffff8801cb45a878 by task syzkaller648273/3467 [ 31.201209] [ 31.201213] CPU: 1 PID: 3467 Comm: syzkaller648273 Not tainted 4.15.0-rc6-next-20180103+ #87 [ 31.201216] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.201217] Call Trace: [ 31.201224] dump_stack+0x137/0x198 [ 31.201229] ? __lock_acquire+0x3c41/0x3cf0 [ 31.201235] print_address_description+0x73/0x250 [ 31.201239] ? __lock_acquire+0x3c41/0x3cf0 [ 31.201243] kasan_report+0x23b/0x360 [ 31.201247] __asan_report_load8_noabort+0x14/0x20 [ 31.201251] __lock_acquire+0x3c41/0x3cf0 [ 31.201254] ? lock_downgrade+0x860/0x860 [ 31.201261] ? __bpf_address_lookup+0x2b0/0x2b0 [ 31.201265] ? __lock_acquire+0x63e/0x3cf0 [ 31.201270] ? remove_wait_queue+0x24/0x1b0 [ 31.201275] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 31.201280] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 31.201286] ? __mutex_lock+0xec/0x1550 [ 31.201291] ? ep_free+0x72/0x230 [ 31.201294] ? save_stack+0xa3/0xd0 [ 31.201299] lock_acquire+0x16b/0x420 [ 31.201302] ? lock_acquire+0x16b/0x420 [ 31.201306] ? remove_wait_queue+0x24/0x1b0 [ 31.201311] _raw_spin_lock_irqsave+0x96/0xc0 [ 31.201314] ? remove_wait_queue+0x24/0x1b0 [ 31.201322] remove_wait_queue+0x24/0x1b0 [ 31.201330] ep_unregister_pollwait.isra.7+0x9d/0x360 [ 31.201336] ? ep_free+0x230/0x230 [ 31.201342] ep_free+0xae/0x230 [ 31.201346] ? ep_free+0x230/0x230 [ 31.201350] ep_eventpoll_release+0x44/0x60 [ 31.201354] __fput+0x291/0x6e0 [ 31.201359] ____fput+0x15/0x20 [ 31.201362] task_work_run+0x122/0x1a0 [ 31.201369] do_exit+0x7f4/0x2da0 [ 31.201375] ? binder_ioctl_write_read.isra.39+0x8e0/0x8e0 [ 31.201380] ? do_vfs_ioctl+0x439/0xfe0 [ 31.201384] ? mm_update_next_owner+0x690/0x690 [ 31.201388] ? ioctl_preallocate+0x1c0/0x1c0 [ 31.201394] ? __do_page_fault+0x3c3/0xca0 [ 31.201400] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 31.201404] do_group_exit+0x108/0x320 [ 31.201408] SyS_exit_group+0x1d/0x20 [ 31.201412] entry_SYSCALL_64_fastpath+0x23/0x9a [ 31.201415] RIP: 0033:0x4429f8 [ 31.201417] RSP: 002b:00007ffcd02527b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 31.201421] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 31.201423] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 31.201426] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 31.201428] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 31.201430] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 31.201434] [ 31.201436] Allocated by task 3467: [ 31.201439] save_stack+0x43/0xd0 [ 31.201442] kasan_kmalloc+0xad/0xe0 [ 31.201445] kmem_cache_alloc_trace+0x136/0x750 [ 31.201448] binder_get_thread+0x15d/0x700 [ 31.201450] binder_poll+0x4a/0x210 [ 31.201454] ep_item_poll.isra.10+0xf2/0x320 [ 31.201457] SyS_epoll_ctl+0x11c4/0x27b0 [ 31.201461] entry_SYSCALL_64_fastpath+0x23/0x9a [ 31.201461] [ 31.201463] Freed by task 3467: [ 31.201465] save_stack+0x43/0xd0 [ 31.201468] kasan_slab_free+0x71/0xc0 [ 31.201471] kfree+0xd6/0x260 [ 31.201474] binder_thread_dec_tmpref+0x17d/0x1e0 [ 31.201477] binder_thread_release+0x27d/0x540 [ 31.201479] binder_ioctl+0xa1b/0x10ee [ 31.201482] do_vfs_ioctl+0x190/0xfe0 [ 31.201485] SyS_ioctl+0x8f/0xc0 [ 31.201488] entry_SYSCALL_64_fastpath+0x23/0x9a [ 31.201489] [ 31.201491] The buggy address belongs to the object at ffff8801cb45a7c0 [ 31.201491] which belongs to the cache kmalloc-512 of size 512 [ 31.201494] The buggy address is located 184 bytes inside of [ 31.201494] 512-byte region [ffff8801cb45a7c0, ffff8801cb45a9c0) [ 31.201495] The buggy address belongs to the page: [ 31.201498] page:ffffea00072d1680 count:1 mapcount:0 mapping:ffff8801cb45a040 index:0x0 [ 31.201501] flags: 0x2fffc0000000100(slab) [ 31.201507] raw: 02fffc0000000100 ffff8801cb45a040 0000000000000000 0000000100000006 [ 31.201511] raw: ffffea00072d3b60 ffffea00072aa6e0 ffff8801db000940 0000000000000000 [ 31.201512] page dumped because: kasan: bad access detected [ 31.201513] [ 31.201514] Memory state around the buggy address: [ 31.201517] ffff8801cb45a700: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 31.201519] ffff8801cb45a780: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 31.201522] >ffff8801cb45a800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.201523] ^ [ 31.201526] ffff8801cb45a880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.201528] ffff8801cb45a900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.201529] ================================================================== [ 31.201530] Disabling lock debugging due to kernel taint [ 31.201533] Kernel panic - not syncing: panic_on_warn set ... [ 31.201533] [ 31.201536] CPU: 1 PID: 3467 Comm: syzkaller648273 Tainted: G B 4.15.0-rc6-next-20180103+ #87 [ 31.201538] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.201539] Call Trace: [ 31.201543] dump_stack+0x137/0x198 [ 31.201548] ? __lock_acquire+0x3b80/0x3cf0 [ 31.201551] panic+0x1e4/0x41c [ 31.201554] ? refcount_error_report+0x214/0x214 [ 31.201558] ? add_taint+0x40/0x50 [ 31.201561] ? add_taint+0x1c/0x50 [ 31.201565] ? __lock_acquire+0x3c41/0x3cf0 [ 31.201569] kasan_end_report+0x50/0x50 [ 31.201572] kasan_report+0x148/0x360 [ 31.201577] __asan_report_load8_noabort+0x14/0x20 [ 31.201580] __lock_acquire+0x3c41/0x3cf0 [ 31.201584] ? lock_downgrade+0x860/0x860 [ 31.201587] ? __bpf_address_lookup+0x2b0/0x2b0 [ 31.201591] ? __lock_acquire+0x63e/0x3cf0 [ 31.201595] ? remove_wait_queue+0x24/0x1b0 [ 31.201600] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 31.201605] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 31.201609] ? __mutex_lock+0xec/0x1550 [ 31.201612] ? ep_free+0x72/0x230 [ 31.201615] ? save_stack+0xa3/0xd0 [ 31.201619] lock_acquire+0x16b/0x420 [ 31.201623] ? lock_acquire+0x16b/0x420 [ 31.201626] ? remove_wait_queue+0x24/0x1b0 [ 31.201631] _raw_spin_lock_irqsave+0x96/0xc0 [ 31.201635] ? remove_wait_queue+0x24/0x1b0 [ 31.201639] remove_wait_queue+0x24/0x1b0 [ 31.201646] ep_unregister_pollwait.isra.7+0x9d/0x360 [ 31.201652] ? ep_free+0x230/0x230 [ 31.201656] ep_free+0xae/0x230 [ 31.201662] ? ep_free+0x230/0x230 [ 31.201665] ep_eventpoll_release+0x44/0x60 [ 31.201668] __fput+0x291/0x6e0 [ 31.201672] ____fput+0x15/0x20 [ 31.201675] task_work_run+0x122/0x1a0 [ 31.201680] do_exit+0x7f4/0x2da0 [ 31.201683] ? binder_ioctl_write_read.isra.39+0x8e0/0x8e0 [ 31.201687] ? do_vfs_ioctl+0x439/0xfe0 [ 31.201691] ? mm_update_next_owner+0x690/0x690 [ 31.201695] ? ioctl_preallocate+0x1c0/0x1c0 [ 31.201699] ? __do_page_fault+0x3c3/0xca0 [ 31.201704] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 31.201708] do_group_exit+0x108/0x320 [ 31.201712] SyS_exit_group+0x1d/0x20 [ 31.201716] entry_SYSCALL_64_fastpath+0x23/0x9a [ 31.201718] RIP: 0033:0x4429f8 [ 31.201720] RSP: 002b:00007ffcd02527b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 31.201723] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 31.201725] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 31.201727] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 31.201729] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 31.201731] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 31.222783] Dumping ftrace buffer: [ 31.222786] (ftrace buffer empty) [ 31.222788] Kernel Offset: disabled [ 31.957625] Rebooting in 86400 seconds..