[....] Starting enhanced syslogd: rsyslogd[ 11.858328] audit: type=1400 audit(1515740518.127:5): avc: denied { syslog } for pid=3343 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: [ 18.119769] audit: type=1400 audit(1515740524.388: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.10' (ECDSA) to the list of known hosts. executing program [ 24.345072] audit: type=1400 audit(1515740530.613:7): avc: denied { map } for pid=3498 comm="syzkaller648976" path="/root/syzkaller648976231" 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 [ 24.350718] ================================================================== [ 24.350733] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 24.350738] Read of size 8 at addr ffff8801c5008af0 by task syzkaller648976/3498 [ 24.350739] [ 24.350746] CPU: 0 PID: 3498 Comm: syzkaller648976 Not tainted 4.15.0-rc7+ #258 [ 24.350750] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.350752] Call Trace: [ 24.350761] dump_stack+0x194/0x257 [ 24.350769] ? arch_local_irq_restore+0x53/0x53 [ 24.350776] ? show_regs_print_info+0x18/0x18 [ 24.350782] ? print_irqtrace_events+0x270/0x270 [ 24.350788] ? __lock_acquire+0x664/0x3e00 [ 24.350795] ? __lock_acquire+0x3d4d/0x3e00 [ 24.350803] print_address_description+0x73/0x250 [ 24.350809] ? __lock_acquire+0x3d4d/0x3e00 [ 24.350815] kasan_report+0x25b/0x340 [ 24.350825] __asan_report_load8_noabort+0x14/0x20 [ 24.350831] __lock_acquire+0x3d4d/0x3e00 [ 24.350836] ? __lock_acquire+0x664/0x3e00 [ 24.350842] ? lock_downgrade+0x980/0x980 [ 24.350847] ? lock_downgrade+0x980/0x980 [ 24.350856] ? remove_wait_queue+0x81/0x350 [ 24.350865] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.350871] ? __lock_acquire+0x664/0x3e00 [ 24.350877] ? check_noncircular+0x20/0x20 [ 24.350889] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.350897] ? lock_acquire+0x1d5/0x580 [ 24.350902] ? lock_acquire+0x1d5/0x580 [ 24.350908] ? ep_free+0xf4/0x320 [ 24.350917] ? lock_release+0xa40/0xa40 [ 24.350923] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.350929] ? print_irqtrace_events+0x270/0x270 [ 24.350937] ? rcu_note_context_switch+0x710/0x710 [ 24.350945] ? __might_sleep+0x95/0x190 [ 24.350951] ? ep_free+0xf4/0x320 [ 24.350957] ? __mutex_lock+0x16f/0x1a80 [ 24.350962] ? ep_free+0xf4/0x320 [ 24.350969] ? print_irqtrace_events+0x270/0x270 [ 24.350974] ? ep_free+0xf4/0x320 [ 24.350982] lock_acquire+0x1d5/0x580 [ 24.350987] ? lock_acquire+0x1d5/0x580 [ 24.350993] ? remove_wait_queue+0x81/0x350 [ 24.350999] ? __lock_acquire+0x664/0x3e00 [ 24.351010] ? lock_release+0xa40/0xa40 [ 24.351019] ? lock_acquire+0x1d5/0x580 [ 24.351024] ? lock_acquire+0x1d5/0x580 [ 24.351031] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 24.351039] _raw_spin_lock_irqsave+0x96/0xc0 [ 24.351044] ? remove_wait_queue+0x81/0x350 [ 24.351051] remove_wait_queue+0x81/0x350 [ 24.351059] ? add_wait_queue+0x290/0x290 [ 24.351065] ? rcutorture_record_progress+0x10/0x10 [ 24.351075] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 24.351082] ? __kernel_text_address+0xd/0x40 [ 24.351091] ? clear_tfile_check_list+0x370/0x370 [ 24.351098] ? check_noncircular+0x20/0x20 [ 24.351107] ? locks_remove_file+0x3fa/0x5a0 [ 24.351116] ep_free+0x13f/0x320 [ 24.351123] ? ep_remove+0x800/0x800 [ 24.351129] ? fsnotify_first_mark+0x2b0/0x2b0 [ 24.351136] ? ep_free+0x320/0x320 [ 24.351142] ep_eventpoll_release+0x44/0x60 [ 24.351149] __fput+0x327/0x7e0 [ 24.351157] ? fput+0x140/0x140 [ 24.351164] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.351173] ____fput+0x15/0x20 [ 24.351179] task_work_run+0x199/0x270 [ 24.351187] ? task_work_cancel+0x210/0x210 [ 24.351193] ? _raw_spin_unlock+0x22/0x30 [ 24.351199] ? switch_task_namespaces+0x87/0xc0 [ 24.351208] do_exit+0x9bb/0x1ad0 [ 24.351216] ? binder_ioctl+0x561/0x1417 [ 24.351222] ? mm_update_next_owner+0x930/0x930 [ 24.351230] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.351240] ? avc_ss_reset+0x110/0x110 [ 24.351245] ? mutex_unlock+0xd/0x10 [ 24.351251] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 24.351270] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.351275] ? up_read+0x1a/0x40 [ 24.351282] ? rcu_note_context_switch+0x710/0x710 [ 24.351287] ? __fd_install+0x288/0x740 [ 24.351296] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.351302] ? do_vfs_ioctl+0x486/0x1520 [ 24.351306] ? _cond_resched+0x14/0x30 [ 24.351314] ? ioctl_preallocate+0x2b0/0x2b0 [ 24.351321] ? selinux_capable+0x40/0x40 [ 24.351328] ? __alloc_fd+0x750/0x750 [ 24.351337] do_group_exit+0x149/0x400 [ 24.351344] ? SyS_exit+0x30/0x30 [ 24.351350] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.351358] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.351365] SyS_exit_group+0x1d/0x20 [ 24.351372] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.351376] RIP: 0033:0x4429f8 [ 24.351380] RSP: 002b:00007ffca36df438 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 24.351386] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 24.351389] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 24.351393] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 24.351396] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 24.351399] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 24.351408] [ 24.351411] Allocated by task 3498: [ 24.351417] save_stack+0x43/0xd0 [ 24.351421] kasan_kmalloc+0xad/0xe0 [ 24.351426] kmem_cache_alloc_trace+0x136/0x750 [ 24.351431] binder_get_thread+0x1cf/0x870 [ 24.351435] binder_poll+0x8c/0x390 [ 24.351440] ep_item_poll.isra.10+0xec/0x320 [ 24.351445] ep_insert+0x6a3/0x1b10 [ 24.351450] SyS_epoll_ctl+0x12e4/0x1ab0 [ 24.351455] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.351457] [ 24.351459] Freed by task 3498: [ 24.351463] save_stack+0x43/0xd0 [ 24.351468] kasan_slab_free+0x71/0xc0 [ 24.351472] kfree+0xd6/0x260 [ 24.351477] binder_thread_dec_tmpref+0x27f/0x310 [ 24.351481] binder_thread_release+0x27d/0x540 [ 24.351486] binder_ioctl+0xc02/0x1417 [ 24.351490] do_vfs_ioctl+0x1b1/0x1520 [ 24.351495] SyS_ioctl+0x8f/0xc0 [ 24.351500] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.351501] [ 24.351505] The buggy address belongs to the object at ffff8801c5008a40 [ 24.351505] which belongs to the cache kmalloc-512 of size 512 [ 24.351510] The buggy address is located 176 bytes inside of [ 24.351510] 512-byte region [ffff8801c5008a40, ffff8801c5008c40) [ 24.351512] The buggy address belongs to the page: [ 24.351517] page:ffffea0007140200 count:1 mapcount:0 mapping:ffff8801c5008040 index:0x0 [ 24.351522] flags: 0x2fffc0000000100(slab) [ 24.351530] raw: 02fffc0000000100 ffff8801c5008040 0000000000000000 0000000100000006 [ 24.351536] raw: ffffea0007141ea0 ffff8801dac01748 ffff8801dac00940 0000000000000000 [ 24.351539] page dumped because: kasan: bad access detected [ 24.351540] [ 24.351541] Memory state around the buggy address: [ 24.351546] ffff8801c5008980: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 24.351550] ffff8801c5008a00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 24.351555] >ffff8801c5008a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.351557] ^ [ 24.351561] ffff8801c5008b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.351565] ffff8801c5008b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.351567] ================================================================== [ 24.351569] Disabling lock debugging due to kernel taint [ 24.351572] Kernel panic - not syncing: panic_on_warn set ... [ 24.351572] [ 24.351583] CPU: 0 PID: 3498 Comm: syzkaller648976 Tainted: G B 4.15.0-rc7+ #258 [ 24.351587] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.351588] Call Trace: [ 24.351594] dump_stack+0x194/0x257 [ 24.351601] ? arch_local_irq_restore+0x53/0x53 [ 24.351606] ? kasan_end_report+0x32/0x50 [ 24.351613] ? lock_downgrade+0x980/0x980 [ 24.351620] ? vsnprintf+0x1ed/0x1900 [ 24.351626] ? __lock_acquire+0x3cb0/0x3e00 [ 24.351632] panic+0x1e4/0x41c [ 24.351638] ? refcount_error_report+0x214/0x214 [ 24.351645] ? add_taint+0x40/0x50 [ 24.351650] ? add_taint+0x1c/0x50 [ 24.351657] ? __lock_acquire+0x3d4d/0x3e00 [ 24.351663] kasan_end_report+0x50/0x50 [ 24.351669] kasan_report+0x144/0x340 [ 24.351677] __asan_report_load8_noabort+0x14/0x20 [ 24.351682] __lock_acquire+0x3d4d/0x3e00 [ 24.351688] ? __lock_acquire+0x664/0x3e00 [ 24.351694] ? lock_downgrade+0x980/0x980 [ 24.351699] ? lock_downgrade+0x980/0x980 [ 24.351706] ? remove_wait_queue+0x81/0x350 [ 24.351715] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.351721] ? __lock_acquire+0x664/0x3e00 [ 24.351727] ? check_noncircular+0x20/0x20 [ 24.351739] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.351746] ? lock_acquire+0x1d5/0x580 [ 24.351751] ? lock_acquire+0x1d5/0x580 [ 24.351757] ? ep_free+0xf4/0x320 [ 24.351765] ? lock_release+0xa40/0xa40 [ 24.351771] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.351777] ? print_irqtrace_events+0x270/0x270 [ 24.351783] ? rcu_note_context_switch+0x710/0x710 [ 24.351790] ? __might_sleep+0x95/0x190 [ 24.351796] ? ep_free+0xf4/0x320 [ 24.351802] ? __mutex_lock+0x16f/0x1a80 [ 24.351806] ? ep_free+0xf4/0x320 [ 24.351814] ? print_irqtrace_events+0x270/0x270 [ 24.351818] ? ep_free+0xf4/0x320 [ 24.351827] lock_acquire+0x1d5/0x580 [ 24.351832] ? lock_acquire+0x1d5/0x580 [ 24.351837] ? remove_wait_queue+0x81/0x350 [ 24.351843] ? __lock_acquire+0x664/0x3e00 [ 24.351851] ? lock_release+0xa40/0xa40 [ 24.351860] ? lock_acquire+0x1d5/0x580 [ 24.351865] ? lock_acquire+0x1d5/0x580 [ 24.351871] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 24.351879] _raw_spin_lock_irqsave+0x96/0xc0 [ 24.351884] ? remove_wait_queue+0x81/0x350 [ 24.351891] remove_wait_queue+0x81/0x350 [ 24.351898] ? add_wait_queue+0x290/0x290 [ 24.351904] ? rcutorture_record_progress+0x10/0x10 [ 24.351914] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 24.351920] ? __kernel_text_address+0xd/0x40 [ 24.351928] ? clear_tfile_check_list+0x370/0x370 [ 24.351936] ? check_noncircular+0x20/0x20 [ 24.351944] ? locks_remove_file+0x3fa/0x5a0 [ 24.351953] ep_free+0x13f/0x320 [ 24.351959] ? ep_remove+0x800/0x800 [ 24.351964] ? fsnotify_first_mark+0x2b0/0x2b0 [ 24.351972] ? ep_free+0x320/0x320 [ 24.351978] ep_eventpoll_release+0x44/0x60 [ 24.351984] __fput+0x327/0x7e0 [ 24.351992] ? fput+0x140/0x140 [ 24.351999] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.352007] ____fput+0x15/0x20 [ 24.352013] task_work_run+0x199/0x270 [ 24.352021] ? task_work_cancel+0x210/0x210 [ 24.352028] ? _raw_spin_unlock+0x22/0x30 [ 24.352033] ? switch_task_namespaces+0x87/0xc0 [ 24.352041] do_exit+0x9bb/0x1ad0 [ 24.352048] ? binder_ioctl+0x561/0x1417 [ 24.352054] ? mm_update_next_owner+0x930/0x930 [ 24.352062] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.352070] ? avc_ss_reset+0x110/0x110 [ 24.352075] ? mutex_unlock+0xd/0x10 [ 24.352081] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 24.352098] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.352103] ? up_read+0x1a/0x40 [ 24.352110] ? rcu_note_context_switch+0x710/0x710 [ 24.352115] ? __fd_install+0x288/0x740 [ 24.352123] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.352128] ? do_vfs_ioctl+0x486/0x1520 [ 24.352133] ? _cond_resched+0x14/0x30 [ 24.352140] ? ioctl_preallocate+0x2b0/0x2b0 [ 24.352147] ? selinux_capable+0x40/0x40 [ 24.352154] ? __alloc_fd+0x750/0x750 [ 24.352162] do_group_exit+0x149/0x400 [ 24.352168] ? SyS_exit+0x30/0x30 [ 24.352175] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.352182] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.352189] SyS_exit_group+0x1d/0x20 [ 24.352195] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.352199] RIP: 0033:0x4429f8 [ 24.352202] RSP: 002b:00007ffca36df438 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 24.352207] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 24.352210] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 24.352214] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 24.352217] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 24.352220] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 24.371381] Dumping ftrace buffer: [ 24.371385] (ftrace buffer empty) [ 24.371387] Kernel Offset: disabled [ 25.495863] Rebooting in 86400 seconds..