[....] Starting enhanced syslogd: rsyslogd[ 12.644958] audit: type=1400 audit(1515175649.350:5): avc: denied { syslog } for pid=3339 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.103692] audit: type=1400 audit(1515175653.809:6): avc: denied { map } for pid=3478 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.243' (ECDSA) to the list of known hosts. executing program [ 23.329386] audit: type=1400 audit(1515175660.035:7): avc: denied { map } for pid=3493 comm="syzkaller162825" path="/root/syzkaller162825708" 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.333834] ================================================================== [ 23.333845] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 23.333849] Read of size 8 at addr ffff8801ce5e2370 by task syzkaller162825/3493 [ 23.333850] [ 23.333855] CPU: 0 PID: 3493 Comm: syzkaller162825 Not tainted 4.15.0-rc6+ #248 [ 23.333857] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.333859] Call Trace: [ 23.333866] dump_stack+0x194/0x257 [ 23.333871] ? arch_local_irq_restore+0x53/0x53 [ 23.333877] ? show_regs_print_info+0x18/0x18 [ 23.333880] ? print_irqtrace_events+0x270/0x270 [ 23.333884] ? __lock_acquire+0x664/0x3e00 [ 23.333888] ? __lock_acquire+0x3d4d/0x3e00 [ 23.333895] print_address_description+0x73/0x250 [ 23.333899] ? __lock_acquire+0x3d4d/0x3e00 [ 23.333903] kasan_report+0x25b/0x340 [ 23.333908] __asan_report_load8_noabort+0x14/0x20 [ 23.333912] __lock_acquire+0x3d4d/0x3e00 [ 23.333915] ? __lock_acquire+0x664/0x3e00 [ 23.333919] ? lock_downgrade+0x980/0x980 [ 23.333922] ? lock_downgrade+0x980/0x980 [ 23.333928] ? remove_wait_queue+0x81/0x350 [ 23.333934] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.333938] ? __lock_acquire+0x664/0x3e00 [ 23.333941] ? check_noncircular+0x20/0x20 [ 23.333949] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.333953] ? lock_acquire+0x1d5/0x580 [ 23.333957] ? lock_acquire+0x1d5/0x580 [ 23.333963] ? ep_free+0xf4/0x320 [ 23.333968] ? lock_release+0xa40/0xa40 [ 23.333973] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.333977] ? print_irqtrace_events+0x270/0x270 [ 23.333983] ? rcu_note_context_switch+0x710/0x710 [ 23.333988] ? __might_sleep+0x95/0x190 [ 23.333992] ? ep_free+0xf4/0x320 [ 23.333997] ? __mutex_lock+0x16f/0x1a80 [ 23.333999] ? ep_free+0xf4/0x320 [ 23.334008] ? print_irqtrace_events+0x270/0x270 [ 23.334011] ? ep_free+0xf4/0x320 [ 23.334016] lock_acquire+0x1d5/0x580 [ 23.334019] ? lock_acquire+0x1d5/0x580 [ 23.334022] ? remove_wait_queue+0x81/0x350 [ 23.334026] ? __lock_acquire+0x664/0x3e00 [ 23.334030] ? lock_release+0xa40/0xa40 [ 23.334036] ? lock_acquire+0x1d5/0x580 [ 23.334039] ? lock_acquire+0x1d5/0x580 [ 23.334043] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 23.334048] _raw_spin_lock_irqsave+0x96/0xc0 [ 23.334052] ? remove_wait_queue+0x81/0x350 [ 23.334056] remove_wait_queue+0x81/0x350 [ 23.334060] ? add_wait_queue+0x290/0x290 [ 23.334064] ? rcutorture_record_progress+0x10/0x10 [ 23.334070] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 23.334075] ? __kernel_text_address+0xd/0x40 [ 23.334080] ? clear_tfile_check_list+0x370/0x370 [ 23.334085] ? check_noncircular+0x20/0x20 [ 23.334091] ? locks_remove_file+0x3fa/0x5a0 [ 23.334097] ep_free+0x13f/0x320 [ 23.334101] ? ep_remove+0x800/0x800 [ 23.334105] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.334109] ? ep_free+0x320/0x320 [ 23.334113] ep_eventpoll_release+0x44/0x60 [ 23.334118] __fput+0x327/0x7e0 [ 23.334124] ? fput+0x140/0x140 [ 23.334128] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.334133] ____fput+0x15/0x20 [ 23.334137] task_work_run+0x199/0x270 [ 23.334142] ? task_work_cancel+0x210/0x210 [ 23.334145] ? _raw_spin_unlock+0x22/0x30 [ 23.334150] ? switch_task_namespaces+0x87/0xc0 [ 23.334156] do_exit+0x9bb/0x1ad0 [ 23.334163] ? binder_ioctl+0x551/0x1417 [ 23.334167] ? mm_update_next_owner+0x930/0x930 [ 23.334172] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.334179] ? avc_ss_reset+0x110/0x110 [ 23.334182] ? mutex_unlock+0xd/0x10 [ 23.334185] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 23.334198] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.334201] ? up_read+0x1a/0x40 [ 23.334205] ? rcu_note_context_switch+0x710/0x710 [ 23.334208] ? __fd_install+0x288/0x740 [ 23.334214] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.334217] ? do_vfs_ioctl+0x486/0x1520 [ 23.334220] ? _cond_resched+0x14/0x30 [ 23.334225] ? ioctl_preallocate+0x2b0/0x2b0 [ 23.334230] ? selinux_capable+0x40/0x40 [ 23.334234] ? __alloc_fd+0x750/0x750 [ 23.334239] do_group_exit+0x149/0x400 [ 23.334243] ? SyS_exit+0x30/0x30 [ 23.334247] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.334252] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 23.334256] SyS_exit_group+0x1d/0x20 [ 23.334260] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.334264] RIP: 0033:0x4429f8 [ 23.334266] RSP: 002b:00007ffcab9c0cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 23.334270] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 23.334272] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 23.334274] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 23.334276] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 23.334278] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 23.334283] [ 23.334285] Allocated by task 3493: [ 23.334289] save_stack+0x43/0xd0 [ 23.334291] kasan_kmalloc+0xad/0xe0 [ 23.334295] kmem_cache_alloc_trace+0x136/0x750 [ 23.334297] binder_get_thread+0x1cf/0x870 [ 23.334300] binder_poll+0x8c/0x390 [ 23.334303] ep_item_poll.isra.10+0xec/0x320 [ 23.334306] ep_insert+0x6a3/0x1b10 [ 23.334309] SyS_epoll_ctl+0x12e4/0x1ab0 [ 23.334312] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.334313] [ 23.334314] Freed by task 3493: [ 23.334317] save_stack+0x43/0xd0 [ 23.334320] kasan_slab_free+0x71/0xc0 [ 23.334322] kfree+0xd6/0x260 [ 23.334325] binder_thread_dec_tmpref+0x27f/0x310 [ 23.334328] binder_thread_release+0x27d/0x540 [ 23.334330] binder_ioctl+0xc02/0x1417 [ 23.334333] do_vfs_ioctl+0x1b1/0x1520 [ 23.334336] SyS_ioctl+0x8f/0xc0 [ 23.334339] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.334339] [ 23.334342] The buggy address belongs to the object at ffff8801ce5e22c0 [ 23.334342] which belongs to the cache kmalloc-512 of size 512 [ 23.334345] The buggy address is located 176 bytes inside of [ 23.334345] 512-byte region [ffff8801ce5e22c0, ffff8801ce5e24c0) [ 23.334346] The buggy address belongs to the page: [ 23.334350] page:0000000018b2b5ce count:1 mapcount:0 mapping:0000000099dd1e82 index:0x0 [ 23.334353] flags: 0x2fffc0000000100(slab) [ 23.334359] raw: 02fffc0000000100 ffff8801ce5e2040 0000000000000000 0000000100000006 [ 23.334363] raw: ffffea0007231620 ffffea000723c720 ffff8801dac00940 0000000000000000 [ 23.334365] page dumped because: kasan: bad access detected [ 23.334366] [ 23.334366] Memory state around the buggy address: [ 23.334370] ffff8801ce5e2200: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 23.334372] ffff8801ce5e2280: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 23.334375] >ffff8801ce5e2300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.334376] ^ [ 23.334379] ffff8801ce5e2380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.334381] ffff8801ce5e2400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.334382] ================================================================== [ 23.334383] Disabling lock debugging due to kernel taint [ 23.334386] Kernel panic - not syncing: panic_on_warn set ... [ 23.334386] [ 23.334390] CPU: 0 PID: 3493 Comm: syzkaller162825 Tainted: G B 4.15.0-rc6+ #248 [ 23.334392] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.334393] Call Trace: [ 23.334396] dump_stack+0x194/0x257 [ 23.334401] ? arch_local_irq_restore+0x53/0x53 [ 23.334404] ? kasan_end_report+0x32/0x50 [ 23.334408] ? lock_downgrade+0x980/0x980 [ 23.334412] ? vsnprintf+0x1ed/0x1900 [ 23.334416] ? __lock_acquire+0x3cb0/0x3e00 [ 23.334419] panic+0x1e4/0x41c [ 23.334423] ? refcount_error_report+0x214/0x214 [ 23.334427] ? add_taint+0x40/0x50 [ 23.334430] ? add_taint+0x1c/0x50 [ 23.334434] ? __lock_acquire+0x3d4d/0x3e00 [ 23.334438] kasan_end_report+0x50/0x50 [ 23.334441] kasan_report+0x144/0x340 [ 23.334446] __asan_report_load8_noabort+0x14/0x20 [ 23.334449] __lock_acquire+0x3d4d/0x3e00 [ 23.334453] ? __lock_acquire+0x664/0x3e00 [ 23.334456] ? lock_downgrade+0x980/0x980 [ 23.334459] ? lock_downgrade+0x980/0x980 [ 23.334469] ? remove_wait_queue+0x81/0x350 [ 23.334474] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.334478] ? __lock_acquire+0x664/0x3e00 [ 23.334481] ? check_noncircular+0x20/0x20 [ 23.334487] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.334491] ? lock_acquire+0x1d5/0x580 [ 23.334495] ? lock_acquire+0x1d5/0x580 [ 23.334498] ? ep_free+0xf4/0x320 [ 23.334502] ? lock_release+0xa40/0xa40 [ 23.334506] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.334510] ? print_irqtrace_events+0x270/0x270 [ 23.334513] ? rcu_note_context_switch+0x710/0x710 [ 23.334518] ? __might_sleep+0x95/0x190 [ 23.334521] ? ep_free+0xf4/0x320 [ 23.334524] ? __mutex_lock+0x16f/0x1a80 [ 23.334527] ? ep_free+0xf4/0x320 [ 23.334531] ? print_irqtrace_events+0x270/0x270 [ 23.334534] ? ep_free+0xf4/0x320 [ 23.334539] lock_acquire+0x1d5/0x580 [ 23.334542] ? lock_acquire+0x1d5/0x580 [ 23.334545] ? remove_wait_queue+0x81/0x350 [ 23.334549] ? __lock_acquire+0x664/0x3e00 [ 23.334553] ? lock_release+0xa40/0xa40 [ 23.334558] ? lock_acquire+0x1d5/0x580 [ 23.334561] ? lock_acquire+0x1d5/0x580 [ 23.334565] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 23.334569] _raw_spin_lock_irqsave+0x96/0xc0 [ 23.334573] ? remove_wait_queue+0x81/0x350 [ 23.334576] remove_wait_queue+0x81/0x350 [ 23.334581] ? add_wait_queue+0x290/0x290 [ 23.334584] ? rcutorture_record_progress+0x10/0x10 [ 23.334590] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 23.334594] ? __kernel_text_address+0xd/0x40 [ 23.334598] ? clear_tfile_check_list+0x370/0x370 [ 23.334603] ? check_noncircular+0x20/0x20 [ 23.334607] ? locks_remove_file+0x3fa/0x5a0 [ 23.334612] ep_free+0x13f/0x320 [ 23.334616] ? ep_remove+0x800/0x800 [ 23.334619] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.334624] ? ep_free+0x320/0x320 [ 23.334627] ep_eventpoll_release+0x44/0x60 [ 23.334631] __fput+0x327/0x7e0 [ 23.334636] ? fput+0x140/0x140 [ 23.334640] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.334644] ____fput+0x15/0x20 [ 23.334648] task_work_run+0x199/0x270 [ 23.334653] ? task_work_cancel+0x210/0x210 [ 23.334656] ? _raw_spin_unlock+0x22/0x30 [ 23.334660] ? switch_task_namespaces+0x87/0xc0 [ 23.334664] do_exit+0x9bb/0x1ad0 [ 23.334668] ? binder_ioctl+0x551/0x1417 [ 23.334672] ? mm_update_next_owner+0x930/0x930 [ 23.334676] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.334681] ? avc_ss_reset+0x110/0x110 [ 23.334684] ? mutex_unlock+0xd/0x10 [ 23.334687] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 23.334697] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.334700] ? up_read+0x1a/0x40 [ 23.334704] ? rcu_note_context_switch+0x710/0x710 [ 23.334707] ? __fd_install+0x288/0x740 [ 23.334712] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.334715] ? do_vfs_ioctl+0x486/0x1520 [ 23.334718] ? _cond_resched+0x14/0x30 [ 23.334722] ? ioctl_preallocate+0x2b0/0x2b0 [ 23.334726] ? selinux_capable+0x40/0x40 [ 23.334730] ? __alloc_fd+0x750/0x750 [ 23.334734] do_group_exit+0x149/0x400 [ 23.334738] ? SyS_exit+0x30/0x30 [ 23.334742] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.334746] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 23.334750] SyS_exit_group+0x1d/0x20 [ 23.334754] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.334756] RIP: 0033:0x4429f8 [ 23.334758] RSP: 002b:00007ffcab9c0cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 23.334762] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 23.334764] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 23.334766] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 23.334768] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 23.334769] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 23.355262] Dumping ftrace buffer: [ 23.355266] (ftrace buffer empty) [ 23.355268] Kernel Offset: disabled [ 24.479355] Rebooting in 86400 seconds..