[....] Starting enhanced syslogd: rsyslogd[ 13.363542] audit: type=1400 audit(1516140904.771:5): avc: denied { syslog } for pid=3510 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.903632] audit: type=1400 audit(1516140911.311:6): avc: denied { map } for pid=3650 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.51' (ECDSA) to the list of known hosts. executing program [ 26.136780] audit: type=1400 audit(1516140917.544:7): avc: denied { map } for pid=3664 comm="syzkaller273370" path="/root/syzkaller273370921" 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 [ 26.143006] ================================================================== [ 26.143022] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 26.143028] Read of size 8 at addr ffff8801bc600170 by task syzkaller273370/3664 [ 26.143029] [ 26.143037] CPU: 1 PID: 3664 Comm: syzkaller273370 Not tainted 4.15.0-rc8+ #264 [ 26.143040] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.143043] Call Trace: [ 26.143054] dump_stack+0x194/0x257 [ 26.143063] ? arch_local_irq_restore+0x53/0x53 [ 26.143071] ? show_regs_print_info+0x18/0x18 [ 26.143077] ? print_irqtrace_events+0x270/0x270 [ 26.143083] ? __lock_acquire+0x664/0x3e00 [ 26.143090] ? __lock_acquire+0x3d4d/0x3e00 [ 26.143099] print_address_description+0x73/0x250 [ 26.143105] ? __lock_acquire+0x3d4d/0x3e00 [ 26.143111] kasan_report+0x25b/0x340 [ 26.143120] __asan_report_load8_noabort+0x14/0x20 [ 26.143125] __lock_acquire+0x3d4d/0x3e00 [ 26.143131] ? __lock_acquire+0x664/0x3e00 [ 26.143142] ? lock_downgrade+0x980/0x980 [ 26.143147] ? lock_downgrade+0x980/0x980 [ 26.143155] ? remove_wait_queue+0x81/0x350 [ 26.143164] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.143171] ? __lock_acquire+0x664/0x3e00 [ 26.143176] ? check_noncircular+0x20/0x20 [ 26.143189] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.143196] ? lock_acquire+0x1d5/0x580 [ 26.143201] ? lock_acquire+0x1d5/0x580 [ 26.143208] ? ep_free+0xf4/0x320 [ 26.143216] ? lock_release+0xa40/0xa40 [ 26.143224] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.143230] ? print_irqtrace_events+0x270/0x270 [ 26.143240] ? rcu_note_context_switch+0x710/0x710 [ 26.143248] ? __might_sleep+0x95/0x190 [ 26.143254] ? ep_free+0xf4/0x320 [ 26.143261] ? __mutex_lock+0x16f/0x1a80 [ 26.143266] ? ep_free+0xf4/0x320 [ 26.143273] ? print_irqtrace_events+0x270/0x270 [ 26.143278] ? ep_free+0xf4/0x320 [ 26.143286] lock_acquire+0x1d5/0x580 [ 26.143292] ? lock_acquire+0x1d5/0x580 [ 26.143297] ? remove_wait_queue+0x81/0x350 [ 26.143303] ? __lock_acquire+0x664/0x3e00 [ 26.143311] ? lock_release+0xa40/0xa40 [ 26.143320] ? lock_acquire+0x1d5/0x580 [ 26.143325] ? lock_acquire+0x1d5/0x580 [ 26.143331] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 26.143340] _raw_spin_lock_irqsave+0x96/0xc0 [ 26.143345] ? remove_wait_queue+0x81/0x350 [ 26.143352] remove_wait_queue+0x81/0x350 [ 26.143360] ? add_wait_queue+0x290/0x290 [ 26.143366] ? rcutorture_record_progress+0x10/0x10 [ 26.143376] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 26.143383] ? __kernel_text_address+0xd/0x40 [ 26.143392] ? clear_tfile_check_list+0x370/0x370 [ 26.143400] ? check_noncircular+0x20/0x20 [ 26.143408] ? locks_remove_file+0x3fa/0x5a0 [ 26.143417] ep_free+0x13f/0x320 [ 26.143424] ? ep_remove+0x800/0x800 [ 26.143430] ? fsnotify_first_mark+0x2b0/0x2b0 [ 26.143437] ? ep_free+0x320/0x320 [ 26.143443] ep_eventpoll_release+0x44/0x60 [ 26.143451] __fput+0x327/0x7e0 [ 26.143460] ? fput+0x140/0x140 [ 26.143467] ? _raw_spin_unlock_irq+0x27/0x70 [ 26.143475] ____fput+0x15/0x20 [ 26.143482] task_work_run+0x199/0x270 [ 26.143489] ? task_work_cancel+0x210/0x210 [ 26.143496] ? _raw_spin_unlock+0x22/0x30 [ 26.143502] ? switch_task_namespaces+0x87/0xc0 [ 26.143511] do_exit+0x9bb/0x1ad0 [ 26.143521] ? binder_ioctl+0x4d1/0x1417 [ 26.143527] ? mm_update_next_owner+0x930/0x930 [ 26.143535] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 26.143546] ? avc_ss_reset+0x110/0x110 [ 26.143551] ? mutex_unlock+0xd/0x10 [ 26.143557] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 26.143576] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.143581] ? up_read+0x1a/0x40 [ 26.143588] ? rcu_note_context_switch+0x710/0x710 [ 26.143594] ? __fd_install+0x288/0x740 [ 26.143603] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 26.143609] ? do_vfs_ioctl+0x486/0x1520 [ 26.143614] ? _cond_resched+0x14/0x30 [ 26.143622] ? ioctl_preallocate+0x2b0/0x2b0 [ 26.143629] ? selinux_capable+0x40/0x40 [ 26.143635] ? __alloc_fd+0x750/0x750 [ 26.143643] do_group_exit+0x149/0x400 [ 26.143650] ? SyS_exit+0x30/0x30 [ 26.143657] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.143666] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.143673] SyS_exit_group+0x1d/0x20 [ 26.143681] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.143685] RIP: 0033:0x4429f8 [ 26.143689] RSP: 002b:00007ffd2cea06f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 26.143695] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 26.143699] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 26.143702] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 26.143705] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 26.143709] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 26.143717] [ 26.143720] Allocated by task 3664: [ 26.143726] save_stack+0x43/0xd0 [ 26.143731] kasan_kmalloc+0xad/0xe0 [ 26.143736] kmem_cache_alloc_trace+0x136/0x750 [ 26.143741] binder_get_thread+0x1cf/0x870 [ 26.143746] binder_poll+0x8c/0x390 [ 26.143751] ep_item_poll.isra.10+0xec/0x320 [ 26.143756] ep_insert+0x6a3/0x1b10 [ 26.143761] SyS_epoll_ctl+0x12e4/0x1ab0 [ 26.143767] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.143768] [ 26.143770] Freed by task 3664: [ 26.143775] save_stack+0x43/0xd0 [ 26.143779] kasan_slab_free+0x71/0xc0 [ 26.143783] kfree+0xd6/0x260 [ 26.143789] binder_thread_dec_tmpref+0x27f/0x310 [ 26.143794] binder_thread_release+0x27d/0x540 [ 26.143799] binder_ioctl+0xc02/0x1417 [ 26.143804] do_vfs_ioctl+0x1b1/0x1520 [ 26.143808] SyS_ioctl+0x8f/0xc0 [ 26.143813] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.143814] [ 26.143833] The buggy address belongs to the object at ffff8801bc6000c0 [ 26.143833] which belongs to the cache kmalloc-512 of size 512 [ 26.143838] The buggy address is located 176 bytes inside of [ 26.143838] 512-byte region [ffff8801bc6000c0, ffff8801bc6002c0) [ 26.143840] The buggy address belongs to the page: [ 26.143845] page:ffffea0006f18000 count:1 mapcount:0 mapping:ffff8801bc6000c0 index:0x0 [ 26.143850] flags: 0x2fffc0000000100(slab) [ 26.143859] raw: 02fffc0000000100 ffff8801bc6000c0 0000000000000000 0000000100000006 [ 26.143865] raw: ffffea0006eee520 ffff8801dac01748 ffff8801dac00940 0000000000000000 [ 26.143868] page dumped because: kasan: bad access detected [ 26.143869] [ 26.143870] Memory state around the buggy address: [ 26.143875] ffff8801bc600000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.143879] ffff8801bc600080: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 26.143883] >ffff8801bc600100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.143886] ^ [ 26.143890] ffff8801bc600180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.143894] ffff8801bc600200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.143896] ================================================================== [ 26.143897] Disabling lock debugging due to kernel taint [ 26.143901] Kernel panic - not syncing: panic_on_warn set ... [ 26.143901] [ 26.143907] CPU: 1 PID: 3664 Comm: syzkaller273370 Tainted: G B 4.15.0-rc8+ #264 [ 26.143910] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.143911] Call Trace: [ 26.143917] dump_stack+0x194/0x257 [ 26.143925] ? arch_local_irq_restore+0x53/0x53 [ 26.143930] ? kasan_end_report+0x32/0x50 [ 26.143936] ? lock_downgrade+0x980/0x980 [ 26.143944] ? vsnprintf+0x1ed/0x1900 [ 26.143950] ? __lock_acquire+0x3c70/0x3e00 [ 26.143955] panic+0x1e4/0x41c [ 26.143961] ? refcount_error_report+0x214/0x214 [ 26.143968] ? add_taint+0x40/0x50 [ 26.143973] ? add_taint+0x1c/0x50 [ 26.143980] ? __lock_acquire+0x3d4d/0x3e00 [ 26.143985] kasan_end_report+0x50/0x50 [ 26.143991] kasan_report+0x144/0x340 [ 26.143999] __asan_report_load8_noabort+0x14/0x20 [ 26.144005] __lock_acquire+0x3d4d/0x3e00 [ 26.144010] ? __lock_acquire+0x664/0x3e00 [ 26.144016] ? lock_downgrade+0x980/0x980 [ 26.144021] ? lock_downgrade+0x980/0x980 [ 26.144028] ? remove_wait_queue+0x81/0x350 [ 26.144037] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.144043] ? __lock_acquire+0x664/0x3e00 [ 26.144048] ? check_noncircular+0x20/0x20 [ 26.144060] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.144067] ? lock_acquire+0x1d5/0x580 [ 26.144072] ? lock_acquire+0x1d5/0x580 [ 26.144078] ? ep_free+0xf4/0x320 [ 26.144086] ? lock_release+0xa40/0xa40 [ 26.144092] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.144098] ? print_irqtrace_events+0x270/0x270 [ 26.144104] ? rcu_note_context_switch+0x710/0x710 [ 26.144111] ? __might_sleep+0x95/0x190 [ 26.144117] ? ep_free+0xf4/0x320 [ 26.144123] ? __mutex_lock+0x16f/0x1a80 [ 26.144128] ? ep_free+0xf4/0x320 [ 26.144138] ? print_irqtrace_events+0x270/0x270 [ 26.144143] ? ep_free+0xf4/0x320 [ 26.144151] lock_acquire+0x1d5/0x580 [ 26.144156] ? lock_acquire+0x1d5/0x580 [ 26.144162] ? remove_wait_queue+0x81/0x350 [ 26.144168] ? __lock_acquire+0x664/0x3e00 [ 26.144175] ? lock_release+0xa40/0xa40 [ 26.144184] ? lock_acquire+0x1d5/0x580 [ 26.144189] ? lock_acquire+0x1d5/0x580 [ 26.144196] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 26.144204] _raw_spin_lock_irqsave+0x96/0xc0 [ 26.144209] ? remove_wait_queue+0x81/0x350 [ 26.144216] remove_wait_queue+0x81/0x350 [ 26.144223] ? add_wait_queue+0x290/0x290 [ 26.144229] ? rcutorture_record_progress+0x10/0x10 [ 26.144239] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 26.144245] ? __kernel_text_address+0xd/0x40 [ 26.144253] ? clear_tfile_check_list+0x370/0x370 [ 26.144260] ? check_noncircular+0x20/0x20 [ 26.144268] ? locks_remove_file+0x3fa/0x5a0 [ 26.144277] ep_free+0x13f/0x320 [ 26.144283] ? ep_remove+0x800/0x800 [ 26.144288] ? fsnotify_first_mark+0x2b0/0x2b0 [ 26.144296] ? ep_free+0x320/0x320 [ 26.144302] ep_eventpoll_release+0x44/0x60 [ 26.144308] __fput+0x327/0x7e0 [ 26.144316] ? fput+0x140/0x140 [ 26.144323] ? _raw_spin_unlock_irq+0x27/0x70 [ 26.144331] ____fput+0x15/0x20 [ 26.144337] task_work_run+0x199/0x270 [ 26.144345] ? task_work_cancel+0x210/0x210 [ 26.144351] ? _raw_spin_unlock+0x22/0x30 [ 26.144357] ? switch_task_namespaces+0x87/0xc0 [ 26.144364] do_exit+0x9bb/0x1ad0 [ 26.144372] ? binder_ioctl+0x4d1/0x1417 [ 26.144378] ? mm_update_next_owner+0x930/0x930 [ 26.144386] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 26.144394] ? avc_ss_reset+0x110/0x110 [ 26.144400] ? mutex_unlock+0xd/0x10 [ 26.144406] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 26.144423] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.144428] ? up_read+0x1a/0x40 [ 26.144435] ? rcu_note_context_switch+0x710/0x710 [ 26.144439] ? __fd_install+0x288/0x740 [ 26.144449] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 26.144454] ? do_vfs_ioctl+0x486/0x1520 [ 26.144459] ? _cond_resched+0x14/0x30 [ 26.144466] ? ioctl_preallocate+0x2b0/0x2b0 [ 26.144473] ? selinux_capable+0x40/0x40 [ 26.144479] ? __alloc_fd+0x750/0x750 [ 26.144487] do_group_exit+0x149/0x400 [ 26.144494] ? SyS_exit+0x30/0x30 [ 26.144500] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.144506] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.144514] SyS_exit_group+0x1d/0x20 [ 26.144520] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.144524] RIP: 0033:0x4429f8 [ 26.144527] RSP: 002b:00007ffd2cea06f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 26.144532] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 26.144536] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 26.144539] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 26.144542] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 26.144545] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 26.163081] Dumping ftrace buffer: [ 26.163085] (ftrace buffer empty) [ 26.163088] Kernel Offset: disabled [ 27.287789] Rebooting in 86400 seconds..