[....] Starting enhanced syslogd: rsyslogd[ 12.182326] audit: type=1400 audit(1515667383.560: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: [ 18.953094] audit: type=1400 audit(1515667390.330:6): avc: denied { map } for pid=3479 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.41' (ECDSA) to the list of known hosts. executing program [ 25.151008] audit: type=1400 audit(1515667396.528:7): avc: denied { map } for pid=3493 comm="syzkaller965818" path="/root/syzkaller965818454" 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 [ 25.157766] ================================================================== [ 25.157780] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 25.157785] Read of size 8 at addr ffff8801cbea0370 by task syzkaller965818/3493 [ 25.157786] [ 25.157793] CPU: 1 PID: 3493 Comm: syzkaller965818 Not tainted 4.15.0-rc7+ #257 [ 25.157796] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.157799] Call Trace: [ 25.157808] dump_stack+0x194/0x257 [ 25.157815] ? arch_local_irq_restore+0x53/0x53 [ 25.157824] ? show_regs_print_info+0x18/0x18 [ 25.157829] ? print_irqtrace_events+0x270/0x270 [ 25.157836] ? __lock_acquire+0x664/0x3e00 [ 25.157842] ? __lock_acquire+0x3d4d/0x3e00 [ 25.157851] print_address_description+0x73/0x250 [ 25.157857] ? __lock_acquire+0x3d4d/0x3e00 [ 25.157863] kasan_report+0x25b/0x340 [ 25.157872] __asan_report_load8_noabort+0x14/0x20 [ 25.157877] __lock_acquire+0x3d4d/0x3e00 [ 25.157883] ? __lock_acquire+0x664/0x3e00 [ 25.157889] ? lock_downgrade+0x980/0x980 [ 25.157894] ? lock_downgrade+0x980/0x980 [ 25.157903] ? remove_wait_queue+0x81/0x350 [ 25.157912] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.157919] ? __lock_acquire+0x664/0x3e00 [ 25.157924] ? check_noncircular+0x20/0x20 [ 25.157936] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.157943] ? lock_acquire+0x1d5/0x580 [ 25.157949] ? lock_acquire+0x1d5/0x580 [ 25.157955] ? ep_free+0xf4/0x320 [ 25.157963] ? lock_release+0xa40/0xa40 [ 25.157970] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.157976] ? print_irqtrace_events+0x270/0x270 [ 25.157984] ? rcu_note_context_switch+0x710/0x710 [ 25.157991] ? __might_sleep+0x95/0x190 [ 25.157997] ? ep_free+0xf4/0x320 [ 25.158007] ? __mutex_lock+0x16f/0x1a80 [ 25.158011] ? ep_free+0xf4/0x320 [ 25.158019] ? print_irqtrace_events+0x270/0x270 [ 25.158023] ? ep_free+0xf4/0x320 [ 25.158032] lock_acquire+0x1d5/0x580 [ 25.158037] ? lock_acquire+0x1d5/0x580 [ 25.158043] ? remove_wait_queue+0x81/0x350 [ 25.158049] ? __lock_acquire+0x664/0x3e00 [ 25.158056] ? lock_release+0xa40/0xa40 [ 25.158066] ? lock_acquire+0x1d5/0x580 [ 25.158071] ? lock_acquire+0x1d5/0x580 [ 25.158077] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.158085] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.158091] ? remove_wait_queue+0x81/0x350 [ 25.158097] remove_wait_queue+0x81/0x350 [ 25.158105] ? add_wait_queue+0x290/0x290 [ 25.158111] ? rcutorture_record_progress+0x10/0x10 [ 25.158121] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.158130] ? __kernel_text_address+0xd/0x40 [ 25.158138] ? clear_tfile_check_list+0x370/0x370 [ 25.158146] ? check_noncircular+0x20/0x20 [ 25.158155] ? locks_remove_file+0x3fa/0x5a0 [ 25.158164] ep_free+0x13f/0x320 [ 25.158170] ? ep_remove+0x800/0x800 [ 25.158176] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.158184] ? ep_free+0x320/0x320 [ 25.158190] ep_eventpoll_release+0x44/0x60 [ 25.158198] __fput+0x327/0x7e0 [ 25.158206] ? fput+0x140/0x140 [ 25.158213] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.158221] ____fput+0x15/0x20 [ 25.158228] task_work_run+0x199/0x270 [ 25.158235] ? task_work_cancel+0x210/0x210 [ 25.158242] ? _raw_spin_unlock+0x22/0x30 [ 25.158248] ? switch_task_namespaces+0x87/0xc0 [ 25.158258] do_exit+0x9bb/0x1ad0 [ 25.158267] ? binder_ioctl+0x481/0x1417 [ 25.158274] ? mm_update_next_owner+0x930/0x930 [ 25.158285] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.158296] ? avc_ss_reset+0x110/0x110 [ 25.158301] ? mutex_unlock+0xd/0x10 [ 25.158307] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 25.158326] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.158331] ? up_read+0x1a/0x40 [ 25.158338] ? rcu_note_context_switch+0x710/0x710 [ 25.158344] ? __fd_install+0x288/0x740 [ 25.158353] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.158359] ? do_vfs_ioctl+0x486/0x1520 [ 25.158363] ? _cond_resched+0x14/0x30 [ 25.158371] ? ioctl_preallocate+0x2b0/0x2b0 [ 25.158379] ? selinux_capable+0x40/0x40 [ 25.158385] ? __alloc_fd+0x750/0x750 [ 25.158394] do_group_exit+0x149/0x400 [ 25.158400] ? SyS_exit+0x30/0x30 [ 25.158407] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.158415] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.158423] SyS_exit_group+0x1d/0x20 [ 25.158430] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.158434] RIP: 0033:0x4429f8 [ 25.158437] RSP: 002b:00007ffcc7cbf628 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 25.158444] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 25.158447] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 25.158451] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 25.158454] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 25.158457] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 25.158465] [ 25.158468] Allocated by task 3493: [ 25.158474] save_stack+0x43/0xd0 [ 25.158478] kasan_kmalloc+0xad/0xe0 [ 25.158483] kmem_cache_alloc_trace+0x136/0x750 [ 25.158487] binder_get_thread+0x1cf/0x870 [ 25.158491] binder_poll+0x8c/0x390 [ 25.158496] ep_item_poll.isra.10+0xec/0x320 [ 25.158501] ep_insert+0x6a3/0x1b10 [ 25.158506] SyS_epoll_ctl+0x12e4/0x1ab0 [ 25.158512] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.158513] [ 25.158515] Freed by task 3493: [ 25.158520] save_stack+0x43/0xd0 [ 25.158524] kasan_slab_free+0x71/0xc0 [ 25.158528] kfree+0xd6/0x260 [ 25.158533] binder_thread_dec_tmpref+0x27f/0x310 [ 25.158537] binder_thread_release+0x27d/0x540 [ 25.158542] binder_ioctl+0xc02/0x1417 [ 25.158546] do_vfs_ioctl+0x1b1/0x1520 [ 25.158550] SyS_ioctl+0x8f/0xc0 [ 25.158556] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.158557] [ 25.158561] The buggy address belongs to the object at ffff8801cbea02c0 [ 25.158561] which belongs to the cache kmalloc-512 of size 512 [ 25.158566] The buggy address is located 176 bytes inside of [ 25.158566] 512-byte region [ffff8801cbea02c0, ffff8801cbea04c0) [ 25.158567] The buggy address belongs to the page: [ 25.158572] page:ffffea00072fa800 count:1 mapcount:0 mapping:ffff8801cbea0040 index:0x0 [ 25.158577] flags: 0x2fffc0000000100(slab) [ 25.158585] raw: 02fffc0000000100 ffff8801cbea0040 0000000000000000 0000000100000006 [ 25.158592] raw: ffffea00072a4b60 ffffea00072c06e0 ffff8801dac00940 0000000000000000 [ 25.158594] page dumped because: kasan: bad access detected [ 25.158595] [ 25.158597] Memory state around the buggy address: [ 25.158601] ffff8801cbea0200: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 25.158606] ffff8801cbea0280: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 25.158610] >ffff8801cbea0300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.158612] ^ [ 25.158617] ffff8801cbea0380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.158621] ffff8801cbea0400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.158622] ================================================================== [ 25.158624] Disabling lock debugging due to kernel taint [ 25.158627] Kernel panic - not syncing: panic_on_warn set ... [ 25.158627] [ 25.158634] CPU: 1 PID: 3493 Comm: syzkaller965818 Tainted: G B 4.15.0-rc7+ #257 [ 25.158636] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.158638] Call Trace: [ 25.158644] dump_stack+0x194/0x257 [ 25.158651] ? arch_local_irq_restore+0x53/0x53 [ 25.158656] ? kasan_end_report+0x32/0x50 [ 25.158662] ? lock_downgrade+0x980/0x980 [ 25.158669] ? vsnprintf+0x1ed/0x1900 [ 25.158675] ? __lock_acquire+0x3cb0/0x3e00 [ 25.158680] panic+0x1e4/0x41c [ 25.158686] ? refcount_error_report+0x214/0x214 [ 25.158693] ? add_taint+0x40/0x50 [ 25.158698] ? add_taint+0x1c/0x50 [ 25.158705] ? __lock_acquire+0x3d4d/0x3e00 [ 25.158711] kasan_end_report+0x50/0x50 [ 25.158717] kasan_report+0x144/0x340 [ 25.158724] __asan_report_load8_noabort+0x14/0x20 [ 25.158730] __lock_acquire+0x3d4d/0x3e00 [ 25.158735] ? __lock_acquire+0x664/0x3e00 [ 25.158741] ? lock_downgrade+0x980/0x980 [ 25.158746] ? lock_downgrade+0x980/0x980 [ 25.158753] ? remove_wait_queue+0x81/0x350 [ 25.158762] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.158768] ? __lock_acquire+0x664/0x3e00 [ 25.158774] ? check_noncircular+0x20/0x20 [ 25.158785] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.158792] ? lock_acquire+0x1d5/0x580 [ 25.158797] ? lock_acquire+0x1d5/0x580 [ 25.158802] ? ep_free+0xf4/0x320 [ 25.158810] ? lock_release+0xa40/0xa40 [ 25.158816] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.158823] ? print_irqtrace_events+0x270/0x270 [ 25.158829] ? rcu_note_context_switch+0x710/0x710 [ 25.158836] ? __might_sleep+0x95/0x190 [ 25.158842] ? ep_free+0xf4/0x320 [ 25.158847] ? __mutex_lock+0x16f/0x1a80 [ 25.158852] ? ep_free+0xf4/0x320 [ 25.158859] ? print_irqtrace_events+0x270/0x270 [ 25.158864] ? ep_free+0xf4/0x320 [ 25.158872] lock_acquire+0x1d5/0x580 [ 25.158877] ? lock_acquire+0x1d5/0x580 [ 25.158883] ? remove_wait_queue+0x81/0x350 [ 25.158889] ? __lock_acquire+0x664/0x3e00 [ 25.158896] ? lock_release+0xa40/0xa40 [ 25.158905] ? lock_acquire+0x1d5/0x580 [ 25.158910] ? lock_acquire+0x1d5/0x580 [ 25.158916] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.158924] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.158929] ? remove_wait_queue+0x81/0x350 [ 25.158935] remove_wait_queue+0x81/0x350 [ 25.158943] ? add_wait_queue+0x290/0x290 [ 25.158949] ? rcutorture_record_progress+0x10/0x10 [ 25.158958] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.158965] ? __kernel_text_address+0xd/0x40 [ 25.158973] ? clear_tfile_check_list+0x370/0x370 [ 25.158980] ? check_noncircular+0x20/0x20 [ 25.158988] ? locks_remove_file+0x3fa/0x5a0 [ 25.158997] ep_free+0x13f/0x320 [ 25.159003] ? ep_remove+0x800/0x800 [ 25.159009] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.159016] ? ep_free+0x320/0x320 [ 25.159022] ep_eventpoll_release+0x44/0x60 [ 25.159028] __fput+0x327/0x7e0 [ 25.159036] ? fput+0x140/0x140 [ 25.159043] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.159051] ____fput+0x15/0x20 [ 25.159058] task_work_run+0x199/0x270 [ 25.159065] ? task_work_cancel+0x210/0x210 [ 25.159071] ? _raw_spin_unlock+0x22/0x30 [ 25.159077] ? switch_task_namespaces+0x87/0xc0 [ 25.159084] do_exit+0x9bb/0x1ad0 [ 25.159091] ? binder_ioctl+0x481/0x1417 [ 25.159097] ? mm_update_next_owner+0x930/0x930 [ 25.159105] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.159113] ? avc_ss_reset+0x110/0x110 [ 25.159118] ? mutex_unlock+0xd/0x10 [ 25.159124] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 25.159142] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.159146] ? up_read+0x1a/0x40 [ 25.159153] ? rcu_note_context_switch+0x710/0x710 [ 25.159158] ? __fd_install+0x288/0x740 [ 25.159166] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.159171] ? do_vfs_ioctl+0x486/0x1520 [ 25.159176] ? _cond_resched+0x14/0x30 [ 25.159183] ? ioctl_preallocate+0x2b0/0x2b0 [ 25.159190] ? selinux_capable+0x40/0x40 [ 25.159197] ? __alloc_fd+0x750/0x750 [ 25.159205] do_group_exit+0x149/0x400 [ 25.159211] ? SyS_exit+0x30/0x30 [ 25.159218] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.159224] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.159231] SyS_exit_group+0x1d/0x20 [ 25.159238] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.159241] RIP: 0033:0x4429f8 [ 25.159244] RSP: 002b:00007ffcc7cbf628 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 25.159250] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 25.159253] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 25.159256] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 25.159260] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 25.159263] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 25.177346] Dumping ftrace buffer: [ 25.177350] (ftrace buffer empty) [ 25.177352] Kernel Offset: disabled [ 26.301963] Rebooting in 86400 seconds..