[....] Starting enhanced syslogd: rsyslogd[ 10.794066] audit: type=1400 audit(1514384012.772:5): avc: denied { syslog } for pid=2995 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: [ 15.985330] audit: type=1400 audit(1514384017.964:6): avc: denied { map } for pid=3136 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.15.192' (ECDSA) to the list of known hosts. executing program [ 33.119084] audit: type=1400 audit(1514384035.097:7): avc: denied { map } for pid=3154 comm="syzkaller647120" path="/root/syzkaller647120533" 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 [ 33.123273] ================================================================== [ 33.123288] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 33.123293] Read of size 8 at addr ffff8801c9698870 by task syzkaller647120/3154 [ 33.123294] [ 33.123299] CPU: 1 PID: 3154 Comm: syzkaller647120 Not tainted 4.15.0-rc5+ #148 [ 33.123302] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.123304] Call Trace: [ 33.123312] dump_stack+0x194/0x257 [ 33.123317] ? arch_local_irq_restore+0x53/0x53 [ 33.123324] ? show_regs_print_info+0x18/0x18 [ 33.123328] ? print_irqtrace_events+0x270/0x270 [ 33.123332] ? __lock_acquire+0x664/0x3e00 [ 33.123336] ? __lock_acquire+0x3d4d/0x3e00 [ 33.123343] print_address_description+0x73/0x250 [ 33.123347] ? __lock_acquire+0x3d4d/0x3e00 [ 33.123351] kasan_report+0x25b/0x340 [ 33.123355] __asan_report_load8_noabort+0x14/0x20 [ 33.123358] __lock_acquire+0x3d4d/0x3e00 [ 33.123362] ? __lock_acquire+0x664/0x3e00 [ 33.123365] ? lock_downgrade+0x980/0x980 [ 33.123368] ? lock_downgrade+0x980/0x980 [ 33.123372] ? print_irqtrace_events+0x270/0x270 [ 33.123377] ? remove_wait_queue+0x81/0x350 [ 33.123382] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 33.123386] ? __lock_acquire+0x664/0x3e00 [ 33.123389] ? check_noncircular+0x20/0x20 [ 33.123396] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 33.123400] ? lock_acquire+0x1d5/0x580 [ 33.123403] ? lock_acquire+0x1d5/0x580 [ 33.123409] ? ep_free+0xf4/0x320 [ 33.123414] ? lock_release+0xa40/0xa40 [ 33.123419] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 33.123422] ? print_irqtrace_events+0x270/0x270 [ 33.123426] ? print_irqtrace_events+0x270/0x270 [ 33.123432] ? rcu_note_context_switch+0x710/0x710 [ 33.123436] ? __might_sleep+0x95/0x190 [ 33.123439] ? ep_free+0xf4/0x320 [ 33.123444] ? __mutex_lock+0x16f/0x1a80 [ 33.123446] ? ep_free+0xf4/0x320 [ 33.123450] ? print_irqtrace_events+0x270/0x270 [ 33.123453] ? ep_free+0xf4/0x320 [ 33.123458] lock_acquire+0x1d5/0x580 [ 33.123461] ? lock_acquire+0x1d5/0x580 [ 33.123464] ? remove_wait_queue+0x81/0x350 [ 33.123469] ? lock_release+0xa40/0xa40 [ 33.123474] ? lock_acquire+0x1d5/0x580 [ 33.123477] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 33.123480] ? lock_acquire+0x1d5/0x580 [ 33.123484] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 33.123489] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.123493] ? remove_wait_queue+0x81/0x350 [ 33.123496] remove_wait_queue+0x81/0x350 [ 33.123503] ? depot_save_stack+0x3b5/0x490 [ 33.123507] ? add_wait_queue+0x290/0x290 [ 33.123511] ? rcutorture_record_progress+0x10/0x10 [ 33.123514] ? lock_release+0xa40/0xa40 [ 33.123519] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 33.123527] ? __kernel_text_address+0xd/0x40 [ 33.123531] ? clear_tfile_check_list+0x370/0x370 [ 33.123535] ? check_noncircular+0x20/0x20 [ 33.123541] ? locks_remove_file+0x3fa/0x5a0 [ 33.123559] ep_free+0x13f/0x320 [ 33.123562] ? ep_remove+0x800/0x800 [ 33.123569] ? fsnotify_first_mark+0x2b0/0x2b0 [ 33.123573] ? ep_free+0x320/0x320 [ 33.123576] ep_eventpoll_release+0x44/0x60 [ 33.123582] __fput+0x327/0x7e0 [ 33.123587] ? fput+0x140/0x140 [ 33.123591] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.123595] ____fput+0x15/0x20 [ 33.123599] task_work_run+0x199/0x270 [ 33.123604] ? task_work_cancel+0x210/0x210 [ 33.123607] ? _raw_spin_unlock+0x22/0x30 [ 33.123611] ? switch_task_namespaces+0x87/0xc0 [ 33.123618] do_exit+0x9bb/0x1ad0 [ 33.123624] ? __handle_mm_fault+0x2330/0x3ce0 [ 33.123629] ? mm_update_next_owner+0x930/0x930 [ 33.123635] ? do_raw_spin_trylock+0x190/0x190 [ 33.123639] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 33.123643] ? check_noncircular+0x20/0x20 [ 33.123647] ? _raw_spin_unlock+0x22/0x30 [ 33.123650] ? __handle_mm_fault+0x80e/0x3ce0 [ 33.123654] ? check_noncircular+0x20/0x20 [ 33.123657] ? __pmd_alloc+0x4e0/0x4e0 [ 33.123660] ? lock_downgrade+0x980/0x980 [ 33.123665] ? find_held_lock+0x35/0x1d0 [ 33.123670] ? handle_mm_fault+0x248/0x8d0 [ 33.123673] ? find_held_lock+0x35/0x1d0 [ 33.123682] ? __do_page_fault+0x5f7/0xc90 [ 33.123686] ? lock_downgrade+0x980/0x980 [ 33.123691] ? handle_mm_fault+0x410/0x8d0 [ 33.123694] ? down_read_trylock+0xdb/0x170 [ 33.123697] ? __do_page_fault+0x32d/0xc90 [ 33.123700] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 33.123706] ? vmacache_find+0x5f/0x280 [ 33.123710] do_group_exit+0x149/0x400 [ 33.123714] ? __do_page_fault+0x3d6/0xc90 [ 33.123717] ? SyS_exit+0x30/0x30 [ 33.123725] ? do_fast_syscall_32+0x156/0xf9d [ 33.123728] ? do_group_exit+0x400/0x400 [ 33.123732] SyS_exit_group+0x1d/0x20 [ 33.123736] do_fast_syscall_32+0x3ee/0xf9d [ 33.123741] ? do_int80_syscall_32+0x9d0/0x9d0 [ 33.123744] ? kasan_check_read+0x11/0x20 [ 33.123748] ? syscall_return_slowpath+0x550/0x550 [ 33.123754] ? SyS_rt_sigaction+0x94/0x1b0 [ 33.123758] ? SyS_sigprocmask+0x4b0/0x4b0 [ 33.123761] ? SyS_read+0x184/0x220 [ 33.123764] ? retint_user+0x18/0x18 [ 33.123769] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.123775] entry_SYSENTER_compat+0x54/0x63 [ 33.123779] RIP: 0023:0xf7faec79 [ 33.123781] RSP: 002b:00000000ff896e0c EFLAGS: 00000296 ORIG_RAX: 00000000000000fc [ 33.123785] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 33.123787] RDX: 0000000000000000 RSI: 00000000080d9b18 RDI: 00000000080f02a0 [ 33.123790] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 33.123792] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 33.123794] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 33.123798] [ 33.123800] Allocated by task 3154: [ 33.123804] save_stack+0x43/0xd0 [ 33.123807] kasan_kmalloc+0xad/0xe0 [ 33.123812] kmem_cache_alloc_trace+0x136/0x750 [ 33.123817] binder_get_thread+0x1cf/0x870 [ 33.123819] binder_poll+0x8c/0x390 [ 33.123822] ep_item_poll.isra.10+0xec/0x320 [ 33.123825] ep_insert+0x6a3/0x1b10 [ 33.123827] SyS_epoll_ctl+0x12e4/0x1ab0 [ 33.123830] do_fast_syscall_32+0x3ee/0xf9d [ 33.123834] entry_SYSENTER_compat+0x54/0x63 [ 33.123834] [ 33.123836] Freed by task 3154: [ 33.123838] save_stack+0x43/0xd0 [ 33.123841] kasan_slab_free+0x71/0xc0 [ 33.123843] kfree+0xd6/0x260 [ 33.123846] binder_thread_dec_tmpref+0x27f/0x310 [ 33.123849] binder_thread_release+0x27d/0x540 [ 33.123853] binder_ioctl+0xc02/0x1417 [ 33.123855] compat_SyS_ioctl+0x151/0x2a30 [ 33.123858] do_fast_syscall_32+0x3ee/0xf9d [ 33.123861] entry_SYSENTER_compat+0x54/0x63 [ 33.123862] [ 33.123865] The buggy address belongs to the object at ffff8801c96987c0 [ 33.123865] which belongs to the cache kmalloc-512 of size 512 [ 33.123868] The buggy address is located 176 bytes inside of [ 33.123868] 512-byte region [ffff8801c96987c0, ffff8801c96989c0) [ 33.123869] The buggy address belongs to the page: [ 33.123873] page:000000003128b26d count:1 mapcount:0 mapping:00000000777cf545 index:0x0 [ 33.123877] flags: 0x2fffc0000000100(slab) [ 33.123884] raw: 02fffc0000000100 ffff8801c9698040 0000000000000000 0000000100000006 [ 33.123887] raw: ffffea000725a360 ffffea0007254be0 ffff8801db000940 0000000000000000 [ 33.123889] page dumped because: kasan: bad access detected [ 33.123890] [ 33.123891] Memory state around the buggy address: [ 33.123893] ffff8801c9698700: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 33.123896] ffff8801c9698780: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 33.123899] >ffff8801c9698800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.123900] ^ [ 33.123903] ffff8801c9698880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.123905] ffff8801c9698900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.123906] ================================================================== [ 33.123907] Disabling lock debugging due to kernel taint [ 33.123910] Kernel panic - not syncing: panic_on_warn set ... [ 33.123910] [ 33.123914] CPU: 1 PID: 3154 Comm: syzkaller647120 Tainted: G B 4.15.0-rc5+ #148 [ 33.123916] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.123917] Call Trace: [ 33.123920] dump_stack+0x194/0x257 [ 33.123924] ? arch_local_irq_restore+0x53/0x53 [ 33.123927] ? kasan_end_report+0x32/0x50 [ 33.123931] ? lock_downgrade+0x980/0x980 [ 33.123940] ? vsnprintf+0x1ed/0x1900 [ 33.123943] ? __lock_acquire+0x3cd0/0x3e00 [ 33.123947] panic+0x1e4/0x41c [ 33.123950] ? refcount_error_report+0x214/0x214 [ 33.123954] ? add_taint+0x40/0x50 [ 33.123957] ? add_taint+0x1c/0x50 [ 33.123961] ? __lock_acquire+0x3d4d/0x3e00 [ 33.123964] kasan_end_report+0x50/0x50 [ 33.123967] kasan_report+0x144/0x340 [ 33.123971] __asan_report_load8_noabort+0x14/0x20 [ 33.123975] __lock_acquire+0x3d4d/0x3e00 [ 33.123978] ? __lock_acquire+0x664/0x3e00 [ 33.123981] ? lock_downgrade+0x980/0x980 [ 33.123984] ? lock_downgrade+0x980/0x980 [ 33.123988] ? print_irqtrace_events+0x270/0x270 [ 33.123991] ? remove_wait_queue+0x81/0x350 [ 33.123996] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 33.124000] ? __lock_acquire+0x664/0x3e00 [ 33.124006] ? check_noncircular+0x20/0x20 [ 33.124012] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 33.124016] ? lock_acquire+0x1d5/0x580 [ 33.124019] ? lock_acquire+0x1d5/0x580 [ 33.124022] ? ep_free+0xf4/0x320 [ 33.124026] ? lock_release+0xa40/0xa40 [ 33.124030] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 33.124033] ? print_irqtrace_events+0x270/0x270 [ 33.124037] ? print_irqtrace_events+0x270/0x270 [ 33.124040] ? rcu_note_context_switch+0x710/0x710 [ 33.124044] ? __might_sleep+0x95/0x190 [ 33.124047] ? ep_free+0xf4/0x320 [ 33.124050] ? __mutex_lock+0x16f/0x1a80 [ 33.124053] ? ep_free+0xf4/0x320 [ 33.124057] ? print_irqtrace_events+0x270/0x270 [ 33.124059] ? ep_free+0xf4/0x320 [ 33.124064] lock_acquire+0x1d5/0x580 [ 33.124067] ? lock_acquire+0x1d5/0x580 [ 33.124070] ? remove_wait_queue+0x81/0x350 [ 33.124075] ? lock_release+0xa40/0xa40 [ 33.124080] ? lock_acquire+0x1d5/0x580 [ 33.124083] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 33.124086] ? lock_acquire+0x1d5/0x580 [ 33.124089] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 33.124094] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.124097] ? remove_wait_queue+0x81/0x350 [ 33.124101] remove_wait_queue+0x81/0x350 [ 33.124104] ? depot_save_stack+0x3b5/0x490 [ 33.124108] ? add_wait_queue+0x290/0x290 [ 33.124111] ? rcutorture_record_progress+0x10/0x10 [ 33.124115] ? lock_release+0xa40/0xa40 [ 33.124119] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 33.124123] ? __kernel_text_address+0xd/0x40 [ 33.124128] ? clear_tfile_check_list+0x370/0x370 [ 33.124132] ? check_noncircular+0x20/0x20 [ 33.124136] ? locks_remove_file+0x3fa/0x5a0 [ 33.124141] ep_free+0x13f/0x320 [ 33.124144] ? ep_remove+0x800/0x800 [ 33.124148] ? fsnotify_first_mark+0x2b0/0x2b0 [ 33.124152] ? ep_free+0x320/0x320 [ 33.124155] ep_eventpoll_release+0x44/0x60 [ 33.124158] __fput+0x327/0x7e0 [ 33.124163] ? fput+0x140/0x140 [ 33.124166] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.124171] ____fput+0x15/0x20 [ 33.124175] task_work_run+0x199/0x270 [ 33.124179] ? task_work_cancel+0x210/0x210 [ 33.124182] ? _raw_spin_unlock+0x22/0x30 [ 33.124186] ? switch_task_namespaces+0x87/0xc0 [ 33.124190] do_exit+0x9bb/0x1ad0 [ 33.124193] ? __handle_mm_fault+0x2330/0x3ce0 [ 33.124198] ? mm_update_next_owner+0x930/0x930 [ 33.124203] ? do_raw_spin_trylock+0x190/0x190 [ 33.124207] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 33.124210] ? check_noncircular+0x20/0x20 [ 33.124214] ? _raw_spin_unlock+0x22/0x30 [ 33.124217] ? __handle_mm_fault+0x80e/0x3ce0 [ 33.124221] ? check_noncircular+0x20/0x20 [ 33.124224] ? __pmd_alloc+0x4e0/0x4e0 [ 33.124227] ? lock_downgrade+0x980/0x980 [ 33.124232] ? find_held_lock+0x35/0x1d0 [ 33.124236] ? handle_mm_fault+0x248/0x8d0 [ 33.124240] ? find_held_lock+0x35/0x1d0 [ 33.124245] ? __do_page_fault+0x5f7/0xc90 [ 33.124248] ? lock_downgrade+0x980/0x980 [ 33.124253] ? handle_mm_fault+0x410/0x8d0 [ 33.124256] ? down_read_trylock+0xdb/0x170 [ 33.124259] ? __do_page_fault+0x32d/0xc90 [ 33.124263] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 33.124266] ? vmacache_find+0x5f/0x280 [ 33.124271] do_group_exit+0x149/0x400 [ 33.124274] ? __do_page_fault+0x3d6/0xc90 [ 33.124278] ? SyS_exit+0x30/0x30 [ 33.124282] ? do_fast_syscall_32+0x156/0xf9d [ 33.124285] ? do_group_exit+0x400/0x400 [ 33.124289] SyS_exit_group+0x1d/0x20 [ 33.124292] do_fast_syscall_32+0x3ee/0xf9d [ 33.124297] ? do_int80_syscall_32+0x9d0/0x9d0 [ 33.124300] ? kasan_check_read+0x11/0x20 [ 33.124304] ? syscall_return_slowpath+0x550/0x550 [ 33.124308] ? SyS_rt_sigaction+0x94/0x1b0 [ 33.124312] ? SyS_sigprocmask+0x4b0/0x4b0 [ 33.124315] ? SyS_read+0x184/0x220 [ 33.124318] ? retint_user+0x18/0x18 [ 33.124323] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.124328] entry_SYSENTER_compat+0x54/0x63 [ 33.124330] RIP: 0023:0xf7faec79 [ 33.124331] RSP: 002b:00000000ff896e0c EFLAGS: 00000296 ORIG_RAX: 00000000000000fc [ 33.124335] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 33.124337] RDX: 0000000000000000 RSI: 00000000080d9b18 RDI: 00000000080f02a0 [ 33.124339] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 33.124340] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 33.124342] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 33.144991] Dumping ftrace buffer: [ 33.144995] (ftrace buffer empty) [ 33.144997] Kernel Offset: disabled [ 34.427377] Rebooting in 86400 seconds..