[....] Starting enhanced syslogd: rsyslogd[ 11.177542] audit: type=1400 audit(1514355314.892:5): avc: denied { syslog } for pid=2997 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: [ 16.300053] audit: type=1400 audit(1514355320.014:6): avc: denied { map } for pid=3136 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 'ci-upstream-next-kasan-gce-6,10.128.0.35' (ECDSA) to the list of known hosts. executing program [ 22.473207] audit: type=1400 audit(1514355326.187:7): avc: denied { map } for pid=3150 comm="syzkaller118848" path="/root/syzkaller118848153" 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.478362] ================================================================== [ 22.478381] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 22.478387] Read of size 8 at addr ffff8801caa77878 by task syzkaller118848/3150 [ 22.478388] [ 22.478396] CPU: 0 PID: 3150 Comm: syzkaller118848 Not tainted 4.15.0-rc4-next-20171221+ #78 [ 22.478400] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.478402] Call Trace: [ 22.478413] dump_stack+0x194/0x257 [ 22.478420] ? arch_local_irq_restore+0x53/0x53 [ 22.478430] ? show_regs_print_info+0x18/0x18 [ 22.478435] ? print_irqtrace_events+0x270/0x270 [ 22.478441] ? __lock_acquire+0x664/0x3e00 [ 22.478448] ? __lock_acquire+0x3d4d/0x3e00 [ 22.478458] print_address_description+0x73/0x250 [ 22.478464] ? __lock_acquire+0x3d4d/0x3e00 [ 22.478473] kasan_report+0x25b/0x340 [ 22.478482] __asan_report_load8_noabort+0x14/0x20 [ 22.478487] __lock_acquire+0x3d4d/0x3e00 [ 22.478493] ? __lock_acquire+0x664/0x3e00 [ 22.478499] ? lock_downgrade+0x980/0x980 [ 22.478504] ? lock_downgrade+0x980/0x980 [ 22.478513] ? remove_wait_queue+0x81/0x350 [ 22.478522] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.478529] ? __lock_acquire+0x664/0x3e00 [ 22.478534] ? check_noncircular+0x20/0x20 [ 22.478547] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.478554] ? lock_acquire+0x1d5/0x580 [ 22.478560] ? lock_acquire+0x1d5/0x580 [ 22.478568] ? ep_free+0xf4/0x320 [ 22.478579] ? lock_release+0xa40/0xa40 [ 22.478586] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.478593] ? print_irqtrace_events+0x270/0x270 [ 22.478600] ? rcu_note_context_switch+0x710/0x710 [ 22.478607] ? __might_sleep+0x95/0x190 [ 22.478613] ? ep_free+0xf4/0x320 [ 22.478622] ? __mutex_lock+0x16f/0x1a80 [ 22.478627] ? ep_free+0xf4/0x320 [ 22.478634] ? print_irqtrace_events+0x270/0x270 [ 22.478639] ? ep_free+0xf4/0x320 [ 22.478647] lock_acquire+0x1d5/0x580 [ 22.478653] ? lock_acquire+0x1d5/0x580 [ 22.478659] ? remove_wait_queue+0x81/0x350 [ 22.478664] ? __lock_acquire+0x664/0x3e00 [ 22.478672] ? lock_release+0xa40/0xa40 [ 22.478681] ? lock_acquire+0x1d5/0x580 [ 22.478686] ? lock_acquire+0x1d5/0x580 [ 22.478693] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 22.478702] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.478707] ? remove_wait_queue+0x81/0x350 [ 22.478714] remove_wait_queue+0x81/0x350 [ 22.478722] ? add_wait_queue+0x290/0x290 [ 22.478728] ? rcutorture_record_progress+0x10/0x10 [ 22.478737] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 22.478746] ? __kernel_text_address+0xd/0x40 [ 22.478754] ? clear_tfile_check_list+0x370/0x370 [ 22.478761] ? check_noncircular+0x20/0x20 [ 22.478770] ? locks_remove_file+0x3fa/0x5a0 [ 22.478780] ep_free+0x13f/0x320 [ 22.478786] ? ep_remove+0x800/0x800 [ 22.478791] ? fsnotify_first_mark+0x2b0/0x2b0 [ 22.478799] ? ep_free+0x320/0x320 [ 22.478805] ep_eventpoll_release+0x44/0x60 [ 22.478812] __fput+0x327/0x7e0 [ 22.478821] ? fput+0x140/0x140 [ 22.478827] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.478835] ____fput+0x15/0x20 [ 22.478842] task_work_run+0x199/0x270 [ 22.478851] ? task_work_cancel+0x210/0x210 [ 22.478857] ? _raw_spin_unlock+0x22/0x30 [ 22.478863] ? switch_task_namespaces+0x87/0xc0 [ 22.478872] do_exit+0x9bb/0x1ad0 [ 22.478881] ? binder_ioctl+0x491/0x1417 [ 22.478887] ? mm_update_next_owner+0x930/0x930 [ 22.478895] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 22.478904] ? avc_ss_reset+0x110/0x110 [ 22.478911] ? mutex_unlock+0xd/0x10 [ 22.478916] ? SyS_epoll_ctl+0x30a/0x1a80 [ 22.478922] ? find_held_lock+0x35/0x1d0 [ 22.478932] ? lock_downgrade+0x980/0x980 [ 22.478945] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.478953] ? rcu_note_context_switch+0x710/0x710 [ 22.478958] ? __fd_install+0x288/0x740 [ 22.478967] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 22.478972] ? do_vfs_ioctl+0x486/0x1520 [ 22.478978] ? _cond_resched+0x14/0x30 [ 22.478986] ? ioctl_preallocate+0x2b0/0x2b0 [ 22.478995] ? selinux_capable+0x40/0x40 [ 22.479005] ? __alloc_fd+0x750/0x750 [ 22.479013] do_group_exit+0x149/0x400 [ 22.479020] ? SyS_exit+0x30/0x30 [ 22.479027] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 22.479035] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 22.479043] SyS_exit_group+0x1d/0x20 [ 22.479049] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.479054] RIP: 0033:0x4429f8 [ 22.479058] RSP: 002b:00007fffec817498 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 22.479065] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004429f8 [ 22.479068] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 22.479072] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 22.479075] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 22.479078] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 22.479086] [ 22.479089] Allocated by task 3150: [ 22.479095] save_stack+0x43/0xd0 [ 22.479100] kasan_kmalloc+0xad/0xe0 [ 22.479106] kmem_cache_alloc_trace+0x136/0x750 [ 22.479110] binder_get_thread+0x1cf/0x870 [ 22.479114] binder_poll+0x8c/0x390 [ 22.479119] ep_item_poll.isra.10+0xf2/0x320 [ 22.479124] ep_insert+0x6a2/0x1ac0 [ 22.479129] SyS_epoll_ctl+0x12bf/0x1a80 [ 22.479134] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.479135] [ 22.479137] Freed by task 3150: [ 22.479142] save_stack+0x43/0xd0 [ 22.479146] kasan_slab_free+0x71/0xc0 [ 22.479151] kfree+0xd6/0x260 [ 22.479156] binder_thread_dec_tmpref+0x27f/0x310 [ 22.479160] binder_thread_release+0x27d/0x540 [ 22.479164] binder_ioctl+0xc02/0x1417 [ 22.479169] do_vfs_ioctl+0x1b1/0x1520 [ 22.479173] SyS_ioctl+0x8f/0xc0 [ 22.479178] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.479179] [ 22.479183] The buggy address belongs to the object at ffff8801caa777c0 [ 22.479183] which belongs to the cache kmalloc-512 of size 512 [ 22.479188] The buggy address is located 184 bytes inside of [ 22.479188] 512-byte region [ffff8801caa777c0, ffff8801caa779c0) [ 22.479190] The buggy address belongs to the page: [ 22.479196] page:00000000a92c5719 count:1 mapcount:0 mapping:00000000daf274ee index:0x0 [ 22.479202] flags: 0x2fffc0000000100(slab) [ 22.479211] raw: 02fffc0000000100 ffff8801caa77040 0000000000000000 0000000100000006 [ 22.479218] raw: ffffea00072a9d20 ffffea00072a5520 ffff8801dac00940 0000000000000000 [ 22.479221] page dumped because: kasan: bad access detected [ 22.479222] [ 22.479223] Memory state around the buggy address: [ 22.479228] ffff8801caa77700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.479232] ffff8801caa77780: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 22.479237] >ffff8801caa77800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.479239] ^ [ 22.479244] ffff8801caa77880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.479248] ffff8801caa77900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.479250] ================================================================== [ 22.479251] Disabling lock debugging due to kernel taint [ 22.479255] Kernel panic - not syncing: panic_on_warn set ... [ 22.479255] [ 22.479261] CPU: 0 PID: 3150 Comm: syzkaller118848 Tainted: G B 4.15.0-rc4-next-20171221+ #78 [ 22.479263] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.479265] Call Trace: [ 22.479271] dump_stack+0x194/0x257 [ 22.479277] ? arch_local_irq_restore+0x53/0x53 [ 22.479283] ? kasan_end_report+0x32/0x50 [ 22.479289] ? lock_downgrade+0x980/0x980 [ 22.479294] ? vsnprintf+0x1ed/0x1900 [ 22.479306] ? __lock_acquire+0x3d30/0x3e00 [ 22.479312] panic+0x1e4/0x41c [ 22.479318] ? refcount_error_report+0x214/0x214 [ 22.479325] ? add_taint+0x40/0x50 [ 22.479330] ? add_taint+0x1c/0x50 [ 22.479337] ? __lock_acquire+0x3d4d/0x3e00 [ 22.479343] kasan_end_report+0x50/0x50 [ 22.479349] kasan_report+0x144/0x340 [ 22.479357] __asan_report_load8_noabort+0x14/0x20 [ 22.479363] __lock_acquire+0x3d4d/0x3e00 [ 22.479368] ? __lock_acquire+0x664/0x3e00 [ 22.479374] ? lock_downgrade+0x980/0x980 [ 22.479379] ? lock_downgrade+0x980/0x980 [ 22.479386] ? remove_wait_queue+0x81/0x350 [ 22.479395] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.479401] ? __lock_acquire+0x664/0x3e00 [ 22.479405] ? check_noncircular+0x20/0x20 [ 22.479416] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.479423] ? lock_acquire+0x1d5/0x580 [ 22.479428] ? lock_acquire+0x1d5/0x580 [ 22.479432] ? ep_free+0xf4/0x320 [ 22.479440] ? lock_release+0xa40/0xa40 [ 22.479451] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.479455] ? print_irqtrace_events+0x270/0x270 [ 22.479459] ? rcu_note_context_switch+0x710/0x710 [ 22.479463] ? __might_sleep+0x95/0x190 [ 22.479468] ? ep_free+0xf4/0x320 [ 22.479472] ? __mutex_lock+0x16f/0x1a80 [ 22.479475] ? ep_free+0xf4/0x320 [ 22.479479] ? print_irqtrace_events+0x270/0x270 [ 22.479482] ? ep_free+0xf4/0x320 [ 22.479486] lock_acquire+0x1d5/0x580 [ 22.479490] ? lock_acquire+0x1d5/0x580 [ 22.479493] ? remove_wait_queue+0x81/0x350 [ 22.479497] ? __lock_acquire+0x664/0x3e00 [ 22.479501] ? lock_release+0xa40/0xa40 [ 22.479506] ? lock_acquire+0x1d5/0x580 [ 22.479509] ? lock_acquire+0x1d5/0x580 [ 22.479513] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 22.479517] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.479522] ? remove_wait_queue+0x81/0x350 [ 22.479526] remove_wait_queue+0x81/0x350 [ 22.479530] ? add_wait_queue+0x290/0x290 [ 22.479534] ? rcutorture_record_progress+0x10/0x10 [ 22.479540] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 22.479544] ? __kernel_text_address+0xd/0x40 [ 22.479549] ? clear_tfile_check_list+0x370/0x370 [ 22.479553] ? check_noncircular+0x20/0x20 [ 22.479558] ? locks_remove_file+0x3fa/0x5a0 [ 22.479563] ep_free+0x13f/0x320 [ 22.479566] ? ep_remove+0x800/0x800 [ 22.479570] ? fsnotify_first_mark+0x2b0/0x2b0 [ 22.479574] ? ep_free+0x320/0x320 [ 22.479577] ep_eventpoll_release+0x44/0x60 [ 22.479581] __fput+0x327/0x7e0 [ 22.479586] ? fput+0x140/0x140 [ 22.479589] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.479594] ____fput+0x15/0x20 [ 22.479598] task_work_run+0x199/0x270 [ 22.479602] ? task_work_cancel+0x210/0x210 [ 22.479606] ? _raw_spin_unlock+0x22/0x30 [ 22.479610] ? switch_task_namespaces+0x87/0xc0 [ 22.479614] do_exit+0x9bb/0x1ad0 [ 22.479618] ? binder_ioctl+0x491/0x1417 [ 22.479622] ? mm_update_next_owner+0x930/0x930 [ 22.479626] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 22.479631] ? avc_ss_reset+0x110/0x110 [ 22.479635] ? mutex_unlock+0xd/0x10 [ 22.479638] ? SyS_epoll_ctl+0x30a/0x1a80 [ 22.479641] ? find_held_lock+0x35/0x1d0 [ 22.479647] ? lock_downgrade+0x980/0x980 [ 22.479654] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.479659] ? rcu_note_context_switch+0x710/0x710 [ 22.479662] ? __fd_install+0x288/0x740 [ 22.479667] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 22.479670] ? do_vfs_ioctl+0x486/0x1520 [ 22.479673] ? _cond_resched+0x14/0x30 [ 22.479678] ? ioctl_preallocate+0x2b0/0x2b0 [ 22.479682] ? selinux_capable+0x40/0x40 [ 22.479686] ? __alloc_fd+0x750/0x750 [ 22.479690] do_group_exit+0x149/0x400 [ 22.479694] ? SyS_exit+0x30/0x30 [ 22.479698] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 22.479702] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 22.479706] SyS_exit_group+0x1d/0x20 [ 22.479710] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.479713] RIP: 0033:0x4429f8 [ 22.479715] RSP: 002b:00007fffec817498 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 22.479718] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004429f8 [ 22.479720] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 22.479722] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 22.479724] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 22.479726] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 22.499125] Dumping ftrace buffer: [ 22.499128] (ftrace buffer empty) [ 22.499130] Kernel Offset: disabled [ 23.635586] Rebooting in 86400 seconds..