[....] Starting enhanced syslogd: rsyslogd[ 10.644005] audit: type=1400 audit(1514298788.415:5): avc: denied { syslog } for pid=2989 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.392331] audit: type=1400 audit(1514298794.163:6): avc: denied { map } for pid=3128 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-1,10.128.0.65' (ECDSA) to the list of known hosts. executing program [ 38.048316] audit: type=1400 audit(1514298815.820:7): avc: denied { map } for pid=3146 comm="syzkaller090649" path="/root/syzkaller090649069" 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 [ 38.052178] ================================================================== [ 38.052191] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 38.052195] Read of size 8 at addr ffff8801c9f24838 by task syzkaller090649/3146 [ 38.052196] [ 38.052202] CPU: 0 PID: 3146 Comm: syzkaller090649 Not tainted 4.15.0-rc4-next-20171221+ #78 [ 38.052204] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.052206] Call Trace: [ 38.052215] dump_stack+0x194/0x257 [ 38.052219] ? arch_local_irq_restore+0x53/0x53 [ 38.052227] ? show_regs_print_info+0x18/0x18 [ 38.052230] ? print_irqtrace_events+0x270/0x270 [ 38.052234] ? __lock_acquire+0x664/0x3e00 [ 38.052238] ? __lock_acquire+0x3d4d/0x3e00 [ 38.052245] print_address_description+0x73/0x250 [ 38.052249] ? __lock_acquire+0x3d4d/0x3e00 [ 38.052253] kasan_report+0x25b/0x340 [ 38.052258] __asan_report_load8_noabort+0x14/0x20 [ 38.052262] __lock_acquire+0x3d4d/0x3e00 [ 38.052266] ? __lock_acquire+0x664/0x3e00 [ 38.052269] ? lock_downgrade+0x980/0x980 [ 38.052272] ? lock_downgrade+0x980/0x980 [ 38.052279] ? remove_wait_queue+0x81/0x350 [ 38.052284] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 38.052288] ? __lock_acquire+0x664/0x3e00 [ 38.052292] ? check_noncircular+0x20/0x20 [ 38.052300] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 38.052304] ? lock_acquire+0x1d5/0x580 [ 38.052307] ? lock_acquire+0x1d5/0x580 [ 38.052313] ? ep_free+0xf4/0x320 [ 38.052318] ? lock_release+0xa40/0xa40 [ 38.052329] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 38.052333] ? print_irqtrace_events+0x270/0x270 [ 38.052339] ? rcu_note_context_switch+0x710/0x710 [ 38.052344] ? __might_sleep+0x95/0x190 [ 38.052347] ? ep_free+0xf4/0x320 [ 38.052355] ? __mutex_lock+0x16f/0x1a80 [ 38.052358] ? ep_free+0xf4/0x320 [ 38.052362] ? print_irqtrace_events+0x270/0x270 [ 38.052365] ? ep_free+0xf4/0x320 [ 38.052370] lock_acquire+0x1d5/0x580 [ 38.052374] ? lock_acquire+0x1d5/0x580 [ 38.052377] ? remove_wait_queue+0x81/0x350 [ 38.052381] ? __lock_acquire+0x664/0x3e00 [ 38.052385] ? lock_release+0xa40/0xa40 [ 38.052391] ? lock_acquire+0x1d5/0x580 [ 38.052394] ? lock_acquire+0x1d5/0x580 [ 38.052398] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 38.052404] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.052407] ? remove_wait_queue+0x81/0x350 [ 38.052411] remove_wait_queue+0x81/0x350 [ 38.052416] ? add_wait_queue+0x290/0x290 [ 38.052420] ? rcutorture_record_progress+0x10/0x10 [ 38.052426] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 38.052434] ? __kernel_text_address+0xd/0x40 [ 38.052439] ? clear_tfile_check_list+0x370/0x370 [ 38.052444] ? check_noncircular+0x20/0x20 [ 38.052451] ? locks_remove_file+0x3fa/0x5a0 [ 38.052456] ep_free+0x13f/0x320 [ 38.052460] ? ep_remove+0x800/0x800 [ 38.052464] ? fsnotify_first_mark+0x2b0/0x2b0 [ 38.052469] ? ep_free+0x320/0x320 [ 38.052473] ep_eventpoll_release+0x44/0x60 [ 38.052479] __fput+0x327/0x7e0 [ 38.052484] ? fput+0x140/0x140 [ 38.052488] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.052493] ____fput+0x15/0x20 [ 38.052497] task_work_run+0x199/0x270 [ 38.052502] ? task_work_cancel+0x210/0x210 [ 38.052506] ? _raw_spin_unlock+0x22/0x30 [ 38.052510] ? switch_task_namespaces+0x87/0xc0 [ 38.052517] do_exit+0x9bb/0x1ad0 [ 38.052524] ? binder_ioctl+0x491/0x1417 [ 38.052528] ? mm_update_next_owner+0x930/0x930 [ 38.052533] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 38.052540] ? avc_ss_reset+0x110/0x110 [ 38.052544] ? mutex_unlock+0xd/0x10 [ 38.052548] ? SyS_epoll_ctl+0x30a/0x1a80 [ 38.052559] ? vmacache_update+0xfe/0x130 [ 38.052565] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 38.052568] ? up_read+0x1a/0x40 [ 38.052572] ? rcu_note_context_switch+0x710/0x710 [ 38.052575] ? __fd_install+0x288/0x740 [ 38.052581] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 38.052584] ? do_vfs_ioctl+0x486/0x1520 [ 38.052588] ? _cond_resched+0x14/0x30 [ 38.052593] ? ioctl_preallocate+0x2b0/0x2b0 [ 38.052598] ? selinux_capable+0x40/0x40 [ 38.052602] ? __alloc_fd+0x750/0x750 [ 38.052607] do_group_exit+0x149/0x400 [ 38.052611] ? SyS_exit+0x30/0x30 [ 38.052615] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 38.052621] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 38.052625] SyS_exit_group+0x1d/0x20 [ 38.052629] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 38.052633] RIP: 0033:0x4429f8 [ 38.052635] RSP: 002b:00007ffcccb15f88 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 38.052639] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 38.052642] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 38.052644] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 38.052646] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 38.052648] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 38.052653] [ 38.052655] Allocated by task 3146: [ 38.052659] save_stack+0x43/0xd0 [ 38.052662] kasan_kmalloc+0xad/0xe0 [ 38.052666] kmem_cache_alloc_trace+0x136/0x750 [ 38.052669] binder_get_thread+0x1cf/0x870 [ 38.052671] binder_poll+0x8c/0x390 [ 38.052674] ep_item_poll.isra.10+0xf2/0x320 [ 38.052677] ep_insert+0x6a2/0x1ac0 [ 38.052680] SyS_epoll_ctl+0x12bf/0x1a80 [ 38.052683] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 38.052684] [ 38.052685] Freed by task 3146: [ 38.052688] save_stack+0x43/0xd0 [ 38.052691] kasan_slab_free+0x71/0xc0 [ 38.052693] kfree+0xd6/0x260 [ 38.052696] binder_thread_dec_tmpref+0x27f/0x310 [ 38.052699] binder_thread_release+0x27d/0x540 [ 38.052701] binder_ioctl+0xc02/0x1417 [ 38.052704] do_vfs_ioctl+0x1b1/0x1520 [ 38.052706] SyS_ioctl+0x8f/0xc0 [ 38.052709] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 38.052710] [ 38.052713] The buggy address belongs to the object at ffff8801c9f24780 [ 38.052713] which belongs to the cache kmalloc-512 of size 512 [ 38.052716] The buggy address is located 184 bytes inside of [ 38.052716] 512-byte region [ffff8801c9f24780, ffff8801c9f24980) [ 38.052717] The buggy address belongs to the page: [ 38.052721] page:00000000f24639bc count:1 mapcount:0 mapping:000000004c48c3af index:0x0 [ 38.052725] flags: 0x2fffc0000000100(slab) [ 38.052731] raw: 02fffc0000000100 ffff8801c9f24000 0000000000000000 0000000100000006 [ 38.052735] raw: ffffea000729d5e0 ffffea0007284de0 ffff8801dac00940 0000000000000000 [ 38.052737] page dumped because: kasan: bad access detected [ 38.052737] [ 38.052738] Memory state around the buggy address: [ 38.052742] ffff8801c9f24700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 38.052744] ffff8801c9f24780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.052747] >ffff8801c9f24800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.052748] ^ [ 38.052751] ffff8801c9f24880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.052753] ffff8801c9f24900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.052754] ================================================================== [ 38.052756] Disabling lock debugging due to kernel taint [ 38.052759] Kernel panic - not syncing: panic_on_warn set ... [ 38.052759] [ 38.052763] CPU: 0 PID: 3146 Comm: syzkaller090649 Tainted: G B 4.15.0-rc4-next-20171221+ #78 [ 38.052764] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.052765] Call Trace: [ 38.052769] dump_stack+0x194/0x257 [ 38.052773] ? arch_local_irq_restore+0x53/0x53 [ 38.052777] ? kasan_end_report+0x32/0x50 [ 38.052781] ? lock_downgrade+0x980/0x980 [ 38.052784] ? vsnprintf+0x1ed/0x1900 [ 38.052788] ? __lock_acquire+0x3d30/0x3e00 [ 38.052792] panic+0x1e4/0x41c [ 38.052796] ? refcount_error_report+0x214/0x214 [ 38.052800] ? add_taint+0x40/0x50 [ 38.052803] ? add_taint+0x1c/0x50 [ 38.052807] ? __lock_acquire+0x3d4d/0x3e00 [ 38.052811] kasan_end_report+0x50/0x50 [ 38.052814] kasan_report+0x144/0x340 [ 38.052819] __asan_report_load8_noabort+0x14/0x20 [ 38.052822] __lock_acquire+0x3d4d/0x3e00 [ 38.052826] ? __lock_acquire+0x664/0x3e00 [ 38.052829] ? lock_downgrade+0x980/0x980 [ 38.052832] ? lock_downgrade+0x980/0x980 [ 38.052837] ? remove_wait_queue+0x81/0x350 [ 38.052842] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 38.052846] ? __lock_acquire+0x664/0x3e00 [ 38.052849] ? check_noncircular+0x20/0x20 [ 38.052856] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 38.052860] ? lock_acquire+0x1d5/0x580 [ 38.052863] ? lock_acquire+0x1d5/0x580 [ 38.052866] ? ep_free+0xf4/0x320 [ 38.052871] ? lock_release+0xa40/0xa40 [ 38.052875] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 38.052878] ? print_irqtrace_events+0x270/0x270 [ 38.052882] ? rcu_note_context_switch+0x710/0x710 [ 38.052886] ? __might_sleep+0x95/0x190 [ 38.052890] ? ep_free+0xf4/0x320 [ 38.052894] ? __mutex_lock+0x16f/0x1a80 [ 38.052897] ? ep_free+0xf4/0x320 [ 38.052901] ? print_irqtrace_events+0x270/0x270 [ 38.052904] ? ep_free+0xf4/0x320 [ 38.052908] lock_acquire+0x1d5/0x580 [ 38.052911] ? lock_acquire+0x1d5/0x580 [ 38.052915] ? remove_wait_queue+0x81/0x350 [ 38.052918] ? __lock_acquire+0x664/0x3e00 [ 38.052923] ? lock_release+0xa40/0xa40 [ 38.052928] ? lock_acquire+0x1d5/0x580 [ 38.052931] ? lock_acquire+0x1d5/0x580 [ 38.052935] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 38.052939] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.052942] ? remove_wait_queue+0x81/0x350 [ 38.052946] remove_wait_queue+0x81/0x350 [ 38.052951] ? add_wait_queue+0x290/0x290 [ 38.052954] ? rcutorture_record_progress+0x10/0x10 [ 38.052960] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 38.052964] ? __kernel_text_address+0xd/0x40 [ 38.052969] ? clear_tfile_check_list+0x370/0x370 [ 38.052973] ? check_noncircular+0x20/0x20 [ 38.052978] ? locks_remove_file+0x3fa/0x5a0 [ 38.052983] ep_free+0x13f/0x320 [ 38.052986] ? ep_remove+0x800/0x800 [ 38.052990] ? fsnotify_first_mark+0x2b0/0x2b0 [ 38.052994] ? ep_free+0x320/0x320 [ 38.052998] ep_eventpoll_release+0x44/0x60 [ 38.053004] __fput+0x327/0x7e0 [ 38.053009] ? fput+0x140/0x140 [ 38.053013] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.053017] ____fput+0x15/0x20 [ 38.053021] task_work_run+0x199/0x270 [ 38.053026] ? task_work_cancel+0x210/0x210 [ 38.053029] ? _raw_spin_unlock+0x22/0x30 [ 38.053033] ? switch_task_namespaces+0x87/0xc0 [ 38.053037] do_exit+0x9bb/0x1ad0 [ 38.053041] ? binder_ioctl+0x491/0x1417 [ 38.053045] ? mm_update_next_owner+0x930/0x930 [ 38.053049] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 38.053054] ? avc_ss_reset+0x110/0x110 [ 38.053058] ? mutex_unlock+0xd/0x10 [ 38.053061] ? SyS_epoll_ctl+0x30a/0x1a80 [ 38.053070] ? vmacache_update+0xfe/0x130 [ 38.053074] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 38.053077] ? up_read+0x1a/0x40 [ 38.053081] ? rcu_note_context_switch+0x710/0x710 [ 38.053084] ? __fd_install+0x288/0x740 [ 38.053089] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 38.053092] ? do_vfs_ioctl+0x486/0x1520 [ 38.053095] ? _cond_resched+0x14/0x30 [ 38.053100] ? ioctl_preallocate+0x2b0/0x2b0 [ 38.053104] ? selinux_capable+0x40/0x40 [ 38.053108] ? __alloc_fd+0x750/0x750 [ 38.053112] do_group_exit+0x149/0x400 [ 38.053116] ? SyS_exit+0x30/0x30 [ 38.053120] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 38.053124] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 38.053129] SyS_exit_group+0x1d/0x20 [ 38.053133] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 38.053135] RIP: 0033:0x4429f8 [ 38.053137] RSP: 002b:00007ffcccb15f88 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 38.053140] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 38.053142] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 38.053144] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 38.053146] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 38.053148] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 38.074263] Dumping ftrace buffer: [ 38.074269] (ftrace buffer empty) [ 38.074271] Kernel Offset: disabled [ 39.245588] Rebooting in 86400 seconds..