[....] Starting enhanced syslogd: rsyslogd[ 11.742834] audit: type=1400 audit(1514092756.416:5): avc: denied { syslog } for pid=3000 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.670921] audit: type=1400 audit(1514092762.344:6): avc: denied { map } for pid=3139 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-kasan-gce-6,10.128.0.45' (ECDSA) to the list of known hosts. executing program [ 23.889159] audit: type=1400 audit(1514092768.562:7): avc: denied { map } for pid=3152 comm="syzkaller862367" path="/root/syzkaller862367097" 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.891866] binder: 3152:3152 transaction failed 29189/-22, size 0-0 line 2775 [ 23.891887] binder: undelivered TRANSACTION_ERROR: 29189 [ 23.892200] ================================================================== [ 23.892211] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 23.892215] Read of size 8 at addr ffff8801c80e95b0 by task syzkaller862367/3152 [ 23.892216] [ 23.892220] CPU: 1 PID: 3152 Comm: syzkaller862367 Not tainted 4.15.0-rc4+ #236 [ 23.892223] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.892224] Call Trace: [ 23.892231] dump_stack+0x194/0x257 [ 23.892236] ? arch_local_irq_restore+0x53/0x53 [ 23.892242] ? show_regs_print_info+0x18/0x18 [ 23.892245] ? print_irqtrace_events+0x270/0x270 [ 23.892249] ? __lock_acquire+0x664/0x3e00 [ 23.892253] ? __lock_acquire+0x3d4d/0x3e00 [ 23.892259] print_address_description+0x73/0x250 [ 23.892263] ? __lock_acquire+0x3d4d/0x3e00 [ 23.892266] kasan_report+0x25b/0x340 [ 23.892271] __asan_report_load8_noabort+0x14/0x20 [ 23.892274] __lock_acquire+0x3d4d/0x3e00 [ 23.892277] ? __lock_acquire+0x664/0x3e00 [ 23.892281] ? lock_downgrade+0x980/0x980 [ 23.892284] ? lock_downgrade+0x980/0x980 [ 23.892289] ? remove_wait_queue+0x81/0x350 [ 23.892295] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.892298] ? __lock_acquire+0x664/0x3e00 [ 23.892302] ? check_noncircular+0x20/0x20 [ 23.892309] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.892313] ? lock_acquire+0x1d5/0x580 [ 23.892316] ? lock_acquire+0x1d5/0x580 [ 23.892321] ? ep_free+0xf4/0x320 [ 23.892327] ? lock_release+0xa40/0xa40 [ 23.892331] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.892335] ? print_irqtrace_events+0x270/0x270 [ 23.892340] ? rcu_note_context_switch+0x710/0x710 [ 23.892345] ? __might_sleep+0x95/0x190 [ 23.892348] ? ep_free+0xf4/0x320 [ 23.892352] ? __mutex_lock+0x16f/0x1a80 [ 23.892354] ? ep_free+0xf4/0x320 [ 23.892358] ? print_irqtrace_events+0x270/0x270 [ 23.892361] ? ep_free+0xf4/0x320 [ 23.892366] lock_acquire+0x1d5/0x580 [ 23.892369] ? lock_acquire+0x1d5/0x580 [ 23.892372] ? remove_wait_queue+0x81/0x350 [ 23.892376] ? __lock_acquire+0x664/0x3e00 [ 23.892380] ? lock_release+0xa40/0xa40 [ 23.892385] ? lock_acquire+0x1d5/0x580 [ 23.892388] ? lock_acquire+0x1d5/0x580 [ 23.892392] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 23.892397] _raw_spin_lock_irqsave+0x96/0xc0 [ 23.892401] ? remove_wait_queue+0x81/0x350 [ 23.892404] remove_wait_queue+0x81/0x350 [ 23.892409] ? add_wait_queue+0x290/0x290 [ 23.892412] ? rcutorture_record_progress+0x10/0x10 [ 23.892418] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 23.892425] ? __kernel_text_address+0xd/0x40 [ 23.892429] ? clear_tfile_check_list+0x370/0x370 [ 23.892434] ? check_noncircular+0x20/0x20 [ 23.892439] ? locks_remove_file+0x3fa/0x5a0 [ 23.892449] ep_free+0x13f/0x320 [ 23.892452] ? ep_remove+0x800/0x800 [ 23.892458] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.892463] ? ep_free+0x320/0x320 [ 23.892466] ep_eventpoll_release+0x44/0x60 [ 23.892471] __fput+0x327/0x7e0 [ 23.892476] ? fput+0x140/0x140 [ 23.892480] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.892484] ____fput+0x15/0x20 [ 23.892488] task_work_run+0x199/0x270 [ 23.892493] ? task_work_cancel+0x210/0x210 [ 23.892496] ? _raw_spin_unlock+0x22/0x30 [ 23.892500] ? switch_task_namespaces+0x87/0xc0 [ 23.892506] do_exit+0x9bb/0x1ad0 [ 23.892513] ? binder_ioctl+0x4a1/0x1417 [ 23.892516] ? mm_update_next_owner+0x930/0x930 [ 23.892521] ? binder_ioctl_write_read.isra.41+0xcb0/0xcb0 [ 23.892529] ? avc_ss_reset+0x110/0x110 [ 23.892538] ? __do_page_fault+0x5f7/0xc90 [ 23.892547] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.892551] ? up_read+0x1a/0x40 [ 23.892555] ? rcu_note_context_switch+0x710/0x710 [ 23.892560] ? __fd_install+0x288/0x740 [ 23.892565] ? binder_ioctl_write_read.isra.41+0xcb0/0xcb0 [ 23.892570] ? do_vfs_ioctl+0x486/0x1520 [ 23.892574] ? _cond_resched+0x14/0x30 [ 23.892579] ? ioctl_preallocate+0x2b0/0x2b0 [ 23.892584] ? selinux_capable+0x40/0x40 [ 23.892589] ? __alloc_fd+0x750/0x750 [ 23.892593] do_group_exit+0x149/0x400 [ 23.892597] ? SyS_exit+0x30/0x30 [ 23.892601] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.892607] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 23.892612] SyS_exit_group+0x1d/0x20 [ 23.892616] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 23.892619] RIP: 0033:0x442bc8 [ 23.892621] RSP: 002b:00007ffeb139cca8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 23.892648] RAX: ffffffffffffffda RBX: 6e69622f7665642f RCX: 0000000000442bc8 [ 23.892650] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 23.892652] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 23.892654] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401c10 [ 23.892657] R13: 0000000000401ca0 R14: 0000000000000000 R15: 0000000000000000 [ 23.892662] [ 23.892663] Allocated by task 3152: [ 23.892668] save_stack+0x43/0xd0 [ 23.892672] kasan_kmalloc+0xad/0xe0 [ 23.892679] kmem_cache_alloc_trace+0x136/0x750 [ 23.892682] binder_get_thread+0x1cf/0x870 [ 23.892685] binder_poll+0x8c/0x390 [ 23.892687] ep_item_poll.isra.10+0xec/0x320 [ 23.892690] ep_insert+0x6a3/0x1b10 [ 23.892693] SyS_epoll_ctl+0x12e4/0x1ab0 [ 23.892696] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 23.892696] [ 23.892698] Freed by task 3152: [ 23.892700] save_stack+0x43/0xd0 [ 23.892703] kasan_slab_free+0x71/0xc0 [ 23.892705] kfree+0xd6/0x260 [ 23.892708] binder_thread_dec_tmpref+0x27f/0x310 [ 23.892711] binder_thread_release+0x27d/0x540 [ 23.892714] binder_ioctl+0xc02/0x1417 [ 23.892717] do_vfs_ioctl+0x1b1/0x1520 [ 23.892720] SyS_ioctl+0x8f/0xc0 [ 23.892723] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 23.892724] [ 23.892726] The buggy address belongs to the object at ffff8801c80e9500 [ 23.892726] which belongs to the cache kmalloc-512 of size 512 [ 23.892729] The buggy address is located 176 bytes inside of [ 23.892729] 512-byte region [ffff8801c80e9500, ffff8801c80e9700) [ 23.892730] The buggy address belongs to the page: [ 23.892734] page:00000000e4909919 count:1 mapcount:0 mapping:0000000023a9be30 index:0x0 [ 23.892738] flags: 0x2fffc0000000100(slab) [ 23.892743] raw: 02fffc0000000100 ffff8801c80e9000 0000000000000000 0000000100000006 [ 23.892747] raw: ffffea0007267ea0 ffffea0007203ea0 ffff8801db000940 0000000000000000 [ 23.892749] page dumped because: kasan: bad access detected [ 23.892749] [ 23.892750] Memory state around the buggy address: [ 23.892753] ffff8801c80e9480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.892756] ffff8801c80e9500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.892758] >ffff8801c80e9580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.892760] ^ [ 23.892762] ffff8801c80e9600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.892764] ffff8801c80e9680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.892766] ================================================================== [ 23.892767] Disabling lock debugging due to kernel taint [ 23.892769] Kernel panic - not syncing: panic_on_warn set ... [ 23.892769] [ 23.892773] CPU: 1 PID: 3152 Comm: syzkaller862367 Tainted: G B 4.15.0-rc4+ #236 [ 23.892774] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.892775] Call Trace: [ 23.892779] dump_stack+0x194/0x257 [ 23.892783] ? arch_local_irq_restore+0x53/0x53 [ 23.892786] ? kasan_end_report+0x32/0x50 [ 23.892790] ? lock_downgrade+0x980/0x980 [ 23.892793] ? vsnprintf+0x1ed/0x1900 [ 23.892797] ? __lock_acquire+0x3cd0/0x3e00 [ 23.892800] panic+0x1e4/0x41c [ 23.892804] ? refcount_error_report+0x214/0x214 [ 23.892808] ? add_taint+0x40/0x50 [ 23.892811] ? add_taint+0x1c/0x50 [ 23.892814] ? __lock_acquire+0x3d4d/0x3e00 [ 23.892818] kasan_end_report+0x50/0x50 [ 23.892821] kasan_report+0x144/0x340 [ 23.892825] __asan_report_load8_noabort+0x14/0x20 [ 23.892829] __lock_acquire+0x3d4d/0x3e00 [ 23.892832] ? __lock_acquire+0x664/0x3e00 [ 23.892835] ? lock_downgrade+0x980/0x980 [ 23.892838] ? lock_downgrade+0x980/0x980 [ 23.892842] ? remove_wait_queue+0x81/0x350 [ 23.892847] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.892851] ? __lock_acquire+0x664/0x3e00 [ 23.892854] ? check_noncircular+0x20/0x20 [ 23.892861] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.892865] ? lock_acquire+0x1d5/0x580 [ 23.892868] ? lock_acquire+0x1d5/0x580 [ 23.892870] ? ep_free+0xf4/0x320 [ 23.892875] ? lock_release+0xa40/0xa40 [ 23.892879] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.892882] ? print_irqtrace_events+0x270/0x270 [ 23.892886] ? rcu_note_context_switch+0x710/0x710 [ 23.892890] ? __might_sleep+0x95/0x190 [ 23.892893] ? ep_free+0xf4/0x320 [ 23.892896] ? __mutex_lock+0x16f/0x1a80 [ 23.892898] ? ep_free+0xf4/0x320 [ 23.892902] ? print_irqtrace_events+0x270/0x270 [ 23.892905] ? ep_free+0xf4/0x320 [ 23.892909] lock_acquire+0x1d5/0x580 [ 23.892912] ? lock_acquire+0x1d5/0x580 [ 23.892916] ? remove_wait_queue+0x81/0x350 [ 23.892919] ? __lock_acquire+0x664/0x3e00 [ 23.892923] ? lock_release+0xa40/0xa40 [ 23.892928] ? lock_acquire+0x1d5/0x580 [ 23.892931] ? lock_acquire+0x1d5/0x580 [ 23.892936] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 23.892942] _raw_spin_lock_irqsave+0x96/0xc0 [ 23.892947] ? remove_wait_queue+0x81/0x350 [ 23.892953] remove_wait_queue+0x81/0x350 [ 23.892959] ? add_wait_queue+0x290/0x290 [ 23.892964] ? rcutorture_record_progress+0x10/0x10 [ 23.892971] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 23.892976] ? __kernel_text_address+0xd/0x40 [ 23.892983] ? clear_tfile_check_list+0x370/0x370 [ 23.892987] ? check_noncircular+0x20/0x20 [ 23.892991] ? locks_remove_file+0x3fa/0x5a0 [ 23.892996] ep_free+0x13f/0x320 [ 23.892999] ? ep_remove+0x800/0x800 [ 23.893008] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.893012] ? ep_free+0x320/0x320 [ 23.893016] ep_eventpoll_release+0x44/0x60 [ 23.893019] __fput+0x327/0x7e0 [ 23.893023] ? fput+0x140/0x140 [ 23.893027] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.893031] ____fput+0x15/0x20 [ 23.893035] task_work_run+0x199/0x270 [ 23.893039] ? task_work_cancel+0x210/0x210 [ 23.893043] ? _raw_spin_unlock+0x22/0x30 [ 23.893046] ? switch_task_namespaces+0x87/0xc0 [ 23.893050] do_exit+0x9bb/0x1ad0 [ 23.893054] ? binder_ioctl+0x4a1/0x1417 [ 23.893058] ? mm_update_next_owner+0x930/0x930 [ 23.893062] ? binder_ioctl_write_read.isra.41+0xcb0/0xcb0 [ 23.893068] ? avc_ss_reset+0x110/0x110 [ 23.893073] ? __do_page_fault+0x5f7/0xc90 [ 23.893082] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.893085] ? up_read+0x1a/0x40 [ 23.893088] ? rcu_note_context_switch+0x710/0x710 [ 23.893092] ? __fd_install+0x288/0x740 [ 23.893097] ? binder_ioctl_write_read.isra.41+0xcb0/0xcb0 [ 23.893100] ? do_vfs_ioctl+0x486/0x1520 [ 23.893104] ? _cond_resched+0x14/0x30 [ 23.893108] ? ioctl_preallocate+0x2b0/0x2b0 [ 23.893112] ? selinux_capable+0x40/0x40 [ 23.893116] ? __alloc_fd+0x750/0x750 [ 23.893121] do_group_exit+0x149/0x400 [ 23.893124] ? SyS_exit+0x30/0x30 [ 23.893128] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.893132] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 23.893136] SyS_exit_group+0x1d/0x20 [ 23.893140] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 23.893142] RIP: 0033:0x442bc8 [ 23.893144] RSP: 002b:00007ffeb139cca8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 23.893147] RAX: ffffffffffffffda RBX: 6e69622f7665642f RCX: 0000000000442bc8 [ 23.893149] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 23.893151] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 23.893153] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401c10 [ 23.893155] R13: 0000000000401ca0 R14: 0000000000000000 R15: 0000000000000000 [ 23.915347] Dumping ftrace buffer: [ 23.915350] (ftrace buffer empty) [ 23.915352] Kernel Offset: disabled [ 25.053503] Rebooting in 86400 seconds..