[....] Starting enhanced syslogd: rsyslogd[ 12.859591] audit: type=1400 audit(1516970030.143: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 mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] 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.084589] audit: type=1400 audit(1516970036.368: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.15.217' (ECDSA) to the list of known hosts. executing program [ 27.648210] audit: type=1400 audit(1516970044.932:7): avc: denied { map } for pid=3657 comm="syzkaller493251" path="/root/syzkaller493251410" 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 [ 27.654261] ================================================================== [ 27.654272] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 27.654276] Read of size 8 at addr ffff8801d801d5b0 by task syzkaller493251/3657 [ 27.654277] [ 27.654282] CPU: 0 PID: 3657 Comm: syzkaller493251 Not tainted 4.15.0-rc9+ #281 [ 27.654284] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.654286] Call Trace: [ 27.654294] dump_stack+0x194/0x257 [ 27.654299] ? arch_local_irq_restore+0x53/0x53 [ 27.654305] ? show_regs_print_info+0x18/0x18 [ 27.654308] ? print_irqtrace_events+0x270/0x270 [ 27.654312] ? __lock_acquire+0x664/0x3e00 [ 27.654316] ? __lock_acquire+0x3d4d/0x3e00 [ 27.654323] print_address_description+0x73/0x250 [ 27.654327] ? __lock_acquire+0x3d4d/0x3e00 [ 27.654330] kasan_report+0x25b/0x340 [ 27.654335] __asan_report_load8_noabort+0x14/0x20 [ 27.654339] __lock_acquire+0x3d4d/0x3e00 [ 27.654342] ? __lock_acquire+0x664/0x3e00 [ 27.654345] ? lock_downgrade+0x980/0x980 [ 27.654349] ? lock_downgrade+0x980/0x980 [ 27.654354] ? remove_wait_queue+0x81/0x350 [ 27.654360] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 27.654364] ? __lock_acquire+0x664/0x3e00 [ 27.654367] ? check_noncircular+0x20/0x20 [ 27.654375] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 27.654379] ? lock_acquire+0x1d5/0x580 [ 27.654382] ? lock_acquire+0x1d5/0x580 [ 27.654388] ? ep_free+0xf4/0x320 [ 27.654393] ? lock_release+0xa40/0xa40 [ 27.654399] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 27.654402] ? print_irqtrace_events+0x270/0x270 [ 27.654408] ? rcu_note_context_switch+0x710/0x710 [ 27.654413] ? __might_sleep+0x95/0x190 [ 27.654416] ? ep_free+0xf4/0x320 [ 27.654421] ? __mutex_lock+0x16f/0x1a80 [ 27.654424] ? ep_free+0xf4/0x320 [ 27.654428] ? print_irqtrace_events+0x270/0x270 [ 27.654431] ? ep_free+0xf4/0x320 [ 27.654436] lock_acquire+0x1d5/0x580 [ 27.654440] ? lock_acquire+0x1d5/0x580 [ 27.654443] ? remove_wait_queue+0x81/0x350 [ 27.654447] ? __lock_acquire+0x664/0x3e00 [ 27.654451] ? lock_release+0xa40/0xa40 [ 27.654457] ? lock_acquire+0x1d5/0x580 [ 27.654460] ? lock_acquire+0x1d5/0x580 [ 27.654464] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 27.654468] _raw_spin_lock_irqsave+0x96/0xc0 [ 27.654471] ? remove_wait_queue+0x81/0x350 [ 27.654475] remove_wait_queue+0x81/0x350 [ 27.654480] ? add_wait_queue+0x290/0x290 [ 27.654484] ? rcutorture_record_progress+0x10/0x10 [ 27.654490] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 27.654496] ? __kernel_text_address+0xd/0x40 [ 27.654501] ? clear_tfile_check_list+0x370/0x370 [ 27.654506] ? check_noncircular+0x20/0x20 [ 27.654511] ? locks_remove_file+0x3fa/0x5a0 [ 27.654517] ep_free+0x13f/0x320 [ 27.654521] ? ep_remove+0x800/0x800 [ 27.654524] ? fsnotify_first_mark+0x2b0/0x2b0 [ 27.654529] ? ep_free+0x320/0x320 [ 27.654533] ep_eventpoll_release+0x44/0x60 [ 27.654538] __fput+0x327/0x7e0 [ 27.654543] ? fput+0x140/0x140 [ 27.654548] ? _raw_spin_unlock_irq+0x27/0x70 [ 27.654553] ____fput+0x15/0x20 [ 27.654557] task_work_run+0x199/0x270 [ 27.654562] ? task_work_cancel+0x210/0x210 [ 27.654566] ? _raw_spin_unlock+0x22/0x30 [ 27.654570] ? switch_task_namespaces+0x87/0xc0 [ 27.654575] do_exit+0x9bb/0x1ad0 [ 27.654580] ? binder_ioctl+0x521/0x1417 [ 27.654584] ? mm_update_next_owner+0x930/0x930 [ 27.654589] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 27.654595] ? avc_ss_reset+0x110/0x110 [ 27.654598] ? mutex_unlock+0xd/0x10 [ 27.654602] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 27.654614] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 27.654617] ? up_read+0x1a/0x40 [ 27.654621] ? rcu_note_context_switch+0x710/0x710 [ 27.654625] ? __fd_install+0x288/0x740 [ 27.654630] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 27.654634] ? do_vfs_ioctl+0x486/0x1520 [ 27.654637] ? _cond_resched+0x14/0x30 [ 27.654642] ? ioctl_preallocate+0x2b0/0x2b0 [ 27.654646] ? selinux_capable+0x40/0x40 [ 27.654650] ? __alloc_fd+0x750/0x750 [ 27.654655] do_group_exit+0x149/0x400 [ 27.654660] ? SyS_exit+0x30/0x30 [ 27.654664] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.654669] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.654673] SyS_exit_group+0x1d/0x20 [ 27.654677] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 27.654680] RIP: 0033:0x4429f8 [ 27.654682] RSP: 002b:00007fff8c94bdd8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 27.654686] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 27.654688] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 27.654691] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 27.654693] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 27.654695] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 27.654700] [ 27.654702] Allocated by task 3657: [ 27.654706] save_stack+0x43/0xd0 [ 27.654709] kasan_kmalloc+0xad/0xe0 [ 27.654712] kmem_cache_alloc_trace+0x136/0x750 [ 27.654717] binder_get_thread+0x1cf/0x870 [ 27.654720] binder_poll+0x8c/0x390 [ 27.654723] ep_item_poll.isra.10+0xec/0x320 [ 27.654726] ep_insert+0x6a3/0x1b10 [ 27.654729] SyS_epoll_ctl+0x12e4/0x1ab0 [ 27.654732] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 27.654732] [ 27.654734] Freed by task 3657: [ 27.654736] save_stack+0x43/0xd0 [ 27.654739] kasan_slab_free+0x71/0xc0 [ 27.654741] kfree+0xd6/0x260 [ 27.654745] binder_thread_dec_tmpref+0x27f/0x310 [ 27.654748] binder_thread_release+0x27d/0x540 [ 27.654750] binder_ioctl+0xc02/0x1417 [ 27.654753] do_vfs_ioctl+0x1b1/0x1520 [ 27.654756] SyS_ioctl+0x8f/0xc0 [ 27.654759] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 27.654759] [ 27.654762] The buggy address belongs to the object at ffff8801d801d500 [ 27.654762] which belongs to the cache kmalloc-512 of size 512 [ 27.654765] The buggy address is located 176 bytes inside of [ 27.654765] 512-byte region [ffff8801d801d500, ffff8801d801d700) [ 27.654766] The buggy address belongs to the page: [ 27.654769] page:ffffea0007600740 count:1 mapcount:0 mapping:ffff8801d801d000 index:0x0 [ 27.654772] flags: 0x2fffc0000000100(slab) [ 27.654778] raw: 02fffc0000000100 ffff8801d801d000 0000000000000000 0000000100000006 [ 27.654782] raw: ffffea0007669ea0 ffff8801dac01748 ffff8801dac00940 0000000000000000 [ 27.654784] page dumped because: kasan: bad access detected [ 27.654785] [ 27.654786] Memory state around the buggy address: [ 27.654789] ffff8801d801d480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.654791] ffff8801d801d500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.654794] >ffff8801d801d580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.654795] ^ [ 27.654798] ffff8801d801d600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.654800] ffff8801d801d680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.654801] ================================================================== [ 27.654802] Disabling lock debugging due to kernel taint [ 27.654805] Kernel panic - not syncing: panic_on_warn set ... [ 27.654805] [ 27.654809] CPU: 0 PID: 3657 Comm: syzkaller493251 Tainted: G B 4.15.0-rc9+ #281 [ 27.654810] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.654811] Call Trace: [ 27.654815] dump_stack+0x194/0x257 [ 27.654820] ? arch_local_irq_restore+0x53/0x53 [ 27.654823] ? kasan_end_report+0x32/0x50 [ 27.654827] ? lock_downgrade+0x980/0x980 [ 27.654832] ? vsnprintf+0x1ed/0x1900 [ 27.654835] ? __lock_acquire+0x3ca0/0x3e00 [ 27.654839] panic+0x1e4/0x41c [ 27.654842] ? refcount_error_report+0x214/0x214 [ 27.654846] ? add_taint+0x40/0x50 [ 27.654849] ? add_taint+0x1c/0x50 [ 27.654853] ? __lock_acquire+0x3d4d/0x3e00 [ 27.654857] kasan_end_report+0x50/0x50 [ 27.654860] kasan_report+0x144/0x340 [ 27.654865] __asan_report_load8_noabort+0x14/0x20 [ 27.654868] __lock_acquire+0x3d4d/0x3e00 [ 27.654871] ? __lock_acquire+0x664/0x3e00 [ 27.654875] ? lock_downgrade+0x980/0x980 [ 27.654878] ? lock_downgrade+0x980/0x980 [ 27.654888] ? remove_wait_queue+0x81/0x350 [ 27.654894] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 27.654898] ? __lock_acquire+0x664/0x3e00 [ 27.654901] ? check_noncircular+0x20/0x20 [ 27.654907] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 27.654911] ? lock_acquire+0x1d5/0x580 [ 27.654915] ? lock_acquire+0x1d5/0x580 [ 27.654918] ? ep_free+0xf4/0x320 [ 27.654923] ? lock_release+0xa40/0xa40 [ 27.654926] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 27.654930] ? print_irqtrace_events+0x270/0x270 [ 27.654934] ? rcu_note_context_switch+0x710/0x710 [ 27.654938] ? __might_sleep+0x95/0x190 [ 27.654941] ? ep_free+0xf4/0x320 [ 27.654945] ? __mutex_lock+0x16f/0x1a80 [ 27.654948] ? ep_free+0xf4/0x320 [ 27.654952] ? print_irqtrace_events+0x270/0x270 [ 27.654955] ? ep_free+0xf4/0x320 [ 27.654960] lock_acquire+0x1d5/0x580 [ 27.654963] ? lock_acquire+0x1d5/0x580 [ 27.654966] ? remove_wait_queue+0x81/0x350 [ 27.654970] ? __lock_acquire+0x664/0x3e00 [ 27.654974] ? lock_release+0xa40/0xa40 [ 27.654979] ? lock_acquire+0x1d5/0x580 [ 27.654982] ? lock_acquire+0x1d5/0x580 [ 27.654986] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 27.654990] _raw_spin_lock_irqsave+0x96/0xc0 [ 27.654993] ? remove_wait_queue+0x81/0x350 [ 27.654997] remove_wait_queue+0x81/0x350 [ 27.655007] ? add_wait_queue+0x290/0x290 [ 27.655011] ? rcutorture_record_progress+0x10/0x10 [ 27.655016] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 27.655020] ? __kernel_text_address+0xd/0x40 [ 27.655025] ? clear_tfile_check_list+0x370/0x370 [ 27.655029] ? check_noncircular+0x20/0x20 [ 27.655034] ? locks_remove_file+0x3fa/0x5a0 [ 27.655039] ep_free+0x13f/0x320 [ 27.655043] ? ep_remove+0x800/0x800 [ 27.655046] ? fsnotify_first_mark+0x2b0/0x2b0 [ 27.655051] ? ep_free+0x320/0x320 [ 27.655054] ep_eventpoll_release+0x44/0x60 [ 27.655058] __fput+0x327/0x7e0 [ 27.655063] ? fput+0x140/0x140 [ 27.655067] ? _raw_spin_unlock_irq+0x27/0x70 [ 27.655072] ____fput+0x15/0x20 [ 27.655076] task_work_run+0x199/0x270 [ 27.655080] ? task_work_cancel+0x210/0x210 [ 27.655084] ? _raw_spin_unlock+0x22/0x30 [ 27.655088] ? switch_task_namespaces+0x87/0xc0 [ 27.655092] do_exit+0x9bb/0x1ad0 [ 27.655096] ? binder_ioctl+0x521/0x1417 [ 27.655099] ? mm_update_next_owner+0x930/0x930 [ 27.655104] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 27.655108] ? avc_ss_reset+0x110/0x110 [ 27.655112] ? mutex_unlock+0xd/0x10 [ 27.655115] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 27.655126] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 27.655129] ? up_read+0x1a/0x40 [ 27.655133] ? rcu_note_context_switch+0x710/0x710 [ 27.655136] ? __fd_install+0x288/0x740 [ 27.655140] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 27.655143] ? do_vfs_ioctl+0x486/0x1520 [ 27.655147] ? _cond_resched+0x14/0x30 [ 27.655151] ? ioctl_preallocate+0x2b0/0x2b0 [ 27.655155] ? selinux_capable+0x40/0x40 [ 27.655159] ? __alloc_fd+0x750/0x750 [ 27.655164] do_group_exit+0x149/0x400 [ 27.655167] ? SyS_exit+0x30/0x30 [ 27.655171] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.655175] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.655180] SyS_exit_group+0x1d/0x20 [ 27.655183] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 27.655185] RIP: 0033:0x4429f8 [ 27.655187] RSP: 002b:00007fff8c94bdd8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 27.655190] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 27.655192] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 27.655194] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 27.655196] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 27.655198] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 27.674404] Dumping ftrace buffer: [ 27.674407] (ftrace buffer empty) [ 27.674409] Kernel Offset: disabled [ 28.798889] Rebooting in 86400 seconds..