[....] Starting enhanced syslogd: rsyslogd[ 11.115875] audit: type=1400 audit(1514553181.900:5): avc: denied { syslog } for pid=2998 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.965701] audit: type=1400 audit(1514553187.750:6): avc: denied { map } for pid=3135 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.15' (ECDSA) to the list of known hosts. executing program [ 37.859488] audit: type=1400 audit(1514553208.644:7): avc: denied { map } for pid=3153 comm="syzkaller019341" path="/root/syzkaller019341510" 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 [ 37.863186] ================================================================== [ 37.863197] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 37.863201] Read of size 8 at addr ffff8801c8bce3f8 by task syzkaller019341/3153 [ 37.863202] [ 37.863207] CPU: 0 PID: 3153 Comm: syzkaller019341 Not tainted 4.15.0-rc4-next-20171221+ #78 [ 37.863210] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.863211] Call Trace: [ 37.863218] dump_stack+0x194/0x257 [ 37.863223] ? arch_local_irq_restore+0x53/0x53 [ 37.863228] ? show_regs_print_info+0x18/0x18 [ 37.863232] ? print_irqtrace_events+0x270/0x270 [ 37.863236] ? __lock_acquire+0x664/0x3e00 [ 37.863240] ? __lock_acquire+0x3d4d/0x3e00 [ 37.863246] print_address_description+0x73/0x250 [ 37.863250] ? __lock_acquire+0x3d4d/0x3e00 [ 37.863253] kasan_report+0x25b/0x340 [ 37.863259] __asan_report_load8_noabort+0x14/0x20 [ 37.863263] __lock_acquire+0x3d4d/0x3e00 [ 37.863266] ? __lock_acquire+0x664/0x3e00 [ 37.863270] ? lock_downgrade+0x980/0x980 [ 37.863273] ? lock_downgrade+0x980/0x980 [ 37.863279] ? remove_wait_queue+0x81/0x350 [ 37.863285] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 37.863289] ? __lock_acquire+0x664/0x3e00 [ 37.863293] ? check_noncircular+0x20/0x20 [ 37.863301] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 37.863305] ? lock_acquire+0x1d5/0x580 [ 37.863308] ? lock_acquire+0x1d5/0x580 [ 37.863313] ? ep_free+0xf4/0x320 [ 37.863318] ? lock_release+0xa40/0xa40 [ 37.863324] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 37.863327] ? print_irqtrace_events+0x270/0x270 [ 37.863333] ? rcu_note_context_switch+0x710/0x710 [ 37.863338] ? __might_sleep+0x95/0x190 [ 37.863341] ? ep_free+0xf4/0x320 [ 37.863347] ? __mutex_lock+0x16f/0x1a80 [ 37.863350] ? ep_free+0xf4/0x320 [ 37.863354] ? print_irqtrace_events+0x270/0x270 [ 37.863357] ? ep_free+0xf4/0x320 [ 37.863362] lock_acquire+0x1d5/0x580 [ 37.863365] ? lock_acquire+0x1d5/0x580 [ 37.863369] ? remove_wait_queue+0x81/0x350 [ 37.863373] ? __lock_acquire+0x664/0x3e00 [ 37.863377] ? lock_release+0xa40/0xa40 [ 37.863383] ? lock_acquire+0x1d5/0x580 [ 37.863386] ? lock_acquire+0x1d5/0x580 [ 37.863390] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 37.863395] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.863399] ? remove_wait_queue+0x81/0x350 [ 37.863403] remove_wait_queue+0x81/0x350 [ 37.863407] ? add_wait_queue+0x290/0x290 [ 37.863411] ? rcutorture_record_progress+0x10/0x10 [ 37.863417] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 37.863424] ? __kernel_text_address+0xd/0x40 [ 37.863429] ? clear_tfile_check_list+0x370/0x370 [ 37.863433] ? check_noncircular+0x20/0x20 [ 37.863439] ? locks_remove_file+0x3fa/0x5a0 [ 37.863445] ep_free+0x13f/0x320 [ 37.863449] ? ep_remove+0x800/0x800 [ 37.863452] ? fsnotify_first_mark+0x2b0/0x2b0 [ 37.863457] ? ep_free+0x320/0x320 [ 37.863461] ep_eventpoll_release+0x44/0x60 [ 37.863466] __fput+0x327/0x7e0 [ 37.863471] ? fput+0x140/0x140 [ 37.863475] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.863480] ____fput+0x15/0x20 [ 37.863484] task_work_run+0x199/0x270 [ 37.863489] ? task_work_cancel+0x210/0x210 [ 37.863493] ? _raw_spin_unlock+0x22/0x30 [ 37.863497] ? switch_task_namespaces+0x87/0xc0 [ 37.863503] do_exit+0x9bb/0x1ad0 [ 37.863508] ? binder_ioctl+0x491/0x1417 [ 37.863512] ? mm_update_next_owner+0x930/0x930 [ 37.863517] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 37.863523] ? avc_ss_reset+0x110/0x110 [ 37.863527] ? mutex_unlock+0xd/0x10 [ 37.863531] ? SyS_epoll_ctl+0x30a/0x1a80 [ 37.863543] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 37.863546] ? up_read+0x1a/0x40 [ 37.863550] ? rcu_note_context_switch+0x710/0x710 [ 37.863554] ? __fd_install+0x288/0x740 [ 37.863559] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 37.863563] ? do_vfs_ioctl+0x486/0x1520 [ 37.863566] ? _cond_resched+0x14/0x30 [ 37.863571] ? ioctl_preallocate+0x2b0/0x2b0 [ 37.863576] ? selinux_capable+0x40/0x40 [ 37.863579] ? __alloc_fd+0x750/0x750 [ 37.863585] do_group_exit+0x149/0x400 [ 37.863589] ? SyS_exit+0x30/0x30 [ 37.863593] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 37.863598] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 37.863603] SyS_exit_group+0x1d/0x20 [ 37.863607] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 37.863610] RIP: 0033:0x4429f8 [ 37.863612] RSP: 002b:00007ffee2fcb308 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 37.863616] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 37.863618] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 37.863620] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 37.863622] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 37.863624] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 37.863630] [ 37.863632] Allocated by task 3153: [ 37.863636] save_stack+0x43/0xd0 [ 37.863639] kasan_kmalloc+0xad/0xe0 [ 37.863642] kmem_cache_alloc_trace+0x136/0x750 [ 37.863645] binder_get_thread+0x1cf/0x870 [ 37.863647] binder_poll+0x8c/0x390 [ 37.863650] ep_item_poll.isra.10+0xf2/0x320 [ 37.863653] ep_insert+0x6a2/0x1ac0 [ 37.863656] SyS_epoll_ctl+0x12bf/0x1a80 [ 37.863659] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 37.863660] [ 37.863661] Freed by task 3153: [ 37.863664] save_stack+0x43/0xd0 [ 37.863667] kasan_slab_free+0x71/0xc0 [ 37.863669] kfree+0xd6/0x260 [ 37.863672] binder_thread_dec_tmpref+0x27f/0x310 [ 37.863675] binder_thread_release+0x27d/0x540 [ 37.863677] binder_ioctl+0xc02/0x1417 [ 37.863680] do_vfs_ioctl+0x1b1/0x1520 [ 37.863682] SyS_ioctl+0x8f/0xc0 [ 37.863685] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 37.863686] [ 37.863688] The buggy address belongs to the object at ffff8801c8bce340 [ 37.863688] which belongs to the cache kmalloc-512 of size 512 [ 37.863691] The buggy address is located 184 bytes inside of [ 37.863691] 512-byte region [ffff8801c8bce340, ffff8801c8bce540) [ 37.863692] The buggy address belongs to the page: [ 37.863696] page:00000000220ab4be count:1 mapcount:0 mapping:00000000f8cd69eb index:0x0 [ 37.863700] flags: 0x2fffc0000000100(slab) [ 37.863705] raw: 02fffc0000000100 ffff8801c8bce0c0 0000000000000000 0000000100000006 [ 37.863709] raw: ffffea000726dae0 ffffea00072522a0 ffff8801dac00940 0000000000000000 [ 37.863711] page dumped because: kasan: bad access detected [ 37.863712] [ 37.863713] Memory state around the buggy address: [ 37.863715] ffff8801c8bce280: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 37.863718] ffff8801c8bce300: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 37.863721] >ffff8801c8bce380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.863722] ^ [ 37.863725] ffff8801c8bce400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.863727] ffff8801c8bce480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.863728] ================================================================== [ 37.863729] Disabling lock debugging due to kernel taint [ 37.863732] Kernel panic - not syncing: panic_on_warn set ... [ 37.863732] [ 37.863736] CPU: 0 PID: 3153 Comm: syzkaller019341 Tainted: G B 4.15.0-rc4-next-20171221+ #78 [ 37.863738] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.863739] Call Trace: [ 37.863742] dump_stack+0x194/0x257 [ 37.863746] ? arch_local_irq_restore+0x53/0x53 [ 37.863750] ? kasan_end_report+0x32/0x50 [ 37.863754] ? lock_downgrade+0x980/0x980 [ 37.863757] ? vsnprintf+0x1ed/0x1900 [ 37.863761] ? __lock_acquire+0x3d30/0x3e00 [ 37.863764] panic+0x1e4/0x41c [ 37.863768] ? refcount_error_report+0x214/0x214 [ 37.863772] ? add_taint+0x40/0x50 [ 37.863775] ? add_taint+0x1c/0x50 [ 37.863779] ? __lock_acquire+0x3d4d/0x3e00 [ 37.863783] kasan_end_report+0x50/0x50 [ 37.863786] kasan_report+0x144/0x340 [ 37.863791] __asan_report_load8_noabort+0x14/0x20 [ 37.863795] __lock_acquire+0x3d4d/0x3e00 [ 37.863798] ? __lock_acquire+0x664/0x3e00 [ 37.863802] ? lock_downgrade+0x980/0x980 [ 37.863805] ? lock_downgrade+0x980/0x980 [ 37.863809] ? remove_wait_queue+0x81/0x350 [ 37.863814] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 37.863824] ? __lock_acquire+0x664/0x3e00 [ 37.863827] ? check_noncircular+0x20/0x20 [ 37.863834] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 37.863838] ? lock_acquire+0x1d5/0x580 [ 37.863841] ? lock_acquire+0x1d5/0x580 [ 37.863844] ? ep_free+0xf4/0x320 [ 37.863849] ? lock_release+0xa40/0xa40 [ 37.863853] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 37.863856] ? print_irqtrace_events+0x270/0x270 [ 37.863860] ? rcu_note_context_switch+0x710/0x710 [ 37.863865] ? __might_sleep+0x95/0x190 [ 37.863868] ? ep_free+0xf4/0x320 [ 37.863872] ? __mutex_lock+0x16f/0x1a80 [ 37.863875] ? ep_free+0xf4/0x320 [ 37.863879] ? print_irqtrace_events+0x270/0x270 [ 37.863882] ? ep_free+0xf4/0x320 [ 37.863887] lock_acquire+0x1d5/0x580 [ 37.863890] ? lock_acquire+0x1d5/0x580 [ 37.863893] ? remove_wait_queue+0x81/0x350 [ 37.863897] ? __lock_acquire+0x664/0x3e00 [ 37.863901] ? lock_release+0xa40/0xa40 [ 37.863906] ? lock_acquire+0x1d5/0x580 [ 37.863909] ? lock_acquire+0x1d5/0x580 [ 37.863913] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 37.863917] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.863921] ? remove_wait_queue+0x81/0x350 [ 37.863925] remove_wait_queue+0x81/0x350 [ 37.863929] ? add_wait_queue+0x290/0x290 [ 37.863933] ? rcutorture_record_progress+0x10/0x10 [ 37.863938] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 37.863942] ? __kernel_text_address+0xd/0x40 [ 37.863947] ? clear_tfile_check_list+0x370/0x370 [ 37.863952] ? check_noncircular+0x20/0x20 [ 37.863956] ? locks_remove_file+0x3fa/0x5a0 [ 37.863961] ep_free+0x13f/0x320 [ 37.863965] ? ep_remove+0x800/0x800 [ 37.863968] ? fsnotify_first_mark+0x2b0/0x2b0 [ 37.863972] ? ep_free+0x320/0x320 [ 37.863976] ep_eventpoll_release+0x44/0x60 [ 37.863980] __fput+0x327/0x7e0 [ 37.863984] ? fput+0x140/0x140 [ 37.863988] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.863993] ____fput+0x15/0x20 [ 37.863997] task_work_run+0x199/0x270 [ 37.864004] ? task_work_cancel+0x210/0x210 [ 37.864008] ? _raw_spin_unlock+0x22/0x30 [ 37.864011] ? switch_task_namespaces+0x87/0xc0 [ 37.864016] do_exit+0x9bb/0x1ad0 [ 37.864020] ? binder_ioctl+0x491/0x1417 [ 37.864023] ? mm_update_next_owner+0x930/0x930 [ 37.864028] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 37.864032] ? avc_ss_reset+0x110/0x110 [ 37.864036] ? mutex_unlock+0xd/0x10 [ 37.864040] ? SyS_epoll_ctl+0x30a/0x1a80 [ 37.864050] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 37.864053] ? up_read+0x1a/0x40 [ 37.864057] ? rcu_note_context_switch+0x710/0x710 [ 37.864060] ? __fd_install+0x288/0x740 [ 37.864065] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 37.864068] ? do_vfs_ioctl+0x486/0x1520 [ 37.864071] ? _cond_resched+0x14/0x30 [ 37.864075] ? ioctl_preallocate+0x2b0/0x2b0 [ 37.864080] ? selinux_capable+0x40/0x40 [ 37.864083] ? __alloc_fd+0x750/0x750 [ 37.864088] do_group_exit+0x149/0x400 [ 37.864092] ? SyS_exit+0x30/0x30 [ 37.864096] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 37.864100] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 37.864105] SyS_exit_group+0x1d/0x20 [ 37.864108] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 37.864111] RIP: 0033:0x4429f8 [ 37.864113] RSP: 002b:00007ffee2fcb308 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 37.864116] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 37.864118] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 37.864120] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 37.864122] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 37.864124] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 37.885373] Dumping ftrace buffer: [ 37.885377] (ftrace buffer empty) [ 37.885379] Kernel Offset: disabled [ 39.012565] Rebooting in 86400 seconds..