[....] Starting enhanced syslogd: rsyslogd[ 10.491109] audit: type=1400 audit(1514564443.583:5): avc: denied { syslog } for pid=2989 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.044419] audit: type=1400 audit(1514564449.137:6): avc: denied { map } for pid=3128 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.53' (ECDSA) to the list of known hosts. executing program [ 22.198342] audit: type=1400 audit(1514564455.291:7): avc: denied { map } for pid=3142 comm="syzkaller584661" path="/root/syzkaller584661743" 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.203059] ================================================================== [ 22.203070] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 22.203074] Read of size 8 at addr ffff8801c90308f8 by task syzkaller584661/3142 [ 22.203074] [ 22.203079] CPU: 1 PID: 3142 Comm: syzkaller584661 Not tainted 4.15.0-rc4-next-20171221+ #78 [ 22.203081] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.203083] Call Trace: [ 22.203089] dump_stack+0x194/0x257 [ 22.203094] ? arch_local_irq_restore+0x53/0x53 [ 22.203100] ? show_regs_print_info+0x18/0x18 [ 22.203103] ? print_irqtrace_events+0x270/0x270 [ 22.203107] ? __lock_acquire+0x664/0x3e00 [ 22.203111] ? __lock_acquire+0x3d4d/0x3e00 [ 22.203117] print_address_description+0x73/0x250 [ 22.203121] ? __lock_acquire+0x3d4d/0x3e00 [ 22.203125] kasan_report+0x25b/0x340 [ 22.203130] __asan_report_load8_noabort+0x14/0x20 [ 22.203133] __lock_acquire+0x3d4d/0x3e00 [ 22.203137] ? __lock_acquire+0x664/0x3e00 [ 22.203140] ? lock_downgrade+0x980/0x980 [ 22.203143] ? lock_downgrade+0x980/0x980 [ 22.203150] ? remove_wait_queue+0x81/0x350 [ 22.203155] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.203159] ? __lock_acquire+0x664/0x3e00 [ 22.203163] ? check_noncircular+0x20/0x20 [ 22.203170] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.203175] ? lock_acquire+0x1d5/0x580 [ 22.203178] ? lock_acquire+0x1d5/0x580 [ 22.203183] ? ep_free+0xf4/0x320 [ 22.203188] ? lock_release+0xa40/0xa40 [ 22.203194] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.203198] ? print_irqtrace_events+0x270/0x270 [ 22.203203] ? rcu_note_context_switch+0x710/0x710 [ 22.203207] ? __might_sleep+0x95/0x190 [ 22.203211] ? ep_free+0xf4/0x320 [ 22.203217] ? __mutex_lock+0x16f/0x1a80 [ 22.203220] ? ep_free+0xf4/0x320 [ 22.203224] ? print_irqtrace_events+0x270/0x270 [ 22.203227] ? ep_free+0xf4/0x320 [ 22.203232] lock_acquire+0x1d5/0x580 [ 22.203236] ? lock_acquire+0x1d5/0x580 [ 22.203239] ? remove_wait_queue+0x81/0x350 [ 22.203243] ? __lock_acquire+0x664/0x3e00 [ 22.203247] ? lock_release+0xa40/0xa40 [ 22.203253] ? lock_acquire+0x1d5/0x580 [ 22.203256] ? lock_acquire+0x1d5/0x580 [ 22.203260] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 22.203265] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.203269] ? remove_wait_queue+0x81/0x350 [ 22.203273] remove_wait_queue+0x81/0x350 [ 22.203277] ? add_wait_queue+0x290/0x290 [ 22.203281] ? rcutorture_record_progress+0x10/0x10 [ 22.203287] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 22.203293] ? __kernel_text_address+0xd/0x40 [ 22.203298] ? clear_tfile_check_list+0x370/0x370 [ 22.203303] ? check_noncircular+0x20/0x20 [ 22.203309] ? locks_remove_file+0x3fa/0x5a0 [ 22.203315] ep_free+0x13f/0x320 [ 22.203318] ? ep_remove+0x800/0x800 [ 22.203322] ? fsnotify_first_mark+0x2b0/0x2b0 [ 22.203326] ? ep_free+0x320/0x320 [ 22.203330] ep_eventpoll_release+0x44/0x60 [ 22.203335] __fput+0x327/0x7e0 [ 22.203340] ? fput+0x140/0x140 [ 22.203344] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.203349] ____fput+0x15/0x20 [ 22.203353] task_work_run+0x199/0x270 [ 22.203358] ? task_work_cancel+0x210/0x210 [ 22.203361] ? _raw_spin_unlock+0x22/0x30 [ 22.203365] ? switch_task_namespaces+0x87/0xc0 [ 22.203371] do_exit+0x9bb/0x1ad0 [ 22.203376] ? binder_ioctl+0x491/0x1417 [ 22.203380] ? mm_update_next_owner+0x930/0x930 [ 22.203385] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 22.203391] ? avc_ss_reset+0x110/0x110 [ 22.203395] ? mutex_unlock+0xd/0x10 [ 22.203398] ? SyS_epoll_ctl+0x30a/0x1a80 [ 22.203411] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.203414] ? up_read+0x1a/0x40 [ 22.203418] ? rcu_note_context_switch+0x710/0x710 [ 22.203421] ? __fd_install+0x288/0x740 [ 22.203431] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 22.203435] ? do_vfs_ioctl+0x486/0x1520 [ 22.203439] ? _cond_resched+0x14/0x30 [ 22.203444] ? ioctl_preallocate+0x2b0/0x2b0 [ 22.203450] ? selinux_capable+0x40/0x40 [ 22.203453] ? __alloc_fd+0x750/0x750 [ 22.203459] do_group_exit+0x149/0x400 [ 22.203463] ? SyS_exit+0x30/0x30 [ 22.203467] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 22.203473] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 22.203477] SyS_exit_group+0x1d/0x20 [ 22.203481] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.203484] RIP: 0033:0x442a48 [ 22.203486] RSP: 002b:00007ffdf3fc3988 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 22.203491] RAX: ffffffffffffffda RBX: 6e69622f7665642f RCX: 0000000000442a48 [ 22.203493] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 22.203495] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 22.203497] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a90 [ 22.203499] R13: 0000000000401b20 R14: 0000000000000000 R15: 0000000000000000 [ 22.203504] [ 22.203507] Allocated by task 3142: [ 22.203511] save_stack+0x43/0xd0 [ 22.203514] kasan_kmalloc+0xad/0xe0 [ 22.203517] kmem_cache_alloc_trace+0x136/0x750 [ 22.203520] binder_get_thread+0x1cf/0x870 [ 22.203523] binder_poll+0x8c/0x390 [ 22.203526] ep_item_poll.isra.10+0xf2/0x320 [ 22.203528] ep_insert+0x6a2/0x1ac0 [ 22.203531] SyS_epoll_ctl+0x12bf/0x1a80 [ 22.203534] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.203535] [ 22.203536] Freed by task 3142: [ 22.203539] save_stack+0x43/0xd0 [ 22.203542] kasan_slab_free+0x71/0xc0 [ 22.203544] kfree+0xd6/0x260 [ 22.203547] binder_thread_dec_tmpref+0x27f/0x310 [ 22.203550] binder_thread_release+0x27d/0x540 [ 22.203552] binder_ioctl+0xc02/0x1417 [ 22.203555] do_vfs_ioctl+0x1b1/0x1520 [ 22.203557] SyS_ioctl+0x8f/0xc0 [ 22.203560] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.203561] [ 22.203564] The buggy address belongs to the object at ffff8801c9030840 [ 22.203564] which belongs to the cache kmalloc-512 of size 512 [ 22.203567] The buggy address is located 184 bytes inside of [ 22.203567] 512-byte region [ffff8801c9030840, ffff8801c9030a40) [ 22.203568] The buggy address belongs to the page: [ 22.203572] page:00000000eb5fcefe count:1 mapcount:0 mapping:000000004df3f19b index:0x0 [ 22.203575] flags: 0x2fffc0000000100(slab) [ 22.203581] raw: 02fffc0000000100 ffff8801c90300c0 0000000000000000 0000000100000006 [ 22.203585] raw: ffffea000724c6e0 ffffea000722a5a0 ffff8801dac00940 0000000000000000 [ 22.203586] page dumped because: kasan: bad access detected [ 22.203587] [ 22.203588] Memory state around the buggy address: [ 22.203591] ffff8801c9030780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.203593] ffff8801c9030800: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 22.203596] >ffff8801c9030880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.203598] ^ [ 22.203600] ffff8801c9030900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.203603] ffff8801c9030980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.203604] ================================================================== [ 22.203605] Disabling lock debugging due to kernel taint [ 22.203607] Kernel panic - not syncing: panic_on_warn set ... [ 22.203607] [ 22.203611] CPU: 1 PID: 3142 Comm: syzkaller584661 Tainted: G B 4.15.0-rc4-next-20171221+ #78 [ 22.203613] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.203614] Call Trace: [ 22.203618] dump_stack+0x194/0x257 [ 22.203622] ? arch_local_irq_restore+0x53/0x53 [ 22.203625] ? kasan_end_report+0x32/0x50 [ 22.203629] ? lock_downgrade+0x980/0x980 [ 22.203632] ? vsnprintf+0x1ed/0x1900 [ 22.203636] ? __lock_acquire+0x3d30/0x3e00 [ 22.203640] panic+0x1e4/0x41c [ 22.203643] ? refcount_error_report+0x214/0x214 [ 22.203647] ? add_taint+0x40/0x50 [ 22.203650] ? add_taint+0x1c/0x50 [ 22.203654] ? __lock_acquire+0x3d4d/0x3e00 [ 22.203658] kasan_end_report+0x50/0x50 [ 22.203661] kasan_report+0x144/0x340 [ 22.203666] __asan_report_load8_noabort+0x14/0x20 [ 22.203670] __lock_acquire+0x3d4d/0x3e00 [ 22.203673] ? __lock_acquire+0x664/0x3e00 [ 22.203676] ? lock_downgrade+0x980/0x980 [ 22.203679] ? lock_downgrade+0x980/0x980 [ 22.203684] ? remove_wait_queue+0x81/0x350 [ 22.203689] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.203693] ? __lock_acquire+0x664/0x3e00 [ 22.203696] ? check_noncircular+0x20/0x20 [ 22.203703] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.203707] ? lock_acquire+0x1d5/0x580 [ 22.203710] ? lock_acquire+0x1d5/0x580 [ 22.203713] ? ep_free+0xf4/0x320 [ 22.203718] ? lock_release+0xa40/0xa40 [ 22.203722] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.203725] ? print_irqtrace_events+0x270/0x270 [ 22.203729] ? rcu_note_context_switch+0x710/0x710 [ 22.203734] ? __might_sleep+0x95/0x190 [ 22.203737] ? ep_free+0xf4/0x320 [ 22.203741] ? __mutex_lock+0x16f/0x1a80 [ 22.203744] ? ep_free+0xf4/0x320 [ 22.203748] ? print_irqtrace_events+0x270/0x270 [ 22.203751] ? ep_free+0xf4/0x320 [ 22.203755] lock_acquire+0x1d5/0x580 [ 22.203758] ? lock_acquire+0x1d5/0x580 [ 22.203762] ? remove_wait_queue+0x81/0x350 [ 22.203766] ? __lock_acquire+0x664/0x3e00 [ 22.203770] ? lock_release+0xa40/0xa40 [ 22.203775] ? lock_acquire+0x1d5/0x580 [ 22.203778] ? lock_acquire+0x1d5/0x580 [ 22.203782] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 22.203786] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.203789] ? remove_wait_queue+0x81/0x350 [ 22.203793] remove_wait_queue+0x81/0x350 [ 22.203798] ? add_wait_queue+0x290/0x290 [ 22.203801] ? rcutorture_record_progress+0x10/0x10 [ 22.203807] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 22.203811] ? __kernel_text_address+0xd/0x40 [ 22.203815] ? clear_tfile_check_list+0x370/0x370 [ 22.203820] ? check_noncircular+0x20/0x20 [ 22.203824] ? locks_remove_file+0x3fa/0x5a0 [ 22.203830] ep_free+0x13f/0x320 [ 22.203833] ? ep_remove+0x800/0x800 [ 22.203836] ? fsnotify_first_mark+0x2b0/0x2b0 [ 22.203840] ? ep_free+0x320/0x320 [ 22.203844] ep_eventpoll_release+0x44/0x60 [ 22.203847] __fput+0x327/0x7e0 [ 22.203852] ? fput+0x140/0x140 [ 22.203856] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.203861] ____fput+0x15/0x20 [ 22.203864] task_work_run+0x199/0x270 [ 22.203869] ? task_work_cancel+0x210/0x210 [ 22.203872] ? _raw_spin_unlock+0x22/0x30 [ 22.203876] ? switch_task_namespaces+0x87/0xc0 [ 22.203880] do_exit+0x9bb/0x1ad0 [ 22.203884] ? binder_ioctl+0x491/0x1417 [ 22.203888] ? mm_update_next_owner+0x930/0x930 [ 22.203892] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 22.203897] ? avc_ss_reset+0x110/0x110 [ 22.203901] ? mutex_unlock+0xd/0x10 [ 22.203904] ? SyS_epoll_ctl+0x30a/0x1a80 [ 22.203914] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.203917] ? up_read+0x1a/0x40 [ 22.203921] ? rcu_note_context_switch+0x710/0x710 [ 22.203924] ? __fd_install+0x288/0x740 [ 22.203929] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 22.203932] ? do_vfs_ioctl+0x486/0x1520 [ 22.203935] ? _cond_resched+0x14/0x30 [ 22.203940] ? ioctl_preallocate+0x2b0/0x2b0 [ 22.203944] ? selinux_capable+0x40/0x40 [ 22.203947] ? __alloc_fd+0x750/0x750 [ 22.203952] do_group_exit+0x149/0x400 [ 22.203956] ? SyS_exit+0x30/0x30 [ 22.203960] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 22.203964] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 22.203968] SyS_exit_group+0x1d/0x20 [ 22.203972] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.203974] RIP: 0033:0x442a48 [ 22.203976] RSP: 002b:00007ffdf3fc3988 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 22.203980] RAX: ffffffffffffffda RBX: 6e69622f7665642f RCX: 0000000000442a48 [ 22.203982] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 22.203984] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 22.203986] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a90 [ 22.203987] R13: 0000000000401b20 R14: 0000000000000000 R15: 0000000000000000 [ 22.224696] Dumping ftrace buffer: [ 22.224699] (ftrace buffer empty) [ 22.224701] Kernel Offset: disabled [ 23.351252] Rebooting in 86400 seconds..