[....] Starting enhanced syslogd: rsyslogd[ 11.170713] audit: type=1400 audit(1514837635.873:5): avc: denied { syslog } for pid=3002 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.189036] audit: type=1400 audit(1514837640.891:6): avc: denied { map } for pid=3139 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.62' (ECDSA) to the list of known hosts. executing program [ 38.613456] audit: type=1400 audit(1514837663.316:7): avc: denied { map } for pid=3157 comm="syzkaller645652" path="/root/syzkaller645652247" 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 [ 38.617232] ================================================================== [ 38.617242] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 38.617246] Read of size 8 at addr ffff8801ce455338 by task syzkaller645652/3157 [ 38.617247] [ 38.617252] CPU: 0 PID: 3157 Comm: syzkaller645652 Not tainted 4.15.0-rc4-next-20171221+ #78 [ 38.617254] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.617256] Call Trace: [ 38.617263] dump_stack+0x194/0x257 [ 38.617267] ? arch_local_irq_restore+0x53/0x53 [ 38.617274] ? show_regs_print_info+0x18/0x18 [ 38.617277] ? print_irqtrace_events+0x270/0x270 [ 38.617281] ? __lock_acquire+0x664/0x3e00 [ 38.617285] ? __lock_acquire+0x3d4d/0x3e00 [ 38.617291] print_address_description+0x73/0x250 [ 38.617295] ? __lock_acquire+0x3d4d/0x3e00 [ 38.617299] kasan_report+0x25b/0x340 [ 38.617305] __asan_report_load8_noabort+0x14/0x20 [ 38.617308] __lock_acquire+0x3d4d/0x3e00 [ 38.617311] ? __lock_acquire+0x664/0x3e00 [ 38.617315] ? lock_downgrade+0x980/0x980 [ 38.617318] ? lock_downgrade+0x980/0x980 [ 38.617324] ? remove_wait_queue+0x81/0x350 [ 38.617330] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 38.617334] ? __lock_acquire+0x664/0x3e00 [ 38.617337] ? check_noncircular+0x20/0x20 [ 38.617345] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 38.617349] ? lock_acquire+0x1d5/0x580 [ 38.617353] ? lock_acquire+0x1d5/0x580 [ 38.617357] ? ep_free+0xf4/0x320 [ 38.617362] ? lock_release+0xa40/0xa40 [ 38.617367] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 38.617371] ? print_irqtrace_events+0x270/0x270 [ 38.617376] ? rcu_note_context_switch+0x710/0x710 [ 38.617381] ? __might_sleep+0x95/0x190 [ 38.617384] ? ep_free+0xf4/0x320 [ 38.617390] ? __mutex_lock+0x16f/0x1a80 [ 38.617393] ? ep_free+0xf4/0x320 [ 38.617398] ? print_irqtrace_events+0x270/0x270 [ 38.617401] ? ep_free+0xf4/0x320 [ 38.617406] lock_acquire+0x1d5/0x580 [ 38.617409] ? lock_acquire+0x1d5/0x580 [ 38.617413] ? remove_wait_queue+0x81/0x350 [ 38.617416] ? __lock_acquire+0x664/0x3e00 [ 38.617421] ? lock_release+0xa40/0xa40 [ 38.617427] ? lock_acquire+0x1d5/0x580 [ 38.617430] ? lock_acquire+0x1d5/0x580 [ 38.617434] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 38.617439] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.617442] ? remove_wait_queue+0x81/0x350 [ 38.617446] remove_wait_queue+0x81/0x350 [ 38.617451] ? add_wait_queue+0x290/0x290 [ 38.617455] ? rcutorture_record_progress+0x10/0x10 [ 38.617461] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 38.617467] ? __kernel_text_address+0xd/0x40 [ 38.617472] ? clear_tfile_check_list+0x370/0x370 [ 38.617477] ? check_noncircular+0x20/0x20 [ 38.617483] ? locks_remove_file+0x3fa/0x5a0 [ 38.617488] ep_free+0x13f/0x320 [ 38.617492] ? ep_remove+0x800/0x800 [ 38.617495] ? fsnotify_first_mark+0x2b0/0x2b0 [ 38.617500] ? ep_free+0x320/0x320 [ 38.617504] ep_eventpoll_release+0x44/0x60 [ 38.617509] __fput+0x327/0x7e0 [ 38.617514] ? fput+0x140/0x140 [ 38.617518] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.617523] ____fput+0x15/0x20 [ 38.617527] task_work_run+0x199/0x270 [ 38.617532] ? task_work_cancel+0x210/0x210 [ 38.617535] ? _raw_spin_unlock+0x22/0x30 [ 38.617539] ? switch_task_namespaces+0x87/0xc0 [ 38.617545] do_exit+0x9bb/0x1ad0 [ 38.617551] ? binder_ioctl+0x491/0x1417 [ 38.617555] ? mm_update_next_owner+0x930/0x930 [ 38.617559] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 38.617566] ? avc_ss_reset+0x110/0x110 [ 38.617569] ? mutex_unlock+0xd/0x10 [ 38.617573] ? SyS_epoll_ctl+0x30a/0x1a80 [ 38.617585] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 38.617588] ? up_read+0x1a/0x40 [ 38.617592] ? rcu_note_context_switch+0x710/0x710 [ 38.617595] ? __fd_install+0x288/0x740 [ 38.617601] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 38.617604] ? do_vfs_ioctl+0x486/0x1520 [ 38.617608] ? _cond_resched+0x14/0x30 [ 38.617612] ? ioctl_preallocate+0x2b0/0x2b0 [ 38.617617] ? selinux_capable+0x40/0x40 [ 38.617621] ? __alloc_fd+0x750/0x750 [ 38.617626] do_group_exit+0x149/0x400 [ 38.617630] ? SyS_exit+0x30/0x30 [ 38.617634] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 38.617640] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 38.617645] SyS_exit_group+0x1d/0x20 [ 38.617649] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 38.617652] RIP: 0033:0x4429f8 [ 38.617654] RSP: 002b:00007ffcc9102f68 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 38.617658] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 38.617660] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 38.617662] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 38.617664] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 38.617666] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 38.617671] [ 38.617673] Allocated by task 3157: [ 38.617677] save_stack+0x43/0xd0 [ 38.617680] kasan_kmalloc+0xad/0xe0 [ 38.617683] kmem_cache_alloc_trace+0x136/0x750 [ 38.617686] binder_get_thread+0x1cf/0x870 [ 38.617688] binder_poll+0x8c/0x390 [ 38.617691] ep_item_poll.isra.10+0xf2/0x320 [ 38.617694] ep_insert+0x6a2/0x1ac0 [ 38.617697] SyS_epoll_ctl+0x12bf/0x1a80 [ 38.617700] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 38.617701] [ 38.617702] Freed by task 3157: [ 38.617705] save_stack+0x43/0xd0 [ 38.617708] kasan_slab_free+0x71/0xc0 [ 38.617710] kfree+0xd6/0x260 [ 38.617713] binder_thread_dec_tmpref+0x27f/0x310 [ 38.617716] binder_thread_release+0x27d/0x540 [ 38.617718] binder_ioctl+0xc02/0x1417 [ 38.617721] do_vfs_ioctl+0x1b1/0x1520 [ 38.617723] SyS_ioctl+0x8f/0xc0 [ 38.617726] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 38.617727] [ 38.617729] The buggy address belongs to the object at ffff8801ce455280 [ 38.617729] which belongs to the cache kmalloc-512 of size 512 [ 38.617732] The buggy address is located 184 bytes inside of [ 38.617732] 512-byte region [ffff8801ce455280, ffff8801ce455480) [ 38.617733] The buggy address belongs to the page: [ 38.617737] page:00000000c5e8165b count:1 mapcount:0 mapping:00000000d58bb62e index:0x0 [ 38.617740] flags: 0x2fffc0000000100(slab) [ 38.617746] raw: 02fffc0000000100 ffff8801ce455000 0000000000000000 0000000100000006 [ 38.617750] raw: ffffea0007391760 ffff8801dac01748 ffff8801dac00940 0000000000000000 [ 38.617751] page dumped because: kasan: bad access detected [ 38.617752] [ 38.617753] Memory state around the buggy address: [ 38.617756] ffff8801ce455200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 38.617758] ffff8801ce455280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.617761] >ffff8801ce455300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.617762] ^ [ 38.617765] ffff8801ce455380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.617768] ffff8801ce455400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.617769] ================================================================== [ 38.617770] Disabling lock debugging due to kernel taint [ 38.617772] Kernel panic - not syncing: panic_on_warn set ... [ 38.617772] [ 38.617776] CPU: 0 PID: 3157 Comm: syzkaller645652 Tainted: G B 4.15.0-rc4-next-20171221+ #78 [ 38.617777] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.617778] Call Trace: [ 38.617782] dump_stack+0x194/0x257 [ 38.617786] ? arch_local_irq_restore+0x53/0x53 [ 38.617789] ? kasan_end_report+0x32/0x50 [ 38.617793] ? lock_downgrade+0x980/0x980 [ 38.617797] ? vsnprintf+0x1ed/0x1900 [ 38.617800] ? __lock_acquire+0x3d30/0x3e00 [ 38.617809] panic+0x1e4/0x41c [ 38.617813] ? refcount_error_report+0x214/0x214 [ 38.617817] ? add_taint+0x40/0x50 [ 38.617820] ? add_taint+0x1c/0x50 [ 38.617824] ? __lock_acquire+0x3d4d/0x3e00 [ 38.617828] kasan_end_report+0x50/0x50 [ 38.617832] kasan_report+0x144/0x340 [ 38.617836] __asan_report_load8_noabort+0x14/0x20 [ 38.617840] __lock_acquire+0x3d4d/0x3e00 [ 38.617843] ? __lock_acquire+0x664/0x3e00 [ 38.617847] ? lock_downgrade+0x980/0x980 [ 38.617850] ? lock_downgrade+0x980/0x980 [ 38.617854] ? remove_wait_queue+0x81/0x350 [ 38.617860] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 38.617864] ? __lock_acquire+0x664/0x3e00 [ 38.617867] ? check_noncircular+0x20/0x20 [ 38.617873] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 38.617878] ? lock_acquire+0x1d5/0x580 [ 38.617881] ? lock_acquire+0x1d5/0x580 [ 38.617884] ? ep_free+0xf4/0x320 [ 38.617889] ? lock_release+0xa40/0xa40 [ 38.617893] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 38.617896] ? print_irqtrace_events+0x270/0x270 [ 38.617900] ? rcu_note_context_switch+0x710/0x710 [ 38.617904] ? __might_sleep+0x95/0x190 [ 38.617908] ? ep_free+0xf4/0x320 [ 38.617912] ? __mutex_lock+0x16f/0x1a80 [ 38.617914] ? ep_free+0xf4/0x320 [ 38.617919] ? print_irqtrace_events+0x270/0x270 [ 38.617921] ? ep_free+0xf4/0x320 [ 38.617926] lock_acquire+0x1d5/0x580 [ 38.617929] ? lock_acquire+0x1d5/0x580 [ 38.617933] ? remove_wait_queue+0x81/0x350 [ 38.617937] ? __lock_acquire+0x664/0x3e00 [ 38.617941] ? lock_release+0xa40/0xa40 [ 38.617946] ? lock_acquire+0x1d5/0x580 [ 38.617949] ? lock_acquire+0x1d5/0x580 [ 38.617953] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 38.617957] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.617960] ? remove_wait_queue+0x81/0x350 [ 38.617964] remove_wait_queue+0x81/0x350 [ 38.617969] ? add_wait_queue+0x290/0x290 [ 38.617972] ? rcutorture_record_progress+0x10/0x10 [ 38.617978] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 38.617982] ? __kernel_text_address+0xd/0x40 [ 38.617986] ? clear_tfile_check_list+0x370/0x370 [ 38.617991] ? check_noncircular+0x20/0x20 [ 38.617995] ? locks_remove_file+0x3fa/0x5a0 [ 38.618003] ep_free+0x13f/0x320 [ 38.618007] ? ep_remove+0x800/0x800 [ 38.618010] ? fsnotify_first_mark+0x2b0/0x2b0 [ 38.618015] ? ep_free+0x320/0x320 [ 38.618018] ep_eventpoll_release+0x44/0x60 [ 38.618022] __fput+0x327/0x7e0 [ 38.618026] ? fput+0x140/0x140 [ 38.618030] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.618035] ____fput+0x15/0x20 [ 38.618039] task_work_run+0x199/0x270 [ 38.618043] ? task_work_cancel+0x210/0x210 [ 38.618047] ? _raw_spin_unlock+0x22/0x30 [ 38.618050] ? switch_task_namespaces+0x87/0xc0 [ 38.618055] do_exit+0x9bb/0x1ad0 [ 38.618059] ? binder_ioctl+0x491/0x1417 [ 38.618063] ? mm_update_next_owner+0x930/0x930 [ 38.618067] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 38.618071] ? avc_ss_reset+0x110/0x110 [ 38.618075] ? mutex_unlock+0xd/0x10 [ 38.618079] ? SyS_epoll_ctl+0x30a/0x1a80 [ 38.618089] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 38.618092] ? up_read+0x1a/0x40 [ 38.618096] ? rcu_note_context_switch+0x710/0x710 [ 38.618099] ? __fd_install+0x288/0x740 [ 38.618104] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 38.618107] ? do_vfs_ioctl+0x486/0x1520 [ 38.618110] ? _cond_resched+0x14/0x30 [ 38.618114] ? ioctl_preallocate+0x2b0/0x2b0 [ 38.618118] ? selinux_capable+0x40/0x40 [ 38.618122] ? __alloc_fd+0x750/0x750 [ 38.618127] do_group_exit+0x149/0x400 [ 38.618131] ? SyS_exit+0x30/0x30 [ 38.618135] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 38.618139] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 38.618143] SyS_exit_group+0x1d/0x20 [ 38.618147] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 38.618149] RIP: 0033:0x4429f8 [ 38.618151] RSP: 002b:00007ffcc9102f68 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 38.618155] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 38.618157] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 38.618159] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 38.618161] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 38.618163] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 38.639375] Dumping ftrace buffer: [ 38.639379] (ftrace buffer empty) [ 38.639380] Kernel Offset: disabled [ 39.765865] Rebooting in 86400 seconds..