[....] Starting enhanced syslogd: rsyslogd[ 10.628735] audit: type=1400 audit(1514177539.345:5): avc: denied { syslog } for pid=2994 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: [ 15.958901] audit: type=1400 audit(1514177544.675:6): avc: denied { map } for pid=3135 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 'ci-upstream-next-kasan-gce-7,10.128.0.20' (ECDSA) to the list of known hosts. executing program [ 22.153236] audit: type=1400 audit(1514177550.869:7): avc: denied { map } for pid=3149 comm="syzkaller621459" path="/root/syzkaller621459092" 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 [ 22.157438] ================================================================== [ 22.157448] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 22.157452] Read of size 8 at addr ffff8801c9fd6338 by task syzkaller621459/3149 [ 22.157453] [ 22.157458] CPU: 0 PID: 3149 Comm: syzkaller621459 Not tainted 4.15.0-rc4-next-20171221+ #78 [ 22.157460] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.157461] Call Trace: [ 22.157468] dump_stack+0x194/0x257 [ 22.157472] ? arch_local_irq_restore+0x53/0x53 [ 22.157479] ? show_regs_print_info+0x18/0x18 [ 22.157482] ? print_irqtrace_events+0x270/0x270 [ 22.157486] ? __lock_acquire+0x664/0x3e00 [ 22.157490] ? __lock_acquire+0x3d4d/0x3e00 [ 22.157496] print_address_description+0x73/0x250 [ 22.157500] ? __lock_acquire+0x3d4d/0x3e00 [ 22.157504] kasan_report+0x25b/0x340 [ 22.157509] __asan_report_load8_noabort+0x14/0x20 [ 22.157512] __lock_acquire+0x3d4d/0x3e00 [ 22.157516] ? __lock_acquire+0x664/0x3e00 [ 22.157519] ? lock_downgrade+0x980/0x980 [ 22.157523] ? lock_downgrade+0x980/0x980 [ 22.157529] ? remove_wait_queue+0x81/0x350 [ 22.157534] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.157538] ? __lock_acquire+0x664/0x3e00 [ 22.157542] ? check_noncircular+0x20/0x20 [ 22.157550] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.157554] ? lock_acquire+0x1d5/0x580 [ 22.157557] ? lock_acquire+0x1d5/0x580 [ 22.157563] ? ep_free+0xf4/0x320 [ 22.157568] ? lock_release+0xa40/0xa40 [ 22.157573] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.157577] ? print_irqtrace_events+0x270/0x270 [ 22.157582] ? rcu_note_context_switch+0x710/0x710 [ 22.157587] ? __might_sleep+0x95/0x190 [ 22.157590] ? ep_free+0xf4/0x320 [ 22.157597] ? __mutex_lock+0x16f/0x1a80 [ 22.157599] ? ep_free+0xf4/0x320 [ 22.157604] ? print_irqtrace_events+0x270/0x270 [ 22.157607] ? ep_free+0xf4/0x320 [ 22.157612] lock_acquire+0x1d5/0x580 [ 22.157615] ? lock_acquire+0x1d5/0x580 [ 22.157619] ? remove_wait_queue+0x81/0x350 [ 22.157622] ? __lock_acquire+0x664/0x3e00 [ 22.157627] ? lock_release+0xa40/0xa40 [ 22.157633] ? lock_acquire+0x1d5/0x580 [ 22.157636] ? lock_acquire+0x1d5/0x580 [ 22.157640] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 22.157645] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.157648] ? remove_wait_queue+0x81/0x350 [ 22.157652] remove_wait_queue+0x81/0x350 [ 22.157657] ? add_wait_queue+0x290/0x290 [ 22.157661] ? rcutorture_record_progress+0x10/0x10 [ 22.157667] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 22.157673] ? __kernel_text_address+0xd/0x40 [ 22.157678] ? clear_tfile_check_list+0x370/0x370 [ 22.157683] ? check_noncircular+0x20/0x20 [ 22.157689] ? locks_remove_file+0x3fa/0x5a0 [ 22.157695] ep_free+0x13f/0x320 [ 22.157698] ? ep_remove+0x800/0x800 [ 22.157702] ? fsnotify_first_mark+0x2b0/0x2b0 [ 22.157707] ? ep_free+0x320/0x320 [ 22.157710] ep_eventpoll_release+0x44/0x60 [ 22.157715] __fput+0x327/0x7e0 [ 22.157720] ? fput+0x140/0x140 [ 22.157724] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.157729] ____fput+0x15/0x20 [ 22.157733] task_work_run+0x199/0x270 [ 22.157738] ? task_work_cancel+0x210/0x210 [ 22.157742] ? _raw_spin_unlock+0x22/0x30 [ 22.157745] ? switch_task_namespaces+0x87/0xc0 [ 22.157752] do_exit+0x9bb/0x1ad0 [ 22.157757] ? binder_ioctl+0x491/0x1417 [ 22.157761] ? mm_update_next_owner+0x930/0x930 [ 22.157766] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 22.157772] ? avc_ss_reset+0x110/0x110 [ 22.157776] ? mutex_unlock+0xd/0x10 [ 22.157779] ? SyS_epoll_ctl+0x30a/0x1a80 [ 22.157791] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.157794] ? up_read+0x1a/0x40 [ 22.157799] ? rcu_note_context_switch+0x710/0x710 [ 22.157802] ? __fd_install+0x288/0x740 [ 22.157807] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 22.157811] ? do_vfs_ioctl+0x486/0x1520 [ 22.157815] ? _cond_resched+0x14/0x30 [ 22.157819] ? ioctl_preallocate+0x2b0/0x2b0 [ 22.157824] ? selinux_capable+0x40/0x40 [ 22.157828] ? __alloc_fd+0x750/0x750 [ 22.157833] do_group_exit+0x149/0x400 [ 22.157837] ? SyS_exit+0x30/0x30 [ 22.157841] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 22.157846] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 22.157851] SyS_exit_group+0x1d/0x20 [ 22.157855] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.157858] RIP: 0033:0x4429f8 [ 22.157860] RSP: 002b:00007ffeb06e3208 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 22.157864] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 22.157866] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 22.157868] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 22.157870] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 22.157872] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 22.157878] [ 22.157879] Allocated by task 3149: [ 22.157884] save_stack+0x43/0xd0 [ 22.157887] kasan_kmalloc+0xad/0xe0 [ 22.157890] kmem_cache_alloc_trace+0x136/0x750 [ 22.157893] binder_get_thread+0x1cf/0x870 [ 22.157895] binder_poll+0x8c/0x390 [ 22.157898] ep_item_poll.isra.10+0xf2/0x320 [ 22.157901] ep_insert+0x6a2/0x1ac0 [ 22.157904] SyS_epoll_ctl+0x12bf/0x1a80 [ 22.157907] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.157908] [ 22.157909] Freed by task 3149: [ 22.157912] save_stack+0x43/0xd0 [ 22.157915] kasan_slab_free+0x71/0xc0 [ 22.157917] kfree+0xd6/0x260 [ 22.157920] binder_thread_dec_tmpref+0x27f/0x310 [ 22.157922] binder_thread_release+0x27d/0x540 [ 22.157925] binder_ioctl+0xc02/0x1417 [ 22.157928] do_vfs_ioctl+0x1b1/0x1520 [ 22.157930] SyS_ioctl+0x8f/0xc0 [ 22.157933] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.157934] [ 22.157936] The buggy address belongs to the object at ffff8801c9fd6280 [ 22.157936] which belongs to the cache kmalloc-512 of size 512 [ 22.157939] The buggy address is located 184 bytes inside of [ 22.157939] 512-byte region [ffff8801c9fd6280, ffff8801c9fd6480) [ 22.157940] The buggy address belongs to the page: [ 22.157944] page:00000000e570f53b count:1 mapcount:0 mapping:00000000e191d308 index:0x0 [ 22.157947] flags: 0x2fffc0000000100(slab) [ 22.157953] raw: 02fffc0000000100 ffff8801c9fd6000 0000000000000000 0000000100000006 [ 22.157957] raw: ffffea0007281720 ffffea00072870e0 ffff8801dac00940 0000000000000000 [ 22.157959] page dumped because: kasan: bad access detected [ 22.157960] [ 22.157960] Memory state around the buggy address: [ 22.157963] ffff8801c9fd6200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.157966] ffff8801c9fd6280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.157968] >ffff8801c9fd6300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.157970] ^ [ 22.157972] ffff8801c9fd6380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.157975] ffff8801c9fd6400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.157976] ================================================================== [ 22.157977] Disabling lock debugging due to kernel taint [ 22.157979] Kernel panic - not syncing: panic_on_warn set ... [ 22.157979] [ 22.157983] CPU: 0 PID: 3149 Comm: syzkaller621459 Tainted: G B 4.15.0-rc4-next-20171221+ #78 [ 22.157985] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.157986] Call Trace: [ 22.157990] dump_stack+0x194/0x257 [ 22.157994] ? arch_local_irq_restore+0x53/0x53 [ 22.157997] ? kasan_end_report+0x32/0x50 [ 22.158005] ? lock_downgrade+0x980/0x980 [ 22.158009] ? vsnprintf+0x1ed/0x1900 [ 22.158012] ? __lock_acquire+0x3d30/0x3e00 [ 22.158016] panic+0x1e4/0x41c [ 22.158019] ? refcount_error_report+0x214/0x214 [ 22.158023] ? add_taint+0x40/0x50 [ 22.158026] ? add_taint+0x1c/0x50 [ 22.158030] ? __lock_acquire+0x3d4d/0x3e00 [ 22.158034] kasan_end_report+0x50/0x50 [ 22.158038] kasan_report+0x144/0x340 [ 22.158042] __asan_report_load8_noabort+0x14/0x20 [ 22.158046] __lock_acquire+0x3d4d/0x3e00 [ 22.158049] ? __lock_acquire+0x664/0x3e00 [ 22.158052] ? lock_downgrade+0x980/0x980 [ 22.158056] ? lock_downgrade+0x980/0x980 [ 22.158060] ? remove_wait_queue+0x81/0x350 [ 22.158065] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.158069] ? __lock_acquire+0x664/0x3e00 [ 22.158072] ? check_noncircular+0x20/0x20 [ 22.158079] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.158083] ? lock_acquire+0x1d5/0x580 [ 22.158086] ? lock_acquire+0x1d5/0x580 [ 22.158090] ? ep_free+0xf4/0x320 [ 22.158094] ? lock_release+0xa40/0xa40 [ 22.158098] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.158102] ? print_irqtrace_events+0x270/0x270 [ 22.158106] ? rcu_note_context_switch+0x710/0x710 [ 22.158110] ? __might_sleep+0x95/0x190 [ 22.158114] ? ep_free+0xf4/0x320 [ 22.158118] ? __mutex_lock+0x16f/0x1a80 [ 22.158120] ? ep_free+0xf4/0x320 [ 22.158125] ? print_irqtrace_events+0x270/0x270 [ 22.158127] ? ep_free+0xf4/0x320 [ 22.158132] lock_acquire+0x1d5/0x580 [ 22.158136] ? lock_acquire+0x1d5/0x580 [ 22.158139] ? remove_wait_queue+0x81/0x350 [ 22.158143] ? __lock_acquire+0x664/0x3e00 [ 22.158147] ? lock_release+0xa40/0xa40 [ 22.158152] ? lock_acquire+0x1d5/0x580 [ 22.158155] ? lock_acquire+0x1d5/0x580 [ 22.158159] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 22.158163] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.158166] ? remove_wait_queue+0x81/0x350 [ 22.158170] remove_wait_queue+0x81/0x350 [ 22.158175] ? add_wait_queue+0x290/0x290 [ 22.158178] ? rcutorture_record_progress+0x10/0x10 [ 22.158184] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 22.158188] ? __kernel_text_address+0xd/0x40 [ 22.158192] ? clear_tfile_check_list+0x370/0x370 [ 22.158197] ? check_noncircular+0x20/0x20 [ 22.158201] ? locks_remove_file+0x3fa/0x5a0 [ 22.158206] ep_free+0x13f/0x320 [ 22.158210] ? ep_remove+0x800/0x800 [ 22.158213] ? fsnotify_first_mark+0x2b0/0x2b0 [ 22.158218] ? ep_free+0x320/0x320 [ 22.158221] ep_eventpoll_release+0x44/0x60 [ 22.158224] __fput+0x327/0x7e0 [ 22.158229] ? fput+0x140/0x140 [ 22.158233] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.158238] ____fput+0x15/0x20 [ 22.158241] task_work_run+0x199/0x270 [ 22.158246] ? task_work_cancel+0x210/0x210 [ 22.158249] ? _raw_spin_unlock+0x22/0x30 [ 22.158253] ? switch_task_namespaces+0x87/0xc0 [ 22.158257] do_exit+0x9bb/0x1ad0 [ 22.158261] ? binder_ioctl+0x491/0x1417 [ 22.158265] ? mm_update_next_owner+0x930/0x930 [ 22.158269] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 22.158274] ? avc_ss_reset+0x110/0x110 [ 22.158278] ? mutex_unlock+0xd/0x10 [ 22.158281] ? SyS_epoll_ctl+0x30a/0x1a80 [ 22.158291] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.158294] ? up_read+0x1a/0x40 [ 22.158298] ? rcu_note_context_switch+0x710/0x710 [ 22.158301] ? __fd_install+0x288/0x740 [ 22.158306] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 22.158309] ? do_vfs_ioctl+0x486/0x1520 [ 22.158312] ? _cond_resched+0x14/0x30 [ 22.158321] ? ioctl_preallocate+0x2b0/0x2b0 [ 22.158326] ? selinux_capable+0x40/0x40 [ 22.158329] ? __alloc_fd+0x750/0x750 [ 22.158334] do_group_exit+0x149/0x400 [ 22.158338] ? SyS_exit+0x30/0x30 [ 22.158342] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 22.158346] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 22.158350] SyS_exit_group+0x1d/0x20 [ 22.158354] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.158356] RIP: 0033:0x4429f8 [ 22.158358] RSP: 002b:00007ffeb06e3208 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 22.158362] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 22.158364] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 22.158366] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 22.158368] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 22.158370] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 22.179115] Dumping ftrace buffer: [ 22.179119] (ftrace buffer empty) [ 22.179120] Kernel Offset: disabled [ 23.315508] Rebooting in 86400 seconds..