[....] Starting enhanced syslogd: rsyslogd[ 12.096347] audit: type=1400 audit(1515010690.387:5): avc: denied { syslog } for pid=3341 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.451457] audit: type=1400 audit(1515010694.742:6): avc: denied { map } for pid=3480 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.0.56' (ECDSA) to the list of known hosts. executing program [ 28.104835] audit: type=1400 audit(1515010706.395:7): avc: denied { map } for pid=3497 comm="syzkaller097645" path="/root/syzkaller097645551" 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 [ 28.109923] ================================================================== [ 28.109936] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 28.109940] Read of size 8 at addr ffff8801bff51830 by task syzkaller097645/3497 [ 28.109941] [ 28.109947] CPU: 1 PID: 3497 Comm: syzkaller097645 Not tainted 4.15.0-rc6+ #156 [ 28.109950] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.109952] Call Trace: [ 28.109961] dump_stack+0x194/0x257 [ 28.109966] ? arch_local_irq_restore+0x53/0x53 [ 28.109972] ? show_regs_print_info+0x18/0x18 [ 28.109977] ? print_irqtrace_events+0x270/0x270 [ 28.109980] ? __lock_acquire+0x664/0x3e00 [ 28.109984] ? __lock_acquire+0x3d4d/0x3e00 [ 28.109992] print_address_description+0x73/0x250 [ 28.109996] ? __lock_acquire+0x3d4d/0x3e00 [ 28.110000] kasan_report+0x25b/0x340 [ 28.110010] __asan_report_load8_noabort+0x14/0x20 [ 28.110013] __lock_acquire+0x3d4d/0x3e00 [ 28.110016] ? __lock_acquire+0x664/0x3e00 [ 28.110020] ? lock_downgrade+0x980/0x980 [ 28.110023] ? lock_downgrade+0x980/0x980 [ 28.110027] ? print_irqtrace_events+0x270/0x270 [ 28.110032] ? remove_wait_queue+0x81/0x350 [ 28.110038] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 28.110041] ? __lock_acquire+0x664/0x3e00 [ 28.110045] ? check_noncircular+0x20/0x20 [ 28.110052] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 28.110056] ? lock_acquire+0x1d5/0x580 [ 28.110059] ? lock_acquire+0x1d5/0x580 [ 28.110066] ? ep_free+0xf4/0x320 [ 28.110071] ? lock_release+0xa40/0xa40 [ 28.110076] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 28.110079] ? print_irqtrace_events+0x270/0x270 [ 28.110083] ? print_irqtrace_events+0x270/0x270 [ 28.110090] ? rcu_note_context_switch+0x710/0x710 [ 28.110094] ? __might_sleep+0x95/0x190 [ 28.110098] ? ep_free+0xf4/0x320 [ 28.110103] ? __mutex_lock+0x16f/0x1a80 [ 28.110106] ? ep_free+0xf4/0x320 [ 28.110110] ? print_irqtrace_events+0x270/0x270 [ 28.110113] ? ep_free+0xf4/0x320 [ 28.110117] lock_acquire+0x1d5/0x580 [ 28.110121] ? lock_acquire+0x1d5/0x580 [ 28.110124] ? remove_wait_queue+0x81/0x350 [ 28.110129] ? lock_release+0xa40/0xa40 [ 28.110134] ? lock_acquire+0x1d5/0x580 [ 28.110137] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 28.110140] ? lock_acquire+0x1d5/0x580 [ 28.110144] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 28.110150] _raw_spin_lock_irqsave+0x96/0xc0 [ 28.110153] ? remove_wait_queue+0x81/0x350 [ 28.110157] remove_wait_queue+0x81/0x350 [ 28.110164] ? depot_save_stack+0x3b5/0x490 [ 28.110168] ? add_wait_queue+0x290/0x290 [ 28.110171] ? rcutorture_record_progress+0x10/0x10 [ 28.110175] ? lock_release+0xa40/0xa40 [ 28.110180] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 28.110186] ? __kernel_text_address+0xd/0x40 [ 28.110191] ? clear_tfile_check_list+0x370/0x370 [ 28.110195] ? check_noncircular+0x20/0x20 [ 28.110202] ? locks_remove_file+0x3fa/0x5a0 [ 28.110207] ep_free+0x13f/0x320 [ 28.110210] ? ep_remove+0x800/0x800 [ 28.110215] ? fsnotify_first_mark+0x2b0/0x2b0 [ 28.110219] ? ep_free+0x320/0x320 [ 28.110223] ep_eventpoll_release+0x44/0x60 [ 28.110230] __fput+0x327/0x7e0 [ 28.110234] ? fput+0x140/0x140 [ 28.110238] ? _raw_spin_unlock_irq+0x27/0x70 [ 28.110243] ____fput+0x15/0x20 [ 28.110247] task_work_run+0x199/0x270 [ 28.110252] ? task_work_cancel+0x210/0x210 [ 28.110256] ? _raw_spin_unlock+0x22/0x30 [ 28.110259] ? switch_task_namespaces+0x87/0xc0 [ 28.110265] do_exit+0x9bb/0x1ad0 [ 28.110270] ? __handle_mm_fault+0x2330/0x3ce0 [ 28.110274] ? mm_update_next_owner+0x930/0x930 [ 28.110280] ? do_raw_spin_trylock+0x190/0x190 [ 28.110284] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 28.110288] ? check_noncircular+0x20/0x20 [ 28.110292] ? _raw_spin_unlock+0x22/0x30 [ 28.110296] ? __handle_mm_fault+0x80e/0x3ce0 [ 28.110300] ? check_noncircular+0x20/0x20 [ 28.110303] ? __pmd_alloc+0x4e0/0x4e0 [ 28.110306] ? lock_downgrade+0x980/0x980 [ 28.110311] ? find_held_lock+0x35/0x1d0 [ 28.110316] ? handle_mm_fault+0x248/0x8d0 [ 28.110320] ? find_held_lock+0x35/0x1d0 [ 28.110326] ? __do_page_fault+0x5f7/0xc90 [ 28.110330] ? lock_downgrade+0x980/0x980 [ 28.110335] ? handle_mm_fault+0x410/0x8d0 [ 28.110338] ? down_read_trylock+0xdb/0x170 [ 28.110341] ? __do_page_fault+0x32d/0xc90 [ 28.110345] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 28.110350] ? vmacache_find+0x5f/0x280 [ 28.110355] do_group_exit+0x149/0x400 [ 28.110359] ? __do_page_fault+0x3d6/0xc90 [ 28.110362] ? SyS_exit+0x30/0x30 [ 28.110368] ? do_fast_syscall_32+0x156/0xf9d [ 28.110372] ? do_group_exit+0x400/0x400 [ 28.110375] SyS_exit_group+0x1d/0x20 [ 28.110379] do_fast_syscall_32+0x3ee/0xf9d [ 28.110384] ? do_int80_syscall_32+0x9d0/0x9d0 [ 28.110388] ? kasan_check_read+0x11/0x20 [ 28.110392] ? syscall_return_slowpath+0x550/0x550 [ 28.110397] ? SyS_rt_sigaction+0x94/0x1b0 [ 28.110401] ? SyS_sigprocmask+0x4b0/0x4b0 [ 28.110404] ? SyS_read+0x184/0x220 [ 28.110408] ? retint_user+0x18/0x18 [ 28.110413] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 28.110418] entry_SYSENTER_compat+0x54/0x63 [ 28.110422] RIP: 0023:0xf7f9ec79 [ 28.110424] RSP: 002b:00000000ffb5543c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 28.110429] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 28.110431] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 28.110433] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 28.110434] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 28.110436] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 28.110441] [ 28.110443] Allocated by task 3497: [ 28.110447] save_stack+0x43/0xd0 [ 28.110450] kasan_kmalloc+0xad/0xe0 [ 28.110453] kmem_cache_alloc_trace+0x136/0x750 [ 28.110458] binder_get_thread+0x1cf/0x870 [ 28.110460] binder_poll+0x8c/0x390 [ 28.110463] ep_item_poll.isra.10+0xec/0x320 [ 28.110466] ep_insert+0x6a3/0x1b10 [ 28.110469] SyS_epoll_ctl+0x12e4/0x1ab0 [ 28.110472] do_fast_syscall_32+0x3ee/0xf9d [ 28.110476] entry_SYSENTER_compat+0x54/0x63 [ 28.110476] [ 28.110478] Freed by task 3497: [ 28.110481] save_stack+0x43/0xd0 [ 28.110483] kasan_slab_free+0x71/0xc0 [ 28.110486] kfree+0xd6/0x260 [ 28.110488] binder_thread_dec_tmpref+0x27f/0x310 [ 28.110491] binder_thread_release+0x27d/0x540 [ 28.110494] binder_ioctl+0xc02/0x1417 [ 28.110497] compat_SyS_ioctl+0x151/0x2a30 [ 28.110500] do_fast_syscall_32+0x3ee/0xf9d [ 28.110503] entry_SYSENTER_compat+0x54/0x63 [ 28.110504] [ 28.110507] The buggy address belongs to the object at ffff8801bff51780 [ 28.110507] which belongs to the cache kmalloc-512 of size 512 [ 28.110510] The buggy address is located 176 bytes inside of [ 28.110510] 512-byte region [ffff8801bff51780, ffff8801bff51980) [ 28.110511] The buggy address belongs to the page: [ 28.110515] page:00000000e08cb5a8 count:1 mapcount:0 mapping:0000000026f8e318 index:0x0 [ 28.110519] flags: 0x2fffc0000000100(slab) [ 28.110525] raw: 02fffc0000000100 ffff8801bff51000 0000000000000000 0000000100000006 [ 28.110529] raw: ffffea000700d1a0 ffffea0006fa2c20 ffff8801dac00940 0000000000000000 [ 28.110531] page dumped because: kasan: bad access detected [ 28.110532] [ 28.110533] Memory state around the buggy address: [ 28.110536] ffff8801bff51700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.110539] ffff8801bff51780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.110541] >ffff8801bff51800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.110542] ^ [ 28.110545] ffff8801bff51880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.110547] ffff8801bff51900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.110549] ================================================================== [ 28.110550] Disabling lock debugging due to kernel taint [ 28.110552] Kernel panic - not syncing: panic_on_warn set ... [ 28.110552] [ 28.110556] CPU: 1 PID: 3497 Comm: syzkaller097645 Tainted: G B 4.15.0-rc6+ #156 [ 28.110558] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.110559] Call Trace: [ 28.110563] dump_stack+0x194/0x257 [ 28.110567] ? arch_local_irq_restore+0x53/0x53 [ 28.110570] ? kasan_end_report+0x32/0x50 [ 28.110574] ? lock_downgrade+0x980/0x980 [ 28.110579] ? vsnprintf+0x1ed/0x1900 [ 28.110583] ? __lock_acquire+0x3cb0/0x3e00 [ 28.110586] panic+0x1e4/0x41c [ 28.110589] ? refcount_error_report+0x214/0x214 [ 28.110593] ? add_taint+0x40/0x50 [ 28.110596] ? add_taint+0x1c/0x50 [ 28.110600] ? __lock_acquire+0x3d4d/0x3e00 [ 28.110604] kasan_end_report+0x50/0x50 [ 28.110607] kasan_report+0x144/0x340 [ 28.110612] __asan_report_load8_noabort+0x14/0x20 [ 28.110615] __lock_acquire+0x3d4d/0x3e00 [ 28.110619] ? __lock_acquire+0x664/0x3e00 [ 28.110622] ? lock_downgrade+0x980/0x980 [ 28.110625] ? lock_downgrade+0x980/0x980 [ 28.110629] ? print_irqtrace_events+0x270/0x270 [ 28.110632] ? remove_wait_queue+0x81/0x350 [ 28.110637] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 28.110641] ? __lock_acquire+0x664/0x3e00 [ 28.110644] ? check_noncircular+0x20/0x20 [ 28.110656] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 28.110660] ? lock_acquire+0x1d5/0x580 [ 28.110663] ? lock_acquire+0x1d5/0x580 [ 28.110666] ? ep_free+0xf4/0x320 [ 28.110671] ? lock_release+0xa40/0xa40 [ 28.110674] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 28.110677] ? print_irqtrace_events+0x270/0x270 [ 28.110681] ? print_irqtrace_events+0x270/0x270 [ 28.110685] ? rcu_note_context_switch+0x710/0x710 [ 28.110689] ? __might_sleep+0x95/0x190 [ 28.110693] ? ep_free+0xf4/0x320 [ 28.110696] ? __mutex_lock+0x16f/0x1a80 [ 28.110699] ? ep_free+0xf4/0x320 [ 28.110703] ? print_irqtrace_events+0x270/0x270 [ 28.110706] ? ep_free+0xf4/0x320 [ 28.110710] lock_acquire+0x1d5/0x580 [ 28.110713] ? lock_acquire+0x1d5/0x580 [ 28.110717] ? remove_wait_queue+0x81/0x350 [ 28.110722] ? lock_release+0xa40/0xa40 [ 28.110726] ? lock_acquire+0x1d5/0x580 [ 28.110730] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 28.110733] ? lock_acquire+0x1d5/0x580 [ 28.110737] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 28.110741] _raw_spin_lock_irqsave+0x96/0xc0 [ 28.110744] ? remove_wait_queue+0x81/0x350 [ 28.110748] remove_wait_queue+0x81/0x350 [ 28.110752] ? depot_save_stack+0x3b5/0x490 [ 28.110756] ? add_wait_queue+0x290/0x290 [ 28.110759] ? rcutorture_record_progress+0x10/0x10 [ 28.110762] ? lock_release+0xa40/0xa40 [ 28.110768] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 28.110772] ? __kernel_text_address+0xd/0x40 [ 28.110776] ? clear_tfile_check_list+0x370/0x370 [ 28.110781] ? check_noncircular+0x20/0x20 [ 28.110785] ? locks_remove_file+0x3fa/0x5a0 [ 28.110790] ep_free+0x13f/0x320 [ 28.110794] ? ep_remove+0x800/0x800 [ 28.110797] ? fsnotify_first_mark+0x2b0/0x2b0 [ 28.110801] ? ep_free+0x320/0x320 [ 28.110805] ep_eventpoll_release+0x44/0x60 [ 28.110809] __fput+0x327/0x7e0 [ 28.110813] ? fput+0x140/0x140 [ 28.110817] ? _raw_spin_unlock_irq+0x27/0x70 [ 28.110822] ____fput+0x15/0x20 [ 28.110826] task_work_run+0x199/0x270 [ 28.110830] ? task_work_cancel+0x210/0x210 [ 28.110834] ? _raw_spin_unlock+0x22/0x30 [ 28.110837] ? switch_task_namespaces+0x87/0xc0 [ 28.110842] do_exit+0x9bb/0x1ad0 [ 28.110845] ? __handle_mm_fault+0x2330/0x3ce0 [ 28.110849] ? mm_update_next_owner+0x930/0x930 [ 28.110855] ? do_raw_spin_trylock+0x190/0x190 [ 28.110859] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 28.110862] ? check_noncircular+0x20/0x20 [ 28.110866] ? _raw_spin_unlock+0x22/0x30 [ 28.110870] ? __handle_mm_fault+0x80e/0x3ce0 [ 28.110874] ? check_noncircular+0x20/0x20 [ 28.110877] ? __pmd_alloc+0x4e0/0x4e0 [ 28.110880] ? lock_downgrade+0x980/0x980 [ 28.110885] ? find_held_lock+0x35/0x1d0 [ 28.110890] ? handle_mm_fault+0x248/0x8d0 [ 28.110893] ? find_held_lock+0x35/0x1d0 [ 28.110899] ? __do_page_fault+0x5f7/0xc90 [ 28.110902] ? lock_downgrade+0x980/0x980 [ 28.110907] ? handle_mm_fault+0x410/0x8d0 [ 28.110910] ? down_read_trylock+0xdb/0x170 [ 28.110913] ? __do_page_fault+0x32d/0xc90 [ 28.110917] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 28.110920] ? vmacache_find+0x5f/0x280 [ 28.110925] do_group_exit+0x149/0x400 [ 28.110929] ? __do_page_fault+0x3d6/0xc90 [ 28.110932] ? SyS_exit+0x30/0x30 [ 28.110937] ? do_fast_syscall_32+0x156/0xf9d [ 28.110940] ? do_group_exit+0x400/0x400 [ 28.110944] SyS_exit_group+0x1d/0x20 [ 28.110948] do_fast_syscall_32+0x3ee/0xf9d [ 28.110952] ? do_int80_syscall_32+0x9d0/0x9d0 [ 28.110956] ? kasan_check_read+0x11/0x20 [ 28.110960] ? syscall_return_slowpath+0x550/0x550 [ 28.110964] ? SyS_rt_sigaction+0x94/0x1b0 [ 28.110968] ? SyS_sigprocmask+0x4b0/0x4b0 [ 28.110971] ? SyS_read+0x184/0x220 [ 28.110975] ? retint_user+0x18/0x18 [ 28.110979] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 28.110985] entry_SYSENTER_compat+0x54/0x63 [ 28.110987] RIP: 0023:0xf7f9ec79 [ 28.110989] RSP: 002b:00000000ffb5543c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 28.110992] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 28.110994] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 28.110996] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 28.110998] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 28.111000] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 28.130754] Dumping ftrace buffer: [ 28.130758] (ftrace buffer empty) [ 28.130761] Kernel Offset: disabled [ 29.412042] Rebooting in 86400 seconds..