[....] Starting enhanced syslogd: rsyslogd[ 12.838841] audit: type=1400 audit(1515541158.438:5): avc: denied { syslog } for pid=3345 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: [ 19.503833] audit: type=1400 audit(1515541165.103:6): avc: denied { map } for pid=3486 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.15.239' (ECDSA) to the list of known hosts. executing program [ 25.687248] audit: type=1400 audit(1515541171.287:7): avc: denied { map } for pid=3501 comm="syzkaller858332" path="/root/syzkaller858332553" 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 [ 25.691814] ================================================================== [ 25.691828] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 25.691834] Read of size 8 at addr ffff8801c9b90df8 by task syzkaller858332/3501 [ 25.691835] [ 25.691843] CPU: 1 PID: 3501 Comm: syzkaller858332 Not tainted 4.15.0-rc7-next-20180109+ #92 [ 25.691846] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.691849] Call Trace: [ 25.691857] dump_stack+0x194/0x257 [ 25.691864] ? arch_local_irq_restore+0x53/0x53 [ 25.691870] ? show_regs_print_info+0x18/0x18 [ 25.691876] ? __lock_acquire+0x664/0x3e00 [ 25.691884] ? __lock_acquire+0x3d4d/0x3e00 [ 25.691894] print_address_description+0x73/0x250 [ 25.691900] ? __lock_acquire+0x3d4d/0x3e00 [ 25.691905] kasan_report+0x23b/0x360 [ 25.691913] __asan_report_load8_noabort+0x14/0x20 [ 25.691919] __lock_acquire+0x3d4d/0x3e00 [ 25.691926] ? lock_downgrade+0x980/0x980 [ 25.691934] ? remove_wait_queue+0x81/0x350 [ 25.691944] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.691950] ? __lock_acquire+0x664/0x3e00 [ 25.691956] ? check_noncircular+0x20/0x20 [ 25.691968] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.691975] ? lock_acquire+0x1d5/0x580 [ 25.691981] ? lock_acquire+0x1d5/0x580 [ 25.691987] ? ep_free+0xf4/0x320 [ 25.691994] ? check_noncircular+0x20/0x20 [ 25.692005] ? lock_release+0xa40/0xa40 [ 25.692012] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.692018] ? print_irqtrace_events+0x270/0x270 [ 25.692025] ? rcu_note_context_switch+0x710/0x710 [ 25.692033] ? __might_sleep+0x95/0x190 [ 25.692038] ? ep_free+0xf4/0x320 [ 25.692047] ? __mutex_lock+0x16f/0x1a80 [ 25.692051] ? ep_free+0xf4/0x320 [ 25.692058] ? print_irqtrace_events+0x270/0x270 [ 25.692063] ? ep_free+0xf4/0x320 [ 25.692071] lock_acquire+0x1d5/0x580 [ 25.692077] ? lock_acquire+0x1d5/0x580 [ 25.692083] ? remove_wait_queue+0x81/0x350 [ 25.692088] ? __lock_acquire+0x664/0x3e00 [ 25.692096] ? lock_release+0xa40/0xa40 [ 25.692106] ? lock_acquire+0x1d5/0x580 [ 25.692112] ? lock_acquire+0x1d5/0x580 [ 25.692117] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.692125] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.692130] ? remove_wait_queue+0x81/0x350 [ 25.692137] remove_wait_queue+0x81/0x350 [ 25.692144] ? rcutorture_record_progress+0x10/0x10 [ 25.692150] ? add_wait_queue+0x290/0x290 [ 25.692156] ? rcutorture_record_progress+0x10/0x10 [ 25.692166] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.692174] ? unwind_get_return_address+0x61/0xa0 [ 25.692182] ? clear_tfile_check_list+0x370/0x370 [ 25.692190] ? check_noncircular+0x20/0x20 [ 25.692198] ? locks_remove_file+0x3fa/0x5a0 [ 25.692207] ep_free+0x13f/0x320 [ 25.692213] ? ep_remove+0x800/0x800 [ 25.692225] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.692232] ? ep_free+0x320/0x320 [ 25.692238] ep_eventpoll_release+0x44/0x60 [ 25.692245] __fput+0x327/0x7e0 [ 25.692253] ? fput+0x140/0x140 [ 25.692259] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.692267] ____fput+0x15/0x20 [ 25.692273] task_work_run+0x199/0x270 [ 25.692280] ? task_work_cancel+0x210/0x210 [ 25.692286] ? _raw_spin_unlock+0x22/0x30 [ 25.692292] ? switch_task_namespaces+0x87/0xc0 [ 25.692305] do_exit+0x9bb/0x1ad0 [ 25.692315] ? binder_ioctl+0x571/0x1417 [ 25.692321] ? mm_update_next_owner+0x930/0x930 [ 25.692329] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.692341] ? avc_ss_reset+0x110/0x110 [ 25.692347] ? mutex_unlock+0xd/0x10 [ 25.692352] ? SyS_epoll_ctl+0x30a/0x1a80 [ 25.692372] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.692377] ? up_read+0x1a/0x40 [ 25.692384] ? rcu_note_context_switch+0x710/0x710 [ 25.692391] ? __fd_install+0x288/0x740 [ 25.692400] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.692407] ? do_vfs_ioctl+0x486/0x1520 [ 25.692413] ? _cond_resched+0x14/0x30 [ 25.692421] ? ioctl_preallocate+0x2b0/0x2b0 [ 25.692428] ? selinux_capable+0x40/0x40 [ 25.692435] ? __alloc_fd+0x750/0x750 [ 25.692444] do_group_exit+0x149/0x400 [ 25.692450] ? SyS_exit+0x30/0x30 [ 25.692457] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.692465] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.692473] SyS_exit_group+0x1d/0x20 [ 25.692479] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.692483] RIP: 0033:0x442a08 [ 25.692487] RSP: 002b:00007ffc63a09588 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 25.692493] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 0000000000442a08 [ 25.692496] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 25.692500] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 25.692503] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a50 [ 25.692506] R13: 0000000000401ae0 R14: 0000000000000000 R15: 0000000000000000 [ 25.692515] [ 25.692518] Allocated by task 3501: [ 25.692524] save_stack+0x43/0xd0 [ 25.692529] kasan_kmalloc+0xad/0xe0 [ 25.692535] kmem_cache_alloc_trace+0x136/0x750 [ 25.692540] binder_get_thread+0x1cf/0x870 [ 25.692544] binder_poll+0x8c/0x390 [ 25.692549] ep_item_poll.isra.10+0xf2/0x320 [ 25.692553] ep_insert+0x6a2/0x1ac0 [ 25.692557] SyS_epoll_ctl+0x12bf/0x1a80 [ 25.692562] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.692564] [ 25.692566] Freed by task 3501: [ 25.692570] save_stack+0x43/0xd0 [ 25.692576] __kasan_slab_free+0x11a/0x170 [ 25.692581] kasan_slab_free+0xe/0x10 [ 25.692586] kfree+0xd9/0x260 [ 25.692591] binder_thread_dec_tmpref+0x27f/0x310 [ 25.692595] binder_thread_release+0x27d/0x540 [ 25.692600] binder_ioctl+0xc02/0x1417 [ 25.692605] do_vfs_ioctl+0x1b1/0x1520 [ 25.692610] SyS_ioctl+0x8f/0xc0 [ 25.692615] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.692616] [ 25.692620] The buggy address belongs to the object at ffff8801c9b90d40 [ 25.692620] which belongs to the cache kmalloc-512 of size 512 [ 25.692625] The buggy address is located 184 bytes inside of [ 25.692625] 512-byte region [ffff8801c9b90d40, ffff8801c9b90f40) [ 25.692627] The buggy address belongs to the page: [ 25.692632] page:ffffea000726e400 count:1 mapcount:0 mapping:ffff8801c9b900c0 index:0x0 [ 25.692637] flags: 0x2fffc0000000100(slab) [ 25.692645] raw: 02fffc0000000100 ffff8801c9b900c0 0000000000000000 0000000100000006 [ 25.692652] raw: ffffea000726e260 ffffea000726e460 ffff8801dac00940 0000000000000000 [ 25.692654] page dumped because: kasan: bad access detected [ 25.692656] [ 25.692657] Memory state around the buggy address: [ 25.692662] ffff8801c9b90c80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 25.692666] ffff8801c9b90d00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 25.692670] >ffff8801c9b90d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.692673] ^ [ 25.692677] ffff8801c9b90e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.692681] ffff8801c9b90e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.692683] ================================================================== [ 25.692684] Disabling lock debugging due to kernel taint [ 25.692687] Kernel panic - not syncing: panic_on_warn set ... [ 25.692687] [ 25.692694] CPU: 1 PID: 3501 Comm: syzkaller858332 Tainted: G B 4.15.0-rc7-next-20180109+ #92 [ 25.692697] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.692698] Call Trace: [ 25.692704] dump_stack+0x194/0x257 [ 25.692711] ? arch_local_irq_restore+0x53/0x53 [ 25.692717] ? kasan_end_report+0x32/0x50 [ 25.692723] ? lock_downgrade+0x980/0x980 [ 25.692729] ? vsnprintf+0x1ed/0x1900 [ 25.692735] ? __lock_acquire+0x3c90/0x3e00 [ 25.692741] panic+0x1e4/0x41c [ 25.692748] ? refcount_error_report+0x214/0x214 [ 25.692755] ? add_taint+0x40/0x50 [ 25.692760] ? add_taint+0x1c/0x50 [ 25.692767] ? __lock_acquire+0x3d4d/0x3e00 [ 25.692773] kasan_end_report+0x50/0x50 [ 25.692778] kasan_report+0x148/0x360 [ 25.692785] __asan_report_load8_noabort+0x14/0x20 [ 25.692791] __lock_acquire+0x3d4d/0x3e00 [ 25.692798] ? lock_downgrade+0x980/0x980 [ 25.692806] ? remove_wait_queue+0x81/0x350 [ 25.692814] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.692821] ? __lock_acquire+0x664/0x3e00 [ 25.692827] ? check_noncircular+0x20/0x20 [ 25.692839] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.692845] ? lock_acquire+0x1d5/0x580 [ 25.692851] ? lock_acquire+0x1d5/0x580 [ 25.692856] ? ep_free+0xf4/0x320 [ 25.692862] ? check_noncircular+0x20/0x20 [ 25.692869] ? lock_release+0xa40/0xa40 [ 25.692875] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.692882] ? print_irqtrace_events+0x270/0x270 [ 25.692888] ? rcu_note_context_switch+0x710/0x710 [ 25.692896] ? __might_sleep+0x95/0x190 [ 25.692901] ? ep_free+0xf4/0x320 [ 25.692907] ? __mutex_lock+0x16f/0x1a80 [ 25.692911] ? ep_free+0xf4/0x320 [ 25.692919] ? print_irqtrace_events+0x270/0x270 [ 25.692923] ? ep_free+0xf4/0x320 [ 25.692931] lock_acquire+0x1d5/0x580 [ 25.692937] ? lock_acquire+0x1d5/0x580 [ 25.692942] ? remove_wait_queue+0x81/0x350 [ 25.692948] ? __lock_acquire+0x664/0x3e00 [ 25.692956] ? lock_release+0xa40/0xa40 [ 25.692965] ? lock_acquire+0x1d5/0x580 [ 25.692971] ? lock_acquire+0x1d5/0x580 [ 25.692976] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.692983] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.692989] ? remove_wait_queue+0x81/0x350 [ 25.692996] remove_wait_queue+0x81/0x350 [ 25.693003] ? rcutorture_record_progress+0x10/0x10 [ 25.693009] ? add_wait_queue+0x290/0x290 [ 25.693015] ? rcutorture_record_progress+0x10/0x10 [ 25.693024] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.693030] ? unwind_get_return_address+0x61/0xa0 [ 25.693037] ? clear_tfile_check_list+0x370/0x370 [ 25.693045] ? check_noncircular+0x20/0x20 [ 25.693052] ? locks_remove_file+0x3fa/0x5a0 [ 25.693061] ep_free+0x13f/0x320 [ 25.693066] ? ep_remove+0x800/0x800 [ 25.693073] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.693079] ? ep_free+0x320/0x320 [ 25.693085] ep_eventpoll_release+0x44/0x60 [ 25.693090] __fput+0x327/0x7e0 [ 25.693098] ? fput+0x140/0x140 [ 25.693104] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.693112] ____fput+0x15/0x20 [ 25.693117] task_work_run+0x199/0x270 [ 25.693123] ? task_work_cancel+0x210/0x210 [ 25.693129] ? _raw_spin_unlock+0x22/0x30 [ 25.693135] ? switch_task_namespaces+0x87/0xc0 [ 25.693143] do_exit+0x9bb/0x1ad0 [ 25.693150] ? binder_ioctl+0x571/0x1417 [ 25.693156] ? mm_update_next_owner+0x930/0x930 [ 25.693164] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.693173] ? avc_ss_reset+0x110/0x110 [ 25.693179] ? mutex_unlock+0xd/0x10 [ 25.693184] ? SyS_epoll_ctl+0x30a/0x1a80 [ 25.693202] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.693207] ? up_read+0x1a/0x40 [ 25.693214] ? rcu_note_context_switch+0x710/0x710 [ 25.693219] ? __fd_install+0x288/0x740 [ 25.693228] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.693234] ? do_vfs_ioctl+0x486/0x1520 [ 25.693239] ? _cond_resched+0x14/0x30 [ 25.693247] ? ioctl_preallocate+0x2b0/0x2b0 [ 25.693254] ? selinux_capable+0x40/0x40 [ 25.693261] ? __alloc_fd+0x750/0x750 [ 25.693269] do_group_exit+0x149/0x400 [ 25.693276] ? SyS_exit+0x30/0x30 [ 25.693282] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.693289] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.693301] SyS_exit_group+0x1d/0x20 [ 25.693307] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.693310] RIP: 0033:0x442a08 [ 25.693313] RSP: 002b:00007ffc63a09588 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 25.693319] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 0000000000442a08 [ 25.693322] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 25.693326] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 25.693329] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a50 [ 25.693332] R13: 0000000000401ae0 R14: 0000000000000000 R15: 0000000000000000 [ 25.713544] Dumping ftrace buffer: [ 25.713548] (ftrace buffer empty) [ 25.713550] Kernel Offset: disabled [ 26.842969] Rebooting in 86400 seconds..