[....] Starting enhanced syslogd: rsyslogd[ 12.913857] audit: type=1400 audit(1517220053.694:5): avc: denied { syslog } for pid=3529 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.215773] audit: type=1400 audit(1517220059.996:6): avc: denied { map } for pid=3669 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.220' (ECDSA) to the list of known hosts. executing program [ 41.370324] audit: type=1400 audit(1517220082.151:7): avc: denied { map } for pid=3686 comm="syzkaller817077" path="/root/syzkaller817077838" 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 [ 41.375628] ================================================================== [ 41.375640] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 41.375644] Read of size 8 at addr ffff8801d9422d30 by task syzkaller817077/3686 [ 41.375644] [ 41.375650] CPU: 0 PID: 3686 Comm: syzkaller817077 Not tainted 4.15.0-rc9+ #284 [ 41.375652] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.375654] Call Trace: [ 41.375662] dump_stack+0x194/0x257 [ 41.375669] ? arch_local_irq_restore+0x53/0x53 [ 41.375676] ? show_regs_print_info+0x18/0x18 [ 41.375680] ? print_irqtrace_events+0x270/0x270 [ 41.375685] ? __lock_acquire+0x664/0x3e00 [ 41.375691] ? __lock_acquire+0x3d4d/0x3e00 [ 41.375699] print_address_description+0x73/0x250 [ 41.375703] ? __lock_acquire+0x3d4d/0x3e00 [ 41.375709] kasan_report+0x25b/0x340 [ 41.375716] __asan_report_load8_noabort+0x14/0x20 [ 41.375720] __lock_acquire+0x3d4d/0x3e00 [ 41.375725] ? __lock_acquire+0x664/0x3e00 [ 41.375730] ? lock_downgrade+0x980/0x980 [ 41.375734] ? lock_downgrade+0x980/0x980 [ 41.375743] ? remove_wait_queue+0x81/0x350 [ 41.375756] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 41.375763] ? __lock_acquire+0x664/0x3e00 [ 41.375766] ? check_noncircular+0x20/0x20 [ 41.375774] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 41.375778] ? lock_acquire+0x1d5/0x580 [ 41.375782] ? lock_acquire+0x1d5/0x580 [ 41.375786] ? ep_free+0xf4/0x320 [ 41.375792] ? lock_release+0xa40/0xa40 [ 41.375797] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 41.375800] ? print_irqtrace_events+0x270/0x270 [ 41.375806] ? rcu_note_context_switch+0x710/0x710 [ 41.375811] ? __might_sleep+0x95/0x190 [ 41.375814] ? ep_free+0xf4/0x320 [ 41.375819] ? __mutex_lock+0x16f/0x1a80 [ 41.375822] ? ep_free+0xf4/0x320 [ 41.375827] ? print_irqtrace_events+0x270/0x270 [ 41.375830] ? ep_free+0xf4/0x320 [ 41.375837] lock_acquire+0x1d5/0x580 [ 41.375841] ? lock_acquire+0x1d5/0x580 [ 41.375846] ? remove_wait_queue+0x81/0x350 [ 41.375850] ? __lock_acquire+0x664/0x3e00 [ 41.375854] ? lock_release+0xa40/0xa40 [ 41.375860] ? lock_acquire+0x1d5/0x580 [ 41.375863] ? lock_acquire+0x1d5/0x580 [ 41.375867] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 41.375873] _raw_spin_lock_irqsave+0x96/0xc0 [ 41.375877] ? remove_wait_queue+0x81/0x350 [ 41.375880] remove_wait_queue+0x81/0x350 [ 41.375885] ? add_wait_queue+0x290/0x290 [ 41.375889] ? rcutorture_record_progress+0x10/0x10 [ 41.375895] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 41.375901] ? __kernel_text_address+0xd/0x40 [ 41.375906] ? clear_tfile_check_list+0x370/0x370 [ 41.375911] ? check_noncircular+0x20/0x20 [ 41.375917] ? locks_remove_file+0x3fa/0x5a0 [ 41.375923] ep_free+0x13f/0x320 [ 41.375927] ? ep_remove+0x800/0x800 [ 41.375930] ? fsnotify_first_mark+0x2b0/0x2b0 [ 41.375935] ? ep_free+0x320/0x320 [ 41.375939] ep_eventpoll_release+0x44/0x60 [ 41.375945] __fput+0x327/0x7e0 [ 41.375950] ? fput+0x140/0x140 [ 41.375954] ? _raw_spin_unlock_irq+0x27/0x70 [ 41.375959] ____fput+0x15/0x20 [ 41.375969] task_work_run+0x199/0x270 [ 41.375974] ? task_work_cancel+0x210/0x210 [ 41.375977] ? _raw_spin_unlock+0x22/0x30 [ 41.375982] ? switch_task_namespaces+0x87/0xc0 [ 41.375988] do_exit+0x9bb/0x1ad0 [ 41.375995] ? binder_ioctl+0x4c1/0x1417 [ 41.375998] ? mm_update_next_owner+0x930/0x930 [ 41.376003] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 41.376010] ? avc_ss_reset+0x110/0x110 [ 41.376013] ? mutex_unlock+0xd/0x10 [ 41.376017] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 41.376029] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 41.376032] ? up_read+0x1a/0x40 [ 41.376036] ? rcu_note_context_switch+0x710/0x710 [ 41.376041] ? __fd_install+0x288/0x740 [ 41.376046] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 41.376050] ? do_vfs_ioctl+0x486/0x1520 [ 41.376052] ? _cond_resched+0x14/0x30 [ 41.376057] ? ioctl_preallocate+0x2b0/0x2b0 [ 41.376062] ? selinux_capable+0x40/0x40 [ 41.376066] ? __alloc_fd+0x750/0x750 [ 41.376071] do_group_exit+0x149/0x400 [ 41.376075] ? SyS_exit+0x30/0x30 [ 41.376079] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 41.376086] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 41.376090] SyS_exit_group+0x1d/0x20 [ 41.376095] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 41.376098] RIP: 0033:0x4429f8 [ 41.376100] RSP: 002b:00007ffe0edeefb8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 41.376104] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 41.376106] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 41.376108] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 41.376110] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 41.376112] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 41.376118] [ 41.376120] Allocated by task 3686: [ 41.376124] save_stack+0x43/0xd0 [ 41.376127] kasan_kmalloc+0xad/0xe0 [ 41.376130] kmem_cache_alloc_trace+0x136/0x750 [ 41.376132] binder_get_thread+0x1cf/0x870 [ 41.376135] binder_poll+0x8c/0x390 [ 41.376138] ep_item_poll.isra.10+0xec/0x320 [ 41.376141] ep_insert+0x6a3/0x1b10 [ 41.376144] SyS_epoll_ctl+0x12e4/0x1ab0 [ 41.376147] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 41.376148] [ 41.376149] Freed by task 3686: [ 41.376152] save_stack+0x43/0xd0 [ 41.376154] kasan_slab_free+0x71/0xc0 [ 41.376157] kfree+0xd6/0x260 [ 41.376161] binder_thread_dec_tmpref+0x27f/0x310 [ 41.376164] binder_thread_release+0x27d/0x540 [ 41.376166] binder_ioctl+0xc02/0x1417 [ 41.376169] do_vfs_ioctl+0x1b1/0x1520 [ 41.376171] SyS_ioctl+0x8f/0xc0 [ 41.376175] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 41.376175] [ 41.376178] The buggy address belongs to the object at ffff8801d9422c80 [ 41.376178] which belongs to the cache kmalloc-512 of size 512 [ 41.376181] The buggy address is located 176 bytes inside of [ 41.376181] 512-byte region [ffff8801d9422c80, ffff8801d9422e80) [ 41.376182] The buggy address belongs to the page: [ 41.376185] page:ffffea0007650880 count:1 mapcount:0 mapping:ffff8801d9422000 index:0x0 [ 41.376189] flags: 0x2fffc0000000100(slab) [ 41.376194] raw: 02fffc0000000100 ffff8801d9422000 0000000000000000 0000000100000006 [ 41.376198] raw: ffffea00076564a0 ffff8801dac01748 ffff8801dac00940 0000000000000000 [ 41.376200] page dumped because: kasan: bad access detected [ 41.376200] [ 41.376201] Memory state around the buggy address: [ 41.376204] ffff8801d9422c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 41.376207] ffff8801d9422c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.376209] >ffff8801d9422d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.376210] ^ [ 41.376213] ffff8801d9422d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.376215] ffff8801d9422e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.376216] ================================================================== [ 41.376217] Disabling lock debugging due to kernel taint [ 41.376220] Kernel panic - not syncing: panic_on_warn set ... [ 41.376220] [ 41.376224] CPU: 0 PID: 3686 Comm: syzkaller817077 Tainted: G B 4.15.0-rc9+ #284 [ 41.376226] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.376227] Call Trace: [ 41.376231] dump_stack+0x194/0x257 [ 41.376235] ? arch_local_irq_restore+0x53/0x53 [ 41.376238] ? kasan_end_report+0x32/0x50 [ 41.376242] ? lock_downgrade+0x980/0x980 [ 41.376246] ? vsnprintf+0x1ed/0x1900 [ 41.376250] ? __lock_acquire+0x3cd0/0x3e00 [ 41.376253] panic+0x1e4/0x41c [ 41.376257] ? refcount_error_report+0x214/0x214 [ 41.376261] ? add_taint+0x40/0x50 [ 41.376264] ? add_taint+0x1c/0x50 [ 41.376268] ? __lock_acquire+0x3d4d/0x3e00 [ 41.376271] kasan_end_report+0x50/0x50 [ 41.376275] kasan_report+0x144/0x340 [ 41.376279] __asan_report_load8_noabort+0x14/0x20 [ 41.376283] __lock_acquire+0x3d4d/0x3e00 [ 41.376286] ? __lock_acquire+0x664/0x3e00 [ 41.376289] ? lock_downgrade+0x980/0x980 [ 41.376293] ? lock_downgrade+0x980/0x980 [ 41.376297] ? remove_wait_queue+0x81/0x350 [ 41.376302] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 41.376306] ? __lock_acquire+0x664/0x3e00 [ 41.376309] ? check_noncircular+0x20/0x20 [ 41.376316] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 41.376320] ? lock_acquire+0x1d5/0x580 [ 41.376323] ? lock_acquire+0x1d5/0x580 [ 41.376326] ? ep_free+0xf4/0x320 [ 41.376331] ? lock_release+0xa40/0xa40 [ 41.376334] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 41.376338] ? print_irqtrace_events+0x270/0x270 [ 41.376341] ? rcu_note_context_switch+0x710/0x710 [ 41.376346] ? __might_sleep+0x95/0x190 [ 41.376349] ? ep_free+0xf4/0x320 [ 41.376352] ? __mutex_lock+0x16f/0x1a80 [ 41.376355] ? ep_free+0xf4/0x320 [ 41.376359] ? print_irqtrace_events+0x270/0x270 [ 41.376362] ? ep_free+0xf4/0x320 [ 41.376367] lock_acquire+0x1d5/0x580 [ 41.376370] ? lock_acquire+0x1d5/0x580 [ 41.376373] ? remove_wait_queue+0x81/0x350 [ 41.376377] ? __lock_acquire+0x664/0x3e00 [ 41.376381] ? lock_release+0xa40/0xa40 [ 41.376386] ? lock_acquire+0x1d5/0x580 [ 41.376389] ? lock_acquire+0x1d5/0x580 [ 41.376393] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 41.376397] _raw_spin_lock_irqsave+0x96/0xc0 [ 41.376400] ? remove_wait_queue+0x81/0x350 [ 41.376404] remove_wait_queue+0x81/0x350 [ 41.376409] ? add_wait_queue+0x290/0x290 [ 41.376412] ? rcutorture_record_progress+0x10/0x10 [ 41.376418] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 41.376422] ? __kernel_text_address+0xd/0x40 [ 41.376427] ? clear_tfile_check_list+0x370/0x370 [ 41.376431] ? check_noncircular+0x20/0x20 [ 41.376436] ? locks_remove_file+0x3fa/0x5a0 [ 41.376441] ep_free+0x13f/0x320 [ 41.376445] ? ep_remove+0x800/0x800 [ 41.376448] ? fsnotify_first_mark+0x2b0/0x2b0 [ 41.376452] ? ep_free+0x320/0x320 [ 41.376456] ep_eventpoll_release+0x44/0x60 [ 41.376459] __fput+0x327/0x7e0 [ 41.376464] ? fput+0x140/0x140 [ 41.376468] ? _raw_spin_unlock_irq+0x27/0x70 [ 41.376473] ____fput+0x15/0x20 [ 41.376477] task_work_run+0x199/0x270 [ 41.376481] ? task_work_cancel+0x210/0x210 [ 41.376485] ? _raw_spin_unlock+0x22/0x30 [ 41.376488] ? switch_task_namespaces+0x87/0xc0 [ 41.376492] do_exit+0x9bb/0x1ad0 [ 41.376496] ? binder_ioctl+0x4c1/0x1417 [ 41.376500] ? mm_update_next_owner+0x930/0x930 [ 41.376504] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 41.376509] ? avc_ss_reset+0x110/0x110 [ 41.376512] ? mutex_unlock+0xd/0x10 [ 41.376515] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 41.376525] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 41.376528] ? up_read+0x1a/0x40 [ 41.376532] ? rcu_note_context_switch+0x710/0x710 [ 41.376535] ? __fd_install+0x288/0x740 [ 41.376540] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 41.376543] ? do_vfs_ioctl+0x486/0x1520 [ 41.376545] ? _cond_resched+0x14/0x30 [ 41.376550] ? ioctl_preallocate+0x2b0/0x2b0 [ 41.376554] ? selinux_capable+0x40/0x40 [ 41.376558] ? __alloc_fd+0x750/0x750 [ 41.376562] do_group_exit+0x149/0x400 [ 41.376566] ? SyS_exit+0x30/0x30 [ 41.376570] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 41.376574] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 41.376578] SyS_exit_group+0x1d/0x20 [ 41.376582] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 41.376584] RIP: 0033:0x4429f8 [ 41.376586] RSP: 002b:00007ffe0edeefb8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 41.376589] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 41.376591] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 41.376593] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 41.376595] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 41.376597] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 41.396543] Dumping ftrace buffer: [ 41.396546] (ftrace buffer empty) [ 41.396548] Kernel Offset: disabled [ 42.521305] Rebooting in 86400 seconds..