[....] Starting enhanced syslogd: rsyslogd[ 10.542435] audit: type=1400 audit(1514203453.486:5): avc: denied { syslog } for pid=2991 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.213791] audit: type=1400 audit(1514203459.157:6): avc: denied { map } for pid=3131 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 'ci-upstream-next-kasan-gce-2,10.128.15.218' (ECDSA) to the list of known hosts. executing program [ 36.329683] audit: type=1400 audit(1514203479.273:7): avc: denied { map } for pid=3149 comm="syzkaller712109" path="/root/syzkaller712109576" 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 [ 36.333129] binder: 3149:3149 transaction failed 29189/-22, size 0-0 line 2845 [ 36.333139] binder: undelivered TRANSACTION_ERROR: 29189 [ 36.333467] ================================================================== [ 36.333480] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 36.333484] Read of size 8 at addr ffff8801c983e838 by task syzkaller712109/3149 [ 36.333485] [ 36.333490] CPU: 0 PID: 3149 Comm: syzkaller712109 Not tainted 4.15.0-rc4-next-20171221+ #78 [ 36.333493] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.333494] Call Trace: [ 36.333503] dump_stack+0x194/0x257 [ 36.333508] ? arch_local_irq_restore+0x53/0x53 [ 36.333515] ? show_regs_print_info+0x18/0x18 [ 36.333518] ? print_irqtrace_events+0x270/0x270 [ 36.333522] ? __lock_acquire+0x664/0x3e00 [ 36.333527] ? __lock_acquire+0x3d4d/0x3e00 [ 36.333534] print_address_description+0x73/0x250 [ 36.333537] ? __lock_acquire+0x3d4d/0x3e00 [ 36.333541] kasan_report+0x25b/0x340 [ 36.333547] __asan_report_load8_noabort+0x14/0x20 [ 36.333550] __lock_acquire+0x3d4d/0x3e00 [ 36.333554] ? __lock_acquire+0x664/0x3e00 [ 36.333557] ? lock_downgrade+0x980/0x980 [ 36.333561] ? lock_downgrade+0x980/0x980 [ 36.333567] ? remove_wait_queue+0x81/0x350 [ 36.333573] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 36.333577] ? __lock_acquire+0x664/0x3e00 [ 36.333581] ? check_noncircular+0x20/0x20 [ 36.333588] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 36.333593] ? lock_acquire+0x1d5/0x580 [ 36.333596] ? lock_acquire+0x1d5/0x580 [ 36.333602] ? ep_free+0xf4/0x320 [ 36.333607] ? lock_release+0xa40/0xa40 [ 36.333613] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 36.333617] ? print_irqtrace_events+0x270/0x270 [ 36.333624] ? rcu_note_context_switch+0x710/0x710 [ 36.333628] ? __might_sleep+0x95/0x190 [ 36.333632] ? ep_free+0xf4/0x320 [ 36.333639] ? __mutex_lock+0x16f/0x1a80 [ 36.333642] ? ep_free+0xf4/0x320 [ 36.333647] ? print_irqtrace_events+0x270/0x270 [ 36.333649] ? ep_free+0xf4/0x320 [ 36.333655] lock_acquire+0x1d5/0x580 [ 36.333658] ? lock_acquire+0x1d5/0x580 [ 36.333661] ? remove_wait_queue+0x81/0x350 [ 36.333665] ? __lock_acquire+0x664/0x3e00 [ 36.333670] ? lock_release+0xa40/0xa40 [ 36.333675] ? lock_acquire+0x1d5/0x580 [ 36.333678] ? lock_acquire+0x1d5/0x580 [ 36.333683] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 36.333688] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.333691] ? remove_wait_queue+0x81/0x350 [ 36.333695] remove_wait_queue+0x81/0x350 [ 36.333700] ? add_wait_queue+0x290/0x290 [ 36.333704] ? rcutorture_record_progress+0x10/0x10 [ 36.333710] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 36.333718] ? __kernel_text_address+0xd/0x40 [ 36.333723] ? clear_tfile_check_list+0x370/0x370 [ 36.333727] ? check_noncircular+0x20/0x20 [ 36.333734] ? locks_remove_file+0x3fa/0x5a0 [ 36.333740] ep_free+0x13f/0x320 [ 36.333744] ? ep_remove+0x800/0x800 [ 36.333747] ? fsnotify_first_mark+0x2b0/0x2b0 [ 36.333752] ? ep_free+0x320/0x320 [ 36.333756] ep_eventpoll_release+0x44/0x60 [ 36.333761] __fput+0x327/0x7e0 [ 36.333767] ? fput+0x140/0x140 [ 36.333771] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.333776] ____fput+0x15/0x20 [ 36.333780] task_work_run+0x199/0x270 [ 36.333785] ? task_work_cancel+0x210/0x210 [ 36.333788] ? _raw_spin_unlock+0x22/0x30 [ 36.333792] ? switch_task_namespaces+0x87/0xc0 [ 36.333799] do_exit+0x9bb/0x1ad0 [ 36.333806] ? binder_ioctl+0x491/0x1417 [ 36.333810] ? mm_update_next_owner+0x930/0x930 [ 36.333814] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 36.333821] ? avc_ss_reset+0x110/0x110 [ 36.333830] ? __do_page_fault+0x5f7/0xc90 [ 36.333840] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 36.333843] ? up_read+0x1a/0x40 [ 36.333847] ? rcu_note_context_switch+0x710/0x710 [ 36.333851] ? __fd_install+0x288/0x740 [ 36.333857] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 36.333860] ? do_vfs_ioctl+0x486/0x1520 [ 36.333864] ? _cond_resched+0x14/0x30 [ 36.333869] ? ioctl_preallocate+0x2b0/0x2b0 [ 36.333874] ? selinux_capable+0x40/0x40 [ 36.333877] ? __alloc_fd+0x750/0x750 [ 36.333883] do_group_exit+0x149/0x400 [ 36.333887] ? SyS_exit+0x30/0x30 [ 36.333891] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 36.333897] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 36.333901] SyS_exit_group+0x1d/0x20 [ 36.333905] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 36.333909] RIP: 0033:0x442b38 [ 36.333911] RSP: 002b:00007ffe9ceee148 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.333916] RAX: ffffffffffffffda RBX: 6e69622f7665642f RCX: 0000000000442b38 [ 36.333918] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.333920] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.333922] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401b80 [ 36.333924] R13: 0000000000401c10 R14: 0000000000000000 R15: 0000000000000000 [ 36.333929] [ 36.333931] Allocated by task 3149: [ 36.333936] save_stack+0x43/0xd0 [ 36.333939] kasan_kmalloc+0xad/0xe0 [ 36.333942] kmem_cache_alloc_trace+0x136/0x750 [ 36.333945] binder_get_thread+0x1cf/0x870 [ 36.333947] binder_poll+0x8c/0x390 [ 36.333950] ep_item_poll.isra.10+0xf2/0x320 [ 36.333953] ep_insert+0x6a2/0x1ac0 [ 36.333956] SyS_epoll_ctl+0x12bf/0x1a80 [ 36.333959] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 36.333960] [ 36.333961] Freed by task 3149: [ 36.333964] save_stack+0x43/0xd0 [ 36.333967] kasan_slab_free+0x71/0xc0 [ 36.333969] kfree+0xd6/0x260 [ 36.333972] binder_thread_dec_tmpref+0x27f/0x310 [ 36.333975] binder_thread_release+0x27d/0x540 [ 36.333977] binder_ioctl+0xc02/0x1417 [ 36.333980] do_vfs_ioctl+0x1b1/0x1520 [ 36.333982] SyS_ioctl+0x8f/0xc0 [ 36.333985] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 36.333986] [ 36.333988] The buggy address belongs to the object at ffff8801c983e780 [ 36.333988] which belongs to the cache kmalloc-512 of size 512 [ 36.333991] The buggy address is located 184 bytes inside of [ 36.333991] 512-byte region [ffff8801c983e780, ffff8801c983e980) [ 36.333992] The buggy address belongs to the page: [ 36.333997] page:00000000cfdeed9c count:1 mapcount:0 mapping:000000007b6e38d2 index:0x0 [ 36.334000] flags: 0x2fffc0000000100(slab) [ 36.334010] raw: 02fffc0000000100 ffff8801c983e000 0000000000000000 0000000100000006 [ 36.334014] raw: ffffea0007263ce0 ffffea000725c8a0 ffff8801dac00940 0000000000000000 [ 36.334015] page dumped because: kasan: bad access detected [ 36.334016] [ 36.334017] Memory state around the buggy address: [ 36.334020] ffff8801c983e700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 36.334024] ffff8801c983e780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.334028] >ffff8801c983e800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.334030] ^ [ 36.334033] ffff8801c983e880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.334037] ffff8801c983e900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.334039] ================================================================== [ 36.334040] Disabling lock debugging due to kernel taint [ 36.334044] Kernel panic - not syncing: panic_on_warn set ... [ 36.334044] [ 36.334050] CPU: 0 PID: 3149 Comm: syzkaller712109 Tainted: G B 4.15.0-rc4-next-20171221+ #78 [ 36.334053] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.334054] Call Trace: [ 36.334059] dump_stack+0x194/0x257 [ 36.334066] ? arch_local_irq_restore+0x53/0x53 [ 36.334070] ? kasan_end_report+0x32/0x50 [ 36.334076] ? lock_downgrade+0x980/0x980 [ 36.334080] ? vsnprintf+0x1ed/0x1900 [ 36.334084] ? __lock_acquire+0x3d30/0x3e00 [ 36.334088] panic+0x1e4/0x41c [ 36.334091] ? refcount_error_report+0x214/0x214 [ 36.334095] ? add_taint+0x40/0x50 [ 36.334098] ? add_taint+0x1c/0x50 [ 36.334103] ? __lock_acquire+0x3d4d/0x3e00 [ 36.334107] kasan_end_report+0x50/0x50 [ 36.334110] kasan_report+0x144/0x340 [ 36.334115] __asan_report_load8_noabort+0x14/0x20 [ 36.334119] __lock_acquire+0x3d4d/0x3e00 [ 36.334122] ? __lock_acquire+0x664/0x3e00 [ 36.334126] ? lock_downgrade+0x980/0x980 [ 36.334129] ? lock_downgrade+0x980/0x980 [ 36.334133] ? remove_wait_queue+0x81/0x350 [ 36.334138] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 36.334142] ? __lock_acquire+0x664/0x3e00 [ 36.334145] ? check_noncircular+0x20/0x20 [ 36.334152] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 36.334156] ? lock_acquire+0x1d5/0x580 [ 36.334160] ? lock_acquire+0x1d5/0x580 [ 36.334163] ? ep_free+0xf4/0x320 [ 36.334168] ? lock_release+0xa40/0xa40 [ 36.334171] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 36.334175] ? print_irqtrace_events+0x270/0x270 [ 36.334179] ? rcu_note_context_switch+0x710/0x710 [ 36.334183] ? __might_sleep+0x95/0x190 [ 36.334187] ? ep_free+0xf4/0x320 [ 36.334190] ? __mutex_lock+0x16f/0x1a80 [ 36.334193] ? ep_free+0xf4/0x320 [ 36.334197] ? print_irqtrace_events+0x270/0x270 [ 36.334200] ? ep_free+0xf4/0x320 [ 36.334205] lock_acquire+0x1d5/0x580 [ 36.334208] ? lock_acquire+0x1d5/0x580 [ 36.334212] ? remove_wait_queue+0x81/0x350 [ 36.334215] ? __lock_acquire+0x664/0x3e00 [ 36.334219] ? lock_release+0xa40/0xa40 [ 36.334225] ? lock_acquire+0x1d5/0x580 [ 36.334228] ? lock_acquire+0x1d5/0x580 [ 36.334231] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 36.334236] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.334239] ? remove_wait_queue+0x81/0x350 [ 36.334243] remove_wait_queue+0x81/0x350 [ 36.334247] ? add_wait_queue+0x290/0x290 [ 36.334251] ? rcutorture_record_progress+0x10/0x10 [ 36.334256] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 36.334261] ? __kernel_text_address+0xd/0x40 [ 36.334266] ? clear_tfile_check_list+0x370/0x370 [ 36.334270] ? check_noncircular+0x20/0x20 [ 36.334274] ? locks_remove_file+0x3fa/0x5a0 [ 36.334280] ep_free+0x13f/0x320 [ 36.334283] ? ep_remove+0x800/0x800 [ 36.334286] ? fsnotify_first_mark+0x2b0/0x2b0 [ 36.334291] ? ep_free+0x320/0x320 [ 36.334294] ep_eventpoll_release+0x44/0x60 [ 36.334298] __fput+0x327/0x7e0 [ 36.334302] ? fput+0x140/0x140 [ 36.334306] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.334311] ____fput+0x15/0x20 [ 36.334315] task_work_run+0x199/0x270 [ 36.334319] ? task_work_cancel+0x210/0x210 [ 36.334323] ? _raw_spin_unlock+0x22/0x30 [ 36.334326] ? switch_task_namespaces+0x87/0xc0 [ 36.334331] do_exit+0x9bb/0x1ad0 [ 36.334335] ? binder_ioctl+0x491/0x1417 [ 36.334339] ? mm_update_next_owner+0x930/0x930 [ 36.334343] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 36.334347] ? avc_ss_reset+0x110/0x110 [ 36.334353] ? __do_page_fault+0x5f7/0xc90 [ 36.334362] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 36.334365] ? up_read+0x1a/0x40 [ 36.334369] ? rcu_note_context_switch+0x710/0x710 [ 36.334372] ? __fd_install+0x288/0x740 [ 36.334377] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 36.334380] ? do_vfs_ioctl+0x486/0x1520 [ 36.334383] ? _cond_resched+0x14/0x30 [ 36.334393] ? ioctl_preallocate+0x2b0/0x2b0 [ 36.334397] ? selinux_capable+0x40/0x40 [ 36.334401] ? __alloc_fd+0x750/0x750 [ 36.334405] do_group_exit+0x149/0x400 [ 36.334409] ? SyS_exit+0x30/0x30 [ 36.334413] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 36.334417] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 36.334422] SyS_exit_group+0x1d/0x20 [ 36.334425] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 36.334428] RIP: 0033:0x442b38 [ 36.334430] RSP: 002b:00007ffe9ceee148 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.334433] RAX: ffffffffffffffda RBX: 6e69622f7665642f RCX: 0000000000442b38 [ 36.334435] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.334437] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.334439] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401b80 [ 36.334441] R13: 0000000000401c10 R14: 0000000000000000 R15: 0000000000000000 [ 36.355573] Dumping ftrace buffer: [ 36.355577] (ftrace buffer empty) [ 36.355580] Kernel Offset: disabled [ 37.486432] Rebooting in 86400 seconds..