[ 11.442439] audit: type=1400 audit(1514312962.317:5): avc: denied { syslog } for pid=2998 comm="rsyslogd" capability=34 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=capability2 permissive=1 [....] Starting enhanced syslogd: rsyslogd[?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.800344] audit: type=1400 audit(1514312966.675:6): avc: denied { map } for pid=3139 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 'ci-upstream-mmots-kasan-gce-2,10.128.0.97' (ECDSA) to the list of known hosts. executing program [ 32.921228] audit: type=1400 audit(1514312983.796:7): avc: denied { map } for pid=3156 comm="syzkaller246027" path="/root/syzkaller246027044" 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 [ 32.924520] ================================================================== [ 32.924531] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 32.924535] Read of size 8 at addr ffff8801c99f3178 by task syzkaller246027/3156 [ 32.924536] [ 32.924541] CPU: 1 PID: 3156 Comm: syzkaller246027 Not tainted 4.15.0-rc4-mm1+ #49 [ 32.924543] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.924544] Call Trace: [ 32.924553] dump_stack+0x194/0x257 [ 32.924558] ? arch_local_irq_restore+0x53/0x53 [ 32.924563] ? show_regs_print_info+0x18/0x18 [ 32.924566] ? print_irqtrace_events+0x270/0x270 [ 32.924570] ? __lock_acquire+0x664/0x3e00 [ 32.924574] ? __lock_acquire+0x3d4d/0x3e00 [ 32.924581] print_address_description+0x73/0x250 [ 32.924584] ? __lock_acquire+0x3d4d/0x3e00 [ 32.924588] kasan_report+0x23b/0x360 [ 32.924593] __asan_report_load8_noabort+0x14/0x20 [ 32.924597] __lock_acquire+0x3d4d/0x3e00 [ 32.924600] ? __lock_acquire+0x664/0x3e00 [ 32.924604] ? lock_downgrade+0x980/0x980 [ 32.924607] ? lock_downgrade+0x980/0x980 [ 32.924612] ? remove_wait_queue+0x81/0x350 [ 32.924618] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 32.924622] ? __lock_acquire+0x664/0x3e00 [ 32.924625] ? check_noncircular+0x20/0x20 [ 32.924633] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 32.924637] ? lock_acquire+0x1d5/0x580 [ 32.924640] ? lock_acquire+0x1d5/0x580 [ 32.924645] ? ep_free+0xf4/0x320 [ 32.924650] ? lock_release+0xa40/0xa40 [ 32.924655] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 32.924659] ? print_irqtrace_events+0x270/0x270 [ 32.924665] ? rcu_note_context_switch+0x710/0x710 [ 32.924669] ? __might_sleep+0x95/0x190 [ 32.924673] ? ep_free+0xf4/0x320 [ 32.924676] ? __mutex_lock+0x16f/0x1a80 [ 32.924679] ? ep_free+0xf4/0x320 [ 32.924684] ? print_irqtrace_events+0x270/0x270 [ 32.924686] ? ep_free+0xf4/0x320 [ 32.924692] lock_acquire+0x1d5/0x580 [ 32.924695] ? lock_acquire+0x1d5/0x580 [ 32.924698] ? remove_wait_queue+0x81/0x350 [ 32.924702] ? __lock_acquire+0x664/0x3e00 [ 32.924706] ? lock_release+0xa40/0xa40 [ 32.924712] ? lock_acquire+0x1d5/0x580 [ 32.924715] ? lock_acquire+0x1d5/0x580 [ 32.924718] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 32.924723] _raw_spin_lock_irqsave+0x96/0xc0 [ 32.924727] ? remove_wait_queue+0x81/0x350 [ 32.924731] remove_wait_queue+0x81/0x350 [ 32.924735] ? add_wait_queue+0x290/0x290 [ 32.924739] ? rcutorture_record_progress+0x10/0x10 [ 32.924745] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 32.924752] ? __kernel_text_address+0xd/0x40 [ 32.924756] ? clear_tfile_check_list+0x370/0x370 [ 32.924761] ? check_noncircular+0x20/0x20 [ 32.924766] ? locks_remove_file+0x3fa/0x5a0 [ 32.924772] ep_free+0x13f/0x320 [ 32.924776] ? ep_remove+0x800/0x800 [ 32.924779] ? fsnotify_first_mark+0x2b0/0x2b0 [ 32.924784] ? ep_free+0x320/0x320 [ 32.924787] ep_eventpoll_release+0x44/0x60 [ 32.924792] __fput+0x327/0x7e0 [ 32.924797] ? fput+0x140/0x140 [ 32.924801] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.924806] ____fput+0x15/0x20 [ 32.924810] task_work_run+0x199/0x270 [ 32.924814] ? task_work_cancel+0x210/0x210 [ 32.924818] ? _raw_spin_unlock+0x22/0x30 [ 32.924821] ? switch_task_namespaces+0x87/0xc0 [ 32.924827] do_exit+0x9bb/0x1ad0 [ 32.924833] ? binder_ioctl+0x551/0x1417 [ 32.924837] ? mm_update_next_owner+0x930/0x930 [ 32.924841] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 32.924848] ? avc_ss_reset+0x110/0x110 [ 32.924852] ? mutex_unlock+0xd/0x10 [ 32.924855] ? SyS_epoll_ctl+0x30a/0x1a80 [ 32.924859] ? find_held_lock+0x35/0x1d0 [ 32.924865] ? lock_downgrade+0x980/0x980 [ 32.924873] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 32.924878] ? rcu_note_context_switch+0x710/0x710 [ 32.924881] ? __fd_install+0x288/0x740 [ 32.924886] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 32.924892] ? do_vfs_ioctl+0x486/0x1520 [ 32.924896] ? _cond_resched+0x14/0x30 [ 32.924902] ? ioctl_preallocate+0x2b0/0x2b0 [ 32.924908] ? selinux_capable+0x40/0x40 [ 32.924912] ? __alloc_fd+0x750/0x750 [ 32.924917] do_group_exit+0x149/0x400 [ 32.924921] ? SyS_exit+0x30/0x30 [ 32.924925] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.924931] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 32.924936] SyS_exit_group+0x1d/0x20 [ 32.924939] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 32.924943] RIP: 0033:0x4429f8 [ 32.924945] RSP: 002b:00007ffe1b75dc08 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 32.924949] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004429f8 [ 32.924951] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 32.924953] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 32.924955] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 32.924957] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 32.924962] [ 32.924964] Allocated by task 3156: [ 32.924968] save_stack+0x43/0xd0 [ 32.924971] kasan_kmalloc+0xad/0xe0 [ 32.924974] kmem_cache_alloc_trace+0x136/0x750 [ 32.924977] binder_get_thread+0x1cf/0x870 [ 32.924979] binder_poll+0x8c/0x390 [ 32.924982] ep_item_poll.isra.10+0xf2/0x320 [ 32.924985] ep_insert+0x6a2/0x1ac0 [ 32.924988] SyS_epoll_ctl+0x12bf/0x1a80 [ 32.924991] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 32.924992] [ 32.924993] Freed by task 3156: [ 32.924996] save_stack+0x43/0xd0 [ 32.924998] kasan_slab_free+0x71/0xc0 [ 32.925004] kfree+0xd6/0x260 [ 32.925008] binder_thread_dec_tmpref+0x27f/0x310 [ 32.925010] binder_thread_release+0x27d/0x540 [ 32.925013] binder_ioctl+0xc02/0x1417 [ 32.925015] do_vfs_ioctl+0x1b1/0x1520 [ 32.925018] SyS_ioctl+0x8f/0xc0 [ 32.925021] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 32.925021] [ 32.925024] The buggy address belongs to the object at ffff8801c99f30c0 [ 32.925024] which belongs to the cache kmalloc-512 of size 512 [ 32.925027] The buggy address is located 184 bytes inside of [ 32.925027] 512-byte region [ffff8801c99f30c0, ffff8801c99f32c0) [ 32.925028] The buggy address belongs to the page: [ 32.925031] page:ffffea0007267cc0 count:1 mapcount:0 mapping:ffff8801c99f30c0 index:0x0 [ 32.925034] flags: 0x2fffc0000000100(slab) [ 32.925040] raw: 02fffc0000000100 ffff8801c99f30c0 0000000000000000 0000000100000006 [ 32.925044] raw: ffffea00072005a0 ffffea00072006a0 ffff8801dac00940 0000000000000000 [ 32.925046] page dumped because: kasan: bad access detected [ 32.925046] [ 32.925047] Memory state around the buggy address: [ 32.925051] ffff8801c99f3000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.925053] ffff8801c99f3080: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 32.925056] >ffff8801c99f3100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.925057] ^ [ 32.925060] ffff8801c99f3180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.925062] ffff8801c99f3200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.925063] ================================================================== [ 32.925064] Disabling lock debugging due to kernel taint [ 32.925067] Kernel panic - not syncing: panic_on_warn set ... [ 32.925067] [ 32.925070] CPU: 1 PID: 3156 Comm: syzkaller246027 Tainted: G B 4.15.0-rc4-mm1+ #49 [ 32.925072] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.925073] Call Trace: [ 32.925077] dump_stack+0x194/0x257 [ 32.925081] ? arch_local_irq_restore+0x53/0x53 [ 32.925084] ? kasan_end_report+0x32/0x50 [ 32.925088] ? lock_downgrade+0x980/0x980 [ 32.925091] ? vsnprintf+0x1ed/0x1900 [ 32.925095] ? __lock_acquire+0x3c90/0x3e00 [ 32.925099] panic+0x1e4/0x41c [ 32.925102] ? refcount_error_report+0x214/0x214 [ 32.925106] ? add_taint+0x40/0x50 [ 32.925109] ? add_taint+0x1c/0x50 [ 32.925113] ? __lock_acquire+0x3d4d/0x3e00 [ 32.925117] kasan_end_report+0x50/0x50 [ 32.925120] kasan_report+0x148/0x360 [ 32.925125] __asan_report_load8_noabort+0x14/0x20 [ 32.925128] __lock_acquire+0x3d4d/0x3e00 [ 32.925131] ? __lock_acquire+0x664/0x3e00 [ 32.925134] ? lock_downgrade+0x980/0x980 [ 32.925137] ? lock_downgrade+0x980/0x980 [ 32.925142] ? remove_wait_queue+0x81/0x350 [ 32.925147] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 32.925150] ? __lock_acquire+0x664/0x3e00 [ 32.925153] ? check_noncircular+0x20/0x20 [ 32.925160] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 32.925164] ? lock_acquire+0x1d5/0x580 [ 32.925167] ? lock_acquire+0x1d5/0x580 [ 32.925170] ? ep_free+0xf4/0x320 [ 32.925175] ? lock_release+0xa40/0xa40 [ 32.925179] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 32.925182] ? print_irqtrace_events+0x270/0x270 [ 32.925186] ? rcu_note_context_switch+0x710/0x710 [ 32.925190] ? __might_sleep+0x95/0x190 [ 32.925193] ? ep_free+0xf4/0x320 [ 32.925196] ? __mutex_lock+0x16f/0x1a80 [ 32.925199] ? ep_free+0xf4/0x320 [ 32.925203] ? print_irqtrace_events+0x270/0x270 [ 32.925206] ? ep_free+0xf4/0x320 [ 32.925210] lock_acquire+0x1d5/0x580 [ 32.925213] ? lock_acquire+0x1d5/0x580 [ 32.925217] ? remove_wait_queue+0x81/0x350 [ 32.925220] ? __lock_acquire+0x664/0x3e00 [ 32.925224] ? lock_release+0xa40/0xa40 [ 32.925229] ? lock_acquire+0x1d5/0x580 [ 32.925232] ? lock_acquire+0x1d5/0x580 [ 32.925236] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 32.925240] _raw_spin_lock_irqsave+0x96/0xc0 [ 32.925243] ? remove_wait_queue+0x81/0x350 [ 32.925247] remove_wait_queue+0x81/0x350 [ 32.925251] ? add_wait_queue+0x290/0x290 [ 32.925255] ? rcutorture_record_progress+0x10/0x10 [ 32.925260] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 32.925264] ? __kernel_text_address+0xd/0x40 [ 32.925269] ? clear_tfile_check_list+0x370/0x370 [ 32.925273] ? check_noncircular+0x20/0x20 [ 32.925278] ? locks_remove_file+0x3fa/0x5a0 [ 32.925283] ep_free+0x13f/0x320 [ 32.925286] ? ep_remove+0x800/0x800 [ 32.925289] ? fsnotify_first_mark+0x2b0/0x2b0 [ 32.925293] ? ep_free+0x320/0x320 [ 32.925297] ep_eventpoll_release+0x44/0x60 [ 32.925300] __fput+0x327/0x7e0 [ 32.925305] ? fput+0x140/0x140 [ 32.925308] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.925313] ____fput+0x15/0x20 [ 32.925317] task_work_run+0x199/0x270 [ 32.925321] ? task_work_cancel+0x210/0x210 [ 32.925325] ? _raw_spin_unlock+0x22/0x30 [ 32.925328] ? switch_task_namespaces+0x87/0xc0 [ 32.925332] do_exit+0x9bb/0x1ad0 [ 32.925336] ? binder_ioctl+0x551/0x1417 [ 32.925340] ? mm_update_next_owner+0x930/0x930 [ 32.925344] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 32.925349] ? avc_ss_reset+0x110/0x110 [ 32.925352] ? mutex_unlock+0xd/0x10 [ 32.925356] ? SyS_epoll_ctl+0x30a/0x1a80 [ 32.925359] ? find_held_lock+0x35/0x1d0 [ 32.925364] ? lock_downgrade+0x980/0x980 [ 32.925372] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 32.925376] ? rcu_note_context_switch+0x710/0x710 [ 32.925379] ? __fd_install+0x288/0x740 [ 32.925384] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 32.925387] ? do_vfs_ioctl+0x486/0x1520 [ 32.925394] ? _cond_resched+0x14/0x30 [ 32.925398] ? ioctl_preallocate+0x2b0/0x2b0 [ 32.925402] ? selinux_capable+0x40/0x40 [ 32.925406] ? __alloc_fd+0x750/0x750 [ 32.925410] do_group_exit+0x149/0x400 [ 32.925414] ? SyS_exit+0x30/0x30 [ 32.925418] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.925422] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 32.925426] SyS_exit_group+0x1d/0x20 [ 32.925430] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 32.925432] RIP: 0033:0x4429f8 [ 32.925434] RSP: 002b:00007ffe1b75dc08 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 32.925438] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004429f8 [ 32.925440] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 32.925442] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 32.925443] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 32.925445] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 32.948676] Dumping ftrace buffer: [ 32.948680] (ftrace buffer empty) [ 32.948685] Kernel Offset: disabled [ 34.116969] Rebooting in 86400 seconds..