[....] Starting enhanced syslogd: rsyslogd[ 13.289340] audit: type=1400 audit(1516664196.499:5): avc: denied { syslog } for pid=3503 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: [ 19.055399] audit: type=1400 audit(1516664202.265:6): avc: denied { map } for pid=3642 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.0.2' (ECDSA) to the list of known hosts. executing program [ 25.502588] audit: type=1400 audit(1516664208.712:7): avc: denied { map } for pid=3656 comm="syzkaller816905" path="/root/syzkaller816905412" 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.507648] ================================================================== [ 25.507661] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 25.507666] Read of size 8 at addr ffff8801bc62c5f0 by task syzkaller816905/3656 [ 25.507668] [ 25.507674] CPU: 0 PID: 3656 Comm: syzkaller816905 Not tainted 4.15.0-rc9+ #274 [ 25.507677] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.507680] Call Trace: [ 25.507690] dump_stack+0x194/0x257 [ 25.507698] ? arch_local_irq_restore+0x53/0x53 [ 25.507706] ? show_regs_print_info+0x18/0x18 [ 25.507712] ? print_irqtrace_events+0x270/0x270 [ 25.507718] ? __lock_acquire+0x664/0x3e00 [ 25.507725] ? __lock_acquire+0x3d4d/0x3e00 [ 25.507734] print_address_description+0x73/0x250 [ 25.507742] ? __lock_acquire+0x3d4d/0x3e00 [ 25.507748] kasan_report+0x25b/0x340 [ 25.507757] __asan_report_load8_noabort+0x14/0x20 [ 25.507762] __lock_acquire+0x3d4d/0x3e00 [ 25.507768] ? __lock_acquire+0x664/0x3e00 [ 25.507774] ? lock_downgrade+0x980/0x980 [ 25.507779] ? lock_downgrade+0x980/0x980 [ 25.507787] ? remove_wait_queue+0x81/0x350 [ 25.507797] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.507803] ? __lock_acquire+0x664/0x3e00 [ 25.507809] ? check_noncircular+0x20/0x20 [ 25.507821] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.507828] ? lock_acquire+0x1d5/0x580 [ 25.507834] ? lock_acquire+0x1d5/0x580 [ 25.507841] ? ep_free+0xf4/0x320 [ 25.507849] ? lock_release+0xa40/0xa40 [ 25.507856] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.507862] ? print_irqtrace_events+0x270/0x270 [ 25.507869] ? rcu_note_context_switch+0x710/0x710 [ 25.507876] ? __might_sleep+0x95/0x190 [ 25.507883] ? ep_free+0xf4/0x320 [ 25.507889] ? __mutex_lock+0x16f/0x1a80 [ 25.507894] ? ep_free+0xf4/0x320 [ 25.507902] ? print_irqtrace_events+0x270/0x270 [ 25.507906] ? ep_free+0xf4/0x320 [ 25.507915] lock_acquire+0x1d5/0x580 [ 25.507920] ? lock_acquire+0x1d5/0x580 [ 25.507926] ? remove_wait_queue+0x81/0x350 [ 25.507932] ? __lock_acquire+0x664/0x3e00 [ 25.507940] ? lock_release+0xa40/0xa40 [ 25.507949] ? lock_acquire+0x1d5/0x580 [ 25.507954] ? lock_acquire+0x1d5/0x580 [ 25.507961] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.507969] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.507975] ? remove_wait_queue+0x81/0x350 [ 25.507981] remove_wait_queue+0x81/0x350 [ 25.507989] ? add_wait_queue+0x290/0x290 [ 25.507995] ? rcutorture_record_progress+0x10/0x10 [ 25.508013] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.508021] ? __kernel_text_address+0xd/0x40 [ 25.508029] ? clear_tfile_check_list+0x370/0x370 [ 25.508037] ? check_noncircular+0x20/0x20 [ 25.508047] ? locks_remove_file+0x3fa/0x5a0 [ 25.508057] ep_free+0x13f/0x320 [ 25.508063] ? ep_remove+0x800/0x800 [ 25.508069] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.508077] ? ep_free+0x320/0x320 [ 25.508084] ep_eventpoll_release+0x44/0x60 [ 25.508091] __fput+0x327/0x7e0 [ 25.508100] ? fput+0x140/0x140 [ 25.508107] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.508116] ____fput+0x15/0x20 [ 25.508123] task_work_run+0x199/0x270 [ 25.508131] ? task_work_cancel+0x210/0x210 [ 25.508138] ? _raw_spin_unlock+0x22/0x30 [ 25.508144] ? switch_task_namespaces+0x87/0xc0 [ 25.508153] do_exit+0x9bb/0x1ad0 [ 25.508161] ? binder_ioctl+0x571/0x1417 [ 25.508167] ? mm_update_next_owner+0x930/0x930 [ 25.508175] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.508185] ? avc_ss_reset+0x110/0x110 [ 25.508191] ? mutex_unlock+0xd/0x10 [ 25.508197] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 25.508216] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.508221] ? up_read+0x1a/0x40 [ 25.508228] ? rcu_note_context_switch+0x710/0x710 [ 25.508234] ? __fd_install+0x288/0x740 [ 25.508243] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.508249] ? do_vfs_ioctl+0x486/0x1520 [ 25.508254] ? _cond_resched+0x14/0x30 [ 25.508261] ? ioctl_preallocate+0x2b0/0x2b0 [ 25.508269] ? selinux_capable+0x40/0x40 [ 25.508276] ? __alloc_fd+0x750/0x750 [ 25.508284] do_group_exit+0x149/0x400 [ 25.508291] ? SyS_exit+0x30/0x30 [ 25.508298] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.508306] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.508313] SyS_exit_group+0x1d/0x20 [ 25.508319] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.508324] RIP: 0033:0x4429f8 [ 25.508327] RSP: 002b:00007ffc8727cec8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 25.508334] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 25.508337] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 25.508341] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 25.508344] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 25.508348] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 25.508356] [ 25.508358] Allocated by task 3656: [ 25.508364] save_stack+0x43/0xd0 [ 25.508369] kasan_kmalloc+0xad/0xe0 [ 25.508379] kmem_cache_alloc_trace+0x136/0x750 [ 25.508386] binder_get_thread+0x1cf/0x870 [ 25.508391] binder_poll+0x8c/0x390 [ 25.508396] ep_item_poll.isra.10+0xec/0x320 [ 25.508401] ep_insert+0x6a3/0x1b10 [ 25.508407] SyS_epoll_ctl+0x12e4/0x1ab0 [ 25.508411] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.508412] [ 25.508414] Freed by task 3656: [ 25.508419] save_stack+0x43/0xd0 [ 25.508424] kasan_slab_free+0x71/0xc0 [ 25.508428] kfree+0xd6/0x260 [ 25.508434] binder_thread_dec_tmpref+0x27f/0x310 [ 25.508439] binder_thread_release+0x27d/0x540 [ 25.508444] binder_ioctl+0xc02/0x1417 [ 25.508448] do_vfs_ioctl+0x1b1/0x1520 [ 25.508453] SyS_ioctl+0x8f/0xc0 [ 25.508457] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.508458] [ 25.508462] The buggy address belongs to the object at ffff8801bc62c540 [ 25.508462] which belongs to the cache kmalloc-512 of size 512 [ 25.508467] The buggy address is located 176 bytes inside of [ 25.508467] 512-byte region [ffff8801bc62c540, ffff8801bc62c740) [ 25.508469] The buggy address belongs to the page: [ 25.508474] page:ffffea0006f18b00 count:1 mapcount:0 mapping:ffff8801bc62c040 index:0x0 [ 25.508479] flags: 0x2fffc0000000100(slab) [ 25.508488] raw: 02fffc0000000100 ffff8801bc62c040 0000000000000000 0000000100000006 [ 25.508495] raw: ffffea0006f2ac60 ffff8801dac01748 ffff8801dac00940 0000000000000000 [ 25.508497] page dumped because: kasan: bad access detected [ 25.508498] [ 25.508500] Memory state around the buggy address: [ 25.508504] ffff8801bc62c480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.508509] ffff8801bc62c500: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 25.508513] >ffff8801bc62c580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.508515] ^ [ 25.508520] ffff8801bc62c600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.508524] ffff8801bc62c680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.508526] ================================================================== [ 25.508528] Disabling lock debugging due to kernel taint [ 25.508531] Kernel panic - not syncing: panic_on_warn set ... [ 25.508531] [ 25.508537] CPU: 0 PID: 3656 Comm: syzkaller816905 Tainted: G B 4.15.0-rc9+ #274 [ 25.508540] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.508542] Call Trace: [ 25.508548] dump_stack+0x194/0x257 [ 25.508556] ? arch_local_irq_restore+0x53/0x53 [ 25.508561] ? kasan_end_report+0x32/0x50 [ 25.508568] ? lock_downgrade+0x980/0x980 [ 25.508574] ? vsnprintf+0x1ed/0x1900 [ 25.508581] ? __lock_acquire+0x3ca0/0x3e00 [ 25.508586] panic+0x1e4/0x41c [ 25.508592] ? refcount_error_report+0x214/0x214 [ 25.508599] ? add_taint+0x40/0x50 [ 25.508605] ? add_taint+0x1c/0x50 [ 25.508611] ? __lock_acquire+0x3d4d/0x3e00 [ 25.508617] kasan_end_report+0x50/0x50 [ 25.508623] kasan_report+0x144/0x340 [ 25.508631] __asan_report_load8_noabort+0x14/0x20 [ 25.508637] __lock_acquire+0x3d4d/0x3e00 [ 25.508642] ? __lock_acquire+0x664/0x3e00 [ 25.508648] ? lock_downgrade+0x980/0x980 [ 25.508653] ? lock_downgrade+0x980/0x980 [ 25.508661] ? remove_wait_queue+0x81/0x350 [ 25.508670] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.508676] ? __lock_acquire+0x664/0x3e00 [ 25.508681] ? check_noncircular+0x20/0x20 [ 25.508694] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.508701] ? lock_acquire+0x1d5/0x580 [ 25.508706] ? lock_acquire+0x1d5/0x580 [ 25.508712] ? ep_free+0xf4/0x320 [ 25.508720] ? lock_release+0xa40/0xa40 [ 25.508726] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.508732] ? print_irqtrace_events+0x270/0x270 [ 25.508738] ? rcu_note_context_switch+0x710/0x710 [ 25.508746] ? __might_sleep+0x95/0x190 [ 25.508752] ? ep_free+0xf4/0x320 [ 25.508758] ? __mutex_lock+0x16f/0x1a80 [ 25.508763] ? ep_free+0xf4/0x320 [ 25.508770] ? print_irqtrace_events+0x270/0x270 [ 25.508775] ? ep_free+0xf4/0x320 [ 25.508783] lock_acquire+0x1d5/0x580 [ 25.508788] ? lock_acquire+0x1d5/0x580 [ 25.508794] ? remove_wait_queue+0x81/0x350 [ 25.508800] ? __lock_acquire+0x664/0x3e00 [ 25.508807] ? lock_release+0xa40/0xa40 [ 25.508816] ? lock_acquire+0x1d5/0x580 [ 25.508822] ? lock_acquire+0x1d5/0x580 [ 25.508828] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.508836] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.508842] ? remove_wait_queue+0x81/0x350 [ 25.508848] remove_wait_queue+0x81/0x350 [ 25.508856] ? add_wait_queue+0x290/0x290 [ 25.508862] ? rcutorture_record_progress+0x10/0x10 [ 25.508872] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.508879] ? __kernel_text_address+0xd/0x40 [ 25.508887] ? clear_tfile_check_list+0x370/0x370 [ 25.508894] ? check_noncircular+0x20/0x20 [ 25.508902] ? locks_remove_file+0x3fa/0x5a0 [ 25.508911] ep_free+0x13f/0x320 [ 25.508918] ? ep_remove+0x800/0x800 [ 25.508924] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.508932] ? ep_free+0x320/0x320 [ 25.508937] ep_eventpoll_release+0x44/0x60 [ 25.508943] __fput+0x327/0x7e0 [ 25.508952] ? fput+0x140/0x140 [ 25.508959] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.508967] ____fput+0x15/0x20 [ 25.508974] task_work_run+0x199/0x270 [ 25.508981] ? task_work_cancel+0x210/0x210 [ 25.508988] ? _raw_spin_unlock+0x22/0x30 [ 25.508994] ? switch_task_namespaces+0x87/0xc0 [ 25.509001] do_exit+0x9bb/0x1ad0 [ 25.509008] ? binder_ioctl+0x571/0x1417 [ 25.509015] ? mm_update_next_owner+0x930/0x930 [ 25.509022] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.509030] ? avc_ss_reset+0x110/0x110 [ 25.509036] ? mutex_unlock+0xd/0x10 [ 25.509041] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 25.509059] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.509064] ? up_read+0x1a/0x40 [ 25.509071] ? rcu_note_context_switch+0x710/0x710 [ 25.509076] ? __fd_install+0x288/0x740 [ 25.509084] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.509090] ? do_vfs_ioctl+0x486/0x1520 [ 25.509095] ? _cond_resched+0x14/0x30 [ 25.509102] ? ioctl_preallocate+0x2b0/0x2b0 [ 25.509110] ? selinux_capable+0x40/0x40 [ 25.509116] ? __alloc_fd+0x750/0x750 [ 25.509124] do_group_exit+0x149/0x400 [ 25.509131] ? SyS_exit+0x30/0x30 [ 25.509138] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.509144] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.509152] SyS_exit_group+0x1d/0x20 [ 25.509157] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.509161] RIP: 0033:0x4429f8 [ 25.509164] RSP: 002b:00007ffc8727cec8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 25.509170] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 25.509173] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 25.509176] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 25.509180] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 25.509183] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 25.528956] Dumping ftrace buffer: [ 25.528959] (ftrace buffer empty) [ 25.528962] Kernel Offset: disabled [ 26.656913] Rebooting in 86400 seconds..