[?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. [ 12.249459] audit: type=1400 audit(1514567865.231:6): avc: denied { map } for pid=3130 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 Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.15.239' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 18.739209] audit: type=1400 audit(1514567871.721:7): avc: denied { map } for pid=3144 comm="syzkaller050857" path="/root/syzkaller050857158" 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 [ 18.743794] ================================================================== [ 18.743810] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 18.743815] Read of size 8 at addr ffff8801c91e6df0 by task syzkaller050857/3144 [ 18.743816] [ 18.743824] CPU: 1 PID: 3144 Comm: syzkaller050857 Not tainted 4.15.0-rc5+ #150 [ 18.743828] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 18.743830] Call Trace: [ 18.743839] dump_stack+0x194/0x257 [ 18.743846] ? arch_local_irq_restore+0x53/0x53 [ 18.743853] ? show_regs_print_info+0x18/0x18 [ 18.743859] ? print_irqtrace_events+0x270/0x270 [ 18.743865] ? __lock_acquire+0x664/0x3e00 [ 18.743871] ? __lock_acquire+0x3d4d/0x3e00 [ 18.743879] print_address_description+0x73/0x250 [ 18.743885] ? __lock_acquire+0x3d4d/0x3e00 [ 18.743891] kasan_report+0x25b/0x340 [ 18.743899] __asan_report_load8_noabort+0x14/0x20 [ 18.743904] __lock_acquire+0x3d4d/0x3e00 [ 18.743910] ? __lock_acquire+0x664/0x3e00 [ 18.743916] ? lock_downgrade+0x980/0x980 [ 18.743921] ? lock_downgrade+0x980/0x980 [ 18.743928] ? print_irqtrace_events+0x270/0x270 [ 18.743934] ? remove_wait_queue+0x81/0x350 [ 18.743943] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 18.743949] ? __lock_acquire+0x664/0x3e00 [ 18.743955] ? check_noncircular+0x20/0x20 [ 18.743967] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 18.743974] ? lock_acquire+0x1d5/0x580 [ 18.743979] ? lock_acquire+0x1d5/0x580 [ 18.743986] ? ep_free+0xf4/0x320 [ 18.743994] ? lock_release+0xa40/0xa40 [ 18.744005] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 18.744010] ? print_irqtrace_events+0x270/0x270 [ 18.744016] ? print_irqtrace_events+0x270/0x270 [ 18.744022] ? rcu_note_context_switch+0x710/0x710 [ 18.744030] ? __might_sleep+0x95/0x190 [ 18.744035] ? ep_free+0xf4/0x320 [ 18.744041] ? __mutex_lock+0x16f/0x1a80 [ 18.744045] ? ep_free+0xf4/0x320 [ 18.744052] ? print_irqtrace_events+0x270/0x270 [ 18.744057] ? ep_free+0xf4/0x320 [ 18.744065] lock_acquire+0x1d5/0x580 [ 18.744070] ? lock_acquire+0x1d5/0x580 [ 18.744076] ? remove_wait_queue+0x81/0x350 [ 18.744084] ? lock_release+0xa40/0xa40 [ 18.744093] ? lock_acquire+0x1d5/0x580 [ 18.744099] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 18.744104] ? lock_acquire+0x1d5/0x580 [ 18.744110] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 18.744117] _raw_spin_lock_irqsave+0x96/0xc0 [ 18.744123] ? remove_wait_queue+0x81/0x350 [ 18.744129] remove_wait_queue+0x81/0x350 [ 18.744138] ? depot_save_stack+0x3b5/0x490 [ 18.744145] ? add_wait_queue+0x290/0x290 [ 18.744150] ? rcutorture_record_progress+0x10/0x10 [ 18.744160] ? lock_release+0xa40/0xa40 [ 18.744169] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 18.744176] ? __kernel_text_address+0xd/0x40 [ 18.744183] ? clear_tfile_check_list+0x370/0x370 [ 18.744191] ? check_noncircular+0x20/0x20 [ 18.744199] ? locks_remove_file+0x3fa/0x5a0 [ 18.744208] ep_free+0x13f/0x320 [ 18.744214] ? ep_remove+0x800/0x800 [ 18.744221] ? fsnotify_first_mark+0x2b0/0x2b0 [ 18.744228] ? ep_free+0x320/0x320 [ 18.744234] ep_eventpoll_release+0x44/0x60 [ 18.744241] __fput+0x327/0x7e0 [ 18.744249] ? fput+0x140/0x140 [ 18.744256] ? _raw_spin_unlock_irq+0x27/0x70 [ 18.744263] ____fput+0x15/0x20 [ 18.744270] task_work_run+0x199/0x270 [ 18.744277] ? task_work_cancel+0x210/0x210 [ 18.744283] ? _raw_spin_unlock+0x22/0x30 [ 18.744289] ? switch_task_namespaces+0x87/0xc0 [ 18.744298] do_exit+0x9bb/0x1ad0 [ 18.744306] ? __handle_mm_fault+0x2330/0x3ce0 [ 18.744313] ? mm_update_next_owner+0x930/0x930 [ 18.744323] ? do_raw_spin_trylock+0x190/0x190 [ 18.744330] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 18.744336] ? check_noncircular+0x20/0x20 [ 18.744343] ? _raw_spin_unlock+0x22/0x30 [ 18.744349] ? __handle_mm_fault+0x80e/0x3ce0 [ 18.744356] ? check_noncircular+0x20/0x20 [ 18.744361] ? __pmd_alloc+0x4e0/0x4e0 [ 18.744366] ? lock_downgrade+0x980/0x980 [ 18.744375] ? find_held_lock+0x35/0x1d0 [ 18.744383] ? handle_mm_fault+0x248/0x8d0 [ 18.744390] ? find_held_lock+0x35/0x1d0 [ 18.744401] ? __do_page_fault+0x5f7/0xc90 [ 18.744407] ? lock_downgrade+0x980/0x980 [ 18.744416] ? handle_mm_fault+0x410/0x8d0 [ 18.744421] ? down_read_trylock+0xdb/0x170 [ 18.744426] ? __do_page_fault+0x32d/0xc90 [ 18.744433] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 18.744439] ? vmacache_find+0x5f/0x280 [ 18.744448] do_group_exit+0x149/0x400 [ 18.744454] ? __do_page_fault+0x3d6/0xc90 [ 18.744460] ? SyS_exit+0x30/0x30 [ 18.744468] ? do_fast_syscall_32+0x156/0xf9d [ 18.744474] ? do_group_exit+0x400/0x400 [ 18.744481] SyS_exit_group+0x1d/0x20 [ 18.744487] do_fast_syscall_32+0x3ee/0xf9d [ 18.744495] ? do_int80_syscall_32+0x9d0/0x9d0 [ 18.744501] ? kasan_check_read+0x11/0x20 [ 18.744508] ? syscall_return_slowpath+0x550/0x550 [ 18.744514] ? SyS_rt_sigaction+0x94/0x1b0 [ 18.744521] ? SyS_sigprocmask+0x4b0/0x4b0 [ 18.744526] ? SyS_read+0x184/0x220 [ 18.744531] ? retint_user+0x18/0x18 [ 18.744540] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 18.744549] entry_SYSENTER_compat+0x54/0x63 [ 18.744554] RIP: 0023:0xf7fb6c79 [ 18.744557] RSP: 002b:00000000ff88ca0c EFLAGS: 00000296 ORIG_RAX: 00000000000000fc [ 18.744563] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 18.744567] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 18.744570] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 18.744573] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 18.744576] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 18.744584] [ 18.744587] Allocated by task 3144: [ 18.744592] save_stack+0x43/0xd0 [ 18.744597] kasan_kmalloc+0xad/0xe0 [ 18.744603] kmem_cache_alloc_trace+0x136/0x750 [ 18.744610] binder_get_thread+0x1cf/0x870 [ 18.744615] binder_poll+0x8c/0x390 [ 18.744620] ep_item_poll.isra.10+0xec/0x320 [ 18.744624] ep_insert+0x6a3/0x1b10 [ 18.744628] SyS_epoll_ctl+0x12e4/0x1ab0 [ 18.744634] do_fast_syscall_32+0x3ee/0xf9d [ 18.744639] entry_SYSENTER_compat+0x54/0x63 [ 18.744640] [ 18.744642] Freed by task 3144: [ 18.744646] save_stack+0x43/0xd0 [ 18.744651] kasan_slab_free+0x71/0xc0 [ 18.744655] kfree+0xd6/0x260 [ 18.744660] binder_thread_dec_tmpref+0x27f/0x310 [ 18.744665] binder_thread_release+0x27d/0x540 [ 18.744670] binder_ioctl+0xc02/0x1417 [ 18.744674] compat_SyS_ioctl+0x151/0x2a30 [ 18.744679] do_fast_syscall_32+0x3ee/0xf9d [ 18.744685] entry_SYSENTER_compat+0x54/0x63 [ 18.744686] [ 18.744690] The buggy address belongs to the object at ffff8801c91e6d40 [ 18.744690] which belongs to the cache kmalloc-512 of size 512 [ 18.744695] The buggy address is located 176 bytes inside of [ 18.744695] 512-byte region [ffff8801c91e6d40, ffff8801c91e6f40) [ 18.744697] The buggy address belongs to the page: [ 18.744702] page:000000009b84e303 count:1 mapcount:0 mapping:000000001b3fa9b9 index:0x0 [ 18.744707] flags: 0x2fffc0000000100(slab) [ 18.744716] raw: 02fffc0000000100 ffff8801c91e60c0 0000000000000000 0000000100000006 [ 18.744722] raw: ffffea00072753e0 ffffea000724d160 ffff8801db000940 0000000000000000 [ 18.744725] page dumped because: kasan: bad access detected [ 18.744726] [ 18.744727] Memory state around the buggy address: [ 18.744732] ffff8801c91e6c80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 18.744736] ffff8801c91e6d00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 18.744740] >ffff8801c91e6d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.744743] ^ [ 18.744747] ffff8801c91e6e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.744751] ffff8801c91e6e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.744753] ================================================================== [ 18.744755] Disabling lock debugging due to kernel taint [ 18.744758] Kernel panic - not syncing: panic_on_warn set ... [ 18.744758] [ 18.744763] CPU: 1 PID: 3144 Comm: syzkaller050857 Tainted: G B 4.15.0-rc5+ #150 [ 18.744766] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 18.744768] Call Trace: [ 18.744774] dump_stack+0x194/0x257 [ 18.744781] ? arch_local_irq_restore+0x53/0x53 [ 18.744786] ? kasan_end_report+0x32/0x50 [ 18.744792] ? lock_downgrade+0x980/0x980 [ 18.744798] ? vsnprintf+0x1ed/0x1900 [ 18.744804] ? __lock_acquire+0x3cd0/0x3e00 [ 18.744809] panic+0x1e4/0x41c [ 18.744815] ? refcount_error_report+0x214/0x214 [ 18.744822] ? add_taint+0x40/0x50 [ 18.744826] ? add_taint+0x1c/0x50 [ 18.744833] ? __lock_acquire+0x3d4d/0x3e00 [ 18.744839] kasan_end_report+0x50/0x50 [ 18.744844] kasan_report+0x144/0x340 [ 18.744852] __asan_report_load8_noabort+0x14/0x20 [ 18.744857] __lock_acquire+0x3d4d/0x3e00 [ 18.744863] ? __lock_acquire+0x664/0x3e00 [ 18.744869] ? lock_downgrade+0x980/0x980 [ 18.744874] ? lock_downgrade+0x980/0x980 [ 18.744880] ? print_irqtrace_events+0x270/0x270 [ 18.744886] ? remove_wait_queue+0x81/0x350 [ 18.744895] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 18.744901] ? __lock_acquire+0x664/0x3e00 [ 18.744906] ? check_noncircular+0x20/0x20 [ 18.744918] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 18.744925] ? lock_acquire+0x1d5/0x580 [ 18.744930] ? lock_acquire+0x1d5/0x580 [ 18.744935] ? ep_free+0xf4/0x320 [ 18.744943] ? lock_release+0xa40/0xa40 [ 18.744948] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 18.744954] ? print_irqtrace_events+0x270/0x270 [ 18.744960] ? print_irqtrace_events+0x270/0x270 [ 18.744966] ? rcu_note_context_switch+0x710/0x710 [ 18.744973] ? __might_sleep+0x95/0x190 [ 18.744978] ? ep_free+0xf4/0x320 [ 18.744983] ? __mutex_lock+0x16f/0x1a80 [ 18.744987] ? ep_free+0xf4/0x320 [ 18.744994] ? print_irqtrace_events+0x270/0x270 [ 18.744998] ? ep_free+0xf4/0x320 [ 18.745006] lock_acquire+0x1d5/0x580 [ 18.745012] ? lock_acquire+0x1d5/0x580 [ 18.745017] ? remove_wait_queue+0x81/0x350 [ 18.745026] ? lock_release+0xa40/0xa40 [ 18.745034] ? lock_acquire+0x1d5/0x580 [ 18.745040] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 18.745045] ? lock_acquire+0x1d5/0x580 [ 18.745050] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 18.745057] _raw_spin_lock_irqsave+0x96/0xc0 [ 18.745063] ? remove_wait_queue+0x81/0x350 [ 18.745069] remove_wait_queue+0x81/0x350 [ 18.745075] ? depot_save_stack+0x3b5/0x490 [ 18.745082] ? add_wait_queue+0x290/0x290 [ 18.745087] ? rcutorture_record_progress+0x10/0x10 [ 18.745093] ? lock_release+0xa40/0xa40 [ 18.745101] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 18.745107] ? __kernel_text_address+0xd/0x40 [ 18.745115] ? clear_tfile_check_list+0x370/0x370 [ 18.745122] ? check_noncircular+0x20/0x20 [ 18.745129] ? locks_remove_file+0x3fa/0x5a0 [ 18.745137] ep_free+0x13f/0x320 [ 18.745143] ? ep_remove+0x800/0x800 [ 18.745149] ? fsnotify_first_mark+0x2b0/0x2b0 [ 18.745160] ? ep_free+0x320/0x320 [ 18.745165] ep_eventpoll_release+0x44/0x60 [ 18.745170] __fput+0x327/0x7e0 [ 18.745178] ? fput+0x140/0x140 [ 18.745184] ? _raw_spin_unlock_irq+0x27/0x70 [ 18.745192] ____fput+0x15/0x20 [ 18.745198] task_work_run+0x199/0x270 [ 18.745206] ? task_work_cancel+0x210/0x210 [ 18.745211] ? _raw_spin_unlock+0x22/0x30 [ 18.745217] ? switch_task_namespaces+0x87/0xc0 [ 18.745224] do_exit+0x9bb/0x1ad0 [ 18.745230] ? __handle_mm_fault+0x2330/0x3ce0 [ 18.745238] ? mm_update_next_owner+0x930/0x930 [ 18.745247] ? do_raw_spin_trylock+0x190/0x190 [ 18.745254] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 18.745260] ? check_noncircular+0x20/0x20 [ 18.745266] ? _raw_spin_unlock+0x22/0x30 [ 18.745272] ? __handle_mm_fault+0x80e/0x3ce0 [ 18.745279] ? check_noncircular+0x20/0x20 [ 18.745284] ? __pmd_alloc+0x4e0/0x4e0 [ 18.745290] ? lock_downgrade+0x980/0x980 [ 18.745297] ? find_held_lock+0x35/0x1d0 [ 18.745306] ? handle_mm_fault+0x248/0x8d0 [ 18.745312] ? find_held_lock+0x35/0x1d0 [ 18.745321] ? __do_page_fault+0x5f7/0xc90 [ 18.745327] ? lock_downgrade+0x980/0x980 [ 18.745336] ? handle_mm_fault+0x410/0x8d0 [ 18.745341] ? down_read_trylock+0xdb/0x170 [ 18.745346] ? __do_page_fault+0x32d/0xc90 [ 18.745352] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 18.745358] ? vmacache_find+0x5f/0x280 [ 18.745366] do_group_exit+0x149/0x400 [ 18.745372] ? __do_page_fault+0x3d6/0xc90 [ 18.745377] ? SyS_exit+0x30/0x30 [ 18.745385] ? do_fast_syscall_32+0x156/0xf9d [ 18.745391] ? do_group_exit+0x400/0x400 [ 18.745397] SyS_exit_group+0x1d/0x20 [ 18.745403] do_fast_syscall_32+0x3ee/0xf9d [ 18.745412] ? do_int80_syscall_32+0x9d0/0x9d0 [ 18.745417] ? kasan_check_read+0x11/0x20 [ 18.745424] ? syscall_return_slowpath+0x550/0x550 [ 18.745430] ? SyS_rt_sigaction+0x94/0x1b0 [ 18.745437] ? SyS_sigprocmask+0x4b0/0x4b0 [ 18.745441] ? SyS_read+0x184/0x220 [ 18.745447] ? retint_user+0x18/0x18 [ 18.745455] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 18.745463] entry_SYSENTER_compat+0x54/0x63 [ 18.745467] RIP: 0023:0xf7fb6c79 [ 18.745470] RSP: 002b:00000000ff88ca0c EFLAGS: 00000296 ORIG_RAX: 00000000000000fc [ 18.745476] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 18.745479] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 18.745482] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 18.745485] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 18.745488] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 18.765505] Dumping ftrace buffer: [ 18.765508] (ftrace buffer empty) [ 18.765511] Kernel Offset: disabled [ 20.048255] Rebooting in 86400 seconds..