[....] Starting enhanced syslogd: rsyslogd[ 16.026363] audit: type=1400 audit(1517473688.810:5): avc: denied { syslog } for pid=3951 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: [ 19.151594] audit: type=1400 audit(1517473691.935:6): avc: denied { map } for pid=4089 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.10' (ECDSA) to the list of known hosts. executing program [ 48.440431] audit: type=1400 audit(1517473721.224:7): avc: denied { map } for pid=4106 comm="syzkaller760230" path="/root/syzkaller760230170" 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 [ 48.444931] ================================================================== [ 48.444944] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 48.444948] Read of size 8 at addr ffff8801bde848f0 by task syzkaller760230/4106 [ 48.444949] [ 48.444954] CPU: 1 PID: 4106 Comm: syzkaller760230 Not tainted 4.15.0+ #290 [ 48.444957] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 48.444958] Call Trace: [ 48.444966] dump_stack+0x194/0x257 [ 48.444971] ? arch_local_irq_restore+0x53/0x53 [ 48.444977] ? show_regs_print_info+0x18/0x18 [ 48.444981] ? print_irqtrace_events+0x270/0x270 [ 48.444985] ? __lock_acquire+0x664/0x3e00 [ 48.444989] ? __lock_acquire+0x3d4d/0x3e00 [ 48.444996] print_address_description+0x73/0x250 [ 48.445000] ? __lock_acquire+0x3d4d/0x3e00 [ 48.445009] kasan_report+0x25b/0x340 [ 48.445014] __asan_report_load8_noabort+0x14/0x20 [ 48.445018] __lock_acquire+0x3d4d/0x3e00 [ 48.445021] ? __lock_acquire+0x664/0x3e00 [ 48.445025] ? lock_downgrade+0x980/0x980 [ 48.445028] ? lock_downgrade+0x980/0x980 [ 48.445034] ? remove_wait_queue+0x81/0x350 [ 48.445039] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 48.445043] ? __lock_acquire+0x664/0x3e00 [ 48.445051] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 48.445056] ? lock_acquire+0x1d5/0x580 [ 48.445059] ? lock_acquire+0x1d5/0x580 [ 48.445063] ? ep_free+0xf4/0x320 [ 48.445068] ? lock_release+0xa40/0xa40 [ 48.445073] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 48.445077] ? check_noncircular+0x20/0x20 [ 48.445083] ? rcu_note_context_switch+0x710/0x710 [ 48.445087] ? __might_sleep+0x95/0x190 [ 48.445090] ? ep_free+0xf4/0x320 [ 48.445095] ? __mutex_lock+0x16f/0x1a80 [ 48.445097] ? ep_free+0xf4/0x320 [ 48.445102] ? print_irqtrace_events+0x270/0x270 [ 48.445104] ? ep_free+0xf4/0x320 [ 48.445109] lock_acquire+0x1d5/0x580 [ 48.445113] ? lock_acquire+0x1d5/0x580 [ 48.445116] ? remove_wait_queue+0x81/0x350 [ 48.445120] ? __lock_acquire+0x664/0x3e00 [ 48.445124] ? lock_release+0xa40/0xa40 [ 48.445130] ? lock_acquire+0x1d5/0x580 [ 48.445133] ? lock_acquire+0x1d5/0x580 [ 48.445136] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 48.445142] _raw_spin_lock_irqsave+0x96/0xc0 [ 48.445145] ? remove_wait_queue+0x81/0x350 [ 48.445149] remove_wait_queue+0x81/0x350 [ 48.445154] ? add_wait_queue+0x290/0x290 [ 48.445158] ? rcutorture_record_progress+0x10/0x10 [ 48.445163] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 48.445168] ? __kernel_text_address+0xd/0x40 [ 48.445172] ? clear_tfile_check_list+0x370/0x370 [ 48.445177] ? depot_save_stack+0x12c/0x490 [ 48.445183] ? locks_remove_file+0x3fa/0x5a0 [ 48.445188] ep_free+0x13f/0x320 [ 48.445191] ? ep_remove+0x800/0x800 [ 48.445196] ? fsnotify_first_mark+0x2b0/0x2b0 [ 48.445201] ? ep_free+0x320/0x320 [ 48.445204] ep_eventpoll_release+0x44/0x60 [ 48.445209] __fput+0x327/0x7e0 [ 48.445213] ? fput+0x140/0x140 [ 48.445218] ? _raw_spin_unlock_irq+0x27/0x70 [ 48.445223] ____fput+0x15/0x20 [ 48.445226] task_work_run+0x199/0x270 [ 48.445230] ? task_work_cancel+0x210/0x210 [ 48.445234] ? _raw_spin_unlock+0x22/0x30 [ 48.445238] ? switch_task_namespaces+0x87/0xc0 [ 48.445244] do_exit+0x9bb/0x1ad0 [ 48.445251] ? binder_ioctl+0x481/0x1417 [ 48.445254] ? mm_update_next_owner+0x930/0x930 [ 48.445260] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 48.445266] ? avc_ss_reset+0x110/0x110 [ 48.445269] ? mutex_unlock+0xd/0x10 [ 48.445273] ? SyS_epoll_ctl+0x30a/0x1a80 [ 48.445285] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 48.445288] ? up_read+0x1a/0x40 [ 48.445292] ? rcu_note_context_switch+0x710/0x710 [ 48.445296] ? __fd_install+0x288/0x740 [ 48.445302] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 48.445306] ? do_vfs_ioctl+0x486/0x1520 [ 48.445310] ? _cond_resched+0x14/0x30 [ 48.445315] ? ioctl_preallocate+0x2b0/0x2b0 [ 48.445337] ? selinux_capable+0x40/0x40 [ 48.445341] ? __alloc_fd+0x750/0x750 [ 48.445347] do_group_exit+0x149/0x400 [ 48.445351] ? SyS_exit+0x30/0x30 [ 48.445355] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 48.445361] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 48.445366] SyS_exit_group+0x1d/0x20 [ 48.445370] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 48.445373] RIP: 0033:0x4429f8 [ 48.445375] RSP: 002b:00007fff89cbcc28 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 48.445380] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 48.445382] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 48.445384] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 48.445387] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 48.445389] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 48.445394] [ 48.445396] Allocated by task 4106: [ 48.445400] save_stack+0x43/0xd0 [ 48.445404] kasan_kmalloc+0xad/0xe0 [ 48.445407] kmem_cache_alloc_trace+0x136/0x750 [ 48.445410] binder_get_thread+0x1cf/0x870 [ 48.445413] binder_poll+0x8c/0x390 [ 48.445416] ep_item_poll.isra.10+0xf2/0x320 [ 48.445418] ep_insert+0x6a2/0x1ac0 [ 48.445421] SyS_epoll_ctl+0x12bf/0x1a80 [ 48.445425] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 48.445425] [ 48.445427] Freed by task 4106: [ 48.445430] save_stack+0x43/0xd0 [ 48.445433] kasan_slab_free+0x71/0xc0 [ 48.445436] kfree+0xd6/0x260 [ 48.445439] binder_thread_dec_tmpref+0x27f/0x310 [ 48.445442] binder_thread_release+0x27d/0x540 [ 48.445445] binder_ioctl+0xc02/0x1417 [ 48.445448] do_vfs_ioctl+0x1b1/0x1520 [ 48.445451] SyS_ioctl+0x8f/0xc0 [ 48.445455] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 48.445455] [ 48.445458] The buggy address belongs to the object at ffff8801bde84840 [ 48.445458] which belongs to the cache kmalloc-512 of size 512 [ 48.445461] The buggy address is located 176 bytes inside of [ 48.445461] 512-byte region [ffff8801bde84840, ffff8801bde84a40) [ 48.445462] The buggy address belongs to the page: [ 48.445465] page:ffffea0006f7a100 count:1 mapcount:0 mapping:ffff8801bde840c0 index:0x0 [ 48.445469] flags: 0x2fffc0000000100(slab) [ 48.445474] raw: 02fffc0000000100 ffff8801bde840c0 0000000000000000 0000000100000006 [ 48.445478] raw: ffffea0006f7b620 ffff8801db001748 ffff8801db000940 0000000000000000 [ 48.445480] page dumped because: kasan: bad access detected [ 48.445480] [ 48.445481] Memory state around the buggy address: [ 48.445484] ffff8801bde84780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 48.445487] ffff8801bde84800: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 48.445489] >ffff8801bde84880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 48.445491] ^ [ 48.445493] ffff8801bde84900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 48.445496] ffff8801bde84980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 48.445497] ================================================================== [ 48.445498] Disabling lock debugging due to kernel taint [ 48.445500] Kernel panic - not syncing: panic_on_warn set ... [ 48.445500] [ 48.445504] CPU: 1 PID: 4106 Comm: syzkaller760230 Tainted: G B 4.15.0+ #290 [ 48.445506] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 48.445507] Call Trace: [ 48.445511] dump_stack+0x194/0x257 [ 48.445515] ? arch_local_irq_restore+0x53/0x53 [ 48.445519] ? kasan_end_report+0x32/0x50 [ 48.445523] ? lock_downgrade+0x980/0x980 [ 48.445527] ? vsnprintf+0x1ed/0x1900 [ 48.445531] ? __lock_acquire+0x3c70/0x3e00 [ 48.445535] panic+0x1e4/0x41c [ 48.445538] ? refcount_error_report+0x214/0x214 [ 48.445542] ? add_taint+0x40/0x50 [ 48.445545] ? add_taint+0x1c/0x50 [ 48.445549] ? __lock_acquire+0x3d4d/0x3e00 [ 48.445553] kasan_end_report+0x50/0x50 [ 48.445557] kasan_report+0x144/0x340 [ 48.445562] __asan_report_load8_noabort+0x14/0x20 [ 48.445565] __lock_acquire+0x3d4d/0x3e00 [ 48.445569] ? __lock_acquire+0x664/0x3e00 [ 48.445572] ? lock_downgrade+0x980/0x980 [ 48.445575] ? lock_downgrade+0x980/0x980 [ 48.445580] ? remove_wait_queue+0x81/0x350 [ 48.445585] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 48.445588] ? __lock_acquire+0x664/0x3e00 [ 48.445595] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 48.445599] ? lock_acquire+0x1d5/0x580 [ 48.445603] ? lock_acquire+0x1d5/0x580 [ 48.445605] ? ep_free+0xf4/0x320 [ 48.445610] ? lock_release+0xa40/0xa40 [ 48.445614] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 48.445617] ? check_noncircular+0x20/0x20 [ 48.445621] ? rcu_note_context_switch+0x710/0x710 [ 48.445625] ? __might_sleep+0x95/0x190 [ 48.445628] ? ep_free+0xf4/0x320 [ 48.445632] ? __mutex_lock+0x16f/0x1a80 [ 48.445634] ? ep_free+0xf4/0x320 [ 48.445639] ? print_irqtrace_events+0x270/0x270 [ 48.445641] ? ep_free+0xf4/0x320 [ 48.445646] lock_acquire+0x1d5/0x580 [ 48.445649] ? lock_acquire+0x1d5/0x580 [ 48.445652] ? remove_wait_queue+0x81/0x350 [ 48.445656] ? __lock_acquire+0x664/0x3e00 [ 48.445660] ? lock_release+0xa40/0xa40 [ 48.445665] ? lock_acquire+0x1d5/0x580 [ 48.445668] ? lock_acquire+0x1d5/0x580 [ 48.445672] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 48.445676] _raw_spin_lock_irqsave+0x96/0xc0 [ 48.445680] ? remove_wait_queue+0x81/0x350 [ 48.445683] remove_wait_queue+0x81/0x350 [ 48.445688] ? add_wait_queue+0x290/0x290 [ 48.445691] ? rcutorture_record_progress+0x10/0x10 [ 48.445697] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 48.445700] ? __kernel_text_address+0xd/0x40 [ 48.445704] ? clear_tfile_check_list+0x370/0x370 [ 48.445707] ? depot_save_stack+0x12c/0x490 [ 48.445712] ? locks_remove_file+0x3fa/0x5a0 [ 48.445717] ep_free+0x13f/0x320 [ 48.445720] ? ep_remove+0x800/0x800 [ 48.445723] ? fsnotify_first_mark+0x2b0/0x2b0 [ 48.445727] ? ep_free+0x320/0x320 [ 48.445730] ep_eventpoll_release+0x44/0x60 [ 48.445733] __fput+0x327/0x7e0 [ 48.445737] ? fput+0x140/0x140 [ 48.445742] ? _raw_spin_unlock_irq+0x27/0x70 [ 48.445746] ____fput+0x15/0x20 [ 48.445749] task_work_run+0x199/0x270 [ 48.445753] ? task_work_cancel+0x210/0x210 [ 48.445756] ? _raw_spin_unlock+0x22/0x30 [ 48.445760] ? switch_task_namespaces+0x87/0xc0 [ 48.445764] do_exit+0x9bb/0x1ad0 [ 48.445769] ? binder_ioctl+0x481/0x1417 [ 48.445773] ? mm_update_next_owner+0x930/0x930 [ 48.445777] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 48.445782] ? avc_ss_reset+0x110/0x110 [ 48.445785] ? mutex_unlock+0xd/0x10 [ 48.445788] ? SyS_epoll_ctl+0x30a/0x1a80 [ 48.445799] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 48.445802] ? up_read+0x1a/0x40 [ 48.445806] ? rcu_note_context_switch+0x710/0x710 [ 48.445809] ? __fd_install+0x288/0x740 [ 48.445814] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 48.445818] ? do_vfs_ioctl+0x486/0x1520 [ 48.445821] ? _cond_resched+0x14/0x30 [ 48.445825] ? ioctl_preallocate+0x2b0/0x2b0 [ 48.445829] ? selinux_capable+0x40/0x40 [ 48.445833] ? __alloc_fd+0x750/0x750 [ 48.445838] do_group_exit+0x149/0x400 [ 48.445842] ? SyS_exit+0x30/0x30 [ 48.445846] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 48.445849] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 48.445854] SyS_exit_group+0x1d/0x20 [ 48.445858] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 48.445860] RIP: 0033:0x4429f8 [ 48.445862] RSP: 002b:00007fff89cbcc28 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 48.445865] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 48.445867] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 48.445869] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 48.445871] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 48.445873] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 48.466676] Dumping ftrace buffer: [ 48.466680] (ftrace buffer empty) [ 48.466682] Kernel Offset: disabled [ 49.582772] Rebooting in 86400 seconds..