[....] Starting enhanced syslogd: rsyslogd[ 12.415661] audit: type=1400 audit(1516073899.018:5): avc: denied { syslog } for pid=3500 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 periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] 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.387495] audit: type=1400 audit(1516073901.990:6): avc: denied { map } for pid=3639 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.43' (ECDSA) to the list of known hosts. executing program [ 21.632109] audit: type=1400 audit(1516073908.234:7): avc: denied { map } for pid=3653 comm="syzkaller106455" path="/root/syzkaller106455643" 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 [ 21.636738] ================================================================== [ 21.636751] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 21.636756] Read of size 8 at addr ffff8801bbde55f0 by task syzkaller106455/3653 [ 21.636758] [ 21.636764] CPU: 0 PID: 3653 Comm: syzkaller106455 Not tainted 4.15.0-rc8+ #263 [ 21.636767] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 21.636769] Call Trace: [ 21.636779] dump_stack+0x194/0x257 [ 21.636787] ? arch_local_irq_restore+0x53/0x53 [ 21.636794] ? show_regs_print_info+0x18/0x18 [ 21.636799] ? print_irqtrace_events+0x270/0x270 [ 21.636806] ? __lock_acquire+0x664/0x3e00 [ 21.636812] ? __lock_acquire+0x3d4d/0x3e00 [ 21.636821] print_address_description+0x73/0x250 [ 21.636827] ? __lock_acquire+0x3d4d/0x3e00 [ 21.636833] kasan_report+0x25b/0x340 [ 21.636841] __asan_report_load8_noabort+0x14/0x20 [ 21.636847] __lock_acquire+0x3d4d/0x3e00 [ 21.636852] ? __lock_acquire+0x664/0x3e00 [ 21.636858] ? lock_downgrade+0x980/0x980 [ 21.636863] ? lock_downgrade+0x980/0x980 [ 21.636872] ? remove_wait_queue+0x81/0x350 [ 21.636881] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.636888] ? __lock_acquire+0x664/0x3e00 [ 21.636893] ? check_noncircular+0x20/0x20 [ 21.636906] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.636913] ? lock_acquire+0x1d5/0x580 [ 21.636919] ? lock_acquire+0x1d5/0x580 [ 21.636925] ? ep_free+0xf4/0x320 [ 21.636934] ? lock_release+0xa40/0xa40 [ 21.636941] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 21.636947] ? print_irqtrace_events+0x270/0x270 [ 21.636955] ? rcu_note_context_switch+0x710/0x710 [ 21.636962] ? __might_sleep+0x95/0x190 [ 21.636968] ? ep_free+0xf4/0x320 [ 21.636975] ? __mutex_lock+0x16f/0x1a80 [ 21.636980] ? ep_free+0xf4/0x320 [ 21.636987] ? print_irqtrace_events+0x270/0x270 [ 21.636992] ? ep_free+0xf4/0x320 [ 21.637000] lock_acquire+0x1d5/0x580 [ 21.637010] ? lock_acquire+0x1d5/0x580 [ 21.637016] ? remove_wait_queue+0x81/0x350 [ 21.637022] ? __lock_acquire+0x664/0x3e00 [ 21.637030] ? lock_release+0xa40/0xa40 [ 21.637039] ? lock_acquire+0x1d5/0x580 [ 21.637044] ? lock_acquire+0x1d5/0x580 [ 21.637050] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 21.637058] _raw_spin_lock_irqsave+0x96/0xc0 [ 21.637064] ? remove_wait_queue+0x81/0x350 [ 21.637070] remove_wait_queue+0x81/0x350 [ 21.637083] ? add_wait_queue+0x290/0x290 [ 21.637089] ? rcutorture_record_progress+0x10/0x10 [ 21.637100] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 21.637108] ? __kernel_text_address+0xd/0x40 [ 21.637117] ? clear_tfile_check_list+0x370/0x370 [ 21.637124] ? check_noncircular+0x20/0x20 [ 21.637133] ? locks_remove_file+0x3fa/0x5a0 [ 21.637143] ep_free+0x13f/0x320 [ 21.637149] ? ep_remove+0x800/0x800 [ 21.637155] ? fsnotify_first_mark+0x2b0/0x2b0 [ 21.637163] ? ep_free+0x320/0x320 [ 21.637169] ep_eventpoll_release+0x44/0x60 [ 21.637177] __fput+0x327/0x7e0 [ 21.637185] ? fput+0x140/0x140 [ 21.637193] ? _raw_spin_unlock_irq+0x27/0x70 [ 21.637201] ____fput+0x15/0x20 [ 21.637208] task_work_run+0x199/0x270 [ 21.637216] ? task_work_cancel+0x210/0x210 [ 21.637222] ? _raw_spin_unlock+0x22/0x30 [ 21.637229] ? switch_task_namespaces+0x87/0xc0 [ 21.637238] do_exit+0x9bb/0x1ad0 [ 21.637248] ? binder_ioctl+0x4a1/0x1417 [ 21.637254] ? mm_update_next_owner+0x930/0x930 [ 21.637262] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 21.637273] ? avc_ss_reset+0x110/0x110 [ 21.637278] ? mutex_unlock+0xd/0x10 [ 21.637284] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 21.637304] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 21.637309] ? up_read+0x1a/0x40 [ 21.637316] ? rcu_note_context_switch+0x710/0x710 [ 21.637322] ? __fd_install+0x288/0x740 [ 21.637331] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 21.637337] ? do_vfs_ioctl+0x486/0x1520 [ 21.637342] ? _cond_resched+0x14/0x30 [ 21.637350] ? ioctl_preallocate+0x2b0/0x2b0 [ 21.637357] ? selinux_capable+0x40/0x40 [ 21.637364] ? __alloc_fd+0x750/0x750 [ 21.637372] do_group_exit+0x149/0x400 [ 21.637379] ? SyS_exit+0x30/0x30 [ 21.637386] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 21.637393] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 21.637401] SyS_exit_group+0x1d/0x20 [ 21.637408] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 21.637413] RIP: 0033:0x4429f8 [ 21.637416] RSP: 002b:00007ffd432db348 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 21.637423] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 21.637426] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 21.637429] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 21.637433] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 21.637436] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 21.637444] [ 21.637447] Allocated by task 3653: [ 21.637453] save_stack+0x43/0xd0 [ 21.637457] kasan_kmalloc+0xad/0xe0 [ 21.637462] kmem_cache_alloc_trace+0x136/0x750 [ 21.637467] binder_get_thread+0x1cf/0x870 [ 21.637472] binder_poll+0x8c/0x390 [ 21.637478] ep_item_poll.isra.10+0xec/0x320 [ 21.637482] ep_insert+0x6a3/0x1b10 [ 21.637488] SyS_epoll_ctl+0x12e4/0x1ab0 [ 21.637493] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 21.637495] [ 21.637497] Freed by task 3653: [ 21.637501] save_stack+0x43/0xd0 [ 21.637506] kasan_slab_free+0x71/0xc0 [ 21.637510] kfree+0xd6/0x260 [ 21.637515] binder_thread_dec_tmpref+0x27f/0x310 [ 21.637521] binder_thread_release+0x27d/0x540 [ 21.637526] binder_ioctl+0xc02/0x1417 [ 21.637530] do_vfs_ioctl+0x1b1/0x1520 [ 21.637535] SyS_ioctl+0x8f/0xc0 [ 21.637541] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 21.637542] [ 21.637546] The buggy address belongs to the object at ffff8801bbde5540 [ 21.637546] which belongs to the cache kmalloc-512 of size 512 [ 21.637550] The buggy address is located 176 bytes inside of [ 21.637550] 512-byte region [ffff8801bbde5540, ffff8801bbde5740) [ 21.637552] The buggy address belongs to the page: [ 21.637557] page:ffffea0006ef7940 count:1 mapcount:0 mapping:ffff8801bbde5040 index:0x0 [ 21.637562] flags: 0x2fffc0000000100(slab) [ 21.637571] raw: 02fffc0000000100 ffff8801bbde5040 0000000000000000 0000000100000006 [ 21.637577] raw: ffffea0006ed9020 ffff8801dac01748 ffff8801dac00940 0000000000000000 [ 21.637580] page dumped because: kasan: bad access detected [ 21.637581] [ 21.637582] Memory state around the buggy address: [ 21.637587] ffff8801bbde5480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.637591] ffff8801bbde5500: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 21.637595] >ffff8801bbde5580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.637598] ^ [ 21.637602] ffff8801bbde5600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.637606] ffff8801bbde5680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.637608] ================================================================== [ 21.637610] Disabling lock debugging due to kernel taint [ 21.637613] Kernel panic - not syncing: panic_on_warn set ... [ 21.637613] [ 21.637619] CPU: 0 PID: 3653 Comm: syzkaller106455 Tainted: G B 4.15.0-rc8+ #263 [ 21.637622] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 21.637623] Call Trace: [ 21.637629] dump_stack+0x194/0x257 [ 21.637637] ? arch_local_irq_restore+0x53/0x53 [ 21.637642] ? kasan_end_report+0x32/0x50 [ 21.637648] ? lock_downgrade+0x980/0x980 [ 21.637655] ? vsnprintf+0x1ed/0x1900 [ 21.637661] ? __lock_acquire+0x3c70/0x3e00 [ 21.637667] panic+0x1e4/0x41c [ 21.637672] ? refcount_error_report+0x214/0x214 [ 21.637679] ? add_taint+0x40/0x50 [ 21.637685] ? add_taint+0x1c/0x50 [ 21.637692] ? __lock_acquire+0x3d4d/0x3e00 [ 21.637697] kasan_end_report+0x50/0x50 [ 21.637703] kasan_report+0x144/0x340 [ 21.637711] __asan_report_load8_noabort+0x14/0x20 [ 21.637716] __lock_acquire+0x3d4d/0x3e00 [ 21.637722] ? __lock_acquire+0x664/0x3e00 [ 21.637727] ? lock_downgrade+0x980/0x980 [ 21.637733] ? lock_downgrade+0x980/0x980 [ 21.637740] ? remove_wait_queue+0x81/0x350 [ 21.637749] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.637755] ? __lock_acquire+0x664/0x3e00 [ 21.637761] ? check_noncircular+0x20/0x20 [ 21.637773] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.637780] ? lock_acquire+0x1d5/0x580 [ 21.637785] ? lock_acquire+0x1d5/0x580 [ 21.637790] ? ep_free+0xf4/0x320 [ 21.637798] ? lock_release+0xa40/0xa40 [ 21.637804] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 21.637810] ? print_irqtrace_events+0x270/0x270 [ 21.637816] ? rcu_note_context_switch+0x710/0x710 [ 21.637824] ? __might_sleep+0x95/0x190 [ 21.637830] ? ep_free+0xf4/0x320 [ 21.637835] ? __mutex_lock+0x16f/0x1a80 [ 21.637840] ? ep_free+0xf4/0x320 [ 21.637847] ? print_irqtrace_events+0x270/0x270 [ 21.637853] ? ep_free+0xf4/0x320 [ 21.637861] lock_acquire+0x1d5/0x580 [ 21.637866] ? lock_acquire+0x1d5/0x580 [ 21.637871] ? remove_wait_queue+0x81/0x350 [ 21.637877] ? __lock_acquire+0x664/0x3e00 [ 21.637885] ? lock_release+0xa40/0xa40 [ 21.637893] ? lock_acquire+0x1d5/0x580 [ 21.637898] ? lock_acquire+0x1d5/0x580 [ 21.637904] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 21.637912] _raw_spin_lock_irqsave+0x96/0xc0 [ 21.637917] ? remove_wait_queue+0x81/0x350 [ 21.637924] remove_wait_queue+0x81/0x350 [ 21.637932] ? add_wait_queue+0x290/0x290 [ 21.637937] ? rcutorture_record_progress+0x10/0x10 [ 21.637947] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 21.637953] ? __kernel_text_address+0xd/0x40 [ 21.637961] ? clear_tfile_check_list+0x370/0x370 [ 21.637969] ? check_noncircular+0x20/0x20 [ 21.637977] ? locks_remove_file+0x3fa/0x5a0 [ 21.637986] ep_free+0x13f/0x320 [ 21.637992] ? ep_remove+0x800/0x800 [ 21.637997] ? fsnotify_first_mark+0x2b0/0x2b0 [ 21.638005] ? ep_free+0x320/0x320 [ 21.638011] ep_eventpoll_release+0x44/0x60 [ 21.638017] __fput+0x327/0x7e0 [ 21.638025] ? fput+0x140/0x140 [ 21.638033] ? _raw_spin_unlock_irq+0x27/0x70 [ 21.638041] ____fput+0x15/0x20 [ 21.638047] task_work_run+0x199/0x270 [ 21.638055] ? task_work_cancel+0x210/0x210 [ 21.638061] ? _raw_spin_unlock+0x22/0x30 [ 21.638067] ? switch_task_namespaces+0x87/0xc0 [ 21.638078] do_exit+0x9bb/0x1ad0 [ 21.638086] ? binder_ioctl+0x4a1/0x1417 [ 21.638093] ? mm_update_next_owner+0x930/0x930 [ 21.638101] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 21.638109] ? avc_ss_reset+0x110/0x110 [ 21.638114] ? mutex_unlock+0xd/0x10 [ 21.638120] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 21.638138] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 21.638143] ? up_read+0x1a/0x40 [ 21.638150] ? rcu_note_context_switch+0x710/0x710 [ 21.638154] ? __fd_install+0x288/0x740 [ 21.638164] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 21.638169] ? do_vfs_ioctl+0x486/0x1520 [ 21.638174] ? _cond_resched+0x14/0x30 [ 21.638181] ? ioctl_preallocate+0x2b0/0x2b0 [ 21.638189] ? selinux_capable+0x40/0x40 [ 21.638195] ? __alloc_fd+0x750/0x750 [ 21.638203] do_group_exit+0x149/0x400 [ 21.638210] ? SyS_exit+0x30/0x30 [ 21.638216] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 21.638222] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 21.638230] SyS_exit_group+0x1d/0x20 [ 21.638237] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 21.638240] RIP: 0033:0x4429f8 [ 21.638243] RSP: 002b:00007ffd432db348 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 21.638249] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 21.638252] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 21.638255] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 21.638259] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 21.638262] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 21.658443] Dumping ftrace buffer: [ 21.658447] (ftrace buffer empty) [ 21.658449] Kernel Offset: disabled [ 22.783225] Rebooting in 86400 seconds..