[ 11.094606] audit: type=1400 audit(1514095379.757:5): avc: denied { syslog } for pid=2985 comm="rsyslogd" capability=34 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=capability2 permissive=1 [....] Starting enhanced syslogd: rsyslogd[?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: [ 16.539903] audit: type=1400 audit(1514095385.202:6): avc: denied { map } for pid=3129 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.60' (ECDSA) to the list of known hosts. executing program [ 35.792981] audit: type=1400 audit(1514095404.455:7): avc: denied { map } for pid=3147 comm="syzkaller157231" path="/root/syzkaller157231895" 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.797801] ================================================================== [ 35.797813] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 35.797817] Read of size 8 at addr ffff8801ca41c130 by task syzkaller157231/3147 [ 35.797818] [ 35.797822] CPU: 0 PID: 3147 Comm: syzkaller157231 Not tainted 4.15.0-rc4+ #146 [ 35.797825] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.797826] Call Trace: [ 35.797833] dump_stack+0x194/0x257 [ 35.797838] ? arch_local_irq_restore+0x53/0x53 [ 35.797843] ? show_regs_print_info+0x18/0x18 [ 35.797847] ? print_irqtrace_events+0x270/0x270 [ 35.797850] ? __lock_acquire+0x664/0x3e00 [ 35.797854] ? __lock_acquire+0x3d4d/0x3e00 [ 35.797860] print_address_description+0x73/0x250 [ 35.797864] ? __lock_acquire+0x3d4d/0x3e00 [ 35.797867] kasan_report+0x25b/0x340 [ 35.797872] __asan_report_load8_noabort+0x14/0x20 [ 35.797875] __lock_acquire+0x3d4d/0x3e00 [ 35.797878] ? __lock_acquire+0x664/0x3e00 [ 35.797882] ? lock_downgrade+0x980/0x980 [ 35.797885] ? lock_downgrade+0x980/0x980 [ 35.797888] ? print_irqtrace_events+0x270/0x270 [ 35.797893] ? remove_wait_queue+0x81/0x350 [ 35.797898] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.797902] ? __lock_acquire+0x664/0x3e00 [ 35.797906] ? check_noncircular+0x20/0x20 [ 35.797912] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.797916] ? lock_acquire+0x1d5/0x580 [ 35.797919] ? lock_acquire+0x1d5/0x580 [ 35.797923] ? ep_free+0xf4/0x320 [ 35.797928] ? lock_release+0xa40/0xa40 [ 35.797933] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 35.797936] ? print_irqtrace_events+0x270/0x270 [ 35.797940] ? print_irqtrace_events+0x270/0x270 [ 35.797944] ? rcu_note_context_switch+0x710/0x710 [ 35.797949] ? __might_sleep+0x95/0x190 [ 35.797952] ? ep_free+0xf4/0x320 [ 35.797956] ? __mutex_lock+0x16f/0x1a80 [ 35.797958] ? ep_free+0xf4/0x320 [ 35.797962] ? print_irqtrace_events+0x270/0x270 [ 35.797965] ? ep_free+0xf4/0x320 [ 35.797969] lock_acquire+0x1d5/0x580 [ 35.797973] ? lock_acquire+0x1d5/0x580 [ 35.797976] ? remove_wait_queue+0x81/0x350 [ 35.797981] ? lock_release+0xa40/0xa40 [ 35.797986] ? lock_acquire+0x1d5/0x580 [ 35.797989] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.797992] ? lock_acquire+0x1d5/0x580 [ 35.797995] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 35.798004] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.798007] ? remove_wait_queue+0x81/0x350 [ 35.798011] remove_wait_queue+0x81/0x350 [ 35.798017] ? depot_save_stack+0x3b5/0x490 [ 35.798021] ? add_wait_queue+0x290/0x290 [ 35.798025] ? rcutorture_record_progress+0x10/0x10 [ 35.798028] ? lock_release+0xa40/0xa40 [ 35.798033] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 35.798038] ? __kernel_text_address+0xd/0x40 [ 35.798042] ? clear_tfile_check_list+0x370/0x370 [ 35.798047] ? check_noncircular+0x20/0x20 [ 35.798051] ? locks_remove_file+0x3fa/0x5a0 [ 35.798056] ep_free+0x13f/0x320 [ 35.798059] ? ep_remove+0x800/0x800 [ 35.798063] ? fsnotify_first_mark+0x2b0/0x2b0 [ 35.798067] ? ep_free+0x320/0x320 [ 35.798071] ep_eventpoll_release+0x44/0x60 [ 35.798075] __fput+0x327/0x7e0 [ 35.798079] ? fput+0x140/0x140 [ 35.798083] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.798088] ____fput+0x15/0x20 [ 35.798091] task_work_run+0x199/0x270 [ 35.798096] ? task_work_cancel+0x210/0x210 [ 35.798099] ? _raw_spin_unlock+0x22/0x30 [ 35.798103] ? switch_task_namespaces+0x87/0xc0 [ 35.798109] do_exit+0x9bb/0x1ad0 [ 35.798114] ? __handle_mm_fault+0x2330/0x3ce0 [ 35.798118] ? mm_update_next_owner+0x930/0x930 [ 35.798124] ? do_raw_spin_trylock+0x190/0x190 [ 35.798128] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 35.798132] ? check_noncircular+0x20/0x20 [ 35.798135] ? _raw_spin_unlock+0x22/0x30 [ 35.798139] ? __handle_mm_fault+0x80e/0x3ce0 [ 35.798143] ? check_noncircular+0x20/0x20 [ 35.798146] ? __pmd_alloc+0x4e0/0x4e0 [ 35.798149] ? lock_downgrade+0x980/0x980 [ 35.798153] ? find_held_lock+0x35/0x1d0 [ 35.798158] ? handle_mm_fault+0x248/0x8d0 [ 35.798162] ? find_held_lock+0x35/0x1d0 [ 35.798170] ? __do_page_fault+0x5f7/0xc90 [ 35.798174] ? lock_downgrade+0x980/0x980 [ 35.798179] ? handle_mm_fault+0x410/0x8d0 [ 35.798182] ? down_read_trylock+0xdb/0x170 [ 35.798185] ? __do_page_fault+0x32d/0xc90 [ 35.798188] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 35.798193] ? vmacache_find+0x5f/0x280 [ 35.798197] do_group_exit+0x149/0x400 [ 35.798201] ? __do_page_fault+0x3d6/0xc90 [ 35.798204] ? SyS_exit+0x30/0x30 [ 35.798210] ? do_fast_syscall_32+0x156/0xf9d [ 35.798214] ? do_group_exit+0x400/0x400 [ 35.798218] SyS_exit_group+0x1d/0x20 [ 35.798221] do_fast_syscall_32+0x3ee/0xf9d [ 35.798226] ? do_int80_syscall_32+0x9d0/0x9d0 [ 35.798229] ? kasan_check_read+0x11/0x20 [ 35.798233] ? syscall_return_slowpath+0x550/0x550 [ 35.798239] ? SyS_rt_sigaction+0x94/0x1b0 [ 35.798242] ? SyS_sigprocmask+0x4b0/0x4b0 [ 35.798245] ? SyS_read+0x184/0x220 [ 35.798249] ? retint_user+0x18/0x18 [ 35.798253] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.798259] entry_SYSENTER_compat+0x54/0x63 [ 35.798262] RIP: 0023:0xf7f9fc79 [ 35.798264] RSP: 002b:00000000ffff514c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 35.798268] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 35.798270] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 35.798272] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 35.798274] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 35.798276] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 35.798280] [ 35.798282] Allocated by task 3147: [ 35.798285] save_stack+0x43/0xd0 [ 35.798288] kasan_kmalloc+0xad/0xe0 [ 35.798292] kmem_cache_alloc_trace+0x136/0x750 [ 35.798297] binder_get_thread+0x1cf/0x870 [ 35.798299] binder_poll+0x8c/0x390 [ 35.798302] ep_item_poll.isra.10+0xec/0x320 [ 35.798305] ep_insert+0x6a3/0x1b10 [ 35.798307] SyS_epoll_ctl+0x12e4/0x1ab0 [ 35.798310] do_fast_syscall_32+0x3ee/0xf9d [ 35.798314] entry_SYSENTER_compat+0x54/0x63 [ 35.798314] [ 35.798315] Freed by task 3147: [ 35.798318] save_stack+0x43/0xd0 [ 35.798321] kasan_slab_free+0x71/0xc0 [ 35.798323] kfree+0xd6/0x260 [ 35.798326] binder_thread_dec_tmpref+0x27f/0x310 [ 35.798329] binder_thread_release+0x27d/0x540 [ 35.798332] binder_ioctl+0xc02/0x1417 [ 35.798334] compat_SyS_ioctl+0x151/0x2a30 [ 35.798337] do_fast_syscall_32+0x3ee/0xf9d [ 35.798341] entry_SYSENTER_compat+0x54/0x63 [ 35.798341] [ 35.798344] The buggy address belongs to the object at ffff8801ca41c080 [ 35.798344] which belongs to the cache kmalloc-512 of size 512 [ 35.798347] The buggy address is located 176 bytes inside of [ 35.798347] 512-byte region [ffff8801ca41c080, ffff8801ca41c280) [ 35.798348] The buggy address belongs to the page: [ 35.798351] page:00000000c8da0f1a count:1 mapcount:0 mapping:000000004d92d5ca index:0x0 [ 35.798355] flags: 0x2fffc0000000100(slab) [ 35.798361] raw: 02fffc0000000100 ffff8801ca41c080 0000000000000000 0000000100000006 [ 35.798365] raw: ffffea00072493a0 ffffea000723cf60 ffff8801db000940 0000000000000000 [ 35.798366] page dumped because: kasan: bad access detected [ 35.798367] [ 35.798368] Memory state around the buggy address: [ 35.798371] ffff8801ca41c000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.798373] ffff8801ca41c080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.798376] >ffff8801ca41c100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.798377] ^ [ 35.798380] ffff8801ca41c180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.798382] ffff8801ca41c200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.798383] ================================================================== [ 35.798384] Disabling lock debugging due to kernel taint [ 35.798387] Kernel panic - not syncing: panic_on_warn set ... [ 35.798387] [ 35.798390] CPU: 0 PID: 3147 Comm: syzkaller157231 Tainted: G B 4.15.0-rc4+ #146 [ 35.798392] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.798393] Call Trace: [ 35.798397] dump_stack+0x194/0x257 [ 35.798401] ? arch_local_irq_restore+0x53/0x53 [ 35.798404] ? kasan_end_report+0x32/0x50 [ 35.798408] ? lock_downgrade+0x980/0x980 [ 35.798412] ? vsnprintf+0x1ed/0x1900 [ 35.798415] ? __lock_acquire+0x3cd0/0x3e00 [ 35.798418] panic+0x1e4/0x41c [ 35.798422] ? refcount_error_report+0x214/0x214 [ 35.798426] ? add_taint+0x40/0x50 [ 35.798428] ? add_taint+0x1c/0x50 [ 35.798432] ? __lock_acquire+0x3d4d/0x3e00 [ 35.798435] kasan_end_report+0x50/0x50 [ 35.798439] kasan_report+0x144/0x340 [ 35.798443] __asan_report_load8_noabort+0x14/0x20 [ 35.798446] __lock_acquire+0x3d4d/0x3e00 [ 35.798449] ? __lock_acquire+0x664/0x3e00 [ 35.798453] ? lock_downgrade+0x980/0x980 [ 35.798456] ? lock_downgrade+0x980/0x980 [ 35.798459] ? print_irqtrace_events+0x270/0x270 [ 35.798463] ? remove_wait_queue+0x81/0x350 [ 35.798468] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.798471] ? __lock_acquire+0x664/0x3e00 [ 35.798475] ? check_noncircular+0x20/0x20 [ 35.798481] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.798485] ? lock_acquire+0x1d5/0x580 [ 35.798488] ? lock_acquire+0x1d5/0x580 [ 35.798490] ? ep_free+0xf4/0x320 [ 35.798495] ? lock_release+0xa40/0xa40 [ 35.798499] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 35.798502] ? print_irqtrace_events+0x270/0x270 [ 35.798505] ? print_irqtrace_events+0x270/0x270 [ 35.798509] ? rcu_note_context_switch+0x710/0x710 [ 35.798513] ? __might_sleep+0x95/0x190 [ 35.798516] ? ep_free+0xf4/0x320 [ 35.798519] ? __mutex_lock+0x16f/0x1a80 [ 35.798521] ? ep_free+0xf4/0x320 [ 35.798525] ? print_irqtrace_events+0x270/0x270 [ 35.798528] ? ep_free+0xf4/0x320 [ 35.798532] lock_acquire+0x1d5/0x580 [ 35.798535] ? lock_acquire+0x1d5/0x580 [ 35.798538] ? remove_wait_queue+0x81/0x350 [ 35.798543] ? lock_release+0xa40/0xa40 [ 35.798548] ? lock_acquire+0x1d5/0x580 [ 35.798551] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.798554] ? lock_acquire+0x1d5/0x580 [ 35.798557] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 35.798561] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.798565] ? remove_wait_queue+0x81/0x350 [ 35.798568] remove_wait_queue+0x81/0x350 [ 35.798572] ? depot_save_stack+0x3b5/0x490 [ 35.798576] ? add_wait_queue+0x290/0x290 [ 35.798579] ? rcutorture_record_progress+0x10/0x10 [ 35.798582] ? lock_release+0xa40/0xa40 [ 35.798587] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 35.798591] ? __kernel_text_address+0xd/0x40 [ 35.798595] ? clear_tfile_check_list+0x370/0x370 [ 35.798599] ? check_noncircular+0x20/0x20 [ 35.798603] ? locks_remove_file+0x3fa/0x5a0 [ 35.798608] ep_free+0x13f/0x320 [ 35.798611] ? ep_remove+0x800/0x800 [ 35.798615] ? fsnotify_first_mark+0x2b0/0x2b0 [ 35.798619] ? ep_free+0x320/0x320 [ 35.798622] ep_eventpoll_release+0x44/0x60 [ 35.798625] __fput+0x327/0x7e0 [ 35.798629] ? fput+0x140/0x140 [ 35.798633] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.798637] ____fput+0x15/0x20 [ 35.798641] task_work_run+0x199/0x270 [ 35.798645] ? task_work_cancel+0x210/0x210 [ 35.798649] ? _raw_spin_unlock+0x22/0x30 [ 35.798652] ? switch_task_namespaces+0x87/0xc0 [ 35.798656] do_exit+0x9bb/0x1ad0 [ 35.798660] ? __handle_mm_fault+0x2330/0x3ce0 [ 35.798664] ? mm_update_next_owner+0x930/0x930 [ 35.798669] ? do_raw_spin_trylock+0x190/0x190 [ 35.798673] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 35.798677] ? check_noncircular+0x20/0x20 [ 35.798681] ? _raw_spin_unlock+0x22/0x30 [ 35.798684] ? __handle_mm_fault+0x80e/0x3ce0 [ 35.798688] ? check_noncircular+0x20/0x20 [ 35.798691] ? __pmd_alloc+0x4e0/0x4e0 [ 35.798694] ? lock_downgrade+0x980/0x980 [ 35.798698] ? find_held_lock+0x35/0x1d0 [ 35.798703] ? handle_mm_fault+0x248/0x8d0 [ 35.798707] ? find_held_lock+0x35/0x1d0 [ 35.798715] ? __do_page_fault+0x5f7/0xc90 [ 35.798719] ? lock_downgrade+0x980/0x980 [ 35.798723] ? handle_mm_fault+0x410/0x8d0 [ 35.798726] ? down_read_trylock+0xdb/0x170 [ 35.798730] ? __do_page_fault+0x32d/0xc90 [ 35.798733] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 35.798736] ? vmacache_find+0x5f/0x280 [ 35.798741] do_group_exit+0x149/0x400 [ 35.798745] ? __do_page_fault+0x3d6/0xc90 [ 35.798748] ? SyS_exit+0x30/0x30 [ 35.798752] ? do_fast_syscall_32+0x156/0xf9d [ 35.798756] ? do_group_exit+0x400/0x400 [ 35.798759] SyS_exit_group+0x1d/0x20 [ 35.798763] do_fast_syscall_32+0x3ee/0xf9d [ 35.798767] ? do_int80_syscall_32+0x9d0/0x9d0 [ 35.798771] ? kasan_check_read+0x11/0x20 [ 35.798775] ? syscall_return_slowpath+0x550/0x550 [ 35.798778] ? SyS_rt_sigaction+0x94/0x1b0 [ 35.798782] ? SyS_sigprocmask+0x4b0/0x4b0 [ 35.798785] ? SyS_read+0x184/0x220 [ 35.798788] ? retint_user+0x18/0x18 [ 35.798793] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.798798] entry_SYSENTER_compat+0x54/0x63 [ 35.798800] RIP: 0023:0xf7f9fc79 [ 35.798802] RSP: 002b:00000000ffff514c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 35.798805] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 35.798807] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 35.798809] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 35.798811] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 35.798812] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 35.818859] Dumping ftrace buffer: [ 35.818862] (ftrace buffer empty) [ 35.818863] Kernel Offset: disabled [ 37.098216] Rebooting in 86400 seconds..