[....] Starting enhanced syslogd: rsyslogd[ 10.592656] audit: type=1400 audit(1514381044.512:5): avc: denied { syslog } for pid=2993 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: [ 16.876013] audit: type=1400 audit(1514381050.795:6): avc: denied { map } for pid=3133 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 [ 38.691114] audit: type=1400 audit(1514381072.610:7): avc: denied { map } for pid=3152 comm="syzkaller562866" path="/root/syzkaller562866370" 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 [ 38.696429] ================================================================== [ 38.696443] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 38.696447] Read of size 8 at addr ffff8801c9b5f378 by task syzkaller562866/3152 [ 38.696448] [ 38.696454] CPU: 1 PID: 3152 Comm: syzkaller562866 Not tainted 4.15.0-rc4-next-20171221+ #78 [ 38.696456] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.696458] Call Trace: [ 38.696466] dump_stack+0x194/0x257 [ 38.696470] ? arch_local_irq_restore+0x53/0x53 [ 38.696477] ? show_regs_print_info+0x18/0x18 [ 38.696481] ? print_irqtrace_events+0x270/0x270 [ 38.696485] ? __lock_acquire+0x664/0x3e00 [ 38.696489] ? __lock_acquire+0x3d4d/0x3e00 [ 38.696496] print_address_description+0x73/0x250 [ 38.696500] ? __lock_acquire+0x3d4d/0x3e00 [ 38.696504] kasan_report+0x25b/0x340 [ 38.696509] __asan_report_load8_noabort+0x14/0x20 [ 38.696513] __lock_acquire+0x3d4d/0x3e00 [ 38.696516] ? __lock_acquire+0x664/0x3e00 [ 38.696520] ? lock_downgrade+0x980/0x980 [ 38.696523] ? lock_downgrade+0x980/0x980 [ 38.696529] ? remove_wait_queue+0x81/0x350 [ 38.696535] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 38.696539] ? __lock_acquire+0x664/0x3e00 [ 38.696543] ? check_noncircular+0x20/0x20 [ 38.696551] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 38.696555] ? lock_acquire+0x1d5/0x580 [ 38.696559] ? lock_acquire+0x1d5/0x580 [ 38.696564] ? ep_free+0xf4/0x320 [ 38.696569] ? lock_release+0xa40/0xa40 [ 38.696575] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 38.696579] ? print_irqtrace_events+0x270/0x270 [ 38.696585] ? rcu_note_context_switch+0x710/0x710 [ 38.696589] ? __might_sleep+0x95/0x190 [ 38.696593] ? ep_free+0xf4/0x320 [ 38.696600] ? __mutex_lock+0x16f/0x1a80 [ 38.696603] ? ep_free+0xf4/0x320 [ 38.696608] ? print_irqtrace_events+0x270/0x270 [ 38.696610] ? ep_free+0xf4/0x320 [ 38.696616] lock_acquire+0x1d5/0x580 [ 38.696619] ? lock_acquire+0x1d5/0x580 [ 38.696622] ? remove_wait_queue+0x81/0x350 [ 38.696626] ? __lock_acquire+0x664/0x3e00 [ 38.696631] ? lock_release+0xa40/0xa40 [ 38.696636] ? lock_acquire+0x1d5/0x580 [ 38.696639] ? lock_acquire+0x1d5/0x580 [ 38.696644] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 38.696649] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.696652] ? remove_wait_queue+0x81/0x350 [ 38.696656] remove_wait_queue+0x81/0x350 [ 38.696661] ? add_wait_queue+0x290/0x290 [ 38.696665] ? rcutorture_record_progress+0x10/0x10 [ 38.696671] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 38.696678] ? __kernel_text_address+0xd/0x40 [ 38.696683] ? clear_tfile_check_list+0x370/0x370 [ 38.696688] ? check_noncircular+0x20/0x20 [ 38.696694] ? locks_remove_file+0x3fa/0x5a0 [ 38.696700] ep_free+0x13f/0x320 [ 38.696704] ? ep_remove+0x800/0x800 [ 38.696708] ? fsnotify_first_mark+0x2b0/0x2b0 [ 38.696713] ? ep_free+0x320/0x320 [ 38.696716] ep_eventpoll_release+0x44/0x60 [ 38.696722] __fput+0x327/0x7e0 [ 38.696727] ? fput+0x140/0x140 [ 38.696731] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.696737] ____fput+0x15/0x20 [ 38.696741] task_work_run+0x199/0x270 [ 38.696746] ? task_work_cancel+0x210/0x210 [ 38.696749] ? _raw_spin_unlock+0x22/0x30 [ 38.696753] ? switch_task_namespaces+0x87/0xc0 [ 38.696760] do_exit+0x9bb/0x1ad0 [ 38.696766] ? binder_ioctl+0x491/0x1417 [ 38.696770] ? mm_update_next_owner+0x930/0x930 [ 38.696775] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 38.696781] ? avc_ss_reset+0x110/0x110 [ 38.696785] ? mutex_unlock+0xd/0x10 [ 38.696789] ? SyS_epoll_ctl+0x30a/0x1a80 [ 38.696802] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 38.696804] ? up_read+0x1a/0x40 [ 38.696809] ? rcu_note_context_switch+0x710/0x710 [ 38.696813] ? __fd_install+0x288/0x740 [ 38.696818] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 38.696822] ? do_vfs_ioctl+0x486/0x1520 [ 38.696826] ? _cond_resched+0x14/0x30 [ 38.696830] ? ioctl_preallocate+0x2b0/0x2b0 [ 38.696835] ? selinux_capable+0x40/0x40 [ 38.696839] ? __alloc_fd+0x750/0x750 [ 38.696844] do_group_exit+0x149/0x400 [ 38.696849] ? SyS_exit+0x30/0x30 [ 38.696853] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 38.696858] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 38.696863] SyS_exit_group+0x1d/0x20 [ 38.696867] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 38.696870] RIP: 0033:0x4429f8 [ 38.696872] RSP: 002b:00007ffcd95b45c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 38.696877] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 38.696879] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 38.696881] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 38.696883] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 38.696885] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 38.696891] [ 38.696893] Allocated by task 3152: [ 38.696897] save_stack+0x43/0xd0 [ 38.696900] kasan_kmalloc+0xad/0xe0 [ 38.696904] kmem_cache_alloc_trace+0x136/0x750 [ 38.696906] binder_get_thread+0x1cf/0x870 [ 38.696909] binder_poll+0x8c/0x390 [ 38.696912] ep_item_poll.isra.10+0xf2/0x320 [ 38.696915] ep_insert+0x6a2/0x1ac0 [ 38.696918] SyS_epoll_ctl+0x12bf/0x1a80 [ 38.696921] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 38.696921] [ 38.696923] Freed by task 3152: [ 38.696926] save_stack+0x43/0xd0 [ 38.696929] kasan_slab_free+0x71/0xc0 [ 38.696931] kfree+0xd6/0x260 [ 38.696934] binder_thread_dec_tmpref+0x27f/0x310 [ 38.696937] binder_thread_release+0x27d/0x540 [ 38.696939] binder_ioctl+0xc02/0x1417 [ 38.696942] do_vfs_ioctl+0x1b1/0x1520 [ 38.696944] SyS_ioctl+0x8f/0xc0 [ 38.696947] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 38.696948] [ 38.696951] The buggy address belongs to the object at ffff8801c9b5f2c0 [ 38.696951] which belongs to the cache kmalloc-512 of size 512 [ 38.696954] The buggy address is located 184 bytes inside of [ 38.696954] 512-byte region [ffff8801c9b5f2c0, ffff8801c9b5f4c0) [ 38.696955] The buggy address belongs to the page: [ 38.696959] page:0000000067ffe826 count:1 mapcount:0 mapping:0000000004368aba index:0x0 [ 38.696967] flags: 0x2fffc0000000100(slab) [ 38.696973] raw: 02fffc0000000100 ffff8801c9b5f040 0000000000000000 0000000100000006 [ 38.696977] raw: ffffea000725e220 ffffea0007249e60 ffff8801dac00940 0000000000000000 [ 38.696979] page dumped because: kasan: bad access detected [ 38.696980] [ 38.696981] Memory state around the buggy address: [ 38.696984] ffff8801c9b5f200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 38.696986] ffff8801c9b5f280: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 38.696989] >ffff8801c9b5f300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.696991] ^ [ 38.696993] ffff8801c9b5f380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.696996] ffff8801c9b5f400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.696997] ================================================================== [ 38.696998] Disabling lock debugging due to kernel taint [ 38.697003] Kernel panic - not syncing: panic_on_warn set ... [ 38.697003] [ 38.697007] CPU: 1 PID: 3152 Comm: syzkaller562866 Tainted: G B 4.15.0-rc4-next-20171221+ #78 [ 38.697009] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.697010] Call Trace: [ 38.697013] dump_stack+0x194/0x257 [ 38.697018] ? arch_local_irq_restore+0x53/0x53 [ 38.697021] ? kasan_end_report+0x32/0x50 [ 38.697025] ? lock_downgrade+0x980/0x980 [ 38.697029] ? vsnprintf+0x1ed/0x1900 [ 38.697033] ? __lock_acquire+0x3d30/0x3e00 [ 38.697036] panic+0x1e4/0x41c [ 38.697040] ? refcount_error_report+0x214/0x214 [ 38.697044] ? add_taint+0x40/0x50 [ 38.697047] ? add_taint+0x1c/0x50 [ 38.697051] ? __lock_acquire+0x3d4d/0x3e00 [ 38.697055] kasan_end_report+0x50/0x50 [ 38.697058] kasan_report+0x144/0x340 [ 38.697063] __asan_report_load8_noabort+0x14/0x20 [ 38.697066] __lock_acquire+0x3d4d/0x3e00 [ 38.697070] ? __lock_acquire+0x664/0x3e00 [ 38.697073] ? lock_downgrade+0x980/0x980 [ 38.697076] ? lock_downgrade+0x980/0x980 [ 38.697081] ? remove_wait_queue+0x81/0x350 [ 38.697086] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 38.697090] ? __lock_acquire+0x664/0x3e00 [ 38.697093] ? check_noncircular+0x20/0x20 [ 38.697100] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 38.697104] ? lock_acquire+0x1d5/0x580 [ 38.697107] ? lock_acquire+0x1d5/0x580 [ 38.697110] ? ep_free+0xf4/0x320 [ 38.697115] ? lock_release+0xa40/0xa40 [ 38.697119] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 38.697122] ? print_irqtrace_events+0x270/0x270 [ 38.697126] ? rcu_note_context_switch+0x710/0x710 [ 38.697131] ? __might_sleep+0x95/0x190 [ 38.697134] ? ep_free+0xf4/0x320 [ 38.697138] ? __mutex_lock+0x16f/0x1a80 [ 38.697141] ? ep_free+0xf4/0x320 [ 38.697145] ? print_irqtrace_events+0x270/0x270 [ 38.697148] ? ep_free+0xf4/0x320 [ 38.697152] lock_acquire+0x1d5/0x580 [ 38.697155] ? lock_acquire+0x1d5/0x580 [ 38.697159] ? remove_wait_queue+0x81/0x350 [ 38.697163] ? __lock_acquire+0x664/0x3e00 [ 38.697167] ? lock_release+0xa40/0xa40 [ 38.697172] ? lock_acquire+0x1d5/0x580 [ 38.697175] ? lock_acquire+0x1d5/0x580 [ 38.697179] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 38.697183] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.697186] ? remove_wait_queue+0x81/0x350 [ 38.697190] remove_wait_queue+0x81/0x350 [ 38.697195] ? add_wait_queue+0x290/0x290 [ 38.697198] ? rcutorture_record_progress+0x10/0x10 [ 38.697204] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 38.697208] ? __kernel_text_address+0xd/0x40 [ 38.697213] ? clear_tfile_check_list+0x370/0x370 [ 38.697217] ? check_noncircular+0x20/0x20 [ 38.697222] ? locks_remove_file+0x3fa/0x5a0 [ 38.697227] ep_free+0x13f/0x320 [ 38.697230] ? ep_remove+0x800/0x800 [ 38.697233] ? fsnotify_first_mark+0x2b0/0x2b0 [ 38.697238] ? ep_free+0x320/0x320 [ 38.697241] ep_eventpoll_release+0x44/0x60 [ 38.697245] __fput+0x327/0x7e0 [ 38.697250] ? fput+0x140/0x140 [ 38.697253] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.697258] ____fput+0x15/0x20 [ 38.697262] task_work_run+0x199/0x270 [ 38.697267] ? task_work_cancel+0x210/0x210 [ 38.697270] ? _raw_spin_unlock+0x22/0x30 [ 38.697274] ? switch_task_namespaces+0x87/0xc0 [ 38.697278] do_exit+0x9bb/0x1ad0 [ 38.697282] ? binder_ioctl+0x491/0x1417 [ 38.697286] ? mm_update_next_owner+0x930/0x930 [ 38.697290] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 38.697295] ? avc_ss_reset+0x110/0x110 [ 38.697298] ? mutex_unlock+0xd/0x10 [ 38.697302] ? SyS_epoll_ctl+0x30a/0x1a80 [ 38.697312] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 38.697315] ? up_read+0x1a/0x40 [ 38.697319] ? rcu_note_context_switch+0x710/0x710 [ 38.697322] ? __fd_install+0x288/0x740 [ 38.697327] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 38.697330] ? do_vfs_ioctl+0x486/0x1520 [ 38.697333] ? _cond_resched+0x14/0x30 [ 38.697338] ? ioctl_preallocate+0x2b0/0x2b0 [ 38.697342] ? selinux_capable+0x40/0x40 [ 38.697345] ? __alloc_fd+0x750/0x750 [ 38.697350] do_group_exit+0x149/0x400 [ 38.697354] ? SyS_exit+0x30/0x30 [ 38.697358] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 38.697362] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 38.697367] SyS_exit_group+0x1d/0x20 [ 38.697370] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 38.697373] RIP: 0033:0x4429f8 [ 38.697374] RSP: 002b:00007ffcd95b45c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 38.697378] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 38.697380] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 38.697382] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 38.697384] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 38.697386] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 38.717377] Dumping ftrace buffer: [ 38.717381] (ftrace buffer empty) [ 38.717383] Kernel Offset: disabled [ 39.844753] Rebooting in 86400 seconds..