[....] Starting enhanced syslogd: rsyslogd[ 12.149588] audit: type=1400 audit(1514840640.289:5): avc: denied { syslog } for pid=3341 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: [ 17.067660] audit: type=1400 audit(1514840645.207:6): avc: denied { map } for pid=3481 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.236' (ECDSA) to the list of known hosts. executing program [ 23.260086] audit: type=1400 audit(1514840651.399:7): avc: denied { map } for pid=3495 comm="syzkaller362869" path="/root/syzkaller362869699" 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 [ 23.264800] ================================================================== [ 23.264817] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 23.264820] Read of size 8 at addr ffff8801cbfc3370 by task syzkaller362869/3495 [ 23.264821] [ 23.264827] CPU: 1 PID: 3495 Comm: syzkaller362869 Not tainted 4.15.0-rc6+ #245 [ 23.264829] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.264831] Call Trace: [ 23.264840] dump_stack+0x194/0x257 [ 23.264845] ? arch_local_irq_restore+0x53/0x53 [ 23.264850] ? show_regs_print_info+0x18/0x18 [ 23.264854] ? print_irqtrace_events+0x270/0x270 [ 23.264858] ? __lock_acquire+0x664/0x3e00 [ 23.264862] ? __lock_acquire+0x3d4d/0x3e00 [ 23.264868] print_address_description+0x73/0x250 [ 23.264872] ? __lock_acquire+0x3d4d/0x3e00 [ 23.264876] kasan_report+0x25b/0x340 [ 23.264881] __asan_report_load8_noabort+0x14/0x20 [ 23.264885] __lock_acquire+0x3d4d/0x3e00 [ 23.264888] ? __lock_acquire+0x664/0x3e00 [ 23.264891] ? lock_downgrade+0x980/0x980 [ 23.264894] ? lock_downgrade+0x980/0x980 [ 23.264901] ? remove_wait_queue+0x81/0x350 [ 23.264906] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.264910] ? __lock_acquire+0x664/0x3e00 [ 23.264913] ? check_noncircular+0x20/0x20 [ 23.264921] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.264925] ? lock_acquire+0x1d5/0x580 [ 23.264929] ? lock_acquire+0x1d5/0x580 [ 23.264934] ? ep_free+0xf4/0x320 [ 23.264939] ? lock_release+0xa40/0xa40 [ 23.264944] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.264948] ? print_irqtrace_events+0x270/0x270 [ 23.264954] ? rcu_note_context_switch+0x710/0x710 [ 23.264958] ? __might_sleep+0x95/0x190 [ 23.264962] ? ep_free+0xf4/0x320 [ 23.264967] ? __mutex_lock+0x16f/0x1a80 [ 23.264970] ? ep_free+0xf4/0x320 [ 23.264974] ? print_irqtrace_events+0x270/0x270 [ 23.264977] ? ep_free+0xf4/0x320 [ 23.264982] lock_acquire+0x1d5/0x580 [ 23.264985] ? lock_acquire+0x1d5/0x580 [ 23.264989] ? remove_wait_queue+0x81/0x350 [ 23.264992] ? __lock_acquire+0x664/0x3e00 [ 23.264997] ? lock_release+0xa40/0xa40 [ 23.265006] ? lock_acquire+0x1d5/0x580 [ 23.265009] ? lock_acquire+0x1d5/0x580 [ 23.265013] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 23.265018] _raw_spin_lock_irqsave+0x96/0xc0 [ 23.265021] ? remove_wait_queue+0x81/0x350 [ 23.265025] remove_wait_queue+0x81/0x350 [ 23.265030] ? add_wait_queue+0x290/0x290 [ 23.265033] ? rcutorture_record_progress+0x10/0x10 [ 23.265040] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 23.265044] ? __kernel_text_address+0xd/0x40 [ 23.265049] ? clear_tfile_check_list+0x370/0x370 [ 23.265054] ? check_noncircular+0x20/0x20 [ 23.265059] ? locks_remove_file+0x3fa/0x5a0 [ 23.265065] ep_free+0x13f/0x320 [ 23.265069] ? ep_remove+0x800/0x800 [ 23.265072] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.265077] ? ep_free+0x320/0x320 [ 23.265081] ep_eventpoll_release+0x44/0x60 [ 23.265085] __fput+0x327/0x7e0 [ 23.265090] ? fput+0x140/0x140 [ 23.265094] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.265100] ____fput+0x15/0x20 [ 23.265104] task_work_run+0x199/0x270 [ 23.265108] ? task_work_cancel+0x210/0x210 [ 23.265112] ? _raw_spin_unlock+0x22/0x30 [ 23.265116] ? switch_task_namespaces+0x87/0xc0 [ 23.265121] do_exit+0x9bb/0x1ad0 [ 23.265127] ? binder_ioctl+0x551/0x1417 [ 23.265131] ? mm_update_next_owner+0x930/0x930 [ 23.265136] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.265143] ? avc_ss_reset+0x110/0x110 [ 23.265146] ? mutex_unlock+0xd/0x10 [ 23.265149] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 23.265161] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.265165] ? up_read+0x1a/0x40 [ 23.265169] ? rcu_note_context_switch+0x710/0x710 [ 23.265172] ? __fd_install+0x288/0x740 [ 23.265177] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.265181] ? do_vfs_ioctl+0x486/0x1520 [ 23.265184] ? _cond_resched+0x14/0x30 [ 23.265188] ? ioctl_preallocate+0x2b0/0x2b0 [ 23.265193] ? selinux_capable+0x40/0x40 [ 23.265197] ? __alloc_fd+0x750/0x750 [ 23.265202] do_group_exit+0x149/0x400 [ 23.265206] ? SyS_exit+0x30/0x30 [ 23.265210] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.265217] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 23.265221] SyS_exit_group+0x1d/0x20 [ 23.265226] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.265229] RIP: 0033:0x4429f8 [ 23.265232] RSP: 002b:00007ffd44fc7108 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 23.265236] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 23.265238] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 23.265241] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 23.265243] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 23.265245] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 23.265250] [ 23.265252] Allocated by task 3495: [ 23.265256] save_stack+0x43/0xd0 [ 23.265259] kasan_kmalloc+0xad/0xe0 [ 23.265262] kmem_cache_alloc_trace+0x136/0x750 [ 23.265264] binder_get_thread+0x1cf/0x870 [ 23.265267] binder_poll+0x8c/0x390 [ 23.265270] ep_item_poll.isra.10+0xec/0x320 [ 23.265273] ep_insert+0x6a3/0x1b10 [ 23.265276] SyS_epoll_ctl+0x12e4/0x1ab0 [ 23.265279] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.265280] [ 23.265281] Freed by task 3495: [ 23.265284] save_stack+0x43/0xd0 [ 23.265286] kasan_slab_free+0x71/0xc0 [ 23.265289] kfree+0xd6/0x260 [ 23.265292] binder_thread_dec_tmpref+0x27f/0x310 [ 23.265294] binder_thread_release+0x27d/0x540 [ 23.265297] binder_ioctl+0xc02/0x1417 [ 23.265299] do_vfs_ioctl+0x1b1/0x1520 [ 23.265302] SyS_ioctl+0x8f/0xc0 [ 23.265305] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.265306] [ 23.265309] The buggy address belongs to the object at ffff8801cbfc32c0 [ 23.265309] which belongs to the cache kmalloc-512 of size 512 [ 23.265312] The buggy address is located 176 bytes inside of [ 23.265312] 512-byte region [ffff8801cbfc32c0, ffff8801cbfc34c0) [ 23.265313] The buggy address belongs to the page: [ 23.265316] page:0000000021401465 count:1 mapcount:0 mapping:00000000c1e94011 index:0x0 [ 23.265320] flags: 0x2fffc0000000100(slab) [ 23.265326] raw: 02fffc0000000100 ffff8801cbfc3040 0000000000000000 0000000100000006 [ 23.265330] raw: ffffea00072d0da0 ffffea00072d0360 ffff8801dac00940 0000000000000000 [ 23.265331] page dumped because: kasan: bad access detected [ 23.265332] [ 23.265333] Memory state around the buggy address: [ 23.265335] ffff8801cbfc3200: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 23.265338] ffff8801cbfc3280: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 23.265341] >ffff8801cbfc3300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.265342] ^ [ 23.265345] ffff8801cbfc3380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.265347] ffff8801cbfc3400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.265348] ================================================================== [ 23.265349] Disabling lock debugging due to kernel taint [ 23.265352] Kernel panic - not syncing: panic_on_warn set ... [ 23.265352] [ 23.265356] CPU: 1 PID: 3495 Comm: syzkaller362869 Tainted: G B 4.15.0-rc6+ #245 [ 23.265358] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.265359] Call Trace: [ 23.265363] dump_stack+0x194/0x257 [ 23.265367] ? arch_local_irq_restore+0x53/0x53 [ 23.265370] ? kasan_end_report+0x32/0x50 [ 23.265374] ? lock_downgrade+0x980/0x980 [ 23.265379] ? vsnprintf+0x1ed/0x1900 [ 23.265383] ? __lock_acquire+0x3c70/0x3e00 [ 23.265386] panic+0x1e4/0x41c [ 23.265390] ? refcount_error_report+0x214/0x214 [ 23.265394] ? add_taint+0x40/0x50 [ 23.265397] ? add_taint+0x1c/0x50 [ 23.265401] ? __lock_acquire+0x3d4d/0x3e00 [ 23.265404] kasan_end_report+0x50/0x50 [ 23.265407] kasan_report+0x144/0x340 [ 23.265412] __asan_report_load8_noabort+0x14/0x20 [ 23.265415] __lock_acquire+0x3d4d/0x3e00 [ 23.265419] ? __lock_acquire+0x664/0x3e00 [ 23.265422] ? lock_downgrade+0x980/0x980 [ 23.265425] ? lock_downgrade+0x980/0x980 [ 23.265429] ? remove_wait_queue+0x81/0x350 [ 23.265434] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.265438] ? __lock_acquire+0x664/0x3e00 [ 23.265441] ? check_noncircular+0x20/0x20 [ 23.265448] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.265452] ? lock_acquire+0x1d5/0x580 [ 23.265455] ? lock_acquire+0x1d5/0x580 [ 23.265458] ? ep_free+0xf4/0x320 [ 23.265463] ? lock_release+0xa40/0xa40 [ 23.265466] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.265470] ? print_irqtrace_events+0x270/0x270 [ 23.265474] ? rcu_note_context_switch+0x710/0x710 [ 23.265478] ? __might_sleep+0x95/0x190 [ 23.265481] ? ep_free+0xf4/0x320 [ 23.265485] ? __mutex_lock+0x16f/0x1a80 [ 23.265488] ? ep_free+0xf4/0x320 [ 23.265492] ? print_irqtrace_events+0x270/0x270 [ 23.265494] ? ep_free+0xf4/0x320 [ 23.265499] lock_acquire+0x1d5/0x580 [ 23.265502] ? lock_acquire+0x1d5/0x580 [ 23.265506] ? remove_wait_queue+0x81/0x350 [ 23.265509] ? __lock_acquire+0x664/0x3e00 [ 23.265513] ? lock_release+0xa40/0xa40 [ 23.265518] ? lock_acquire+0x1d5/0x580 [ 23.265521] ? lock_acquire+0x1d5/0x580 [ 23.265525] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 23.265529] _raw_spin_lock_irqsave+0x96/0xc0 [ 23.265533] ? remove_wait_queue+0x81/0x350 [ 23.265537] remove_wait_queue+0x81/0x350 [ 23.265541] ? add_wait_queue+0x290/0x290 [ 23.265544] ? rcutorture_record_progress+0x10/0x10 [ 23.265550] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 23.265554] ? __kernel_text_address+0xd/0x40 [ 23.265559] ? clear_tfile_check_list+0x370/0x370 [ 23.265563] ? check_noncircular+0x20/0x20 [ 23.265568] ? locks_remove_file+0x3fa/0x5a0 [ 23.265573] ep_free+0x13f/0x320 [ 23.265576] ? ep_remove+0x800/0x800 [ 23.265579] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.265584] ? ep_free+0x320/0x320 [ 23.265587] ep_eventpoll_release+0x44/0x60 [ 23.265591] __fput+0x327/0x7e0 [ 23.265596] ? fput+0x140/0x140 [ 23.265600] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.265605] ____fput+0x15/0x20 [ 23.265610] task_work_run+0x199/0x270 [ 23.265616] ? task_work_cancel+0x210/0x210 [ 23.265621] ? _raw_spin_unlock+0x22/0x30 [ 23.265625] ? switch_task_namespaces+0x87/0xc0 [ 23.265638] do_exit+0x9bb/0x1ad0 [ 23.265644] ? binder_ioctl+0x551/0x1417 [ 23.265649] ? mm_update_next_owner+0x930/0x930 [ 23.265655] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.265660] ? avc_ss_reset+0x110/0x110 [ 23.265663] ? mutex_unlock+0xd/0x10 [ 23.265667] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 23.265677] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.265680] ? up_read+0x1a/0x40 [ 23.265684] ? rcu_note_context_switch+0x710/0x710 [ 23.265687] ? __fd_install+0x288/0x740 [ 23.265692] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.265695] ? do_vfs_ioctl+0x486/0x1520 [ 23.265698] ? _cond_resched+0x14/0x30 [ 23.265702] ? ioctl_preallocate+0x2b0/0x2b0 [ 23.265706] ? selinux_capable+0x40/0x40 [ 23.265710] ? __alloc_fd+0x750/0x750 [ 23.265715] do_group_exit+0x149/0x400 [ 23.265718] ? SyS_exit+0x30/0x30 [ 23.265722] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.265726] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 23.265731] SyS_exit_group+0x1d/0x20 [ 23.265735] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.265737] RIP: 0033:0x4429f8 [ 23.265739] RSP: 002b:00007ffd44fc7108 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 23.265742] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 23.265744] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 23.265746] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 23.265748] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 23.265750] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 23.285997] Dumping ftrace buffer: [ 23.286000] (ftrace buffer empty) [ 23.286003] Kernel Offset: disabled [ 24.411462] Rebooting in 86400 seconds..