[....] Starting enhanced syslogd: rsyslogd[ 11.699168] audit: type=1400 audit(1515272753.926:5): avc: denied { syslog } for pid=3342 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.277622] audit: type=1400 audit(1515272760.504:6): avc: denied { map } for pid=3482 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.51' (ECDSA) to the list of known hosts. executing program [ 35.333542] audit: type=1400 audit(1515272777.560:7): avc: denied { map } for pid=3500 comm="syzkaller873362" path="/root/syzkaller873362429" 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 [ 35.339712] ================================================================== [ 35.339726] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 35.339731] Read of size 8 at addr ffff8801c8024db0 by task syzkaller873362/3500 [ 35.339733] [ 35.339739] CPU: 1 PID: 3500 Comm: syzkaller873362 Not tainted 4.15.0-rc6+ #160 [ 35.339742] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.339744] Call Trace: [ 35.339754] dump_stack+0x194/0x257 [ 35.339761] ? arch_local_irq_restore+0x53/0x53 [ 35.339769] ? show_regs_print_info+0x18/0x18 [ 35.339775] ? print_irqtrace_events+0x270/0x270 [ 35.339782] ? __lock_acquire+0x664/0x3e00 [ 35.339788] ? __lock_acquire+0x3d4d/0x3e00 [ 35.339797] print_address_description+0x73/0x250 [ 35.339803] ? __lock_acquire+0x3d4d/0x3e00 [ 35.339809] kasan_report+0x25b/0x340 [ 35.339818] __asan_report_load8_noabort+0x14/0x20 [ 35.339824] __lock_acquire+0x3d4d/0x3e00 [ 35.339829] ? __lock_acquire+0x664/0x3e00 [ 35.339835] ? lock_downgrade+0x980/0x980 [ 35.339840] ? lock_downgrade+0x980/0x980 [ 35.339847] ? print_irqtrace_events+0x270/0x270 [ 35.339853] ? remove_wait_queue+0x81/0x350 [ 35.339862] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.339868] ? __lock_acquire+0x664/0x3e00 [ 35.339875] ? check_noncircular+0x20/0x20 [ 35.339887] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.339894] ? lock_acquire+0x1d5/0x580 [ 35.339900] ? lock_acquire+0x1d5/0x580 [ 35.339907] ? ep_free+0xf4/0x320 [ 35.339916] ? lock_release+0xa40/0xa40 [ 35.339923] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 35.339929] ? print_irqtrace_events+0x270/0x270 [ 35.339934] ? print_irqtrace_events+0x270/0x270 [ 35.339944] ? rcu_note_context_switch+0x710/0x710 [ 35.339951] ? __might_sleep+0x95/0x190 [ 35.339955] ? ep_free+0xf4/0x320 [ 35.339962] ? __mutex_lock+0x16f/0x1a80 [ 35.339968] ? ep_free+0xf4/0x320 [ 35.339975] ? print_irqtrace_events+0x270/0x270 [ 35.339980] ? ep_free+0xf4/0x320 [ 35.339989] lock_acquire+0x1d5/0x580 [ 35.339994] ? lock_acquire+0x1d5/0x580 [ 35.340006] ? remove_wait_queue+0x81/0x350 [ 35.340014] ? lock_release+0xa40/0xa40 [ 35.340023] ? lock_acquire+0x1d5/0x580 [ 35.340029] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.340035] ? lock_acquire+0x1d5/0x580 [ 35.340042] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 35.340051] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.340056] ? remove_wait_queue+0x81/0x350 [ 35.340061] remove_wait_queue+0x81/0x350 [ 35.340068] ? depot_save_stack+0x3b5/0x490 [ 35.340076] ? add_wait_queue+0x290/0x290 [ 35.340082] ? rcutorture_record_progress+0x10/0x10 [ 35.340088] ? lock_release+0xa40/0xa40 [ 35.340097] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 35.340106] ? __kernel_text_address+0xd/0x40 [ 35.340114] ? clear_tfile_check_list+0x370/0x370 [ 35.340121] ? check_noncircular+0x20/0x20 [ 35.340132] ? locks_remove_file+0x3fa/0x5a0 [ 35.340141] ep_free+0x13f/0x320 [ 35.340148] ? ep_remove+0x800/0x800 [ 35.340154] ? fsnotify_first_mark+0x2b0/0x2b0 [ 35.340160] ? ep_free+0x320/0x320 [ 35.340165] ep_eventpoll_release+0x44/0x60 [ 35.340174] __fput+0x327/0x7e0 [ 35.340183] ? fput+0x140/0x140 [ 35.340190] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.340200] ____fput+0x15/0x20 [ 35.340207] task_work_run+0x199/0x270 [ 35.340215] ? task_work_cancel+0x210/0x210 [ 35.340223] ? _raw_spin_unlock+0x22/0x30 [ 35.340229] ? switch_task_namespaces+0x87/0xc0 [ 35.340237] do_exit+0x9bb/0x1ad0 [ 35.340243] ? __handle_mm_fault+0x2330/0x3ce0 [ 35.340251] ? mm_update_next_owner+0x930/0x930 [ 35.340266] ? do_raw_spin_trylock+0x190/0x190 [ 35.340273] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 35.340279] ? check_noncircular+0x20/0x20 [ 35.340286] ? _raw_spin_unlock+0x22/0x30 [ 35.340292] ? __handle_mm_fault+0x80e/0x3ce0 [ 35.340300] ? check_noncircular+0x20/0x20 [ 35.340307] ? __pmd_alloc+0x4e0/0x4e0 [ 35.340313] ? lock_downgrade+0x980/0x980 [ 35.340321] ? find_held_lock+0x35/0x1d0 [ 35.340330] ? handle_mm_fault+0x248/0x8d0 [ 35.340336] ? find_held_lock+0x35/0x1d0 [ 35.340348] ? __do_page_fault+0x5f7/0xc90 [ 35.340354] ? lock_downgrade+0x980/0x980 [ 35.340363] ? handle_mm_fault+0x410/0x8d0 [ 35.340367] ? down_read_trylock+0xdb/0x170 [ 35.340372] ? __do_page_fault+0x32d/0xc90 [ 35.340376] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 35.340382] ? vmacache_find+0x5f/0x280 [ 35.340389] do_group_exit+0x149/0x400 [ 35.340394] ? __do_page_fault+0x3d6/0xc90 [ 35.340400] ? SyS_exit+0x30/0x30 [ 35.340410] ? do_fast_syscall_32+0x156/0xf9d [ 35.340417] ? do_group_exit+0x400/0x400 [ 35.340424] SyS_exit_group+0x1d/0x20 [ 35.340430] do_fast_syscall_32+0x3ee/0xf9d [ 35.340439] ? do_int80_syscall_32+0x9d0/0x9d0 [ 35.340445] ? kasan_check_read+0x11/0x20 [ 35.340452] ? syscall_return_slowpath+0x550/0x550 [ 35.340459] ? SyS_rt_sigaction+0x94/0x1b0 [ 35.340466] ? SyS_sigprocmask+0x4b0/0x4b0 [ 35.340471] ? SyS_read+0x184/0x220 [ 35.340477] ? retint_user+0x18/0x18 [ 35.340485] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.340495] entry_SYSENTER_compat+0x54/0x63 [ 35.340499] RIP: 0023:0xf7f6ac79 [ 35.340502] RSP: 002b:00000000ffcf059c EFLAGS: 00000296 ORIG_RAX: 00000000000000fc [ 35.340507] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 35.340510] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 35.340513] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 35.340516] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 35.340519] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 35.340527] [ 35.340531] Allocated by task 3500: [ 35.340538] save_stack+0x43/0xd0 [ 35.340543] kasan_kmalloc+0xad/0xe0 [ 35.340547] kmem_cache_alloc_trace+0x136/0x750 [ 35.340553] binder_get_thread+0x1cf/0x870 [ 35.340557] binder_poll+0x8c/0x390 [ 35.340563] ep_item_poll.isra.10+0xec/0x320 [ 35.340568] ep_insert+0x6a3/0x1b10 [ 35.340573] SyS_epoll_ctl+0x12e4/0x1ab0 [ 35.340579] do_fast_syscall_32+0x3ee/0xf9d [ 35.340584] entry_SYSENTER_compat+0x54/0x63 [ 35.340585] [ 35.340588] Freed by task 3500: [ 35.340592] save_stack+0x43/0xd0 [ 35.340597] kasan_slab_free+0x71/0xc0 [ 35.340600] kfree+0xd6/0x260 [ 35.340605] binder_thread_dec_tmpref+0x27f/0x310 [ 35.340609] binder_thread_release+0x27d/0x540 [ 35.340614] binder_ioctl+0xc02/0x1417 [ 35.340621] compat_SyS_ioctl+0x151/0x2a30 [ 35.340627] do_fast_syscall_32+0x3ee/0xf9d [ 35.340632] entry_SYSENTER_compat+0x54/0x63 [ 35.340633] [ 35.340638] The buggy address belongs to the object at ffff8801c8024d00 [ 35.340638] which belongs to the cache kmalloc-512 of size 512 [ 35.340643] The buggy address is located 176 bytes inside of [ 35.340643] 512-byte region [ffff8801c8024d00, ffff8801c8024f00) [ 35.340644] The buggy address belongs to the page: [ 35.340649] page:ffffea0007200900 count:1 mapcount:0 mapping:ffff8801c8024080 index:0x0 [ 35.340655] flags: 0x2fffc0000000100(slab) [ 35.340662] raw: 02fffc0000000100 ffff8801c8024080 0000000000000000 0000000100000006 [ 35.340668] raw: ffffea0007391b60 ffffea0007399e60 ffff8801dac00940 0000000000000000 [ 35.340670] page dumped because: kasan: bad access detected [ 35.340671] [ 35.340673] Memory state around the buggy address: [ 35.340678] ffff8801c8024c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.340682] ffff8801c8024d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.340685] >ffff8801c8024d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.340687] ^ [ 35.340691] ffff8801c8024e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.340695] ffff8801c8024e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.340697] ================================================================== [ 35.340698] Disabling lock debugging due to kernel taint [ 35.340701] Kernel panic - not syncing: panic_on_warn set ... [ 35.340701] [ 35.340707] CPU: 1 PID: 3500 Comm: syzkaller873362 Tainted: G B 4.15.0-rc6+ #160 [ 35.340709] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.340711] Call Trace: [ 35.340720] dump_stack+0x194/0x257 [ 35.340727] ? arch_local_irq_restore+0x53/0x53 [ 35.340732] ? kasan_end_report+0x32/0x50 [ 35.340739] ? lock_downgrade+0x980/0x980 [ 35.340747] ? vsnprintf+0x1ed/0x1900 [ 35.340753] ? __lock_acquire+0x3cb0/0x3e00 [ 35.340758] panic+0x1e4/0x41c [ 35.340764] ? refcount_error_report+0x214/0x214 [ 35.340772] ? add_taint+0x40/0x50 [ 35.340777] ? add_taint+0x1c/0x50 [ 35.340784] ? __lock_acquire+0x3d4d/0x3e00 [ 35.340790] kasan_end_report+0x50/0x50 [ 35.340796] kasan_report+0x144/0x340 [ 35.340806] __asan_report_load8_noabort+0x14/0x20 [ 35.340811] __lock_acquire+0x3d4d/0x3e00 [ 35.340816] ? __lock_acquire+0x664/0x3e00 [ 35.340823] ? lock_downgrade+0x980/0x980 [ 35.340828] ? lock_downgrade+0x980/0x980 [ 35.340834] ? print_irqtrace_events+0x270/0x270 [ 35.340841] ? remove_wait_queue+0x81/0x350 [ 35.340852] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.340858] ? __lock_acquire+0x664/0x3e00 [ 35.340864] ? check_noncircular+0x20/0x20 [ 35.340875] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.340882] ? lock_acquire+0x1d5/0x580 [ 35.340888] ? lock_acquire+0x1d5/0x580 [ 35.340893] ? ep_free+0xf4/0x320 [ 35.340902] ? lock_release+0xa40/0xa40 [ 35.340908] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 35.340913] ? print_irqtrace_events+0x270/0x270 [ 35.340917] ? print_irqtrace_events+0x270/0x270 [ 35.340923] ? rcu_note_context_switch+0x710/0x710 [ 35.340930] ? __might_sleep+0x95/0x190 [ 35.340936] ? ep_free+0xf4/0x320 [ 35.340942] ? __mutex_lock+0x16f/0x1a80 [ 35.340947] ? ep_free+0xf4/0x320 [ 35.340955] ? print_irqtrace_events+0x270/0x270 [ 35.340960] ? ep_free+0xf4/0x320 [ 35.340968] lock_acquire+0x1d5/0x580 [ 35.340974] ? lock_acquire+0x1d5/0x580 [ 35.340981] ? remove_wait_queue+0x81/0x350 [ 35.340989] ? lock_release+0xa40/0xa40 [ 35.340998] ? lock_acquire+0x1d5/0x580 [ 35.341004] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.341009] ? lock_acquire+0x1d5/0x580 [ 35.341016] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 35.341022] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.341027] ? remove_wait_queue+0x81/0x350 [ 35.341034] remove_wait_queue+0x81/0x350 [ 35.341040] ? depot_save_stack+0x3b5/0x490 [ 35.341047] ? add_wait_queue+0x290/0x290 [ 35.341053] ? rcutorture_record_progress+0x10/0x10 [ 35.341059] ? lock_release+0xa40/0xa40 [ 35.341068] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 35.341076] ? __kernel_text_address+0xd/0x40 [ 35.341084] ? clear_tfile_check_list+0x370/0x370 [ 35.341091] ? check_noncircular+0x20/0x20 [ 35.341099] ? locks_remove_file+0x3fa/0x5a0 [ 35.341109] ep_free+0x13f/0x320 [ 35.341116] ? ep_remove+0x800/0x800 [ 35.341122] ? fsnotify_first_mark+0x2b0/0x2b0 [ 35.341128] ? ep_free+0x320/0x320 [ 35.341133] ep_eventpoll_release+0x44/0x60 [ 35.341140] __fput+0x327/0x7e0 [ 35.341149] ? fput+0x140/0x140 [ 35.341157] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.341165] ____fput+0x15/0x20 [ 35.341172] task_work_run+0x199/0x270 [ 35.341180] ? task_work_cancel+0x210/0x210 [ 35.341186] ? _raw_spin_unlock+0x22/0x30 [ 35.341192] ? switch_task_namespaces+0x87/0xc0 [ 35.341201] do_exit+0x9bb/0x1ad0 [ 35.341208] ? __handle_mm_fault+0x2330/0x3ce0 [ 35.341215] ? mm_update_next_owner+0x930/0x930 [ 35.341225] ? do_raw_spin_trylock+0x190/0x190 [ 35.341230] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 35.341237] ? check_noncircular+0x20/0x20 [ 35.341244] ? _raw_spin_unlock+0x22/0x30 [ 35.341249] ? __handle_mm_fault+0x80e/0x3ce0 [ 35.341263] ? check_noncircular+0x20/0x20 [ 35.341268] ? __pmd_alloc+0x4e0/0x4e0 [ 35.341273] ? lock_downgrade+0x980/0x980 [ 35.341282] ? find_held_lock+0x35/0x1d0 [ 35.341291] ? handle_mm_fault+0x248/0x8d0 [ 35.341298] ? find_held_lock+0x35/0x1d0 [ 35.341308] ? __do_page_fault+0x5f7/0xc90 [ 35.341314] ? lock_downgrade+0x980/0x980 [ 35.341322] ? handle_mm_fault+0x410/0x8d0 [ 35.341326] ? down_read_trylock+0xdb/0x170 [ 35.341331] ? __do_page_fault+0x32d/0xc90 [ 35.341337] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 35.341344] ? vmacache_find+0x5f/0x280 [ 35.341353] do_group_exit+0x149/0x400 [ 35.341359] ? __do_page_fault+0x3d6/0xc90 [ 35.341366] ? SyS_exit+0x30/0x30 [ 35.341374] ? do_fast_syscall_32+0x156/0xf9d [ 35.341380] ? do_group_exit+0x400/0x400 [ 35.341387] SyS_exit_group+0x1d/0x20 [ 35.341393] do_fast_syscall_32+0x3ee/0xf9d [ 35.341402] ? do_int80_syscall_32+0x9d0/0x9d0 [ 35.341408] ? kasan_check_read+0x11/0x20 [ 35.341415] ? syscall_return_slowpath+0x550/0x550 [ 35.341423] ? SyS_rt_sigaction+0x94/0x1b0 [ 35.341429] ? SyS_sigprocmask+0x4b0/0x4b0 [ 35.341433] ? SyS_read+0x184/0x220 [ 35.341439] ? retint_user+0x18/0x18 [ 35.341448] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.341457] entry_SYSENTER_compat+0x54/0x63 [ 35.341461] RIP: 0023:0xf7f6ac79 [ 35.341464] RSP: 002b:00000000ffcf059c EFLAGS: 00000296 ORIG_RAX: 00000000000000fc [ 35.341470] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 35.341473] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 35.341475] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 35.341478] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 35.341481] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 35.359425] Dumping ftrace buffer: [ 35.359432] (ftrace buffer empty) [ 35.359434] Kernel Offset: disabled [ 36.645210] Rebooting in 86400 seconds..