[....] Starting enhanced syslogd: rsyslogd[ 10.453478] audit: type=1400 audit(1514841371.558:5): avc: denied { syslog } for pid=2992 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: [ 12.910493] audit: type=1400 audit(1514841374.015:6): avc: denied { map } for pid=3131 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.31' (ECDSA) to the list of known hosts. executing program [ 19.070967] audit: type=1400 audit(1514841380.175:7): avc: denied { map } for pid=3145 comm="syzkaller283374" path="/root/syzkaller283374560" 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 [ 19.075283] ================================================================== [ 19.075297] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 19.075302] Read of size 8 at addr ffff8801c9443d78 by task syzkaller283374/3145 [ 19.075303] [ 19.075311] CPU: 1 PID: 3145 Comm: syzkaller283374 Not tainted 4.15.0-rc4-next-20171221+ #78 [ 19.075314] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 19.075316] Call Trace: [ 19.075324] dump_stack+0x194/0x257 [ 19.075331] ? arch_local_irq_restore+0x53/0x53 [ 19.075339] ? show_regs_print_info+0x18/0x18 [ 19.075345] ? print_irqtrace_events+0x270/0x270 [ 19.075351] ? __lock_acquire+0x664/0x3e00 [ 19.075358] ? __lock_acquire+0x3d4d/0x3e00 [ 19.075366] print_address_description+0x73/0x250 [ 19.075372] ? __lock_acquire+0x3d4d/0x3e00 [ 19.075378] kasan_report+0x25b/0x340 [ 19.075386] __asan_report_load8_noabort+0x14/0x20 [ 19.075392] __lock_acquire+0x3d4d/0x3e00 [ 19.075398] ? __lock_acquire+0x664/0x3e00 [ 19.075403] ? lock_downgrade+0x980/0x980 [ 19.075409] ? lock_downgrade+0x980/0x980 [ 19.075417] ? remove_wait_queue+0x81/0x350 [ 19.075426] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 19.075433] ? __lock_acquire+0x664/0x3e00 [ 19.075438] ? check_noncircular+0x20/0x20 [ 19.075451] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 19.075458] ? lock_acquire+0x1d5/0x580 [ 19.075463] ? lock_acquire+0x1d5/0x580 [ 19.075469] ? ep_free+0xf4/0x320 [ 19.075478] ? lock_release+0xa40/0xa40 [ 19.075485] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 19.075491] ? print_irqtrace_events+0x270/0x270 [ 19.075498] ? rcu_note_context_switch+0x710/0x710 [ 19.075505] ? __might_sleep+0x95/0x190 [ 19.075512] ? ep_free+0xf4/0x320 [ 19.075518] ? __mutex_lock+0x16f/0x1a80 [ 19.075523] ? ep_free+0xf4/0x320 [ 19.075530] ? print_irqtrace_events+0x270/0x270 [ 19.075535] ? ep_free+0xf4/0x320 [ 19.075543] lock_acquire+0x1d5/0x580 [ 19.075549] ? lock_acquire+0x1d5/0x580 [ 19.075555] ? remove_wait_queue+0x81/0x350 [ 19.075561] ? __lock_acquire+0x664/0x3e00 [ 19.075568] ? lock_release+0xa40/0xa40 [ 19.075577] ? lock_acquire+0x1d5/0x580 [ 19.075583] ? lock_acquire+0x1d5/0x580 [ 19.075589] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 19.075596] _raw_spin_lock_irqsave+0x96/0xc0 [ 19.075602] ? remove_wait_queue+0x81/0x350 [ 19.075608] remove_wait_queue+0x81/0x350 [ 19.075616] ? add_wait_queue+0x290/0x290 [ 19.075622] ? rcutorture_record_progress+0x10/0x10 [ 19.075632] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 19.075639] ? __kernel_text_address+0xd/0x40 [ 19.075647] ? clear_tfile_check_list+0x370/0x370 [ 19.075654] ? check_noncircular+0x20/0x20 [ 19.075663] ? locks_remove_file+0x3fa/0x5a0 [ 19.075672] ep_free+0x13f/0x320 [ 19.075678] ? ep_remove+0x800/0x800 [ 19.075684] ? fsnotify_first_mark+0x2b0/0x2b0 [ 19.075691] ? ep_free+0x320/0x320 [ 19.075697] ep_eventpoll_release+0x44/0x60 [ 19.075703] __fput+0x327/0x7e0 [ 19.075716] ? fput+0x140/0x140 [ 19.075723] ? _raw_spin_unlock_irq+0x27/0x70 [ 19.075731] ____fput+0x15/0x20 [ 19.075738] task_work_run+0x199/0x270 [ 19.075745] ? task_work_cancel+0x210/0x210 [ 19.075751] ? _raw_spin_unlock+0x22/0x30 [ 19.075758] ? switch_task_namespaces+0x87/0xc0 [ 19.075766] do_exit+0x9bb/0x1ad0 [ 19.075776] ? binder_ioctl+0x491/0x1417 [ 19.075782] ? mm_update_next_owner+0x930/0x930 [ 19.075789] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 19.075799] ? avc_ss_reset+0x110/0x110 [ 19.075805] ? mutex_unlock+0xd/0x10 [ 19.075811] ? SyS_epoll_ctl+0x30a/0x1a80 [ 19.075831] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 19.075835] ? up_read+0x1a/0x40 [ 19.075842] ? rcu_note_context_switch+0x710/0x710 [ 19.075847] ? __fd_install+0x288/0x740 [ 19.075856] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 19.075862] ? do_vfs_ioctl+0x486/0x1520 [ 19.075868] ? _cond_resched+0x14/0x30 [ 19.075875] ? ioctl_preallocate+0x2b0/0x2b0 [ 19.075883] ? selinux_capable+0x40/0x40 [ 19.075889] ? __alloc_fd+0x750/0x750 [ 19.075898] do_group_exit+0x149/0x400 [ 19.075905] ? SyS_exit+0x30/0x30 [ 19.075911] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 19.075919] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 19.075927] SyS_exit_group+0x1d/0x20 [ 19.075933] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 19.075937] RIP: 0033:0x4429f8 [ 19.075941] RSP: 002b:00007ffc92980b78 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 19.075947] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 19.075951] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 19.075954] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 19.075958] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 19.075961] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 19.075969] [ 19.075972] Allocated by task 3145: [ 19.075977] save_stack+0x43/0xd0 [ 19.075982] kasan_kmalloc+0xad/0xe0 [ 19.075987] kmem_cache_alloc_trace+0x136/0x750 [ 19.075992] binder_get_thread+0x1cf/0x870 [ 19.075996] binder_poll+0x8c/0x390 [ 19.076004] ep_item_poll.isra.10+0xf2/0x320 [ 19.076008] ep_insert+0x6a2/0x1ac0 [ 19.076013] SyS_epoll_ctl+0x12bf/0x1a80 [ 19.076018] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 19.076020] [ 19.076022] Freed by task 3145: [ 19.076026] save_stack+0x43/0xd0 [ 19.076031] kasan_slab_free+0x71/0xc0 [ 19.076035] kfree+0xd6/0x260 [ 19.076040] binder_thread_dec_tmpref+0x27f/0x310 [ 19.076045] binder_thread_release+0x27d/0x540 [ 19.076049] binder_ioctl+0xc02/0x1417 [ 19.076053] do_vfs_ioctl+0x1b1/0x1520 [ 19.076057] SyS_ioctl+0x8f/0xc0 [ 19.076062] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 19.076063] [ 19.076067] The buggy address belongs to the object at ffff8801c9443cc0 [ 19.076067] which belongs to the cache kmalloc-512 of size 512 [ 19.076072] The buggy address is located 184 bytes inside of [ 19.076072] 512-byte region [ffff8801c9443cc0, ffff8801c9443ec0) [ 19.076074] The buggy address belongs to the page: [ 19.076079] page:00000000a567c70a count:1 mapcount:0 mapping:000000004a350b3d index:0x0 [ 19.076084] flags: 0x2fffc0000000100(slab) [ 19.076092] raw: 02fffc0000000100 ffff8801c9443040 0000000000000000 0000000100000006 [ 19.076098] raw: ffffea0007250f60 ffffea0007248060 ffff8801dac00940 0000000000000000 [ 19.076101] page dumped because: kasan: bad access detected [ 19.076102] [ 19.076103] Memory state around the buggy address: [ 19.076108] ffff8801c9443c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.076113] ffff8801c9443c80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 19.076117] >ffff8801c9443d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.076119] ^ [ 19.076124] ffff8801c9443d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.076128] ffff8801c9443e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.076130] ================================================================== [ 19.076131] Disabling lock debugging due to kernel taint [ 19.076134] Kernel panic - not syncing: panic_on_warn set ... [ 19.076134] [ 19.076140] CPU: 1 PID: 3145 Comm: syzkaller283374 Tainted: G B 4.15.0-rc4-next-20171221+ #78 [ 19.076144] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 19.076145] Call Trace: [ 19.076151] dump_stack+0x194/0x257 [ 19.076158] ? arch_local_irq_restore+0x53/0x53 [ 19.076163] ? kasan_end_report+0x32/0x50 [ 19.076170] ? lock_downgrade+0x980/0x980 [ 19.076175] ? vsnprintf+0x1ed/0x1900 [ 19.076181] ? __lock_acquire+0x3d30/0x3e00 [ 19.076187] panic+0x1e4/0x41c [ 19.076193] ? refcount_error_report+0x214/0x214 [ 19.076200] ? add_taint+0x40/0x50 [ 19.076205] ? add_taint+0x1c/0x50 [ 19.076212] ? __lock_acquire+0x3d4d/0x3e00 [ 19.076218] kasan_end_report+0x50/0x50 [ 19.076224] kasan_report+0x144/0x340 [ 19.076232] __asan_report_load8_noabort+0x14/0x20 [ 19.076238] __lock_acquire+0x3d4d/0x3e00 [ 19.076243] ? __lock_acquire+0x664/0x3e00 [ 19.076249] ? lock_downgrade+0x980/0x980 [ 19.076254] ? lock_downgrade+0x980/0x980 [ 19.076261] ? remove_wait_queue+0x81/0x350 [ 19.076270] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 19.076277] ? __lock_acquire+0x664/0x3e00 [ 19.076282] ? check_noncircular+0x20/0x20 [ 19.076294] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 19.076301] ? lock_acquire+0x1d5/0x580 [ 19.076306] ? lock_acquire+0x1d5/0x580 [ 19.076312] ? ep_free+0xf4/0x320 [ 19.076320] ? lock_release+0xa40/0xa40 [ 19.076326] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 19.076332] ? print_irqtrace_events+0x270/0x270 [ 19.076339] ? rcu_note_context_switch+0x710/0x710 [ 19.076346] ? __might_sleep+0x95/0x190 [ 19.076352] ? ep_free+0xf4/0x320 [ 19.076358] ? __mutex_lock+0x16f/0x1a80 [ 19.076363] ? ep_free+0xf4/0x320 [ 19.076370] ? print_irqtrace_events+0x270/0x270 [ 19.076374] ? ep_free+0xf4/0x320 [ 19.076383] lock_acquire+0x1d5/0x580 [ 19.076388] ? lock_acquire+0x1d5/0x580 [ 19.076394] ? remove_wait_queue+0x81/0x350 [ 19.076400] ? __lock_acquire+0x664/0x3e00 [ 19.076407] ? lock_release+0xa40/0xa40 [ 19.076416] ? lock_acquire+0x1d5/0x580 [ 19.076421] ? lock_acquire+0x1d5/0x580 [ 19.076427] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 19.076434] _raw_spin_lock_irqsave+0x96/0xc0 [ 19.076440] ? remove_wait_queue+0x81/0x350 [ 19.076447] remove_wait_queue+0x81/0x350 [ 19.076454] ? add_wait_queue+0x290/0x290 [ 19.076460] ? rcutorture_record_progress+0x10/0x10 [ 19.076470] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 19.076477] ? __kernel_text_address+0xd/0x40 [ 19.076484] ? clear_tfile_check_list+0x370/0x370 [ 19.076492] ? check_noncircular+0x20/0x20 [ 19.076500] ? locks_remove_file+0x3fa/0x5a0 [ 19.076509] ep_free+0x13f/0x320 [ 19.076515] ? ep_remove+0x800/0x800 [ 19.076520] ? fsnotify_first_mark+0x2b0/0x2b0 [ 19.076527] ? ep_free+0x320/0x320 [ 19.076533] ep_eventpoll_release+0x44/0x60 [ 19.076539] __fput+0x327/0x7e0 [ 19.076546] ? fput+0x140/0x140 [ 19.076552] ? _raw_spin_unlock_irq+0x27/0x70 [ 19.076560] ____fput+0x15/0x20 [ 19.076566] task_work_run+0x199/0x270 [ 19.076574] ? task_work_cancel+0x210/0x210 [ 19.076580] ? _raw_spin_unlock+0x22/0x30 [ 19.076586] ? switch_task_namespaces+0x87/0xc0 [ 19.076593] do_exit+0x9bb/0x1ad0 [ 19.076600] ? binder_ioctl+0x491/0x1417 [ 19.076606] ? mm_update_next_owner+0x930/0x930 [ 19.076614] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 19.076622] ? avc_ss_reset+0x110/0x110 [ 19.076628] ? mutex_unlock+0xd/0x10 [ 19.076633] ? SyS_epoll_ctl+0x30a/0x1a80 [ 19.076652] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 19.076656] ? up_read+0x1a/0x40 [ 19.076663] ? rcu_note_context_switch+0x710/0x710 [ 19.076668] ? __fd_install+0x288/0x740 [ 19.076676] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 19.076681] ? do_vfs_ioctl+0x486/0x1520 [ 19.076686] ? _cond_resched+0x14/0x30 [ 19.076694] ? ioctl_preallocate+0x2b0/0x2b0 [ 19.076701] ? selinux_capable+0x40/0x40 [ 19.076711] ? __alloc_fd+0x750/0x750 [ 19.076719] do_group_exit+0x149/0x400 [ 19.076726] ? SyS_exit+0x30/0x30 [ 19.076733] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 19.076739] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 19.076746] SyS_exit_group+0x1d/0x20 [ 19.076752] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 19.076756] RIP: 0033:0x4429f8 [ 19.076759] RSP: 002b:00007ffc92980b78 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 19.076765] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 19.076768] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 19.076771] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 19.076774] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 19.076778] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 19.097257] Dumping ftrace buffer: [ 19.097260] (ftrace buffer empty) [ 19.097262] Kernel Offset: disabled [ 20.224225] Rebooting in 86400 seconds..