[....] Starting enhanced syslogd: rsyslogd[ 10.622575] audit: type=1400 audit(1513735264.350:5): avc: denied { syslog } for pid=2983 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: [ 13.172630] audit: type=1400 audit(1513735266.900:6): avc: denied { map } for pid=3123 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-3,10.128.15.229' (ECDSA) to the list of known hosts. executing program [ 19.392863] audit: type=1400 audit(1513735273.120:7): avc: denied { map } for pid=3137 comm="syzkaller826571" path="/root/syzkaller826571867" 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 [ 19.398444] ================================================================== [ 19.398457] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 19.398463] Read of size 8 at addr ffff8801ca442af0 by task syzkaller826571/3137 [ 19.398464] [ 19.398471] CPU: 1 PID: 3137 Comm: syzkaller826571 Not tainted 4.15.0-rc4+ #139 [ 19.398474] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 19.398476] Call Trace: [ 19.398486] dump_stack+0x194/0x257 [ 19.398494] ? arch_local_irq_restore+0x53/0x53 [ 19.398501] ? show_regs_print_info+0x18/0x18 [ 19.398507] ? print_irqtrace_events+0x270/0x270 [ 19.398513] ? __lock_acquire+0x664/0x3e00 [ 19.398520] ? __lock_acquire+0x3d4d/0x3e00 [ 19.398527] print_address_description+0x73/0x250 [ 19.398533] ? __lock_acquire+0x3d4d/0x3e00 [ 19.398538] kasan_report+0x25b/0x340 [ 19.398546] __asan_report_load8_noabort+0x14/0x20 [ 19.398552] __lock_acquire+0x3d4d/0x3e00 [ 19.398557] ? __lock_acquire+0x664/0x3e00 [ 19.398563] ? lock_downgrade+0x980/0x980 [ 19.398568] ? lock_downgrade+0x980/0x980 [ 19.398574] ? print_irqtrace_events+0x270/0x270 [ 19.398581] ? remove_wait_queue+0x81/0x350 [ 19.398589] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 19.398596] ? __lock_acquire+0x664/0x3e00 [ 19.398601] ? check_noncircular+0x20/0x20 [ 19.398613] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 19.398620] ? lock_acquire+0x1d5/0x580 [ 19.398625] ? lock_acquire+0x1d5/0x580 [ 19.398631] ? ep_free+0xf4/0x320 [ 19.398639] ? lock_release+0xa40/0xa40 [ 19.398645] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 19.398650] ? print_irqtrace_events+0x270/0x270 [ 19.398656] ? print_irqtrace_events+0x270/0x270 [ 19.398662] ? rcu_note_context_switch+0x710/0x710 [ 19.398667] ? find_held_lock+0x35/0x1d0 [ 19.398674] ? __might_sleep+0x95/0x190 [ 19.398679] ? ep_free+0xf4/0x320 [ 19.398686] ? __mutex_lock+0x16f/0x1a80 [ 19.398690] ? ep_free+0xf4/0x320 [ 19.398697] ? print_irqtrace_events+0x270/0x270 [ 19.398701] ? ep_free+0xf4/0x320 [ 19.398709] lock_acquire+0x1d5/0x580 [ 19.398715] ? lock_acquire+0x1d5/0x580 [ 19.398720] ? remove_wait_queue+0x81/0x350 [ 19.398728] ? lock_release+0xa40/0xa40 [ 19.398737] ? lock_acquire+0x1d5/0x580 [ 19.398742] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 19.398747] ? lock_acquire+0x1d5/0x580 [ 19.398754] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 19.398761] _raw_spin_lock_irqsave+0x96/0xc0 [ 19.398767] ? remove_wait_queue+0x81/0x350 [ 19.398773] remove_wait_queue+0x81/0x350 [ 19.398779] ? depot_save_stack+0x3b5/0x490 [ 19.398786] ? add_wait_queue+0x290/0x290 [ 19.398792] ? rcutorture_record_progress+0x10/0x10 [ 19.398797] ? lock_release+0xa40/0xa40 [ 19.398807] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 19.398814] ? __kernel_text_address+0xd/0x40 [ 19.398823] ? clear_tfile_check_list+0x370/0x370 [ 19.398830] ? check_noncircular+0x20/0x20 [ 19.398838] ? locks_remove_file+0x3fa/0x5a0 [ 19.398846] ep_free+0x13f/0x320 [ 19.398851] ? ep_remove+0x800/0x800 [ 19.398858] ? fsnotify_first_mark+0x2b0/0x2b0 [ 19.398865] ? ep_free+0x320/0x320 [ 19.398870] ep_eventpoll_release+0x44/0x60 [ 19.398876] __fput+0x327/0x7e0 [ 19.398884] ? fput+0x140/0x140 [ 19.398890] ? _raw_spin_unlock_irq+0x27/0x70 [ 19.398897] ____fput+0x15/0x20 [ 19.398904] task_work_run+0x199/0x270 [ 19.398911] ? task_work_cancel+0x210/0x210 [ 19.398916] ? _raw_spin_unlock+0x22/0x30 [ 19.398922] ? switch_task_namespaces+0x87/0xc0 [ 19.398931] do_exit+0x9bb/0x1ad0 [ 19.398938] ? __handle_mm_fault+0x2330/0x3ce0 [ 19.398945] ? mm_update_next_owner+0x930/0x930 [ 19.398955] ? do_raw_spin_trylock+0x190/0x190 [ 19.398962] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 19.398967] ? check_noncircular+0x20/0x20 [ 19.398974] ? _raw_spin_unlock+0x22/0x30 [ 19.398979] ? __handle_mm_fault+0x80e/0x3ce0 [ 19.398987] ? check_noncircular+0x20/0x20 [ 19.398991] ? __pmd_alloc+0x4e0/0x4e0 [ 19.398997] ? lock_downgrade+0x980/0x980 [ 19.399008] ? find_held_lock+0x35/0x1d0 [ 19.399016] ? handle_mm_fault+0x248/0x8d0 [ 19.399023] ? find_held_lock+0x35/0x1d0 [ 19.399033] ? __do_page_fault+0x5f7/0xc90 [ 19.399039] ? lock_downgrade+0x980/0x980 [ 19.399048] ? handle_mm_fault+0x410/0x8d0 [ 19.399053] ? down_read_trylock+0xdb/0x170 [ 19.399058] ? __do_page_fault+0x32d/0xc90 [ 19.399064] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 19.399070] ? vmacache_find+0x5f/0x280 [ 19.399078] do_group_exit+0x149/0x400 [ 19.399084] ? __do_page_fault+0x3d6/0xc90 [ 19.399090] ? SyS_exit+0x30/0x30 [ 19.399098] ? do_fast_syscall_32+0x156/0xf9d [ 19.399104] ? do_group_exit+0x400/0x400 [ 19.399110] SyS_exit_group+0x1d/0x20 [ 19.399117] do_fast_syscall_32+0x3ee/0xf9d [ 19.399125] ? do_int80_syscall_32+0x9d0/0x9d0 [ 19.399131] ? kasan_check_read+0x11/0x20 [ 19.399138] ? syscall_return_slowpath+0x550/0x550 [ 19.399146] ? SyS_rt_sigaction+0x94/0x1b0 [ 19.399152] ? SyS_sigprocmask+0x4b0/0x4b0 [ 19.399161] ? SyS_read+0x184/0x220 [ 19.399166] ? retint_user+0x18/0x18 [ 19.399174] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 19.399183] entry_SYSENTER_compat+0x54/0x63 [ 19.399188] RIP: 0023:0xf7faac79 [ 19.399191] RSP: 002b:00000000ff8de03c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 19.399197] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 19.399201] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 19.399204] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 19.399207] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 19.399210] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 19.399218] [ 19.399221] Allocated by task 3137: [ 19.399226] save_stack+0x43/0xd0 [ 19.399230] kasan_kmalloc+0xad/0xe0 [ 19.399237] kmem_cache_alloc_trace+0x136/0x750 [ 19.399244] binder_get_thread+0x1cf/0x870 [ 19.399247] binder_poll+0x8c/0x390 [ 19.399252] ep_item_poll.isra.10+0xec/0x320 [ 19.399256] ep_insert+0x6a3/0x1b10 [ 19.399260] SyS_epoll_ctl+0x12e4/0x1ab0 [ 19.399265] do_fast_syscall_32+0x3ee/0xf9d [ 19.399270] entry_SYSENTER_compat+0x54/0x63 [ 19.399271] [ 19.399274] Freed by task 3137: [ 19.399278] save_stack+0x43/0xd0 [ 19.399282] kasan_slab_free+0x71/0xc0 [ 19.399287] kfree+0xca/0x250 [ 19.399291] binder_thread_dec_tmpref+0x27f/0x310 [ 19.399296] binder_thread_release+0x27d/0x540 [ 19.399300] binder_ioctl+0xc02/0x1417 [ 19.399304] compat_SyS_ioctl+0x151/0x2a30 [ 19.399309] do_fast_syscall_32+0x3ee/0xf9d [ 19.399314] entry_SYSENTER_compat+0x54/0x63 [ 19.399315] [ 19.399319] The buggy address belongs to the object at ffff8801ca442a40 [ 19.399319] which belongs to the cache kmalloc-512 of size 512 [ 19.399324] The buggy address is located 176 bytes inside of [ 19.399324] 512-byte region [ffff8801ca442a40, ffff8801ca442c40) [ 19.399326] The buggy address belongs to the page: [ 19.399332] page:00000000d581705c count:1 mapcount:0 mapping:00000000aca67c22 index:0x0 [ 19.399337] flags: 0x2fffc0000000100(slab) [ 19.399346] raw: 02fffc0000000100 ffff8801ca442040 0000000000000000 0000000100000006 [ 19.399353] raw: ffffea000729f7a0 ffffea0007282a20 ffff8801db000940 0000000000000000 [ 19.399355] page dumped because: kasan: bad access detected [ 19.399356] [ 19.399358] Memory state around the buggy address: [ 19.399362] ffff8801ca442980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.399367] ffff8801ca442a00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 19.399371] >ffff8801ca442a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.399373] ^ [ 19.399377] ffff8801ca442b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.399382] ffff8801ca442b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.399383] ================================================================== [ 19.399385] Disabling lock debugging due to kernel taint [ 19.399389] Kernel panic - not syncing: panic_on_warn set ... [ 19.399389] [ 19.399395] CPU: 1 PID: 3137 Comm: syzkaller826571 Tainted: G B 4.15.0-rc4+ #139 [ 19.399398] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 19.399399] Call Trace: [ 19.399406] dump_stack+0x194/0x257 [ 19.399413] ? arch_local_irq_restore+0x53/0x53 [ 19.399418] ? kasan_end_report+0x32/0x50 [ 19.399424] ? lock_downgrade+0x980/0x980 [ 19.399429] ? vsnprintf+0x1ed/0x1900 [ 19.399435] ? __lock_acquire+0x3c90/0x3e00 [ 19.399441] panic+0x1e4/0x41c [ 19.399446] ? refcount_error_report+0x214/0x214 [ 19.399453] ? add_taint+0x40/0x50 [ 19.399458] ? add_taint+0x1c/0x50 [ 19.399464] ? __lock_acquire+0x3d4d/0x3e00 [ 19.399470] kasan_end_report+0x50/0x50 [ 19.399475] kasan_report+0x144/0x340 [ 19.399482] __asan_report_load8_noabort+0x14/0x20 [ 19.399488] __lock_acquire+0x3d4d/0x3e00 [ 19.399493] ? __lock_acquire+0x664/0x3e00 [ 19.399499] ? lock_downgrade+0x980/0x980 [ 19.399504] ? lock_downgrade+0x980/0x980 [ 19.399510] ? print_irqtrace_events+0x270/0x270 [ 19.399516] ? remove_wait_queue+0x81/0x350 [ 19.399524] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 19.399531] ? __lock_acquire+0x664/0x3e00 [ 19.399536] ? check_noncircular+0x20/0x20 [ 19.399547] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 19.399554] ? lock_acquire+0x1d5/0x580 [ 19.399559] ? lock_acquire+0x1d5/0x580 [ 19.399564] ? ep_free+0xf4/0x320 [ 19.399572] ? lock_release+0xa40/0xa40 [ 19.399577] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 19.399583] ? print_irqtrace_events+0x270/0x270 [ 19.399588] ? print_irqtrace_events+0x270/0x270 [ 19.399594] ? rcu_note_context_switch+0x710/0x710 [ 19.399599] ? find_held_lock+0x35/0x1d0 [ 19.399606] ? __might_sleep+0x95/0x190 [ 19.399611] ? ep_free+0xf4/0x320 [ 19.399617] ? __mutex_lock+0x16f/0x1a80 [ 19.399621] ? ep_free+0xf4/0x320 [ 19.399628] ? print_irqtrace_events+0x270/0x270 [ 19.399632] ? ep_free+0xf4/0x320 [ 19.399640] lock_acquire+0x1d5/0x580 [ 19.399645] ? lock_acquire+0x1d5/0x580 [ 19.399651] ? remove_wait_queue+0x81/0x350 [ 19.399658] ? lock_release+0xa40/0xa40 [ 19.399667] ? lock_acquire+0x1d5/0x580 [ 19.399672] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 19.399677] ? lock_acquire+0x1d5/0x580 [ 19.399684] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 19.399691] _raw_spin_lock_irqsave+0x96/0xc0 [ 19.399696] ? remove_wait_queue+0x81/0x350 [ 19.399702] remove_wait_queue+0x81/0x350 [ 19.399707] ? depot_save_stack+0x3b5/0x490 [ 19.399714] ? add_wait_queue+0x290/0x290 [ 19.399720] ? rcutorture_record_progress+0x10/0x10 [ 19.399725] ? lock_release+0xa40/0xa40 [ 19.399735] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 19.399741] ? __kernel_text_address+0xd/0x40 [ 19.399749] ? clear_tfile_check_list+0x370/0x370 [ 19.399756] ? check_noncircular+0x20/0x20 [ 19.399763] ? locks_remove_file+0x3fa/0x5a0 [ 19.399772] ep_free+0x13f/0x320 [ 19.399777] ? ep_remove+0x800/0x800 [ 19.399783] ? fsnotify_first_mark+0x2b0/0x2b0 [ 19.399789] ? ep_free+0x320/0x320 [ 19.399795] ep_eventpoll_release+0x44/0x60 [ 19.399800] __fput+0x327/0x7e0 [ 19.399807] ? fput+0x140/0x140 [ 19.399813] ? _raw_spin_unlock_irq+0x27/0x70 [ 19.399820] ____fput+0x15/0x20 [ 19.399827] task_work_run+0x199/0x270 [ 19.399834] ? task_work_cancel+0x210/0x210 [ 19.399839] ? _raw_spin_unlock+0x22/0x30 [ 19.399845] ? switch_task_namespaces+0x87/0xc0 [ 19.399852] do_exit+0x9bb/0x1ad0 [ 19.399857] ? __handle_mm_fault+0x2330/0x3ce0 [ 19.399865] ? mm_update_next_owner+0x930/0x930 [ 19.399873] ? do_raw_spin_trylock+0x190/0x190 [ 19.399880] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 19.399886] ? check_noncircular+0x20/0x20 [ 19.399892] ? _raw_spin_unlock+0x22/0x30 [ 19.399898] ? __handle_mm_fault+0x80e/0x3ce0 [ 19.399905] ? check_noncircular+0x20/0x20 [ 19.399909] ? __pmd_alloc+0x4e0/0x4e0 [ 19.399915] ? lock_downgrade+0x980/0x980 [ 19.399922] ? find_held_lock+0x35/0x1d0 [ 19.399930] ? handle_mm_fault+0x248/0x8d0 [ 19.399937] ? find_held_lock+0x35/0x1d0 [ 19.399946] ? __do_page_fault+0x5f7/0xc90 [ 19.399951] ? lock_downgrade+0x980/0x980 [ 19.399959] ? handle_mm_fault+0x410/0x8d0 [ 19.399964] ? down_read_trylock+0xdb/0x170 [ 19.399970] ? __do_page_fault+0x32d/0xc90 [ 19.399975] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 19.399981] ? vmacache_find+0x5f/0x280 [ 19.399989] do_group_exit+0x149/0x400 [ 19.399995] ? __do_page_fault+0x3d6/0xc90 [ 19.400000] ? SyS_exit+0x30/0x30 [ 19.400008] ? do_fast_syscall_32+0x156/0xf9d [ 19.400014] ? do_group_exit+0x400/0x400 [ 19.400020] SyS_exit_group+0x1d/0x20 [ 19.400026] do_fast_syscall_32+0x3ee/0xf9d [ 19.400034] ? do_int80_syscall_32+0x9d0/0x9d0 [ 19.400039] ? kasan_check_read+0x11/0x20 [ 19.400046] ? syscall_return_slowpath+0x550/0x550 [ 19.400052] ? SyS_rt_sigaction+0x94/0x1b0 [ 19.400059] ? SyS_sigprocmask+0x4b0/0x4b0 [ 19.400063] ? SyS_read+0x184/0x220 [ 19.400068] ? retint_user+0x18/0x18 [ 19.400076] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 19.400085] entry_SYSENTER_compat+0x54/0x63 [ 19.400088] RIP: 0023:0xf7faac79 [ 19.400091] RSP: 002b:00000000ff8de03c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 19.400097] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 19.400100] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 19.400103] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 19.400106] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 19.400109] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 19.419330] Dumping ftrace buffer: [ 19.419333] (ftrace buffer empty) [ 19.419336] Kernel Offset: disabled [ 20.731490] Rebooting in 86400 seconds..