[....] Starting enhanced syslogd: rsyslogd[ 11.580638] audit: type=1400 audit(1514579472.469:5): avc: denied { syslog } for pid=2996 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 mcstransd: [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?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: [ 17.046295] audit: type=1400 audit(1514579477.934: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 '10.128.0.4' (ECDSA) to the list of known hosts. executing program [ 23.529510] audit: type=1400 audit(1514579484.418:7): avc: denied { map } for pid=3150 comm="syzkaller319352" path="/root/syzkaller319352799" 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 [ 23.534818] ================================================================== [ 23.534839] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 23.534844] Read of size 8 at addr ffff8801caf5caf0 by task syzkaller319352/3150 [ 23.534845] [ 23.534854] CPU: 1 PID: 3150 Comm: syzkaller319352 Not tainted 4.15.0-rc5+ #240 [ 23.534857] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.534859] Call Trace: [ 23.534869] dump_stack+0x194/0x257 [ 23.534876] ? arch_local_irq_restore+0x53/0x53 [ 23.534886] ? show_regs_print_info+0x18/0x18 [ 23.534892] ? print_irqtrace_events+0x270/0x270 [ 23.534898] ? __lock_acquire+0x664/0x3e00 [ 23.534905] ? __lock_acquire+0x3d4d/0x3e00 [ 23.534914] print_address_description+0x73/0x250 [ 23.534920] ? __lock_acquire+0x3d4d/0x3e00 [ 23.534926] kasan_report+0x25b/0x340 [ 23.534934] __asan_report_load8_noabort+0x14/0x20 [ 23.534940] __lock_acquire+0x3d4d/0x3e00 [ 23.534945] ? __lock_acquire+0x664/0x3e00 [ 23.534951] ? lock_downgrade+0x980/0x980 [ 23.534956] ? lock_downgrade+0x980/0x980 [ 23.534965] ? remove_wait_queue+0x81/0x350 [ 23.534973] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.534980] ? __lock_acquire+0x664/0x3e00 [ 23.534985] ? check_noncircular+0x20/0x20 [ 23.534997] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.535008] ? lock_acquire+0x1d5/0x580 [ 23.535014] ? lock_acquire+0x1d5/0x580 [ 23.535020] ? ep_free+0xf4/0x320 [ 23.535028] ? lock_release+0xa40/0xa40 [ 23.535035] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.535041] ? print_irqtrace_events+0x270/0x270 [ 23.535048] ? rcu_note_context_switch+0x710/0x710 [ 23.535056] ? __might_sleep+0x95/0x190 [ 23.535061] ? ep_free+0xf4/0x320 [ 23.535067] ? __mutex_lock+0x16f/0x1a80 [ 23.535072] ? ep_free+0xf4/0x320 [ 23.535079] ? print_irqtrace_events+0x270/0x270 [ 23.535083] ? ep_free+0xf4/0x320 [ 23.535091] lock_acquire+0x1d5/0x580 [ 23.535097] ? lock_acquire+0x1d5/0x580 [ 23.535102] ? remove_wait_queue+0x81/0x350 [ 23.535108] ? __lock_acquire+0x664/0x3e00 [ 23.535116] ? lock_release+0xa40/0xa40 [ 23.535125] ? lock_acquire+0x1d5/0x580 [ 23.535130] ? lock_acquire+0x1d5/0x580 [ 23.535136] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 23.535143] _raw_spin_lock_irqsave+0x96/0xc0 [ 23.535149] ? remove_wait_queue+0x81/0x350 [ 23.535155] remove_wait_queue+0x81/0x350 [ 23.535163] ? add_wait_queue+0x290/0x290 [ 23.535169] ? rcutorture_record_progress+0x10/0x10 [ 23.535179] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 23.535186] ? __kernel_text_address+0xd/0x40 [ 23.535194] ? clear_tfile_check_list+0x370/0x370 [ 23.535201] ? check_noncircular+0x20/0x20 [ 23.535210] ? locks_remove_file+0x3fa/0x5a0 [ 23.535220] ep_free+0x13f/0x320 [ 23.535225] ? ep_remove+0x800/0x800 [ 23.535233] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.535240] ? ep_free+0x320/0x320 [ 23.535246] ep_eventpoll_release+0x44/0x60 [ 23.535253] __fput+0x327/0x7e0 [ 23.535261] ? fput+0x140/0x140 [ 23.535268] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.535276] ____fput+0x15/0x20 [ 23.535283] task_work_run+0x199/0x270 [ 23.535291] ? task_work_cancel+0x210/0x210 [ 23.535297] ? _raw_spin_unlock+0x22/0x30 [ 23.535302] ? switch_task_namespaces+0x87/0xc0 [ 23.535312] do_exit+0x9bb/0x1ad0 [ 23.535322] ? binder_ioctl+0x511/0x1417 [ 23.535328] ? mm_update_next_owner+0x930/0x930 [ 23.535336] ? binder_ioctl_write_read.isra.41+0xcb0/0xcb0 [ 23.535347] ? avc_ss_reset+0x110/0x110 [ 23.535352] ? mutex_unlock+0xd/0x10 [ 23.535357] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 23.535376] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.535381] ? up_read+0x1a/0x40 [ 23.535388] ? rcu_note_context_switch+0x710/0x710 [ 23.535394] ? __fd_install+0x288/0x740 [ 23.535404] ? binder_ioctl_write_read.isra.41+0xcb0/0xcb0 [ 23.535410] ? do_vfs_ioctl+0x486/0x1520 [ 23.535416] ? _cond_resched+0x14/0x30 [ 23.535429] ? ioctl_preallocate+0x2b0/0x2b0 [ 23.535436] ? selinux_capable+0x40/0x40 [ 23.535443] ? __alloc_fd+0x750/0x750 [ 23.535452] do_group_exit+0x149/0x400 [ 23.535458] ? SyS_exit+0x30/0x30 [ 23.535465] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.535473] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 23.535481] SyS_exit_group+0x1d/0x20 [ 23.535487] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 23.535493] RIP: 0033:0x4429f8 [ 23.535496] RSP: 002b:00007ffd9525dd68 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 23.535503] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 23.535506] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 23.535510] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 23.535513] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 23.535516] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 23.535524] [ 23.535527] Allocated by task 3150: [ 23.535534] save_stack+0x43/0xd0 [ 23.535539] kasan_kmalloc+0xad/0xe0 [ 23.535548] kmem_cache_alloc_trace+0x136/0x750 [ 23.535553] binder_get_thread+0x1cf/0x870 [ 23.535558] binder_poll+0x8c/0x390 [ 23.535562] ep_item_poll.isra.10+0xec/0x320 [ 23.535566] ep_insert+0x6a3/0x1b10 [ 23.535571] SyS_epoll_ctl+0x12e4/0x1ab0 [ 23.535576] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 23.535577] [ 23.535579] Freed by task 3150: [ 23.535584] save_stack+0x43/0xd0 [ 23.535588] kasan_slab_free+0x71/0xc0 [ 23.535592] kfree+0xd6/0x260 [ 23.535597] binder_thread_dec_tmpref+0x27f/0x310 [ 23.535602] binder_thread_release+0x27d/0x540 [ 23.535606] binder_ioctl+0xc02/0x1417 [ 23.535611] do_vfs_ioctl+0x1b1/0x1520 [ 23.535616] SyS_ioctl+0x8f/0xc0 [ 23.535622] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 23.535623] [ 23.535627] The buggy address belongs to the object at ffff8801caf5ca40 [ 23.535627] which belongs to the cache kmalloc-512 of size 512 [ 23.535631] The buggy address is located 176 bytes inside of [ 23.535631] 512-byte region [ffff8801caf5ca40, ffff8801caf5cc40) [ 23.535633] The buggy address belongs to the page: [ 23.535640] page:00000000330efd1b count:1 mapcount:0 mapping:0000000010818192 index:0xffff8801caf5c040 [ 23.535645] flags: 0x2fffc0000000100(slab) [ 23.535654] raw: 02fffc0000000100 ffff8801caf5c040 ffff8801caf5c040 0000000100000005 [ 23.535661] raw: ffffea00072829a0 ffffea0007309220 ffff8801db000940 0000000000000000 [ 23.535663] page dumped because: kasan: bad access detected [ 23.535664] [ 23.535666] Memory state around the buggy address: [ 23.535671] ffff8801caf5c980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.535675] ffff8801caf5ca00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 23.535680] >ffff8801caf5ca80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.535682] ^ [ 23.535686] ffff8801caf5cb00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.535691] ffff8801caf5cb80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.535692] ================================================================== [ 23.535694] Disabling lock debugging due to kernel taint [ 23.535698] Kernel panic - not syncing: panic_on_warn set ... [ 23.535698] [ 23.535704] CPU: 1 PID: 3150 Comm: syzkaller319352 Tainted: G B 4.15.0-rc5+ #240 [ 23.535707] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.535708] Call Trace: [ 23.535714] dump_stack+0x194/0x257 [ 23.535721] ? arch_local_irq_restore+0x53/0x53 [ 23.535727] ? kasan_end_report+0x32/0x50 [ 23.535733] ? lock_downgrade+0x980/0x980 [ 23.535739] ? vsnprintf+0x1ed/0x1900 [ 23.535745] ? __lock_acquire+0x3cd0/0x3e00 [ 23.535751] panic+0x1e4/0x41c [ 23.535756] ? refcount_error_report+0x214/0x214 [ 23.535763] ? add_taint+0x40/0x50 [ 23.535768] ? add_taint+0x1c/0x50 [ 23.535775] ? __lock_acquire+0x3d4d/0x3e00 [ 23.535781] kasan_end_report+0x50/0x50 [ 23.535786] kasan_report+0x144/0x340 [ 23.535794] __asan_report_load8_noabort+0x14/0x20 [ 23.535799] __lock_acquire+0x3d4d/0x3e00 [ 23.535805] ? __lock_acquire+0x664/0x3e00 [ 23.535810] ? lock_downgrade+0x980/0x980 [ 23.535815] ? lock_downgrade+0x980/0x980 [ 23.535823] ? remove_wait_queue+0x81/0x350 [ 23.535831] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.535838] ? __lock_acquire+0x664/0x3e00 [ 23.535843] ? check_noncircular+0x20/0x20 [ 23.535854] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.535861] ? lock_acquire+0x1d5/0x580 [ 23.535867] ? lock_acquire+0x1d5/0x580 [ 23.535872] ? ep_free+0xf4/0x320 [ 23.535879] ? lock_release+0xa40/0xa40 [ 23.535885] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.535891] ? print_irqtrace_events+0x270/0x270 [ 23.535897] ? rcu_note_context_switch+0x710/0x710 [ 23.535904] ? __might_sleep+0x95/0x190 [ 23.535909] ? ep_free+0xf4/0x320 [ 23.535915] ? __mutex_lock+0x16f/0x1a80 [ 23.535919] ? ep_free+0xf4/0x320 [ 23.535926] ? print_irqtrace_events+0x270/0x270 [ 23.535930] ? ep_free+0xf4/0x320 [ 23.535938] lock_acquire+0x1d5/0x580 [ 23.535943] ? lock_acquire+0x1d5/0x580 [ 23.535949] ? remove_wait_queue+0x81/0x350 [ 23.535954] ? __lock_acquire+0x664/0x3e00 [ 23.535962] ? lock_release+0xa40/0xa40 [ 23.535970] ? lock_acquire+0x1d5/0x580 [ 23.535975] ? lock_acquire+0x1d5/0x580 [ 23.535981] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 23.535988] _raw_spin_lock_irqsave+0x96/0xc0 [ 23.535994] ? remove_wait_queue+0x81/0x350 [ 23.536000] remove_wait_queue+0x81/0x350 [ 23.536007] ? add_wait_queue+0x290/0x290 [ 23.536013] ? rcutorture_record_progress+0x10/0x10 [ 23.536022] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 23.536029] ? __kernel_text_address+0xd/0x40 [ 23.536036] ? clear_tfile_check_list+0x370/0x370 [ 23.536043] ? check_noncircular+0x20/0x20 [ 23.536051] ? locks_remove_file+0x3fa/0x5a0 [ 23.536059] ep_free+0x13f/0x320 [ 23.536065] ? ep_remove+0x800/0x800 [ 23.536071] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.536078] ? ep_free+0x320/0x320 [ 23.536083] ep_eventpoll_release+0x44/0x60 [ 23.536089] __fput+0x327/0x7e0 [ 23.536096] ? fput+0x140/0x140 [ 23.536103] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.536110] ____fput+0x15/0x20 [ 23.536116] task_work_run+0x199/0x270 [ 23.536124] ? task_work_cancel+0x210/0x210 [ 23.536130] ? _raw_spin_unlock+0x22/0x30 [ 23.536135] ? switch_task_namespaces+0x87/0xc0 [ 23.536142] do_exit+0x9bb/0x1ad0 [ 23.536150] ? binder_ioctl+0x511/0x1417 [ 23.536156] ? mm_update_next_owner+0x930/0x930 [ 23.536164] ? binder_ioctl_write_read.isra.41+0xcb0/0xcb0 [ 23.536172] ? avc_ss_reset+0x110/0x110 [ 23.536177] ? mutex_unlock+0xd/0x10 [ 23.536183] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 23.536200] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.536205] ? up_read+0x1a/0x40 [ 23.536211] ? rcu_note_context_switch+0x710/0x710 [ 23.536217] ? __fd_install+0x288/0x740 [ 23.536226] ? binder_ioctl_write_read.isra.41+0xcb0/0xcb0 [ 23.536232] ? do_vfs_ioctl+0x486/0x1520 [ 23.536237] ? _cond_resched+0x14/0x30 [ 23.536246] ? ioctl_preallocate+0x2b0/0x2b0 [ 23.536252] ? selinux_capable+0x40/0x40 [ 23.536259] ? __alloc_fd+0x750/0x750 [ 23.536267] do_group_exit+0x149/0x400 [ 23.536273] ? SyS_exit+0x30/0x30 [ 23.536280] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.536286] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 23.536294] SyS_exit_group+0x1d/0x20 [ 23.536300] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 23.536303] RIP: 0033:0x4429f8 [ 23.536306] RSP: 002b:00007ffd9525dd68 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 23.536312] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 23.536315] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 23.536319] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 23.536322] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 23.536325] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 23.555800] Dumping ftrace buffer: [ 23.555804] (ftrace buffer empty) [ 23.555807] Kernel Offset: disabled [ 24.682141] Rebooting in 86400 seconds..