[....] Starting enhanced syslogd: rsyslogd[ 10.764227] audit: type=1400 audit(1514100012.005:5): avc: denied { syslog } for pid=2987 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: [ 13.814279] audit: type=1400 audit(1514100015.054:6): avc: denied { map } for pid=3125 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-next-kasan-gce-3,10.128.0.2' (ECDSA) to the list of known hosts. executing program [ 19.972965] audit: type=1400 audit(1514100021.213:7): avc: denied { map } for pid=3139 comm="syzkaller442345" path="/root/syzkaller442345602" 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 [ 19.977150] ================================================================== [ 19.977163] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 19.977169] Read of size 8 at addr ffff8801cb945b78 by task syzkaller442345/3139 [ 19.977170] [ 19.977176] CPU: 0 PID: 3139 Comm: syzkaller442345 Not tainted 4.15.0-rc4-next-20171221+ #78 [ 19.977180] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 19.977182] Call Trace: [ 19.977190] dump_stack+0x194/0x257 [ 19.977197] ? arch_local_irq_restore+0x53/0x53 [ 19.977205] ? show_regs_print_info+0x18/0x18 [ 19.977210] ? print_irqtrace_events+0x270/0x270 [ 19.977217] ? __lock_acquire+0x664/0x3e00 [ 19.977224] ? __lock_acquire+0x3d4d/0x3e00 [ 19.977232] print_address_description+0x73/0x250 [ 19.977238] ? __lock_acquire+0x3d4d/0x3e00 [ 19.977244] kasan_report+0x25b/0x340 [ 19.977253] __asan_report_load8_noabort+0x14/0x20 [ 19.977259] __lock_acquire+0x3d4d/0x3e00 [ 19.977264] ? __lock_acquire+0x664/0x3e00 [ 19.977270] ? lock_downgrade+0x980/0x980 [ 19.977275] ? lock_downgrade+0x980/0x980 [ 19.977284] ? remove_wait_queue+0x81/0x350 [ 19.977292] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 19.977299] ? __lock_acquire+0x664/0x3e00 [ 19.977304] ? check_noncircular+0x20/0x20 [ 19.977317] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 19.977324] ? lock_acquire+0x1d5/0x580 [ 19.977330] ? lock_acquire+0x1d5/0x580 [ 19.977336] ? ep_free+0xf4/0x320 [ 19.977344] ? lock_release+0xa40/0xa40 [ 19.977351] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 19.977357] ? print_irqtrace_events+0x270/0x270 [ 19.977364] ? rcu_note_context_switch+0x710/0x710 [ 19.977371] ? __might_sleep+0x95/0x190 [ 19.977377] ? ep_free+0xf4/0x320 [ 19.977384] ? __mutex_lock+0x16f/0x1a80 [ 19.977389] ? ep_free+0xf4/0x320 [ 19.977396] ? print_irqtrace_events+0x270/0x270 [ 19.977401] ? ep_free+0xf4/0x320 [ 19.977409] lock_acquire+0x1d5/0x580 [ 19.977415] ? lock_acquire+0x1d5/0x580 [ 19.977420] ? remove_wait_queue+0x81/0x350 [ 19.977431] ? __lock_acquire+0x664/0x3e00 [ 19.977439] ? lock_release+0xa40/0xa40 [ 19.977448] ? lock_acquire+0x1d5/0x580 [ 19.977453] ? lock_acquire+0x1d5/0x580 [ 19.977459] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 19.977467] _raw_spin_lock_irqsave+0x96/0xc0 [ 19.977472] ? remove_wait_queue+0x81/0x350 [ 19.977479] remove_wait_queue+0x81/0x350 [ 19.977487] ? add_wait_queue+0x290/0x290 [ 19.977493] ? rcutorture_record_progress+0x10/0x10 [ 19.977503] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 19.977511] ? __kernel_text_address+0xd/0x40 [ 19.977519] ? clear_tfile_check_list+0x370/0x370 [ 19.977526] ? check_noncircular+0x20/0x20 [ 19.977536] ? locks_remove_file+0x3fa/0x5a0 [ 19.977545] ep_free+0x13f/0x320 [ 19.977551] ? ep_remove+0x800/0x800 [ 19.977556] ? fsnotify_first_mark+0x2b0/0x2b0 [ 19.977564] ? ep_free+0x320/0x320 [ 19.977570] ep_eventpoll_release+0x44/0x60 [ 19.977577] __fput+0x327/0x7e0 [ 19.977585] ? fput+0x140/0x140 [ 19.977591] ? _raw_spin_unlock_irq+0x27/0x70 [ 19.977599] ____fput+0x15/0x20 [ 19.977606] task_work_run+0x199/0x270 [ 19.977614] ? task_work_cancel+0x210/0x210 [ 19.977619] ? _raw_spin_unlock+0x22/0x30 [ 19.977625] ? switch_task_namespaces+0x87/0xc0 [ 19.977634] do_exit+0x9bb/0x1ad0 [ 19.977643] ? binder_ioctl+0x491/0x1417 [ 19.977649] ? mm_update_next_owner+0x930/0x930 [ 19.977657] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 19.977666] ? avc_ss_reset+0x110/0x110 [ 19.977672] ? mutex_unlock+0xd/0x10 [ 19.977678] ? SyS_epoll_ctl+0x30a/0x1a80 [ 19.977697] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 19.977702] ? up_read+0x1a/0x40 [ 19.977709] ? rcu_note_context_switch+0x710/0x710 [ 19.977714] ? __fd_install+0x288/0x740 [ 19.977723] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 19.977728] ? do_vfs_ioctl+0x486/0x1520 [ 19.977733] ? _cond_resched+0x14/0x30 [ 19.977741] ? ioctl_preallocate+0x2b0/0x2b0 [ 19.977749] ? selinux_capable+0x40/0x40 [ 19.977755] ? __alloc_fd+0x750/0x750 [ 19.977764] do_group_exit+0x149/0x400 [ 19.977770] ? SyS_exit+0x30/0x30 [ 19.977777] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 19.977784] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 19.977792] SyS_exit_group+0x1d/0x20 [ 19.977798] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 19.977802] RIP: 0033:0x4429f8 [ 19.977805] RSP: 002b:00007fff5af0c468 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 19.977812] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 19.977815] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 19.977818] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 19.977822] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 19.977825] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 19.977833] [ 19.977836] Allocated by task 3139: [ 19.977842] save_stack+0x43/0xd0 [ 19.977846] kasan_kmalloc+0xad/0xe0 [ 19.977852] kmem_cache_alloc_trace+0x136/0x750 [ 19.977856] binder_get_thread+0x1cf/0x870 [ 19.977860] binder_poll+0x8c/0x390 [ 19.977865] ep_item_poll.isra.10+0xf2/0x320 [ 19.977870] ep_insert+0x6a2/0x1ac0 [ 19.977875] SyS_epoll_ctl+0x12bf/0x1a80 [ 19.977880] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 19.977881] [ 19.977883] Freed by task 3139: [ 19.977887] save_stack+0x43/0xd0 [ 19.977892] kasan_slab_free+0x71/0xc0 [ 19.977896] kfree+0xd6/0x260 [ 19.977901] binder_thread_dec_tmpref+0x27f/0x310 [ 19.977905] binder_thread_release+0x27d/0x540 [ 19.977909] binder_ioctl+0xc02/0x1417 [ 19.977914] do_vfs_ioctl+0x1b1/0x1520 [ 19.977918] SyS_ioctl+0x8f/0xc0 [ 19.977923] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 19.977924] [ 19.977928] The buggy address belongs to the object at ffff8801cb945ac0 [ 19.977928] which belongs to the cache kmalloc-512 of size 512 [ 19.977933] The buggy address is located 184 bytes inside of [ 19.977933] 512-byte region [ffff8801cb945ac0, ffff8801cb945cc0) [ 19.977934] The buggy address belongs to the page: [ 19.977939] page:000000008695b756 count:1 mapcount:0 mapping:000000000179c794 index:0x0 [ 19.977944] flags: 0x2fffc0000000100(slab) [ 19.977953] raw: 02fffc0000000100 ffff8801cb9450c0 0000000000000000 0000000100000006 [ 19.977960] raw: ffffea00072e4b60 ffffea00072fdbe0 ffff8801dac00940 0000000000000000 [ 19.977962] page dumped because: kasan: bad access detected [ 19.977963] [ 19.977965] Memory state around the buggy address: [ 19.977969] ffff8801cb945a00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 19.977974] ffff8801cb945a80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 19.977978] >ffff8801cb945b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.977980] ^ [ 19.977985] ffff8801cb945b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.977989] ffff8801cb945c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.977991] ================================================================== [ 19.977992] Disabling lock debugging due to kernel taint [ 19.977995] Kernel panic - not syncing: panic_on_warn set ... [ 19.977995] [ 19.978005] CPU: 0 PID: 3139 Comm: syzkaller442345 Tainted: G B 4.15.0-rc4-next-20171221+ #78 [ 19.978008] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 19.978010] Call Trace: [ 19.978015] dump_stack+0x194/0x257 [ 19.978022] ? arch_local_irq_restore+0x53/0x53 [ 19.978028] ? kasan_end_report+0x32/0x50 [ 19.978034] ? lock_downgrade+0x980/0x980 [ 19.978039] ? vsnprintf+0x1ed/0x1900 [ 19.978046] ? __lock_acquire+0x3d30/0x3e00 [ 19.978051] panic+0x1e4/0x41c [ 19.978057] ? refcount_error_report+0x214/0x214 [ 19.978065] ? add_taint+0x40/0x50 [ 19.978070] ? add_taint+0x1c/0x50 [ 19.978076] ? __lock_acquire+0x3d4d/0x3e00 [ 19.978082] kasan_end_report+0x50/0x50 [ 19.978088] kasan_report+0x144/0x340 [ 19.978096] __asan_report_load8_noabort+0x14/0x20 [ 19.978102] __lock_acquire+0x3d4d/0x3e00 [ 19.978108] ? __lock_acquire+0x664/0x3e00 [ 19.978113] ? lock_downgrade+0x980/0x980 [ 19.978119] ? lock_downgrade+0x980/0x980 [ 19.978126] ? remove_wait_queue+0x81/0x350 [ 19.978135] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 19.978141] ? __lock_acquire+0x664/0x3e00 [ 19.978146] ? check_noncircular+0x20/0x20 [ 19.978158] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 19.978165] ? lock_acquire+0x1d5/0x580 [ 19.978171] ? lock_acquire+0x1d5/0x580 [ 19.978176] ? ep_free+0xf4/0x320 [ 19.978184] ? lock_release+0xa40/0xa40 [ 19.978190] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 19.978196] ? print_irqtrace_events+0x270/0x270 [ 19.978202] ? rcu_note_context_switch+0x710/0x710 [ 19.978210] ? __might_sleep+0x95/0x190 [ 19.978215] ? ep_free+0xf4/0x320 [ 19.978221] ? __mutex_lock+0x16f/0x1a80 [ 19.978226] ? ep_free+0xf4/0x320 [ 19.978233] ? print_irqtrace_events+0x270/0x270 [ 19.978238] ? ep_free+0xf4/0x320 [ 19.978246] lock_acquire+0x1d5/0x580 [ 19.978251] ? lock_acquire+0x1d5/0x580 [ 19.978257] ? remove_wait_queue+0x81/0x350 [ 19.978263] ? __lock_acquire+0x664/0x3e00 [ 19.978270] ? lock_release+0xa40/0xa40 [ 19.978279] ? lock_acquire+0x1d5/0x580 [ 19.978284] ? lock_acquire+0x1d5/0x580 [ 19.978290] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 19.978297] _raw_spin_lock_irqsave+0x96/0xc0 [ 19.978302] ? remove_wait_queue+0x81/0x350 [ 19.978309] remove_wait_queue+0x81/0x350 [ 19.978316] ? add_wait_queue+0x290/0x290 [ 19.978322] ? rcutorture_record_progress+0x10/0x10 [ 19.978332] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 19.978338] ? __kernel_text_address+0xd/0x40 [ 19.978346] ? clear_tfile_check_list+0x370/0x370 [ 19.978353] ? check_noncircular+0x20/0x20 [ 19.978361] ? locks_remove_file+0x3fa/0x5a0 [ 19.978370] ep_free+0x13f/0x320 [ 19.978376] ? ep_remove+0x800/0x800 [ 19.978381] ? fsnotify_first_mark+0x2b0/0x2b0 [ 19.978388] ? ep_free+0x320/0x320 [ 19.978394] ep_eventpoll_release+0x44/0x60 [ 19.978400] __fput+0x327/0x7e0 [ 19.978408] ? fput+0x140/0x140 [ 19.978414] ? _raw_spin_unlock_irq+0x27/0x70 [ 19.978422] ____fput+0x15/0x20 [ 19.978432] task_work_run+0x199/0x270 [ 19.978440] ? task_work_cancel+0x210/0x210 [ 19.978446] ? _raw_spin_unlock+0x22/0x30 [ 19.978452] ? switch_task_namespaces+0x87/0xc0 [ 19.978459] do_exit+0x9bb/0x1ad0 [ 19.978466] ? binder_ioctl+0x491/0x1417 [ 19.978472] ? mm_update_next_owner+0x930/0x930 [ 19.978480] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 19.978488] ? avc_ss_reset+0x110/0x110 [ 19.978494] ? mutex_unlock+0xd/0x10 [ 19.978500] ? SyS_epoll_ctl+0x30a/0x1a80 [ 19.978518] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 19.978523] ? up_read+0x1a/0x40 [ 19.978530] ? rcu_note_context_switch+0x710/0x710 [ 19.978534] ? __fd_install+0x288/0x740 [ 19.978543] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 19.978548] ? do_vfs_ioctl+0x486/0x1520 [ 19.978553] ? _cond_resched+0x14/0x30 [ 19.978561] ? ioctl_preallocate+0x2b0/0x2b0 [ 19.978567] ? selinux_capable+0x40/0x40 [ 19.978573] ? __alloc_fd+0x750/0x750 [ 19.978581] do_group_exit+0x149/0x400 [ 19.978588] ? SyS_exit+0x30/0x30 [ 19.978595] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 19.978601] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 19.978609] SyS_exit_group+0x1d/0x20 [ 19.978615] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 19.978618] RIP: 0033:0x4429f8 [ 19.978621] RSP: 002b:00007fff5af0c468 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 19.978627] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 19.978630] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 19.978633] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 19.978637] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 19.978640] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 19.999185] Dumping ftrace buffer: [ 19.999189] (ftrace buffer empty) [ 19.999191] Kernel Offset: disabled [ 21.125307] Rebooting in 86400 seconds..