[....] Starting enhanced syslogd: rsyslogd[ 11.522331] audit: type=1400 audit(1514579424.157:5): avc: denied { syslog } for pid=2993 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: [ 18.501273] audit: type=1400 audit(1514579431.136:6): avc: denied { map } for pid=3133 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.48' (ECDSA) to the list of known hosts. executing program [ 26.356456] audit: type=1400 audit(1514579438.991:7): avc: denied { map } for pid=3147 comm="syzkaller232224" path="/root/syzkaller232224952" 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 [ 26.360817] ================================================================== [ 26.360837] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 26.360842] Read of size 8 at addr ffff8801cf3928b8 by task syzkaller232224/3147 [ 26.360843] [ 26.360850] CPU: 1 PID: 3147 Comm: syzkaller232224 Not tainted 4.15.0-rc4-mm1+ #49 [ 26.360854] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.360856] Call Trace: [ 26.360864] dump_stack+0x194/0x257 [ 26.360872] ? arch_local_irq_restore+0x53/0x53 [ 26.360880] ? show_regs_print_info+0x18/0x18 [ 26.360885] ? print_irqtrace_events+0x270/0x270 [ 26.360892] ? __lock_acquire+0x664/0x3e00 [ 26.360898] ? __lock_acquire+0x3d4d/0x3e00 [ 26.360907] print_address_description+0x73/0x250 [ 26.360913] ? __lock_acquire+0x3d4d/0x3e00 [ 26.360919] kasan_report+0x23b/0x360 [ 26.360927] __asan_report_load8_noabort+0x14/0x20 [ 26.360933] __lock_acquire+0x3d4d/0x3e00 [ 26.360938] ? __lock_acquire+0x664/0x3e00 [ 26.360944] ? lock_downgrade+0x980/0x980 [ 26.360949] ? lock_downgrade+0x980/0x980 [ 26.360957] ? remove_wait_queue+0x81/0x350 [ 26.360966] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.360973] ? __lock_acquire+0x664/0x3e00 [ 26.360978] ? check_noncircular+0x20/0x20 [ 26.360990] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.360997] ? lock_acquire+0x1d5/0x580 [ 26.361006] ? lock_acquire+0x1d5/0x580 [ 26.361012] ? ep_free+0xf4/0x320 [ 26.361020] ? lock_release+0xa40/0xa40 [ 26.361027] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.361033] ? print_irqtrace_events+0x270/0x270 [ 26.361040] ? rcu_note_context_switch+0x710/0x710 [ 26.361048] ? __might_sleep+0x95/0x190 [ 26.361053] ? ep_free+0xf4/0x320 [ 26.361059] ? __mutex_lock+0x16f/0x1a80 [ 26.361064] ? ep_free+0xf4/0x320 [ 26.361071] ? print_irqtrace_events+0x270/0x270 [ 26.361075] ? ep_free+0xf4/0x320 [ 26.361084] lock_acquire+0x1d5/0x580 [ 26.361089] ? lock_acquire+0x1d5/0x580 [ 26.361095] ? remove_wait_queue+0x81/0x350 [ 26.361101] ? __lock_acquire+0x664/0x3e00 [ 26.361108] ? lock_release+0xa40/0xa40 [ 26.361118] ? lock_acquire+0x1d5/0x580 [ 26.361123] ? lock_acquire+0x1d5/0x580 [ 26.361129] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 26.361136] _raw_spin_lock_irqsave+0x96/0xc0 [ 26.361142] ? remove_wait_queue+0x81/0x350 [ 26.361148] remove_wait_queue+0x81/0x350 [ 26.361156] ? add_wait_queue+0x290/0x290 [ 26.361162] ? rcutorture_record_progress+0x10/0x10 [ 26.361172] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 26.361179] ? __kernel_text_address+0xd/0x40 [ 26.361187] ? clear_tfile_check_list+0x370/0x370 [ 26.361195] ? check_noncircular+0x20/0x20 [ 26.361203] ? locks_remove_file+0x3fa/0x5a0 [ 26.361213] ep_free+0x13f/0x320 [ 26.361218] ? ep_remove+0x800/0x800 [ 26.361224] ? fsnotify_first_mark+0x2b0/0x2b0 [ 26.361232] ? ep_free+0x320/0x320 [ 26.361238] ep_eventpoll_release+0x44/0x60 [ 26.361244] __fput+0x327/0x7e0 [ 26.361252] ? fput+0x140/0x140 [ 26.361258] ? _raw_spin_unlock_irq+0x27/0x70 [ 26.361267] ____fput+0x15/0x20 [ 26.361273] task_work_run+0x199/0x270 [ 26.361281] ? task_work_cancel+0x210/0x210 [ 26.361287] ? _raw_spin_unlock+0x22/0x30 [ 26.361292] ? switch_task_namespaces+0x87/0xc0 [ 26.361301] do_exit+0x9bb/0x1ad0 [ 26.361310] ? binder_ioctl+0x551/0x1417 [ 26.361316] ? mm_update_next_owner+0x930/0x930 [ 26.361324] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 26.361333] ? avc_ss_reset+0x110/0x110 [ 26.361341] ? mutex_unlock+0xd/0x10 [ 26.361346] ? SyS_epoll_ctl+0x30a/0x1a80 [ 26.361366] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.361371] ? up_read+0x1a/0x40 [ 26.361377] ? rcu_note_context_switch+0x710/0x710 [ 26.361383] ? __fd_install+0x288/0x740 [ 26.361392] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 26.361398] ? do_vfs_ioctl+0x486/0x1520 [ 26.361403] ? _cond_resched+0x14/0x30 [ 26.361411] ? ioctl_preallocate+0x2b0/0x2b0 [ 26.361419] ? selinux_capable+0x40/0x40 [ 26.361425] ? __alloc_fd+0x750/0x750 [ 26.361434] do_group_exit+0x149/0x400 [ 26.361441] ? SyS_exit+0x30/0x30 [ 26.361447] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.361455] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.361462] SyS_exit_group+0x1d/0x20 [ 26.361468] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 26.361473] RIP: 0033:0x4429f8 [ 26.361476] RSP: 002b:00007fff842d6d98 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 26.361482] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 26.361485] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 26.361489] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 26.361492] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 26.361495] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 26.361504] [ 26.361506] Allocated by task 3147: [ 26.361512] save_stack+0x43/0xd0 [ 26.361517] kasan_kmalloc+0xad/0xe0 [ 26.361522] kmem_cache_alloc_trace+0x136/0x750 [ 26.361526] binder_get_thread+0x1cf/0x870 [ 26.361531] binder_poll+0x8c/0x390 [ 26.361536] ep_item_poll.isra.10+0xf2/0x320 [ 26.361540] ep_insert+0x6a2/0x1ac0 [ 26.361545] SyS_epoll_ctl+0x12bf/0x1a80 [ 26.361550] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 26.361551] [ 26.361553] Freed by task 3147: [ 26.361558] save_stack+0x43/0xd0 [ 26.361562] kasan_slab_free+0x71/0xc0 [ 26.361566] kfree+0xd6/0x260 [ 26.361571] binder_thread_dec_tmpref+0x27f/0x310 [ 26.361575] binder_thread_release+0x27d/0x540 [ 26.361580] binder_ioctl+0xc02/0x1417 [ 26.361584] do_vfs_ioctl+0x1b1/0x1520 [ 26.361588] SyS_ioctl+0x8f/0xc0 [ 26.361593] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 26.361594] [ 26.361598] The buggy address belongs to the object at ffff8801cf392800 [ 26.361598] which belongs to the cache kmalloc-512 of size 512 [ 26.361603] The buggy address is located 184 bytes inside of [ 26.361603] 512-byte region [ffff8801cf392800, ffff8801cf392a00) [ 26.361604] The buggy address belongs to the page: [ 26.361609] page:ffffea00073ce480 count:1 mapcount:0 mapping:ffff8801cf392080 index:0x0 [ 26.361614] flags: 0x2fffc0000000100(slab) [ 26.361623] raw: 02fffc0000000100 ffff8801cf392080 0000000000000000 0000000100000006 [ 26.361629] raw: ffffea00073cb160 ffffea00073cf3a0 ffff8801dac00940 0000000000000000 [ 26.361632] page dumped because: kasan: bad access detected [ 26.361633] [ 26.361634] Memory state around the buggy address: [ 26.361639] ffff8801cf392780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.361643] ffff8801cf392800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.361648] >ffff8801cf392880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.361650] ^ [ 26.361654] ffff8801cf392900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.361659] ffff8801cf392980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.361661] ================================================================== [ 26.361662] Disabling lock debugging due to kernel taint [ 26.361665] Kernel panic - not syncing: panic_on_warn set ... [ 26.361665] [ 26.361671] CPU: 1 PID: 3147 Comm: syzkaller232224 Tainted: G B 4.15.0-rc4-mm1+ #49 [ 26.361674] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.361676] Call Trace: [ 26.361681] dump_stack+0x194/0x257 [ 26.361688] ? arch_local_irq_restore+0x53/0x53 [ 26.361694] ? kasan_end_report+0x32/0x50 [ 26.361700] ? lock_downgrade+0x980/0x980 [ 26.361706] ? vsnprintf+0x1ed/0x1900 [ 26.361712] ? __lock_acquire+0x3c90/0x3e00 [ 26.361717] panic+0x1e4/0x41c [ 26.361723] ? refcount_error_report+0x214/0x214 [ 26.361730] ? add_taint+0x40/0x50 [ 26.361735] ? add_taint+0x1c/0x50 [ 26.361742] ? __lock_acquire+0x3d4d/0x3e00 [ 26.361748] kasan_end_report+0x50/0x50 [ 26.361754] kasan_report+0x148/0x360 [ 26.361762] __asan_report_load8_noabort+0x14/0x20 [ 26.361767] __lock_acquire+0x3d4d/0x3e00 [ 26.361773] ? __lock_acquire+0x664/0x3e00 [ 26.361778] ? lock_downgrade+0x980/0x980 [ 26.361783] ? lock_downgrade+0x980/0x980 [ 26.361791] ? remove_wait_queue+0x81/0x350 [ 26.361799] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.361806] ? __lock_acquire+0x664/0x3e00 [ 26.361811] ? check_noncircular+0x20/0x20 [ 26.361823] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.361834] ? lock_acquire+0x1d5/0x580 [ 26.361839] ? lock_acquire+0x1d5/0x580 [ 26.361845] ? ep_free+0xf4/0x320 [ 26.361852] ? lock_release+0xa40/0xa40 [ 26.361858] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.361864] ? print_irqtrace_events+0x270/0x270 [ 26.361871] ? rcu_note_context_switch+0x710/0x710 [ 26.361878] ? __might_sleep+0x95/0x190 [ 26.361883] ? ep_free+0xf4/0x320 [ 26.361888] ? __mutex_lock+0x16f/0x1a80 [ 26.361893] ? ep_free+0xf4/0x320 [ 26.361900] ? print_irqtrace_events+0x270/0x270 [ 26.361905] ? ep_free+0xf4/0x320 [ 26.361913] lock_acquire+0x1d5/0x580 [ 26.361918] ? lock_acquire+0x1d5/0x580 [ 26.361924] ? remove_wait_queue+0x81/0x350 [ 26.361929] ? __lock_acquire+0x664/0x3e00 [ 26.361937] ? lock_release+0xa40/0xa40 [ 26.361946] ? lock_acquire+0x1d5/0x580 [ 26.361951] ? lock_acquire+0x1d5/0x580 [ 26.361957] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 26.361964] _raw_spin_lock_irqsave+0x96/0xc0 [ 26.361970] ? remove_wait_queue+0x81/0x350 [ 26.361976] remove_wait_queue+0x81/0x350 [ 26.361983] ? add_wait_queue+0x290/0x290 [ 26.361989] ? rcutorture_record_progress+0x10/0x10 [ 26.361998] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 26.362005] ? __kernel_text_address+0xd/0x40 [ 26.362013] ? clear_tfile_check_list+0x370/0x370 [ 26.362020] ? check_noncircular+0x20/0x20 [ 26.362027] ? locks_remove_file+0x3fa/0x5a0 [ 26.362036] ep_free+0x13f/0x320 [ 26.362042] ? ep_remove+0x800/0x800 [ 26.362047] ? fsnotify_first_mark+0x2b0/0x2b0 [ 26.362055] ? ep_free+0x320/0x320 [ 26.362061] ep_eventpoll_release+0x44/0x60 [ 26.362066] __fput+0x327/0x7e0 [ 26.362074] ? fput+0x140/0x140 [ 26.362080] ? _raw_spin_unlock_irq+0x27/0x70 [ 26.362088] ____fput+0x15/0x20 [ 26.362095] task_work_run+0x199/0x270 [ 26.362102] ? task_work_cancel+0x210/0x210 [ 26.362108] ? _raw_spin_unlock+0x22/0x30 [ 26.362114] ? switch_task_namespaces+0x87/0xc0 [ 26.362121] do_exit+0x9bb/0x1ad0 [ 26.362128] ? binder_ioctl+0x551/0x1417 [ 26.362134] ? mm_update_next_owner+0x930/0x930 [ 26.362141] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 26.362149] ? avc_ss_reset+0x110/0x110 [ 26.362155] ? mutex_unlock+0xd/0x10 [ 26.362160] ? SyS_epoll_ctl+0x30a/0x1a80 [ 26.362178] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.362183] ? up_read+0x1a/0x40 [ 26.362190] ? rcu_note_context_switch+0x710/0x710 [ 26.362194] ? __fd_install+0x288/0x740 [ 26.362203] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 26.362208] ? do_vfs_ioctl+0x486/0x1520 [ 26.362213] ? _cond_resched+0x14/0x30 [ 26.362220] ? ioctl_preallocate+0x2b0/0x2b0 [ 26.362227] ? selinux_capable+0x40/0x40 [ 26.362233] ? __alloc_fd+0x750/0x750 [ 26.362241] do_group_exit+0x149/0x400 [ 26.362248] ? SyS_exit+0x30/0x30 [ 26.362254] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.362260] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.362268] SyS_exit_group+0x1d/0x20 [ 26.362274] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 26.362277] RIP: 0033:0x4429f8 [ 26.362280] RSP: 002b:00007fff842d6d98 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 26.362286] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 26.362289] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 26.362293] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 26.362296] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 26.362299] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 26.382708] Dumping ftrace buffer: [ 26.382711] (ftrace buffer empty) [ 26.382713] Kernel Offset: disabled [ 27.505340] Rebooting in 86400 seconds..