[....] Starting enhanced syslogd: rsyslogd[ 11.359048] audit: type=1400 audit(1514011463.355:5): avc: denied { syslog } for pid=2994 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.358454] audit: type=1400 audit(1514011468.355:6): avc: denied { map } for pid=3133 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 'ci-upstream-kasan-gce-386-4,10.128.0.8' (ECDSA) to the list of known hosts. executing program [ 38.957007] audit: type=1400 audit(1514011490.953:7): avc: denied { map } for pid=3151 comm="syzkaller778648" path="/root/syzkaller778648968" 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 [ 38.961526] ================================================================== [ 38.961542] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 38.961546] Read of size 8 at addr ffff8801ca301130 by task syzkaller778648/3151 [ 38.961547] [ 38.961552] CPU: 0 PID: 3151 Comm: syzkaller778648 Not tainted 4.15.0-rc4+ #144 [ 38.961555] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.961556] Call Trace: [ 38.961564] dump_stack+0x194/0x257 [ 38.961569] ? arch_local_irq_restore+0x53/0x53 [ 38.961576] ? show_regs_print_info+0x18/0x18 [ 38.961579] ? print_irqtrace_events+0x270/0x270 [ 38.961582] ? __lock_acquire+0x664/0x3e00 [ 38.961586] ? __lock_acquire+0x3d4d/0x3e00 [ 38.961593] print_address_description+0x73/0x250 [ 38.961596] ? __lock_acquire+0x3d4d/0x3e00 [ 38.961600] kasan_report+0x25b/0x340 [ 38.961604] __asan_report_load8_noabort+0x14/0x20 [ 38.961608] __lock_acquire+0x3d4d/0x3e00 [ 38.961611] ? __lock_acquire+0x664/0x3e00 [ 38.961614] ? lock_downgrade+0x980/0x980 [ 38.961617] ? lock_downgrade+0x980/0x980 [ 38.961621] ? print_irqtrace_events+0x270/0x270 [ 38.961627] ? remove_wait_queue+0x81/0x350 [ 38.961632] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 38.961635] ? __lock_acquire+0x664/0x3e00 [ 38.961639] ? check_noncircular+0x20/0x20 [ 38.961645] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 38.961649] ? lock_acquire+0x1d5/0x580 [ 38.961653] ? lock_acquire+0x1d5/0x580 [ 38.961658] ? ep_free+0xf4/0x320 [ 38.961662] ? lock_release+0xa40/0xa40 [ 38.961668] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 38.961671] ? print_irqtrace_events+0x270/0x270 [ 38.961674] ? print_irqtrace_events+0x270/0x270 [ 38.961686] ? rcu_note_context_switch+0x710/0x710 [ 38.961690] ? __might_sleep+0x95/0x190 [ 38.961693] ? ep_free+0xf4/0x320 [ 38.961698] ? __mutex_lock+0x16f/0x1a80 [ 38.961700] ? ep_free+0xf4/0x320 [ 38.961704] ? print_irqtrace_events+0x270/0x270 [ 38.961707] ? ep_free+0xf4/0x320 [ 38.961711] lock_acquire+0x1d5/0x580 [ 38.961714] ? lock_acquire+0x1d5/0x580 [ 38.961718] ? remove_wait_queue+0x81/0x350 [ 38.961722] ? lock_release+0xa40/0xa40 [ 38.961727] ? lock_acquire+0x1d5/0x580 [ 38.961731] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 38.961734] ? lock_acquire+0x1d5/0x580 [ 38.961737] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 38.961743] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.961746] ? remove_wait_queue+0x81/0x350 [ 38.961750] remove_wait_queue+0x81/0x350 [ 38.961756] ? depot_save_stack+0x3b5/0x490 [ 38.961760] ? add_wait_queue+0x290/0x290 [ 38.961764] ? rcutorture_record_progress+0x10/0x10 [ 38.961767] ? lock_release+0xa40/0xa40 [ 38.961772] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 38.961779] ? __kernel_text_address+0xd/0x40 [ 38.961784] ? clear_tfile_check_list+0x370/0x370 [ 38.961788] ? check_noncircular+0x20/0x20 [ 38.961793] ? locks_remove_file+0x3fa/0x5a0 [ 38.961798] ep_free+0x13f/0x320 [ 38.961802] ? ep_remove+0x800/0x800 [ 38.961808] ? fsnotify_first_mark+0x2b0/0x2b0 [ 38.961812] ? ep_free+0x320/0x320 [ 38.961816] ep_eventpoll_release+0x44/0x60 [ 38.961821] __fput+0x327/0x7e0 [ 38.961826] ? fput+0x140/0x140 [ 38.961830] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.961834] ____fput+0x15/0x20 [ 38.961838] task_work_run+0x199/0x270 [ 38.961842] ? task_work_cancel+0x210/0x210 [ 38.961846] ? _raw_spin_unlock+0x22/0x30 [ 38.961850] ? switch_task_namespaces+0x87/0xc0 [ 38.961856] do_exit+0x9bb/0x1ad0 [ 38.961863] ? __handle_mm_fault+0x2330/0x3ce0 [ 38.961867] ? mm_update_next_owner+0x930/0x930 [ 38.961873] ? do_raw_spin_trylock+0x190/0x190 [ 38.961877] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 38.961880] ? check_noncircular+0x20/0x20 [ 38.961884] ? _raw_spin_unlock+0x22/0x30 [ 38.961888] ? __handle_mm_fault+0x80e/0x3ce0 [ 38.961892] ? check_noncircular+0x20/0x20 [ 38.961895] ? __pmd_alloc+0x4e0/0x4e0 [ 38.961898] ? lock_downgrade+0x980/0x980 [ 38.961902] ? find_held_lock+0x35/0x1d0 [ 38.961907] ? handle_mm_fault+0x248/0x8d0 [ 38.961911] ? find_held_lock+0x35/0x1d0 [ 38.961920] ? __do_page_fault+0x5f7/0xc90 [ 38.961924] ? lock_downgrade+0x980/0x980 [ 38.961929] ? handle_mm_fault+0x410/0x8d0 [ 38.961932] ? down_read_trylock+0xdb/0x170 [ 38.961935] ? __do_page_fault+0x32d/0xc90 [ 38.961938] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 38.961944] ? vmacache_find+0x5f/0x280 [ 38.961949] do_group_exit+0x149/0x400 [ 38.961952] ? __do_page_fault+0x3d6/0xc90 [ 38.961956] ? SyS_exit+0x30/0x30 [ 38.961962] ? do_fast_syscall_32+0x156/0xf9d [ 38.961966] ? do_group_exit+0x400/0x400 [ 38.961969] SyS_exit_group+0x1d/0x20 [ 38.961973] do_fast_syscall_32+0x3ee/0xf9d [ 38.961978] ? do_int80_syscall_32+0x9d0/0x9d0 [ 38.961981] ? kasan_check_read+0x11/0x20 [ 38.961985] ? syscall_return_slowpath+0x550/0x550 [ 38.961990] ? SyS_rt_sigaction+0x94/0x1b0 [ 38.961993] ? SyS_sigprocmask+0x4b0/0x4b0 [ 38.961996] ? SyS_read+0x184/0x220 [ 38.962000] ? retint_user+0x18/0x18 [ 38.962011] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 38.962016] entry_SYSENTER_compat+0x54/0x63 [ 38.962020] RIP: 0023:0xf7ff1c79 [ 38.962022] RSP: 002b:00000000ffb5288c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 38.962027] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 38.962029] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 38.962031] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 38.962033] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 38.962035] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 38.962039] [ 38.962041] Allocated by task 3151: [ 38.962045] save_stack+0x43/0xd0 [ 38.962048] kasan_kmalloc+0xad/0xe0 [ 38.962054] kmem_cache_alloc_trace+0x136/0x750 [ 38.962061] binder_get_thread+0x1cf/0x870 [ 38.962063] binder_poll+0x8c/0x390 [ 38.962066] ep_item_poll.isra.10+0xec/0x320 [ 38.962068] ep_insert+0x6a3/0x1b10 [ 38.962071] SyS_epoll_ctl+0x12e4/0x1ab0 [ 38.962074] do_fast_syscall_32+0x3ee/0xf9d [ 38.962077] entry_SYSENTER_compat+0x54/0x63 [ 38.962078] [ 38.962079] Freed by task 3151: [ 38.962082] save_stack+0x43/0xd0 [ 38.962084] kasan_slab_free+0x71/0xc0 [ 38.962087] kfree+0xd6/0x260 [ 38.962090] binder_thread_dec_tmpref+0x27f/0x310 [ 38.962093] binder_thread_release+0x27d/0x540 [ 38.962096] binder_ioctl+0xc02/0x1417 [ 38.962099] compat_SyS_ioctl+0x151/0x2a30 [ 38.962102] do_fast_syscall_32+0x3ee/0xf9d [ 38.962105] entry_SYSENTER_compat+0x54/0x63 [ 38.962106] [ 38.962108] The buggy address belongs to the object at ffff8801ca301080 [ 38.962108] which belongs to the cache kmalloc-512 of size 512 [ 38.962111] The buggy address is located 176 bytes inside of [ 38.962111] 512-byte region [ffff8801ca301080, ffff8801ca301280) [ 38.962112] The buggy address belongs to the page: [ 38.962116] page:00000000cd7535dc count:1 mapcount:0 mapping:0000000052275be4 index:0x0 [ 38.962120] flags: 0x2fffc0000000100(slab) [ 38.962126] raw: 02fffc0000000100 ffff8801ca301080 0000000000000000 0000000100000006 [ 38.962130] raw: ffffea0007249460 ffffea000724b3e0 ffff8801db000940 0000000000000000 [ 38.962132] page dumped because: kasan: bad access detected [ 38.962133] [ 38.962134] Memory state around the buggy address: [ 38.962136] ffff8801ca301000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 38.962139] ffff8801ca301080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.962142] >ffff8801ca301100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.962143] ^ [ 38.962146] ffff8801ca301180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.962148] ffff8801ca301200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.962149] ================================================================== [ 38.962151] Disabling lock debugging due to kernel taint [ 38.962154] Kernel panic - not syncing: panic_on_warn set ... [ 38.962154] [ 38.962157] CPU: 0 PID: 3151 Comm: syzkaller778648 Tainted: G B 4.15.0-rc4+ #144 [ 38.962159] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.962160] Call Trace: [ 38.962164] dump_stack+0x194/0x257 [ 38.962168] ? arch_local_irq_restore+0x53/0x53 [ 38.962171] ? kasan_end_report+0x32/0x50 [ 38.962174] ? lock_downgrade+0x980/0x980 [ 38.962179] ? vsnprintf+0x1ed/0x1900 [ 38.962183] ? __lock_acquire+0x3cf0/0x3e00 [ 38.962187] panic+0x1e4/0x41c [ 38.962190] ? refcount_error_report+0x214/0x214 [ 38.962194] ? add_taint+0x40/0x50 [ 38.962197] ? add_taint+0x1c/0x50 [ 38.962201] ? __lock_acquire+0x3d4d/0x3e00 [ 38.962204] kasan_end_report+0x50/0x50 [ 38.962207] kasan_report+0x144/0x340 [ 38.962211] __asan_report_load8_noabort+0x14/0x20 [ 38.962215] __lock_acquire+0x3d4d/0x3e00 [ 38.962218] ? __lock_acquire+0x664/0x3e00 [ 38.962221] ? lock_downgrade+0x980/0x980 [ 38.962224] ? lock_downgrade+0x980/0x980 [ 38.962228] ? print_irqtrace_events+0x270/0x270 [ 38.962231] ? remove_wait_queue+0x81/0x350 [ 38.962236] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 38.962240] ? __lock_acquire+0x664/0x3e00 [ 38.962243] ? check_noncircular+0x20/0x20 [ 38.962249] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 38.962253] ? lock_acquire+0x1d5/0x580 [ 38.962256] ? lock_acquire+0x1d5/0x580 [ 38.962259] ? ep_free+0xf4/0x320 [ 38.962263] ? lock_release+0xa40/0xa40 [ 38.962267] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 38.962270] ? print_irqtrace_events+0x270/0x270 [ 38.962273] ? print_irqtrace_events+0x270/0x270 [ 38.962277] ? rcu_note_context_switch+0x710/0x710 [ 38.962280] ? __might_sleep+0x95/0x190 [ 38.962283] ? ep_free+0xf4/0x320 [ 38.962286] ? __mutex_lock+0x16f/0x1a80 [ 38.962289] ? ep_free+0xf4/0x320 [ 38.962293] ? print_irqtrace_events+0x270/0x270 [ 38.962295] ? ep_free+0xf4/0x320 [ 38.962300] lock_acquire+0x1d5/0x580 [ 38.962303] ? lock_acquire+0x1d5/0x580 [ 38.962306] ? remove_wait_queue+0x81/0x350 [ 38.962310] ? lock_release+0xa40/0xa40 [ 38.962315] ? lock_acquire+0x1d5/0x580 [ 38.962318] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 38.962321] ? lock_acquire+0x1d5/0x580 [ 38.962324] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 38.962328] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.962332] ? remove_wait_queue+0x81/0x350 [ 38.962335] remove_wait_queue+0x81/0x350 [ 38.962338] ? depot_save_stack+0x3b5/0x490 [ 38.962342] ? add_wait_queue+0x290/0x290 [ 38.962346] ? rcutorture_record_progress+0x10/0x10 [ 38.962349] ? lock_release+0xa40/0xa40 [ 38.962353] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 38.962357] ? __kernel_text_address+0xd/0x40 [ 38.962361] ? clear_tfile_check_list+0x370/0x370 [ 38.962365] ? check_noncircular+0x20/0x20 [ 38.962369] ? locks_remove_file+0x3fa/0x5a0 [ 38.962374] ep_free+0x13f/0x320 [ 38.962377] ? ep_remove+0x800/0x800 [ 38.962381] ? fsnotify_first_mark+0x2b0/0x2b0 [ 38.962385] ? ep_free+0x320/0x320 [ 38.962388] ep_eventpoll_release+0x44/0x60 [ 38.962391] __fput+0x327/0x7e0 [ 38.962395] ? fput+0x140/0x140 [ 38.962399] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.962403] ____fput+0x15/0x20 [ 38.962407] task_work_run+0x199/0x270 [ 38.962412] ? task_work_cancel+0x210/0x210 [ 38.962415] ? _raw_spin_unlock+0x22/0x30 [ 38.962418] ? switch_task_namespaces+0x87/0xc0 [ 38.962422] do_exit+0x9bb/0x1ad0 [ 38.962426] ? __handle_mm_fault+0x2330/0x3ce0 [ 38.962430] ? mm_update_next_owner+0x930/0x930 [ 38.962435] ? do_raw_spin_trylock+0x190/0x190 [ 38.962439] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 38.962442] ? check_noncircular+0x20/0x20 [ 38.962446] ? _raw_spin_unlock+0x22/0x30 [ 38.962449] ? __handle_mm_fault+0x80e/0x3ce0 [ 38.962453] ? check_noncircular+0x20/0x20 [ 38.962456] ? __pmd_alloc+0x4e0/0x4e0 [ 38.962459] ? lock_downgrade+0x980/0x980 [ 38.962464] ? find_held_lock+0x35/0x1d0 [ 38.962468] ? handle_mm_fault+0x248/0x8d0 [ 38.962472] ? find_held_lock+0x35/0x1d0 [ 38.962477] ? __do_page_fault+0x5f7/0xc90 [ 38.962480] ? lock_downgrade+0x980/0x980 [ 38.962485] ? handle_mm_fault+0x410/0x8d0 [ 38.962488] ? down_read_trylock+0xdb/0x170 [ 38.962491] ? __do_page_fault+0x32d/0xc90 [ 38.962494] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 38.962498] ? vmacache_find+0x5f/0x280 [ 38.962502] do_group_exit+0x149/0x400 [ 38.962506] ? __do_page_fault+0x3d6/0xc90 [ 38.962509] ? SyS_exit+0x30/0x30 [ 38.962513] ? do_fast_syscall_32+0x156/0xf9d [ 38.962517] ? do_group_exit+0x400/0x400 [ 38.962520] SyS_exit_group+0x1d/0x20 [ 38.962523] do_fast_syscall_32+0x3ee/0xf9d [ 38.962528] ? do_int80_syscall_32+0x9d0/0x9d0 [ 38.962531] ? kasan_check_read+0x11/0x20 [ 38.962535] ? syscall_return_slowpath+0x550/0x550 [ 38.962539] ? SyS_rt_sigaction+0x94/0x1b0 [ 38.962543] ? SyS_sigprocmask+0x4b0/0x4b0 [ 38.962545] ? SyS_read+0x184/0x220 [ 38.962549] ? retint_user+0x18/0x18 [ 38.962553] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 38.962558] entry_SYSENTER_compat+0x54/0x63 [ 38.962560] RIP: 0023:0xf7ff1c79 [ 38.962562] RSP: 002b:00000000ffb5288c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 38.962565] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 38.962567] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 38.962569] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 38.962571] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 38.962572] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 38.983235] Dumping ftrace buffer: [ 38.983238] (ftrace buffer empty) [ 38.983241] Kernel Offset: disabled [ 40.263059] Rebooting in 86400 seconds..