[....] Starting enhanced syslogd: rsyslogd[ 12.001006] audit: type=1400 audit(1515557802.217:5): avc: denied { syslog } for pid=3346 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.477343] audit: type=1400 audit(1515557806.694:6): avc: denied { map } for pid=3487 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.22' (ECDSA) to the list of known hosts. executing program [ 22.712370] audit: type=1400 audit(1515557812.929:7): avc: denied { map } for pid=3501 comm="syzkaller249412" path="/root/syzkaller249412238" 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 [ 22.717762] ================================================================== [ 22.717775] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 22.717781] Read of size 8 at addr ffff8801c02598f8 by task syzkaller249412/3501 [ 22.717782] [ 22.717789] CPU: 0 PID: 3501 Comm: syzkaller249412 Not tainted 4.15.0-rc7-next-20180109+ #92 [ 22.717792] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.717794] Call Trace: [ 22.717803] dump_stack+0x194/0x257 [ 22.717810] ? arch_local_irq_restore+0x53/0x53 [ 22.717816] ? show_regs_print_info+0x18/0x18 [ 22.717822] ? __lock_acquire+0x664/0x3e00 [ 22.717830] ? __lock_acquire+0x3d4d/0x3e00 [ 22.717840] print_address_description+0x73/0x250 [ 22.717850] ? __lock_acquire+0x3d4d/0x3e00 [ 22.717855] kasan_report+0x23b/0x360 [ 22.717864] __asan_report_load8_noabort+0x14/0x20 [ 22.717869] __lock_acquire+0x3d4d/0x3e00 [ 22.717876] ? lock_downgrade+0x980/0x980 [ 22.717885] ? remove_wait_queue+0x81/0x350 [ 22.717894] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.717901] ? __lock_acquire+0x664/0x3e00 [ 22.717906] ? check_noncircular+0x20/0x20 [ 22.717919] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.717926] ? lock_acquire+0x1d5/0x580 [ 22.717932] ? lock_acquire+0x1d5/0x580 [ 22.717938] ? ep_free+0xf4/0x320 [ 22.717945] ? check_noncircular+0x20/0x20 [ 22.717952] ? lock_release+0xa40/0xa40 [ 22.717959] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.717965] ? print_irqtrace_events+0x270/0x270 [ 22.717972] ? rcu_note_context_switch+0x710/0x710 [ 22.717980] ? __might_sleep+0x95/0x190 [ 22.717985] ? ep_free+0xf4/0x320 [ 22.717992] ? __mutex_lock+0x16f/0x1a80 [ 22.717997] ? ep_free+0xf4/0x320 [ 22.718007] ? print_irqtrace_events+0x270/0x270 [ 22.718012] ? ep_free+0xf4/0x320 [ 22.718020] lock_acquire+0x1d5/0x580 [ 22.718025] ? lock_acquire+0x1d5/0x580 [ 22.718031] ? remove_wait_queue+0x81/0x350 [ 22.718038] ? __lock_acquire+0x664/0x3e00 [ 22.718045] ? lock_release+0xa40/0xa40 [ 22.718055] ? lock_acquire+0x1d5/0x580 [ 22.718060] ? lock_acquire+0x1d5/0x580 [ 22.718066] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 22.718073] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.718079] ? remove_wait_queue+0x81/0x350 [ 22.718086] remove_wait_queue+0x81/0x350 [ 22.718093] ? rcutorture_record_progress+0x10/0x10 [ 22.718099] ? add_wait_queue+0x290/0x290 [ 22.718105] ? rcutorture_record_progress+0x10/0x10 [ 22.718115] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 22.718122] ? unwind_get_return_address+0x61/0xa0 [ 22.718130] ? clear_tfile_check_list+0x370/0x370 [ 22.718139] ? check_noncircular+0x20/0x20 [ 22.718147] ? locks_remove_file+0x3fa/0x5a0 [ 22.718156] ep_free+0x13f/0x320 [ 22.718162] ? ep_remove+0x800/0x800 [ 22.718168] ? fsnotify_first_mark+0x2b0/0x2b0 [ 22.718177] ? ep_free+0x320/0x320 [ 22.718183] ep_eventpoll_release+0x44/0x60 [ 22.718189] __fput+0x327/0x7e0 [ 22.718196] ? fput+0x140/0x140 [ 22.718203] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.718211] ____fput+0x15/0x20 [ 22.718216] task_work_run+0x199/0x270 [ 22.718223] ? task_work_cancel+0x210/0x210 [ 22.718229] ? _raw_spin_unlock+0x22/0x30 [ 22.718235] ? switch_task_namespaces+0x87/0xc0 [ 22.718243] do_exit+0x9bb/0x1ad0 [ 22.718252] ? binder_ioctl+0x571/0x1417 [ 22.718258] ? mm_update_next_owner+0x930/0x930 [ 22.718267] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 22.718277] ? avc_ss_reset+0x110/0x110 [ 22.718283] ? mutex_unlock+0xd/0x10 [ 22.718288] ? SyS_epoll_ctl+0x30a/0x1a80 [ 22.718308] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.718313] ? up_read+0x1a/0x40 [ 22.718319] ? rcu_note_context_switch+0x710/0x710 [ 22.718325] ? __fd_install+0x288/0x740 [ 22.718334] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 22.718340] ? do_vfs_ioctl+0x486/0x1520 [ 22.718346] ? _cond_resched+0x14/0x30 [ 22.718355] ? ioctl_preallocate+0x2b0/0x2b0 [ 22.718361] ? selinux_capable+0x40/0x40 [ 22.718368] ? __alloc_fd+0x750/0x750 [ 22.718377] do_group_exit+0x149/0x400 [ 22.718384] ? SyS_exit+0x30/0x30 [ 22.718390] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 22.718398] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 22.718406] SyS_exit_group+0x1d/0x20 [ 22.718412] entry_SYSCALL_64_fastpath+0x23/0x9a [ 22.718417] RIP: 0033:0x4429f8 [ 22.718420] RSP: 002b:00007ffdd493a868 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 22.718426] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 22.718429] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 22.718433] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 22.718436] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 22.718440] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 22.718448] [ 22.718450] Allocated by task 3501: [ 22.718456] save_stack+0x43/0xd0 [ 22.718461] kasan_kmalloc+0xad/0xe0 [ 22.718466] kmem_cache_alloc_trace+0x136/0x750 [ 22.718471] binder_get_thread+0x1cf/0x870 [ 22.718476] binder_poll+0x8c/0x390 [ 22.718480] ep_item_poll.isra.10+0xf2/0x320 [ 22.718484] ep_insert+0x6a2/0x1ac0 [ 22.718489] SyS_epoll_ctl+0x12bf/0x1a80 [ 22.718494] entry_SYSCALL_64_fastpath+0x23/0x9a [ 22.718495] [ 22.718497] Freed by task 3501: [ 22.718502] save_stack+0x43/0xd0 [ 22.718507] __kasan_slab_free+0x11a/0x170 [ 22.718512] kasan_slab_free+0xe/0x10 [ 22.718517] kfree+0xd9/0x260 [ 22.718522] binder_thread_dec_tmpref+0x27f/0x310 [ 22.718527] binder_thread_release+0x27d/0x540 [ 22.718532] binder_ioctl+0xc02/0x1417 [ 22.718537] do_vfs_ioctl+0x1b1/0x1520 [ 22.718542] SyS_ioctl+0x8f/0xc0 [ 22.718547] entry_SYSCALL_64_fastpath+0x23/0x9a [ 22.718548] [ 22.718552] The buggy address belongs to the object at ffff8801c0259840 [ 22.718552] which belongs to the cache kmalloc-512 of size 512 [ 22.718556] The buggy address is located 184 bytes inside of [ 22.718556] 512-byte region [ffff8801c0259840, ffff8801c0259a40) [ 22.718558] The buggy address belongs to the page: [ 22.718562] page:ffffea0007009640 count:1 mapcount:0 mapping:ffff8801c02590c0 index:0x0 [ 22.718567] flags: 0x2fffc0000000100(slab) [ 22.718576] raw: 02fffc0000000100 ffff8801c02590c0 0000000000000000 0000000100000006 [ 22.718582] raw: ffffea00070095a0 ffffea0006fe4fe0 ffff8801dac00940 0000000000000000 [ 22.718585] page dumped because: kasan: bad access detected [ 22.718586] [ 22.718587] Memory state around the buggy address: [ 22.718592] ffff8801c0259780: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 22.718596] ffff8801c0259800: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 22.718601] >ffff8801c0259880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.718603] ^ [ 22.718607] ffff8801c0259900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.718612] ffff8801c0259980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.718613] ================================================================== [ 22.718615] Disabling lock debugging due to kernel taint [ 22.718618] Kernel panic - not syncing: panic_on_warn set ... [ 22.718618] [ 22.718624] CPU: 0 PID: 3501 Comm: syzkaller249412 Tainted: G B 4.15.0-rc7-next-20180109+ #92 [ 22.718627] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.718628] Call Trace: [ 22.718634] dump_stack+0x194/0x257 [ 22.718641] ? arch_local_irq_restore+0x53/0x53 [ 22.718646] ? kasan_end_report+0x32/0x50 [ 22.718653] ? lock_downgrade+0x980/0x980 [ 22.718658] ? vsnprintf+0x1ed/0x1900 [ 22.718665] ? __lock_acquire+0x3c90/0x3e00 [ 22.718670] panic+0x1e4/0x41c [ 22.718676] ? refcount_error_report+0x214/0x214 [ 22.718683] ? add_taint+0x40/0x50 [ 22.718689] ? add_taint+0x1c/0x50 [ 22.718696] ? __lock_acquire+0x3d4d/0x3e00 [ 22.718702] kasan_end_report+0x50/0x50 [ 22.718718] kasan_report+0x148/0x360 [ 22.718725] __asan_report_load8_noabort+0x14/0x20 [ 22.718731] __lock_acquire+0x3d4d/0x3e00 [ 22.718737] ? lock_downgrade+0x980/0x980 [ 22.718745] ? remove_wait_queue+0x81/0x350 [ 22.718754] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.718760] ? __lock_acquire+0x664/0x3e00 [ 22.718766] ? check_noncircular+0x20/0x20 [ 22.718778] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.718785] ? lock_acquire+0x1d5/0x580 [ 22.718790] ? lock_acquire+0x1d5/0x580 [ 22.718795] ? ep_free+0xf4/0x320 [ 22.718802] ? check_noncircular+0x20/0x20 [ 22.718809] ? lock_release+0xa40/0xa40 [ 22.718815] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.718821] ? print_irqtrace_events+0x270/0x270 [ 22.718828] ? rcu_note_context_switch+0x710/0x710 [ 22.718835] ? __might_sleep+0x95/0x190 [ 22.718840] ? ep_free+0xf4/0x320 [ 22.718846] ? __mutex_lock+0x16f/0x1a80 [ 22.718851] ? ep_free+0xf4/0x320 [ 22.718858] ? print_irqtrace_events+0x270/0x270 [ 22.718862] ? ep_free+0xf4/0x320 [ 22.718871] lock_acquire+0x1d5/0x580 [ 22.718876] ? lock_acquire+0x1d5/0x580 [ 22.718882] ? remove_wait_queue+0x81/0x350 [ 22.718888] ? __lock_acquire+0x664/0x3e00 [ 22.718896] ? lock_release+0xa40/0xa40 [ 22.718904] ? lock_acquire+0x1d5/0x580 [ 22.718910] ? lock_acquire+0x1d5/0x580 [ 22.718915] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 22.718922] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.718928] ? remove_wait_queue+0x81/0x350 [ 22.718934] remove_wait_queue+0x81/0x350 [ 22.718941] ? rcutorture_record_progress+0x10/0x10 [ 22.718947] ? add_wait_queue+0x290/0x290 [ 22.718953] ? rcutorture_record_progress+0x10/0x10 [ 22.718962] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 22.718969] ? unwind_get_return_address+0x61/0xa0 [ 22.718976] ? clear_tfile_check_list+0x370/0x370 [ 22.718984] ? check_noncircular+0x20/0x20 [ 22.718991] ? locks_remove_file+0x3fa/0x5a0 [ 22.718999] ep_free+0x13f/0x320 [ 22.719004] ? ep_remove+0x800/0x800 [ 22.719011] ? fsnotify_first_mark+0x2b0/0x2b0 [ 22.719018] ? ep_free+0x320/0x320 [ 22.719023] ep_eventpoll_release+0x44/0x60 [ 22.719028] __fput+0x327/0x7e0 [ 22.719036] ? fput+0x140/0x140 [ 22.719042] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.719050] ____fput+0x15/0x20 [ 22.719055] task_work_run+0x199/0x270 [ 22.719062] ? task_work_cancel+0x210/0x210 [ 22.719067] ? _raw_spin_unlock+0x22/0x30 [ 22.719074] ? switch_task_namespaces+0x87/0xc0 [ 22.719081] do_exit+0x9bb/0x1ad0 [ 22.719088] ? binder_ioctl+0x571/0x1417 [ 22.719095] ? mm_update_next_owner+0x930/0x930 [ 22.719103] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 22.719111] ? avc_ss_reset+0x110/0x110 [ 22.719117] ? mutex_unlock+0xd/0x10 [ 22.719122] ? SyS_epoll_ctl+0x30a/0x1a80 [ 22.719141] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.719145] ? up_read+0x1a/0x40 [ 22.719152] ? rcu_note_context_switch+0x710/0x710 [ 22.719158] ? __fd_install+0x288/0x740 [ 22.719166] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 22.719172] ? do_vfs_ioctl+0x486/0x1520 [ 22.719177] ? _cond_resched+0x14/0x30 [ 22.719185] ? ioctl_preallocate+0x2b0/0x2b0 [ 22.719192] ? selinux_capable+0x40/0x40 [ 22.719198] ? __alloc_fd+0x750/0x750 [ 22.719206] do_group_exit+0x149/0x400 [ 22.719213] ? SyS_exit+0x30/0x30 [ 22.719220] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 22.719227] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 22.719234] SyS_exit_group+0x1d/0x20 [ 22.719240] entry_SYSCALL_64_fastpath+0x23/0x9a [ 22.719243] RIP: 0033:0x4429f8 [ 22.719246] RSP: 002b:00007ffdd493a868 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 22.719252] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 22.719255] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 22.719259] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 22.719262] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 22.719265] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 22.738644] Dumping ftrace buffer: [ 22.738647] (ftrace buffer empty) [ 22.738650] Kernel Offset: disabled [ 23.875332] Rebooting in 86400 seconds..