[....] Starting enhanced syslogd: rsyslogd[ 11.587256] audit: type=1400 audit(1515015006.576: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: [ 16.423674] audit: type=1400 audit(1515015011.412: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.0.19' (ECDSA) to the list of known hosts. executing program [ 22.597263] audit: type=1400 audit(1515015017.586:7): avc: denied { map } for pid=3467 comm="syzkaller215477" path="/root/syzkaller215477960" 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 [ 22.603156] ================================================================== [ 22.603171] BUG: KASAN: use-after-free in __lock_acquire+0x3c41/0x3cf0 [ 22.603176] Read of size 8 at addr ffff8801c7b4f0f8 by task syzkaller215477/3467 [ 22.603177] [ 22.603184] CPU: 1 PID: 3467 Comm: syzkaller215477 Not tainted 4.15.0-rc6-next-20180103+ #87 [ 22.603187] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.603189] Call Trace: [ 22.603199] dump_stack+0x137/0x198 [ 22.603205] ? __lock_acquire+0x3c41/0x3cf0 [ 22.603216] print_address_description+0x73/0x250 [ 22.603222] ? __lock_acquire+0x3c41/0x3cf0 [ 22.603228] kasan_report+0x23b/0x360 [ 22.603235] __asan_report_load8_noabort+0x14/0x20 [ 22.603241] __lock_acquire+0x3c41/0x3cf0 [ 22.603247] ? lock_downgrade+0x860/0x860 [ 22.603256] ? __bpf_address_lookup+0x2b0/0x2b0 [ 22.603267] ? __lock_acquire+0x63e/0x3cf0 [ 22.603274] ? remove_wait_queue+0x24/0x1b0 [ 22.603283] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.603292] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.603302] ? __mutex_lock+0xec/0x1550 [ 22.603309] ? ep_free+0x72/0x230 [ 22.603314] ? save_stack+0xa3/0xd0 [ 22.603322] lock_acquire+0x16b/0x420 [ 22.603327] ? lock_acquire+0x16b/0x420 [ 22.603333] ? remove_wait_queue+0x24/0x1b0 [ 22.603342] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.603348] ? remove_wait_queue+0x24/0x1b0 [ 22.603354] remove_wait_queue+0x24/0x1b0 [ 22.603362] ep_unregister_pollwait.isra.7+0x9d/0x360 [ 22.603369] ? ep_free+0x230/0x230 [ 22.603375] ep_free+0xae/0x230 [ 22.603381] ? ep_free+0x230/0x230 [ 22.603387] ep_eventpoll_release+0x44/0x60 [ 22.603393] __fput+0x291/0x6e0 [ 22.603401] ____fput+0x15/0x20 [ 22.603406] task_work_run+0x122/0x1a0 [ 22.603416] do_exit+0x7f4/0x2da0 [ 22.603424] ? binder_ioctl_write_read.isra.39+0x8e0/0x8e0 [ 22.603431] ? do_vfs_ioctl+0x439/0xfe0 [ 22.603437] ? mm_update_next_owner+0x690/0x690 [ 22.603443] ? ioctl_preallocate+0x1c0/0x1c0 [ 22.603451] ? __do_page_fault+0x3c3/0xca0 [ 22.603461] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 22.603468] do_group_exit+0x108/0x320 [ 22.603476] SyS_exit_group+0x1d/0x20 [ 22.603482] entry_SYSCALL_64_fastpath+0x23/0x9a [ 22.603486] RIP: 0033:0x4429f8 [ 22.603489] RSP: 002b:00007ffd69015978 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 22.603495] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 22.603499] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 22.603502] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 22.603506] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 22.603509] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 22.603516] [ 22.603518] Allocated by task 3467: [ 22.603524] save_stack+0x43/0xd0 [ 22.603529] kasan_kmalloc+0xad/0xe0 [ 22.603534] kmem_cache_alloc_trace+0x136/0x750 [ 22.603539] binder_get_thread+0x15d/0x700 [ 22.603542] binder_poll+0x4a/0x210 [ 22.603548] ep_item_poll.isra.10+0xf2/0x320 [ 22.603553] SyS_epoll_ctl+0x11c4/0x27b0 [ 22.603558] entry_SYSCALL_64_fastpath+0x23/0x9a [ 22.603559] [ 22.603561] Freed by task 3467: [ 22.603566] save_stack+0x43/0xd0 [ 22.603570] kasan_slab_free+0x71/0xc0 [ 22.603575] kfree+0xd6/0x260 [ 22.603579] binder_thread_dec_tmpref+0x17d/0x1e0 [ 22.603584] binder_thread_release+0x27d/0x540 [ 22.603588] binder_ioctl+0xa1b/0x10ee [ 22.603592] do_vfs_ioctl+0x190/0xfe0 [ 22.603597] SyS_ioctl+0x8f/0xc0 [ 22.603602] entry_SYSCALL_64_fastpath+0x23/0x9a [ 22.603603] [ 22.603607] The buggy address belongs to the object at ffff8801c7b4f040 [ 22.603607] which belongs to the cache kmalloc-512 of size 512 [ 22.603612] The buggy address is located 184 bytes inside of [ 22.603612] 512-byte region [ffff8801c7b4f040, ffff8801c7b4f240) [ 22.603613] The buggy address belongs to the page: [ 22.603618] page:ffffea00071ed3c0 count:1 mapcount:0 mapping:ffff8801c7b4f040 index:0x0 [ 22.603623] flags: 0x2fffc0000000100(slab) [ 22.603631] raw: 02fffc0000000100 ffff8801c7b4f040 0000000000000000 0000000100000006 [ 22.603637] raw: ffffea0007372ee0 ffff8801db001748 ffff8801db000940 0000000000000000 [ 22.603640] page dumped because: kasan: bad access detected [ 22.603641] [ 22.603642] Memory state around the buggy address: [ 22.603647] ffff8801c7b4ef80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.603651] ffff8801c7b4f000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 22.603655] >ffff8801c7b4f080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.603657] ^ [ 22.603661] ffff8801c7b4f100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.603666] ffff8801c7b4f180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.603667] ================================================================== [ 22.603669] Disabling lock debugging due to kernel taint [ 22.603673] Kernel panic - not syncing: panic_on_warn set ... [ 22.603673] [ 22.603679] CPU: 1 PID: 3467 Comm: syzkaller215477 Tainted: G B 4.15.0-rc6-next-20180103+ #87 [ 22.603682] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.603683] Call Trace: [ 22.603689] dump_stack+0x137/0x198 [ 22.603696] ? __lock_acquire+0x3b80/0x3cf0 [ 22.603701] panic+0x1e4/0x41c [ 22.603707] ? refcount_error_report+0x214/0x214 [ 22.603714] ? add_taint+0x40/0x50 [ 22.603719] ? add_taint+0x1c/0x50 [ 22.603726] ? __lock_acquire+0x3c41/0x3cf0 [ 22.603731] kasan_end_report+0x50/0x50 [ 22.603738] kasan_report+0x148/0x360 [ 22.603745] __asan_report_load8_noabort+0x14/0x20 [ 22.603751] __lock_acquire+0x3c41/0x3cf0 [ 22.603756] ? lock_downgrade+0x860/0x860 [ 22.603762] ? __bpf_address_lookup+0x2b0/0x2b0 [ 22.603769] ? __lock_acquire+0x63e/0x3cf0 [ 22.603775] ? remove_wait_queue+0x24/0x1b0 [ 22.603783] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.603792] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.603799] ? __mutex_lock+0xec/0x1550 [ 22.603804] ? ep_free+0x72/0x230 [ 22.603809] ? save_stack+0xa3/0xd0 [ 22.603816] lock_acquire+0x16b/0x420 [ 22.603821] ? lock_acquire+0x16b/0x420 [ 22.603827] ? remove_wait_queue+0x24/0x1b0 [ 22.603835] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.603841] ? remove_wait_queue+0x24/0x1b0 [ 22.603847] remove_wait_queue+0x24/0x1b0 [ 22.603855] ep_unregister_pollwait.isra.7+0x9d/0x360 [ 22.603862] ? ep_free+0x230/0x230 [ 22.603867] ep_free+0xae/0x230 [ 22.603874] ? ep_free+0x230/0x230 [ 22.603879] ep_eventpoll_release+0x44/0x60 [ 22.603884] __fput+0x291/0x6e0 [ 22.603892] ____fput+0x15/0x20 [ 22.603896] task_work_run+0x122/0x1a0 [ 22.603904] do_exit+0x7f4/0x2da0 [ 22.603910] ? binder_ioctl_write_read.isra.39+0x8e0/0x8e0 [ 22.603917] ? do_vfs_ioctl+0x439/0xfe0 [ 22.603923] ? mm_update_next_owner+0x690/0x690 [ 22.603929] ? ioctl_preallocate+0x1c0/0x1c0 [ 22.603935] ? __do_page_fault+0x3c3/0xca0 [ 22.603945] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 22.603952] do_group_exit+0x108/0x320 [ 22.603959] SyS_exit_group+0x1d/0x20 [ 22.603965] entry_SYSCALL_64_fastpath+0x23/0x9a [ 22.603969] RIP: 0033:0x4429f8 [ 22.603971] RSP: 002b:00007ffd69015978 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 22.603977] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 22.603980] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 22.603983] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 22.603986] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 22.603989] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 22.623554] Dumping ftrace buffer: [ 22.623558] (ftrace buffer empty) [ 22.623559] Kernel Offset: disabled [ 23.353208] Rebooting in 86400 seconds..