[....] Starting enhanced syslogd: rsyslogd[ 10.759749] audit: type=1400 audit(1514428682.184:5): avc: denied { syslog } for pid=2994 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.520273] audit: type=1400 audit(1514428687.944:6): avc: denied { map } for pid=3134 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.215' (ECDSA) to the list of known hosts. executing program [ 24.256436] audit: type=1400 audit(1514428695.681:7): avc: denied { map } for pid=3149 comm="syzkaller097688" path="/root/syzkaller097688699" 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 [ 24.259905] ================================================================== [ 24.259917] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 24.259921] Read of size 8 at addr ffff8801c9795ab8 by task syzkaller097688/3149 [ 24.259921] [ 24.259926] CPU: 1 PID: 3149 Comm: syzkaller097688 Not tainted 4.15.0-rc4-next-20171221+ #78 [ 24.259929] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.259930] Call Trace: [ 24.259936] dump_stack+0x194/0x257 [ 24.259941] ? arch_local_irq_restore+0x53/0x53 [ 24.259947] ? show_regs_print_info+0x18/0x18 [ 24.259950] ? print_irqtrace_events+0x270/0x270 [ 24.259954] ? __lock_acquire+0x664/0x3e00 [ 24.259959] ? __lock_acquire+0x3d4d/0x3e00 [ 24.259966] print_address_description+0x73/0x250 [ 24.259969] ? __lock_acquire+0x3d4d/0x3e00 [ 24.259973] kasan_report+0x25b/0x340 [ 24.259979] __asan_report_load8_noabort+0x14/0x20 [ 24.259982] __lock_acquire+0x3d4d/0x3e00 [ 24.259985] ? __lock_acquire+0x664/0x3e00 [ 24.259989] ? lock_downgrade+0x980/0x980 [ 24.259992] ? lock_downgrade+0x980/0x980 [ 24.259998] ? remove_wait_queue+0x81/0x350 [ 24.260007] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.260012] ? __lock_acquire+0x664/0x3e00 [ 24.260015] ? check_noncircular+0x20/0x20 [ 24.260023] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.260028] ? lock_acquire+0x1d5/0x580 [ 24.260031] ? lock_acquire+0x1d5/0x580 [ 24.260036] ? ep_free+0xf4/0x320 [ 24.260041] ? lock_release+0xa40/0xa40 [ 24.260047] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.260050] ? print_irqtrace_events+0x270/0x270 [ 24.260056] ? rcu_note_context_switch+0x710/0x710 [ 24.260060] ? __might_sleep+0x95/0x190 [ 24.260064] ? ep_free+0xf4/0x320 [ 24.260070] ? __mutex_lock+0x16f/0x1a80 [ 24.260073] ? ep_free+0xf4/0x320 [ 24.260077] ? print_irqtrace_events+0x270/0x270 [ 24.260080] ? ep_free+0xf4/0x320 [ 24.260085] lock_acquire+0x1d5/0x580 [ 24.260088] ? lock_acquire+0x1d5/0x580 [ 24.260092] ? remove_wait_queue+0x81/0x350 [ 24.260095] ? __lock_acquire+0x664/0x3e00 [ 24.260100] ? lock_release+0xa40/0xa40 [ 24.260106] ? lock_acquire+0x1d5/0x580 [ 24.260109] ? lock_acquire+0x1d5/0x580 [ 24.260114] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 24.260121] _raw_spin_lock_irqsave+0x96/0xc0 [ 24.260126] ? remove_wait_queue+0x81/0x350 [ 24.260131] remove_wait_queue+0x81/0x350 [ 24.260138] ? add_wait_queue+0x290/0x290 [ 24.260143] ? rcutorture_record_progress+0x10/0x10 [ 24.260152] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 24.260159] ? __kernel_text_address+0xd/0x40 [ 24.260164] ? clear_tfile_check_list+0x370/0x370 [ 24.260169] ? check_noncircular+0x20/0x20 [ 24.260176] ? locks_remove_file+0x3fa/0x5a0 [ 24.260182] ep_free+0x13f/0x320 [ 24.260185] ? ep_remove+0x800/0x800 [ 24.260189] ? fsnotify_first_mark+0x2b0/0x2b0 [ 24.260193] ? ep_free+0x320/0x320 [ 24.260197] ep_eventpoll_release+0x44/0x60 [ 24.260202] __fput+0x327/0x7e0 [ 24.260208] ? fput+0x140/0x140 [ 24.260211] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.260217] ____fput+0x15/0x20 [ 24.260221] task_work_run+0x199/0x270 [ 24.260225] ? task_work_cancel+0x210/0x210 [ 24.260229] ? _raw_spin_unlock+0x22/0x30 [ 24.260233] ? switch_task_namespaces+0x87/0xc0 [ 24.260239] do_exit+0x9bb/0x1ad0 [ 24.260245] ? binder_ioctl+0x491/0x1417 [ 24.260248] ? mm_update_next_owner+0x930/0x930 [ 24.260253] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.260260] ? avc_ss_reset+0x110/0x110 [ 24.260263] ? mutex_unlock+0xd/0x10 [ 24.260267] ? SyS_epoll_ctl+0x30a/0x1a80 [ 24.260279] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.260283] ? up_read+0x1a/0x40 [ 24.260287] ? rcu_note_context_switch+0x710/0x710 [ 24.260290] ? __fd_install+0x288/0x740 [ 24.260295] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.260299] ? do_vfs_ioctl+0x486/0x1520 [ 24.260302] ? _cond_resched+0x14/0x30 [ 24.260307] ? ioctl_preallocate+0x2b0/0x2b0 [ 24.260315] ? selinux_capable+0x40/0x40 [ 24.260320] ? __alloc_fd+0x750/0x750 [ 24.260325] do_group_exit+0x149/0x400 [ 24.260329] ? SyS_exit+0x30/0x30 [ 24.260333] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.260339] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.260344] SyS_exit_group+0x1d/0x20 [ 24.260348] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 24.260351] RIP: 0033:0x4429f8 [ 24.260354] RSP: 002b:00007ffd16fc9e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 24.260358] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 24.260360] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 24.260363] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 24.260365] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 24.260367] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 24.260373] [ 24.260374] Allocated by task 3149: [ 24.260378] save_stack+0x43/0xd0 [ 24.260381] kasan_kmalloc+0xad/0xe0 [ 24.260384] kmem_cache_alloc_trace+0x136/0x750 [ 24.260387] binder_get_thread+0x1cf/0x870 [ 24.260389] binder_poll+0x8c/0x390 [ 24.260392] ep_item_poll.isra.10+0xf2/0x320 [ 24.260395] ep_insert+0x6a2/0x1ac0 [ 24.260398] SyS_epoll_ctl+0x12bf/0x1a80 [ 24.260401] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 24.260402] [ 24.260403] Freed by task 3149: [ 24.260406] save_stack+0x43/0xd0 [ 24.260409] kasan_slab_free+0x71/0xc0 [ 24.260411] kfree+0xd6/0x260 [ 24.260414] binder_thread_dec_tmpref+0x27f/0x310 [ 24.260417] binder_thread_release+0x27d/0x540 [ 24.260419] binder_ioctl+0xc02/0x1417 [ 24.260422] do_vfs_ioctl+0x1b1/0x1520 [ 24.260424] SyS_ioctl+0x8f/0xc0 [ 24.260427] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 24.260428] [ 24.260431] The buggy address belongs to the object at ffff8801c9795a00 [ 24.260431] which belongs to the cache kmalloc-512 of size 512 [ 24.260434] The buggy address is located 184 bytes inside of [ 24.260434] 512-byte region [ffff8801c9795a00, ffff8801c9795c00) [ 24.260435] The buggy address belongs to the page: [ 24.260439] page:00000000f5e6b4ce count:1 mapcount:0 mapping:00000000e78535c9 index:0x0 [ 24.260442] flags: 0x2fffc0000000100(slab) [ 24.260448] raw: 02fffc0000000100 ffff8801c9795000 0000000000000000 0000000100000006 [ 24.260452] raw: ffffea0007238420 ffffea00072387a0 ffff8801dac00940 0000000000000000 [ 24.260454] page dumped because: kasan: bad access detected [ 24.260454] [ 24.260456] Memory state around the buggy address: [ 24.260459] ffff8801c9795980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.260461] ffff8801c9795a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.260464] >ffff8801c9795a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.260465] ^ [ 24.260468] ffff8801c9795b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.260471] ffff8801c9795b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.260472] ================================================================== [ 24.260473] Disabling lock debugging due to kernel taint [ 24.260475] Kernel panic - not syncing: panic_on_warn set ... [ 24.260475] [ 24.260479] CPU: 1 PID: 3149 Comm: syzkaller097688 Tainted: G B 4.15.0-rc4-next-20171221+ #78 [ 24.260481] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.260482] Call Trace: [ 24.260486] dump_stack+0x194/0x257 [ 24.260490] ? arch_local_irq_restore+0x53/0x53 [ 24.260493] ? kasan_end_report+0x32/0x50 [ 24.260497] ? lock_downgrade+0x980/0x980 [ 24.260501] ? vsnprintf+0x1ed/0x1900 [ 24.260505] ? __lock_acquire+0x3d30/0x3e00 [ 24.260508] panic+0x1e4/0x41c [ 24.260512] ? refcount_error_report+0x214/0x214 [ 24.260516] ? add_taint+0x40/0x50 [ 24.260519] ? add_taint+0x1c/0x50 [ 24.260523] ? __lock_acquire+0x3d4d/0x3e00 [ 24.260527] kasan_end_report+0x50/0x50 [ 24.260530] kasan_report+0x144/0x340 [ 24.260535] __asan_report_load8_noabort+0x14/0x20 [ 24.260538] __lock_acquire+0x3d4d/0x3e00 [ 24.260542] ? __lock_acquire+0x664/0x3e00 [ 24.260545] ? lock_downgrade+0x980/0x980 [ 24.260548] ? lock_downgrade+0x980/0x980 [ 24.260552] ? remove_wait_queue+0x81/0x350 [ 24.260558] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.260562] ? __lock_acquire+0x664/0x3e00 [ 24.260565] ? check_noncircular+0x20/0x20 [ 24.260572] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.260576] ? lock_acquire+0x1d5/0x580 [ 24.260579] ? lock_acquire+0x1d5/0x580 [ 24.260582] ? ep_free+0xf4/0x320 [ 24.260587] ? lock_release+0xa40/0xa40 [ 24.260591] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.260594] ? print_irqtrace_events+0x270/0x270 [ 24.260598] ? rcu_note_context_switch+0x710/0x710 [ 24.260602] ? __might_sleep+0x95/0x190 [ 24.260606] ? ep_free+0xf4/0x320 [ 24.260610] ? __mutex_lock+0x16f/0x1a80 [ 24.260613] ? ep_free+0xf4/0x320 [ 24.260617] ? print_irqtrace_events+0x270/0x270 [ 24.260619] ? ep_free+0xf4/0x320 [ 24.260624] lock_acquire+0x1d5/0x580 [ 24.260627] ? lock_acquire+0x1d5/0x580 [ 24.260631] ? remove_wait_queue+0x81/0x350 [ 24.260634] ? __lock_acquire+0x664/0x3e00 [ 24.260639] ? lock_release+0xa40/0xa40 [ 24.260644] ? lock_acquire+0x1d5/0x580 [ 24.260647] ? lock_acquire+0x1d5/0x580 [ 24.260651] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 24.260655] _raw_spin_lock_irqsave+0x96/0xc0 [ 24.260659] ? remove_wait_queue+0x81/0x350 [ 24.260662] remove_wait_queue+0x81/0x350 [ 24.260667] ? add_wait_queue+0x290/0x290 [ 24.260670] ? rcutorture_record_progress+0x10/0x10 [ 24.260676] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 24.260680] ? __kernel_text_address+0xd/0x40 [ 24.260685] ? clear_tfile_check_list+0x370/0x370 [ 24.260689] ? check_noncircular+0x20/0x20 [ 24.260694] ? locks_remove_file+0x3fa/0x5a0 [ 24.260699] ep_free+0x13f/0x320 [ 24.260702] ? ep_remove+0x800/0x800 [ 24.260706] ? fsnotify_first_mark+0x2b0/0x2b0 [ 24.260710] ? ep_free+0x320/0x320 [ 24.260714] ep_eventpoll_release+0x44/0x60 [ 24.260717] __fput+0x327/0x7e0 [ 24.260722] ? fput+0x140/0x140 [ 24.260726] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.260730] ____fput+0x15/0x20 [ 24.260734] task_work_run+0x199/0x270 [ 24.260739] ? task_work_cancel+0x210/0x210 [ 24.260742] ? _raw_spin_unlock+0x22/0x30 [ 24.260746] ? switch_task_namespaces+0x87/0xc0 [ 24.260750] do_exit+0x9bb/0x1ad0 [ 24.260754] ? binder_ioctl+0x491/0x1417 [ 24.260758] ? mm_update_next_owner+0x930/0x930 [ 24.260762] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.260767] ? avc_ss_reset+0x110/0x110 [ 24.260771] ? mutex_unlock+0xd/0x10 [ 24.260775] ? SyS_epoll_ctl+0x30a/0x1a80 [ 24.260785] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.260788] ? up_read+0x1a/0x40 [ 24.260792] ? rcu_note_context_switch+0x710/0x710 [ 24.260795] ? __fd_install+0x288/0x740 [ 24.260800] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.260803] ? do_vfs_ioctl+0x486/0x1520 [ 24.260806] ? _cond_resched+0x14/0x30 [ 24.260810] ? ioctl_preallocate+0x2b0/0x2b0 [ 24.260815] ? selinux_capable+0x40/0x40 [ 24.260818] ? __alloc_fd+0x750/0x750 [ 24.260823] do_group_exit+0x149/0x400 [ 24.260827] ? SyS_exit+0x30/0x30 [ 24.260831] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.260835] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.260840] SyS_exit_group+0x1d/0x20 [ 24.260843] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 24.260846] RIP: 0033:0x4429f8 [ 24.260848] RSP: 002b:00007ffd16fc9e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 24.260851] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 24.260853] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 24.260855] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 24.260857] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 24.260859] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 24.282321] Dumping ftrace buffer: [ 24.282324] (ftrace buffer empty) [ 24.282326] Kernel Offset: disabled [ 25.407840] Rebooting in 86400 seconds..