[....] Starting enhanced syslogd: rsyslogd[ 11.465656] audit: type=1400 audit(1514874093.462:5): avc: denied { syslog } for pid=3324 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.092940] audit: type=1400 audit(1514874098.089:6): avc: denied { map } for pid=3463 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.15.244' (ECDSA) to the list of known hosts. executing program [ 22.273122] audit: type=1400 audit(1514874104.269:7): avc: denied { map } for pid=3477 comm="syzkaller463150" path="/root/syzkaller463150995" 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.279825] ================================================================== [ 22.279839] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 22.279844] Read of size 8 at addr ffff8801cb46daf0 by task syzkaller463150/3477 [ 22.279845] [ 22.279853] CPU: 1 PID: 3477 Comm: syzkaller463150 Not tainted 4.15.0-rc6+ #245 [ 22.279856] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.279859] Call Trace: [ 22.279869] dump_stack+0x194/0x257 [ 22.279876] ? arch_local_irq_restore+0x53/0x53 [ 22.279883] ? show_regs_print_info+0x18/0x18 [ 22.279889] ? print_irqtrace_events+0x270/0x270 [ 22.279896] ? __lock_acquire+0x664/0x3e00 [ 22.279902] ? __lock_acquire+0x3d4d/0x3e00 [ 22.279911] print_address_description+0x73/0x250 [ 22.279917] ? __lock_acquire+0x3d4d/0x3e00 [ 22.279923] kasan_report+0x25b/0x340 [ 22.279932] __asan_report_load8_noabort+0x14/0x20 [ 22.279937] __lock_acquire+0x3d4d/0x3e00 [ 22.279943] ? __lock_acquire+0x664/0x3e00 [ 22.279948] ? lock_downgrade+0x980/0x980 [ 22.279953] ? lock_downgrade+0x980/0x980 [ 22.279962] ? remove_wait_queue+0x81/0x350 [ 22.279971] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.279978] ? __lock_acquire+0x664/0x3e00 [ 22.279983] ? check_noncircular+0x20/0x20 [ 22.279996] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.280007] ? lock_acquire+0x1d5/0x580 [ 22.280012] ? lock_acquire+0x1d5/0x580 [ 22.280018] ? ep_free+0xf4/0x320 [ 22.280027] ? lock_release+0xa40/0xa40 [ 22.280034] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.280040] ? print_irqtrace_events+0x270/0x270 [ 22.280047] ? rcu_note_context_switch+0x710/0x710 [ 22.280054] ? __might_sleep+0x95/0x190 [ 22.280061] ? ep_free+0xf4/0x320 [ 22.280066] ? __mutex_lock+0x16f/0x1a80 [ 22.280072] ? ep_free+0xf4/0x320 [ 22.280079] ? print_irqtrace_events+0x270/0x270 [ 22.280083] ? ep_free+0xf4/0x320 [ 22.280091] lock_acquire+0x1d5/0x580 [ 22.280096] ? lock_acquire+0x1d5/0x580 [ 22.280102] ? remove_wait_queue+0x81/0x350 [ 22.280108] ? __lock_acquire+0x664/0x3e00 [ 22.280115] ? lock_release+0xa40/0xa40 [ 22.280125] ? lock_acquire+0x1d5/0x580 [ 22.280130] ? lock_acquire+0x1d5/0x580 [ 22.280136] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 22.280144] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.280150] ? remove_wait_queue+0x81/0x350 [ 22.280156] remove_wait_queue+0x81/0x350 [ 22.280164] ? add_wait_queue+0x290/0x290 [ 22.280170] ? rcutorture_record_progress+0x10/0x10 [ 22.280180] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 22.280188] ? __kernel_text_address+0xd/0x40 [ 22.280196] ? clear_tfile_check_list+0x370/0x370 [ 22.280204] ? check_noncircular+0x20/0x20 [ 22.280213] ? locks_remove_file+0x3fa/0x5a0 [ 22.280222] ep_free+0x13f/0x320 [ 22.280229] ? ep_remove+0x800/0x800 [ 22.280235] ? fsnotify_first_mark+0x2b0/0x2b0 [ 22.280243] ? ep_free+0x320/0x320 [ 22.280249] ep_eventpoll_release+0x44/0x60 [ 22.280257] __fput+0x327/0x7e0 [ 22.280265] ? fput+0x140/0x140 [ 22.280272] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.280281] ____fput+0x15/0x20 [ 22.280287] task_work_run+0x199/0x270 [ 22.280295] ? task_work_cancel+0x210/0x210 [ 22.280301] ? _raw_spin_unlock+0x22/0x30 [ 22.280308] ? switch_task_namespaces+0x87/0xc0 [ 22.280317] do_exit+0x9bb/0x1ad0 [ 22.280327] ? binder_ioctl+0x551/0x1417 [ 22.280333] ? mm_update_next_owner+0x930/0x930 [ 22.280341] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 22.280351] ? avc_ss_reset+0x110/0x110 [ 22.280356] ? mutex_unlock+0xd/0x10 [ 22.280362] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 22.280381] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.280386] ? up_read+0x1a/0x40 [ 22.280392] ? rcu_note_context_switch+0x710/0x710 [ 22.280398] ? __fd_install+0x288/0x740 [ 22.280407] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 22.280413] ? do_vfs_ioctl+0x486/0x1520 [ 22.280417] ? _cond_resched+0x14/0x30 [ 22.280425] ? ioctl_preallocate+0x2b0/0x2b0 [ 22.280433] ? selinux_capable+0x40/0x40 [ 22.280439] ? __alloc_fd+0x750/0x750 [ 22.280448] do_group_exit+0x149/0x400 [ 22.280454] ? SyS_exit+0x30/0x30 [ 22.280461] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 22.280469] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 22.280477] SyS_exit_group+0x1d/0x20 [ 22.280483] entry_SYSCALL_64_fastpath+0x23/0x9a [ 22.280488] RIP: 0033:0x4429f8 [ 22.280491] RSP: 002b:00007ffc7dbae768 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 22.280498] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 22.280502] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 22.280505] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 22.280508] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 22.280511] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 22.280520] [ 22.280522] Allocated by task 3477: [ 22.280528] save_stack+0x43/0xd0 [ 22.280533] kasan_kmalloc+0xad/0xe0 [ 22.280537] kmem_cache_alloc_trace+0x136/0x750 [ 22.280542] binder_get_thread+0x1cf/0x870 [ 22.280546] binder_poll+0x8c/0x390 [ 22.280551] ep_item_poll.isra.10+0xec/0x320 [ 22.280556] ep_insert+0x6a3/0x1b10 [ 22.280561] SyS_epoll_ctl+0x12e4/0x1ab0 [ 22.280566] entry_SYSCALL_64_fastpath+0x23/0x9a [ 22.280567] [ 22.280569] Freed by task 3477: [ 22.280573] save_stack+0x43/0xd0 [ 22.280578] kasan_slab_free+0x71/0xc0 [ 22.280586] kfree+0xd6/0x260 [ 22.280590] binder_thread_dec_tmpref+0x27f/0x310 [ 22.280595] binder_thread_release+0x27d/0x540 [ 22.280599] binder_ioctl+0xc02/0x1417 [ 22.280604] do_vfs_ioctl+0x1b1/0x1520 [ 22.280608] SyS_ioctl+0x8f/0xc0 [ 22.280613] entry_SYSCALL_64_fastpath+0x23/0x9a [ 22.280614] [ 22.280618] The buggy address belongs to the object at ffff8801cb46da40 [ 22.280618] which belongs to the cache kmalloc-512 of size 512 [ 22.280623] The buggy address is located 176 bytes inside of [ 22.280623] 512-byte region [ffff8801cb46da40, ffff8801cb46dc40) [ 22.280624] The buggy address belongs to the page: [ 22.280629] page:00000000aef67a3c count:1 mapcount:0 mapping:00000000fd5d9764 index:0x0 [ 22.280635] flags: 0x2fffc0000000100(slab) [ 22.280644] raw: 02fffc0000000100 ffff8801cb46d040 0000000000000000 0000000100000006 [ 22.280650] raw: ffffea00073adb60 ffffea00072fe2e0 ffff8801dac00940 0000000000000000 [ 22.280652] page dumped because: kasan: bad access detected [ 22.280654] [ 22.280655] Memory state around the buggy address: [ 22.280660] ffff8801cb46d980: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 22.280664] ffff8801cb46da00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 22.280669] >ffff8801cb46da80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.280671] ^ [ 22.280675] ffff8801cb46db00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.280680] ffff8801cb46db80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.280681] ================================================================== [ 22.280683] Disabling lock debugging due to kernel taint [ 22.280686] Kernel panic - not syncing: panic_on_warn set ... [ 22.280686] [ 22.280692] CPU: 1 PID: 3477 Comm: syzkaller463150 Tainted: G B 4.15.0-rc6+ #245 [ 22.280695] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.280697] Call Trace: [ 22.280703] dump_stack+0x194/0x257 [ 22.280710] ? arch_local_irq_restore+0x53/0x53 [ 22.280715] ? kasan_end_report+0x32/0x50 [ 22.280721] ? lock_downgrade+0x980/0x980 [ 22.280728] ? vsnprintf+0x1ed/0x1900 [ 22.280734] ? __lock_acquire+0x3c70/0x3e00 [ 22.280740] panic+0x1e4/0x41c [ 22.280745] ? refcount_error_report+0x214/0x214 [ 22.280753] ? add_taint+0x40/0x50 [ 22.280758] ? add_taint+0x1c/0x50 [ 22.280764] ? __lock_acquire+0x3d4d/0x3e00 [ 22.280770] kasan_end_report+0x50/0x50 [ 22.280776] kasan_report+0x144/0x340 [ 22.280784] __asan_report_load8_noabort+0x14/0x20 [ 22.280790] __lock_acquire+0x3d4d/0x3e00 [ 22.280795] ? __lock_acquire+0x664/0x3e00 [ 22.280801] ? lock_downgrade+0x980/0x980 [ 22.280806] ? lock_downgrade+0x980/0x980 [ 22.280813] ? remove_wait_queue+0x81/0x350 [ 22.280822] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.280829] ? __lock_acquire+0x664/0x3e00 [ 22.280834] ? check_noncircular+0x20/0x20 [ 22.280846] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.280853] ? lock_acquire+0x1d5/0x580 [ 22.280858] ? lock_acquire+0x1d5/0x580 [ 22.280863] ? ep_free+0xf4/0x320 [ 22.280871] ? lock_release+0xa40/0xa40 [ 22.280877] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.280883] ? print_irqtrace_events+0x270/0x270 [ 22.280890] ? rcu_note_context_switch+0x710/0x710 [ 22.280897] ? __might_sleep+0x95/0x190 [ 22.280903] ? ep_free+0xf4/0x320 [ 22.280908] ? __mutex_lock+0x16f/0x1a80 [ 22.280913] ? ep_free+0xf4/0x320 [ 22.280920] ? print_irqtrace_events+0x270/0x270 [ 22.280924] ? ep_free+0xf4/0x320 [ 22.280932] lock_acquire+0x1d5/0x580 [ 22.280938] ? lock_acquire+0x1d5/0x580 [ 22.280943] ? remove_wait_queue+0x81/0x350 [ 22.280949] ? __lock_acquire+0x664/0x3e00 [ 22.280956] ? lock_release+0xa40/0xa40 [ 22.280965] ? lock_acquire+0x1d5/0x580 [ 22.280970] ? lock_acquire+0x1d5/0x580 [ 22.280976] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 22.280984] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.280989] ? remove_wait_queue+0x81/0x350 [ 22.280995] remove_wait_queue+0x81/0x350 [ 22.281003] ? add_wait_queue+0x290/0x290 [ 22.281009] ? rcutorture_record_progress+0x10/0x10 [ 22.281019] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 22.281025] ? __kernel_text_address+0xd/0x40 [ 22.281033] ? clear_tfile_check_list+0x370/0x370 [ 22.281040] ? check_noncircular+0x20/0x20 [ 22.281048] ? locks_remove_file+0x3fa/0x5a0 [ 22.281057] ep_free+0x13f/0x320 [ 22.281063] ? ep_remove+0x800/0x800 [ 22.281069] ? fsnotify_first_mark+0x2b0/0x2b0 [ 22.281076] ? ep_free+0x320/0x320 [ 22.281082] ep_eventpoll_release+0x44/0x60 [ 22.281088] __fput+0x327/0x7e0 [ 22.281096] ? fput+0x140/0x140 [ 22.281103] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.281111] ____fput+0x15/0x20 [ 22.281117] task_work_run+0x199/0x270 [ 22.281125] ? task_work_cancel+0x210/0x210 [ 22.281131] ? _raw_spin_unlock+0x22/0x30 [ 22.281137] ? switch_task_namespaces+0x87/0xc0 [ 22.281144] do_exit+0x9bb/0x1ad0 [ 22.281151] ? binder_ioctl+0x551/0x1417 [ 22.281157] ? mm_update_next_owner+0x930/0x930 [ 22.281164] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 22.281172] ? avc_ss_reset+0x110/0x110 [ 22.281177] ? mutex_unlock+0xd/0x10 [ 22.281183] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 22.281201] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.281206] ? up_read+0x1a/0x40 [ 22.281212] ? rcu_note_context_switch+0x710/0x710 [ 22.281217] ? __fd_install+0x288/0x740 [ 22.281225] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 22.281230] ? do_vfs_ioctl+0x486/0x1520 [ 22.281235] ? _cond_resched+0x14/0x30 [ 22.281242] ? ioctl_preallocate+0x2b0/0x2b0 [ 22.281250] ? selinux_capable+0x40/0x40 [ 22.281256] ? __alloc_fd+0x750/0x750 [ 22.281264] do_group_exit+0x149/0x400 [ 22.281270] ? SyS_exit+0x30/0x30 [ 22.281277] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 22.281284] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 22.281291] SyS_exit_group+0x1d/0x20 [ 22.281297] entry_SYSCALL_64_fastpath+0x23/0x9a [ 22.281301] RIP: 0033:0x4429f8 [ 22.281304] RSP: 002b:00007ffc7dbae768 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 22.281309] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 22.281312] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 22.281316] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 22.281319] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 22.281322] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 22.299414] Dumping ftrace buffer: [ 22.299417] (ftrace buffer empty) [ 22.299419] Kernel Offset: disabled [ 23.424191] Rebooting in 86400 seconds..