[....] Starting enhanced syslogd: rsyslogd[ 12.821391] audit: type=1400 audit(1515309261.131:5): avc: denied { syslog } for pid=3344 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.162426] audit: type=1400 audit(1515309265.471:6): avc: denied { map } for pid=3484 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.37' (ECDSA) to the list of known hosts. executing program [ 23.384879] audit: type=1400 audit(1515309271.694:7): avc: denied { map } for pid=3498 comm="syzkaller282861" path="/root/syzkaller282861835" 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.391819] ================================================================== [ 23.391836] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 23.391841] Read of size 8 at addr ffff8801c7d1e330 by task syzkaller282861/3498 [ 23.391842] [ 23.391849] CPU: 1 PID: 3498 Comm: syzkaller282861 Not tainted 4.15.0-rc6+ #250 [ 23.391853] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.391856] Call Trace: [ 23.391867] dump_stack+0x194/0x257 [ 23.391875] ? arch_local_irq_restore+0x53/0x53 [ 23.391883] ? show_regs_print_info+0x18/0x18 [ 23.391889] ? print_irqtrace_events+0x270/0x270 [ 23.391895] ? __lock_acquire+0x664/0x3e00 [ 23.391902] ? __lock_acquire+0x3d4d/0x3e00 [ 23.391912] print_address_description+0x73/0x250 [ 23.391918] ? __lock_acquire+0x3d4d/0x3e00 [ 23.391924] kasan_report+0x25b/0x340 [ 23.391933] __asan_report_load8_noabort+0x14/0x20 [ 23.391939] __lock_acquire+0x3d4d/0x3e00 [ 23.391944] ? __lock_acquire+0x664/0x3e00 [ 23.391949] ? lock_downgrade+0x980/0x980 [ 23.391954] ? lock_downgrade+0x980/0x980 [ 23.391964] ? remove_wait_queue+0x81/0x350 [ 23.391973] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.391979] ? __lock_acquire+0x664/0x3e00 [ 23.391984] ? check_noncircular+0x20/0x20 [ 23.391997] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.392008] ? lock_acquire+0x1d5/0x580 [ 23.392014] ? lock_acquire+0x1d5/0x580 [ 23.392022] ? ep_free+0xf4/0x320 [ 23.392030] ? lock_release+0xa40/0xa40 [ 23.392036] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.392042] ? print_irqtrace_events+0x270/0x270 [ 23.392052] ? rcu_note_context_switch+0x710/0x710 [ 23.392059] ? __might_sleep+0x95/0x190 [ 23.392065] ? ep_free+0xf4/0x320 [ 23.392073] ? __mutex_lock+0x16f/0x1a80 [ 23.392078] ? ep_free+0xf4/0x320 [ 23.392085] ? print_irqtrace_events+0x270/0x270 [ 23.392090] ? ep_free+0xf4/0x320 [ 23.392098] lock_acquire+0x1d5/0x580 [ 23.392103] ? lock_acquire+0x1d5/0x580 [ 23.392109] ? remove_wait_queue+0x81/0x350 [ 23.392115] ? __lock_acquire+0x664/0x3e00 [ 23.392122] ? lock_release+0xa40/0xa40 [ 23.392131] ? lock_acquire+0x1d5/0x580 [ 23.392136] ? lock_acquire+0x1d5/0x580 [ 23.392143] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 23.392151] _raw_spin_lock_irqsave+0x96/0xc0 [ 23.392156] ? remove_wait_queue+0x81/0x350 [ 23.392163] remove_wait_queue+0x81/0x350 [ 23.392170] ? add_wait_queue+0x290/0x290 [ 23.392176] ? rcutorture_record_progress+0x10/0x10 [ 23.392186] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 23.392195] ? __kernel_text_address+0xd/0x40 [ 23.392203] ? clear_tfile_check_list+0x370/0x370 [ 23.392210] ? check_noncircular+0x20/0x20 [ 23.392221] ? locks_remove_file+0x3fa/0x5a0 [ 23.392230] ep_free+0x13f/0x320 [ 23.392237] ? ep_remove+0x800/0x800 [ 23.392243] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.392251] ? ep_free+0x320/0x320 [ 23.392257] ep_eventpoll_release+0x44/0x60 [ 23.392265] __fput+0x327/0x7e0 [ 23.392273] ? fput+0x140/0x140 [ 23.392280] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.392289] ____fput+0x15/0x20 [ 23.392295] task_work_run+0x199/0x270 [ 23.392302] ? task_work_cancel+0x210/0x210 [ 23.392309] ? _raw_spin_unlock+0x22/0x30 [ 23.392315] ? switch_task_namespaces+0x87/0xc0 [ 23.392326] do_exit+0x9bb/0x1ad0 [ 23.392334] ? binder_ioctl+0x481/0x1417 [ 23.392340] ? mm_update_next_owner+0x930/0x930 [ 23.392348] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.392358] ? avc_ss_reset+0x110/0x110 [ 23.392363] ? mutex_unlock+0xd/0x10 [ 23.392369] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 23.392389] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.392394] ? up_read+0x1a/0x40 [ 23.392400] ? rcu_note_context_switch+0x710/0x710 [ 23.392406] ? __fd_install+0x288/0x740 [ 23.392415] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.392420] ? do_vfs_ioctl+0x486/0x1520 [ 23.392425] ? _cond_resched+0x14/0x30 [ 23.392433] ? ioctl_preallocate+0x2b0/0x2b0 [ 23.392440] ? selinux_capable+0x40/0x40 [ 23.392447] ? __alloc_fd+0x750/0x750 [ 23.392455] do_group_exit+0x149/0x400 [ 23.392462] ? SyS_exit+0x30/0x30 [ 23.392468] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.392476] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 23.392484] SyS_exit_group+0x1d/0x20 [ 23.392490] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.392495] RIP: 0033:0x4429f8 [ 23.392499] RSP: 002b:00007ffd7930f8d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 23.392505] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 23.392508] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 23.392512] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 23.392515] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 23.392518] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 23.392527] [ 23.392529] Allocated by task 3498: [ 23.392541] save_stack+0x43/0xd0 [ 23.392546] kasan_kmalloc+0xad/0xe0 [ 23.392551] kmem_cache_alloc_trace+0x136/0x750 [ 23.392555] binder_get_thread+0x1cf/0x870 [ 23.392559] binder_poll+0x8c/0x390 [ 23.392564] ep_item_poll.isra.10+0xec/0x320 [ 23.392569] ep_insert+0x6a3/0x1b10 [ 23.392574] SyS_epoll_ctl+0x12e4/0x1ab0 [ 23.392579] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.392580] [ 23.392583] Freed by task 3498: [ 23.392587] save_stack+0x43/0xd0 [ 23.392592] kasan_slab_free+0x71/0xc0 [ 23.392596] kfree+0xd6/0x260 [ 23.392601] binder_thread_dec_tmpref+0x27f/0x310 [ 23.392605] binder_thread_release+0x27d/0x540 [ 23.392609] binder_ioctl+0xc02/0x1417 [ 23.392614] do_vfs_ioctl+0x1b1/0x1520 [ 23.392618] SyS_ioctl+0x8f/0xc0 [ 23.392623] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.392624] [ 23.392629] The buggy address belongs to the object at ffff8801c7d1e280 [ 23.392629] which belongs to the cache kmalloc-512 of size 512 [ 23.392634] The buggy address is located 176 bytes inside of [ 23.392634] 512-byte region [ffff8801c7d1e280, ffff8801c7d1e480) [ 23.392635] The buggy address belongs to the page: [ 23.392640] page:ffffea00071f4780 count:1 mapcount:0 mapping:ffff8801c7d1e000 index:0x0 [ 23.392646] flags: 0x2fffc0000000100(slab) [ 23.392655] raw: 02fffc0000000100 ffff8801c7d1e000 0000000000000000 0000000100000006 [ 23.392661] raw: ffffea00071f0560 ffff8801dac01748 ffff8801dac00940 0000000000000000 [ 23.392664] page dumped because: kasan: bad access detected [ 23.392665] [ 23.392666] Memory state around the buggy address: [ 23.392671] ffff8801c7d1e200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.392675] ffff8801c7d1e280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.392679] >ffff8801c7d1e300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.392681] ^ [ 23.392685] ffff8801c7d1e380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.392689] ffff8801c7d1e400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.392691] ================================================================== [ 23.392693] Disabling lock debugging due to kernel taint [ 23.392696] Kernel panic - not syncing: panic_on_warn set ... [ 23.392696] [ 23.392702] CPU: 1 PID: 3498 Comm: syzkaller282861 Tainted: G B 4.15.0-rc6+ #250 [ 23.392705] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.392707] Call Trace: [ 23.392713] dump_stack+0x194/0x257 [ 23.392720] ? arch_local_irq_restore+0x53/0x53 [ 23.392725] ? kasan_end_report+0x32/0x50 [ 23.392731] ? lock_downgrade+0x980/0x980 [ 23.392738] ? vsnprintf+0x1ed/0x1900 [ 23.392744] ? __lock_acquire+0x3cb0/0x3e00 [ 23.392750] panic+0x1e4/0x41c [ 23.392756] ? refcount_error_report+0x214/0x214 [ 23.392763] ? add_taint+0x40/0x50 [ 23.392768] ? add_taint+0x1c/0x50 [ 23.392775] ? __lock_acquire+0x3d4d/0x3e00 [ 23.392780] kasan_end_report+0x50/0x50 [ 23.392786] kasan_report+0x144/0x340 [ 23.392794] __asan_report_load8_noabort+0x14/0x20 [ 23.392799] __lock_acquire+0x3d4d/0x3e00 [ 23.392805] ? __lock_acquire+0x664/0x3e00 [ 23.392810] ? lock_downgrade+0x980/0x980 [ 23.392816] ? lock_downgrade+0x980/0x980 [ 23.392823] ? remove_wait_queue+0x81/0x350 [ 23.392832] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.392838] ? __lock_acquire+0x664/0x3e00 [ 23.392843] ? check_noncircular+0x20/0x20 [ 23.392855] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.392862] ? lock_acquire+0x1d5/0x580 [ 23.392867] ? lock_acquire+0x1d5/0x580 [ 23.392872] ? ep_free+0xf4/0x320 [ 23.392880] ? lock_release+0xa40/0xa40 [ 23.392886] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.392892] ? print_irqtrace_events+0x270/0x270 [ 23.392898] ? rcu_note_context_switch+0x710/0x710 [ 23.392920] ? __might_sleep+0x95/0x190 [ 23.392926] ? ep_free+0xf4/0x320 [ 23.392931] ? __mutex_lock+0x16f/0x1a80 [ 23.392936] ? ep_free+0xf4/0x320 [ 23.392943] ? print_irqtrace_events+0x270/0x270 [ 23.392948] ? ep_free+0xf4/0x320 [ 23.392956] lock_acquire+0x1d5/0x580 [ 23.392961] ? lock_acquire+0x1d5/0x580 [ 23.392967] ? remove_wait_queue+0x81/0x350 [ 23.392972] ? __lock_acquire+0x664/0x3e00 [ 23.392980] ? lock_release+0xa40/0xa40 [ 23.392988] ? lock_acquire+0x1d5/0x580 [ 23.392993] ? lock_acquire+0x1d5/0x580 [ 23.392999] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 23.393007] _raw_spin_lock_irqsave+0x96/0xc0 [ 23.393012] ? remove_wait_queue+0x81/0x350 [ 23.393018] remove_wait_queue+0x81/0x350 [ 23.393026] ? add_wait_queue+0x290/0x290 [ 23.393031] ? rcutorture_record_progress+0x10/0x10 [ 23.393041] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 23.393047] ? __kernel_text_address+0xd/0x40 [ 23.393055] ? clear_tfile_check_list+0x370/0x370 [ 23.393062] ? check_noncircular+0x20/0x20 [ 23.393070] ? locks_remove_file+0x3fa/0x5a0 [ 23.393079] ep_free+0x13f/0x320 [ 23.393085] ? ep_remove+0x800/0x800 [ 23.393090] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.393098] ? ep_free+0x320/0x320 [ 23.393104] ep_eventpoll_release+0x44/0x60 [ 23.393110] __fput+0x327/0x7e0 [ 23.393118] ? fput+0x140/0x140 [ 23.393124] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.393132] ____fput+0x15/0x20 [ 23.393138] task_work_run+0x199/0x270 [ 23.393146] ? task_work_cancel+0x210/0x210 [ 23.393152] ? _raw_spin_unlock+0x22/0x30 [ 23.393158] ? switch_task_namespaces+0x87/0xc0 [ 23.393165] do_exit+0x9bb/0x1ad0 [ 23.393172] ? binder_ioctl+0x481/0x1417 [ 23.393178] ? mm_update_next_owner+0x930/0x930 [ 23.393185] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.393193] ? avc_ss_reset+0x110/0x110 [ 23.393198] ? mutex_unlock+0xd/0x10 [ 23.393204] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 23.393221] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.393226] ? up_read+0x1a/0x40 [ 23.393233] ? rcu_note_context_switch+0x710/0x710 [ 23.393237] ? __fd_install+0x288/0x740 [ 23.393246] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.393251] ? do_vfs_ioctl+0x486/0x1520 [ 23.393256] ? _cond_resched+0x14/0x30 [ 23.393263] ? ioctl_preallocate+0x2b0/0x2b0 [ 23.393270] ? selinux_capable+0x40/0x40 [ 23.393276] ? __alloc_fd+0x750/0x750 [ 23.393284] do_group_exit+0x149/0x400 [ 23.393291] ? SyS_exit+0x30/0x30 [ 23.393297] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.393303] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 23.393311] SyS_exit_group+0x1d/0x20 [ 23.393317] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.393320] RIP: 0033:0x4429f8 [ 23.393323] RSP: 002b:00007ffd7930f8d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 23.393329] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 23.393332] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 23.393335] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 23.393339] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 23.393341] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 23.411578] Dumping ftrace buffer: [ 23.411582] (ftrace buffer empty) [ 23.411585] Kernel Offset: disabled [ 24.550504] Rebooting in 86400 seconds..