[....] Starting enhanced syslogd: rsyslogd[ 11.923775] audit: type=1400 audit(1514992402.613:5): avc: denied { syslog } for pid=3342 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: [ 18.034554] audit: type=1400 audit(1514992408.724:6): avc: denied { map } for pid=3481 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.16' (ECDSA) to the list of known hosts. executing program [ 27.917517] audit: type=1400 audit(1514992418.607:7): avc: denied { map } for pid=3496 comm="syzkaller000668" path="/root/syzkaller000668090" 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.921376] ================================================================== [ 27.921387] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 27.921391] Read of size 8 at addr ffff8801cb2395b0 by task syzkaller000668/3496 [ 27.921392] [ 27.921397] CPU: 1 PID: 3496 Comm: syzkaller000668 Not tainted 4.15.0-rc6+ #245 [ 27.921399] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.921401] Call Trace: [ 27.921409] dump_stack+0x194/0x257 [ 27.921414] ? arch_local_irq_restore+0x53/0x53 [ 27.921419] ? show_regs_print_info+0x18/0x18 [ 27.921423] ? print_irqtrace_events+0x270/0x270 [ 27.921427] ? __lock_acquire+0x664/0x3e00 [ 27.921431] ? __lock_acquire+0x3d4d/0x3e00 [ 27.921438] print_address_description+0x73/0x250 [ 27.921441] ? __lock_acquire+0x3d4d/0x3e00 [ 27.921445] kasan_report+0x25b/0x340 [ 27.921451] __asan_report_load8_noabort+0x14/0x20 [ 27.921454] __lock_acquire+0x3d4d/0x3e00 [ 27.921457] ? __lock_acquire+0x664/0x3e00 [ 27.921461] ? lock_downgrade+0x980/0x980 [ 27.921464] ? lock_downgrade+0x980/0x980 [ 27.921470] ? remove_wait_queue+0x81/0x350 [ 27.921475] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 27.921479] ? __lock_acquire+0x664/0x3e00 [ 27.921483] ? check_noncircular+0x20/0x20 [ 27.921490] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 27.921494] ? lock_acquire+0x1d5/0x580 [ 27.921498] ? lock_acquire+0x1d5/0x580 [ 27.921503] ? ep_free+0xf4/0x320 [ 27.921508] ? lock_release+0xa40/0xa40 [ 27.921513] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 27.921517] ? print_irqtrace_events+0x270/0x270 [ 27.921523] ? rcu_note_context_switch+0x710/0x710 [ 27.921528] ? __might_sleep+0x95/0x190 [ 27.921531] ? ep_free+0xf4/0x320 [ 27.921536] ? __mutex_lock+0x16f/0x1a80 [ 27.921539] ? ep_free+0xf4/0x320 [ 27.921543] ? print_irqtrace_events+0x270/0x270 [ 27.921546] ? ep_free+0xf4/0x320 [ 27.921551] lock_acquire+0x1d5/0x580 [ 27.921554] ? lock_acquire+0x1d5/0x580 [ 27.921558] ? remove_wait_queue+0x81/0x350 [ 27.921562] ? __lock_acquire+0x664/0x3e00 [ 27.921566] ? lock_release+0xa40/0xa40 [ 27.921572] ? lock_acquire+0x1d5/0x580 [ 27.921575] ? lock_acquire+0x1d5/0x580 [ 27.921579] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 27.921584] _raw_spin_lock_irqsave+0x96/0xc0 [ 27.921587] ? remove_wait_queue+0x81/0x350 [ 27.921591] remove_wait_queue+0x81/0x350 [ 27.921596] ? add_wait_queue+0x290/0x290 [ 27.921600] ? rcutorture_record_progress+0x10/0x10 [ 27.921606] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 27.921611] ? __kernel_text_address+0xd/0x40 [ 27.921616] ? clear_tfile_check_list+0x370/0x370 [ 27.921621] ? check_noncircular+0x20/0x20 [ 27.921627] ? locks_remove_file+0x3fa/0x5a0 [ 27.921633] ep_free+0x13f/0x320 [ 27.921637] ? ep_remove+0x800/0x800 [ 27.921640] ? fsnotify_first_mark+0x2b0/0x2b0 [ 27.921645] ? ep_free+0x320/0x320 [ 27.921649] ep_eventpoll_release+0x44/0x60 [ 27.921655] __fput+0x327/0x7e0 [ 27.921660] ? fput+0x140/0x140 [ 27.921664] ? _raw_spin_unlock_irq+0x27/0x70 [ 27.921669] ____fput+0x15/0x20 [ 27.921673] task_work_run+0x199/0x270 [ 27.921678] ? task_work_cancel+0x210/0x210 [ 27.921682] ? _raw_spin_unlock+0x22/0x30 [ 27.921686] ? switch_task_namespaces+0x87/0xc0 [ 27.921691] do_exit+0x9bb/0x1ad0 [ 27.921698] ? binder_ioctl+0x551/0x1417 [ 27.921701] ? mm_update_next_owner+0x930/0x930 [ 27.921706] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 27.921713] ? avc_ss_reset+0x110/0x110 [ 27.921716] ? mutex_unlock+0xd/0x10 [ 27.921720] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 27.921732] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 27.921735] ? up_read+0x1a/0x40 [ 27.921739] ? rcu_note_context_switch+0x710/0x710 [ 27.921742] ? __fd_install+0x288/0x740 [ 27.921747] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 27.921751] ? do_vfs_ioctl+0x486/0x1520 [ 27.921754] ? _cond_resched+0x14/0x30 [ 27.921759] ? ioctl_preallocate+0x2b0/0x2b0 [ 27.921764] ? selinux_capable+0x40/0x40 [ 27.921768] ? __alloc_fd+0x750/0x750 [ 27.921773] do_group_exit+0x149/0x400 [ 27.921777] ? SyS_exit+0x30/0x30 [ 27.921782] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.921787] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.921792] SyS_exit_group+0x1d/0x20 [ 27.921796] entry_SYSCALL_64_fastpath+0x23/0x9a [ 27.921805] RIP: 0033:0x4429f8 [ 27.921807] RSP: 002b:00007ffcf7e30e78 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 27.921811] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 27.921813] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 27.921816] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 27.921818] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 27.921820] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 27.921825] [ 27.921827] Allocated by task 3496: [ 27.921831] save_stack+0x43/0xd0 [ 27.921834] kasan_kmalloc+0xad/0xe0 [ 27.921837] kmem_cache_alloc_trace+0x136/0x750 [ 27.921840] binder_get_thread+0x1cf/0x870 [ 27.921842] binder_poll+0x8c/0x390 [ 27.921845] ep_item_poll.isra.10+0xec/0x320 [ 27.921848] ep_insert+0x6a3/0x1b10 [ 27.921851] SyS_epoll_ctl+0x12e4/0x1ab0 [ 27.921855] entry_SYSCALL_64_fastpath+0x23/0x9a [ 27.921855] [ 27.921857] Freed by task 3496: [ 27.921859] save_stack+0x43/0xd0 [ 27.921863] kasan_slab_free+0x71/0xc0 [ 27.921865] kfree+0xd6/0x260 [ 27.921868] binder_thread_dec_tmpref+0x27f/0x310 [ 27.921870] binder_thread_release+0x27d/0x540 [ 27.921873] binder_ioctl+0xc02/0x1417 [ 27.921876] do_vfs_ioctl+0x1b1/0x1520 [ 27.921878] SyS_ioctl+0x8f/0xc0 [ 27.921882] entry_SYSCALL_64_fastpath+0x23/0x9a [ 27.921883] [ 27.921885] The buggy address belongs to the object at ffff8801cb239500 [ 27.921885] which belongs to the cache kmalloc-512 of size 512 [ 27.921888] The buggy address is located 176 bytes inside of [ 27.921888] 512-byte region [ffff8801cb239500, ffff8801cb239700) [ 27.921889] The buggy address belongs to the page: [ 27.921893] page:0000000014b14ed1 count:1 mapcount:0 mapping:00000000f1c30fbf index:0x0 [ 27.921897] flags: 0x2fffc0000000100(slab) [ 27.921902] raw: 02fffc0000000100 ffff8801cb239000 0000000000000000 0000000100000006 [ 27.921906] raw: ffffea00072c8de0 ffffea00072ffc20 ffff8801dac00940 0000000000000000 [ 27.921908] page dumped because: kasan: bad access detected [ 27.921908] [ 27.921909] Memory state around the buggy address: [ 27.921912] ffff8801cb239480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.921915] ffff8801cb239500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.921917] >ffff8801cb239580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.921919] ^ [ 27.921921] ffff8801cb239600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.921924] ffff8801cb239680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.921925] ================================================================== [ 27.921926] Disabling lock debugging due to kernel taint [ 27.921929] Kernel panic - not syncing: panic_on_warn set ... [ 27.921929] [ 27.921933] CPU: 1 PID: 3496 Comm: syzkaller000668 Tainted: G B 4.15.0-rc6+ #245 [ 27.921934] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.921935] Call Trace: [ 27.921939] dump_stack+0x194/0x257 [ 27.921944] ? arch_local_irq_restore+0x53/0x53 [ 27.921947] ? kasan_end_report+0x32/0x50 [ 27.921951] ? lock_downgrade+0x980/0x980 [ 27.921955] ? vsnprintf+0x1ed/0x1900 [ 27.921959] ? __lock_acquire+0x3c70/0x3e00 [ 27.921962] panic+0x1e4/0x41c [ 27.921966] ? refcount_error_report+0x214/0x214 [ 27.921970] ? add_taint+0x40/0x50 [ 27.921973] ? add_taint+0x1c/0x50 [ 27.921977] ? __lock_acquire+0x3d4d/0x3e00 [ 27.921980] kasan_end_report+0x50/0x50 [ 27.921983] kasan_report+0x144/0x340 [ 27.921988] __asan_report_load8_noabort+0x14/0x20 [ 27.921991] __lock_acquire+0x3d4d/0x3e00 [ 27.921995] ? __lock_acquire+0x664/0x3e00 [ 27.921998] ? lock_downgrade+0x980/0x980 [ 27.922004] ? lock_downgrade+0x980/0x980 [ 27.922009] ? remove_wait_queue+0x81/0x350 [ 27.922014] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 27.922017] ? __lock_acquire+0x664/0x3e00 [ 27.922021] ? check_noncircular+0x20/0x20 [ 27.922027] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 27.922031] ? lock_acquire+0x1d5/0x580 [ 27.922035] ? lock_acquire+0x1d5/0x580 [ 27.922038] ? ep_free+0xf4/0x320 [ 27.922042] ? lock_release+0xa40/0xa40 [ 27.922046] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 27.922050] ? print_irqtrace_events+0x270/0x270 [ 27.922053] ? rcu_note_context_switch+0x710/0x710 [ 27.922057] ? __might_sleep+0x95/0x190 [ 27.922061] ? ep_free+0xf4/0x320 [ 27.922064] ? __mutex_lock+0x16f/0x1a80 [ 27.922067] ? ep_free+0xf4/0x320 [ 27.922071] ? print_irqtrace_events+0x270/0x270 [ 27.922074] ? ep_free+0xf4/0x320 [ 27.922079] lock_acquire+0x1d5/0x580 [ 27.922082] ? lock_acquire+0x1d5/0x580 [ 27.922085] ? remove_wait_queue+0x81/0x350 [ 27.922089] ? __lock_acquire+0x664/0x3e00 [ 27.922093] ? lock_release+0xa40/0xa40 [ 27.922098] ? lock_acquire+0x1d5/0x580 [ 27.922101] ? lock_acquire+0x1d5/0x580 [ 27.922104] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 27.922109] _raw_spin_lock_irqsave+0x96/0xc0 [ 27.922112] ? remove_wait_queue+0x81/0x350 [ 27.922116] remove_wait_queue+0x81/0x350 [ 27.922120] ? add_wait_queue+0x290/0x290 [ 27.922124] ? rcutorture_record_progress+0x10/0x10 [ 27.922129] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 27.922134] ? __kernel_text_address+0xd/0x40 [ 27.922138] ? clear_tfile_check_list+0x370/0x370 [ 27.922143] ? check_noncircular+0x20/0x20 [ 27.922147] ? locks_remove_file+0x3fa/0x5a0 [ 27.922152] ep_free+0x13f/0x320 [ 27.922156] ? ep_remove+0x800/0x800 [ 27.922159] ? fsnotify_first_mark+0x2b0/0x2b0 [ 27.922163] ? ep_free+0x320/0x320 [ 27.922167] ep_eventpoll_release+0x44/0x60 [ 27.922171] __fput+0x327/0x7e0 [ 27.922175] ? fput+0x140/0x140 [ 27.922179] ? _raw_spin_unlock_irq+0x27/0x70 [ 27.922184] ____fput+0x15/0x20 [ 27.922188] task_work_run+0x199/0x270 [ 27.922192] ? task_work_cancel+0x210/0x210 [ 27.922196] ? _raw_spin_unlock+0x22/0x30 [ 27.922200] ? switch_task_namespaces+0x87/0xc0 [ 27.922204] do_exit+0x9bb/0x1ad0 [ 27.922208] ? binder_ioctl+0x551/0x1417 [ 27.922211] ? mm_update_next_owner+0x930/0x930 [ 27.922216] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 27.922220] ? avc_ss_reset+0x110/0x110 [ 27.922223] ? mutex_unlock+0xd/0x10 [ 27.922227] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 27.922237] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 27.922240] ? up_read+0x1a/0x40 [ 27.922244] ? rcu_note_context_switch+0x710/0x710 [ 27.922247] ? __fd_install+0x288/0x740 [ 27.922252] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 27.922255] ? do_vfs_ioctl+0x486/0x1520 [ 27.922257] ? _cond_resched+0x14/0x30 [ 27.922262] ? ioctl_preallocate+0x2b0/0x2b0 [ 27.922266] ? selinux_capable+0x40/0x40 [ 27.922269] ? __alloc_fd+0x750/0x750 [ 27.922274] do_group_exit+0x149/0x400 [ 27.922278] ? SyS_exit+0x30/0x30 [ 27.922282] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.922286] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.922290] SyS_exit_group+0x1d/0x20 [ 27.922294] entry_SYSCALL_64_fastpath+0x23/0x9a [ 27.922296] RIP: 0033:0x4429f8 [ 27.922298] RSP: 002b:00007ffcf7e30e78 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 27.922301] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 27.922303] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 27.922305] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 27.922307] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 27.922309] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 27.943407] Dumping ftrace buffer: [ 27.943411] (ftrace buffer empty) [ 27.943413] Kernel Offset: disabled [ 29.081908] Rebooting in 86400 seconds..