[....] Starting enhanced syslogd: rsyslogd[ 11.850810] audit: type=1400 audit(1515869872.376:5): avc: denied { syslog } for pid=3494 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 mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] 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.719506] audit: type=1400 audit(1515869879.245:6): avc: denied { map } for pid=3635 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.45' (ECDSA) to the list of known hosts. executing program [ 37.205579] audit: type=1400 audit(1515869897.731:7): avc: denied { map } for pid=3652 comm="syzkaller895175" path="/root/syzkaller895175808" 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 [ 37.209934] ================================================================== [ 37.209946] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 37.209950] Read of size 8 at addr ffff8801bc1c8db0 by task syzkaller895175/3652 [ 37.209951] [ 37.209956] CPU: 1 PID: 3652 Comm: syzkaller895175 Not tainted 4.15.0-rc7+ #260 [ 37.209958] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.209959] Call Trace: [ 37.209968] dump_stack+0x194/0x257 [ 37.209973] ? arch_local_irq_restore+0x53/0x53 [ 37.209978] ? show_regs_print_info+0x18/0x18 [ 37.209982] ? print_irqtrace_events+0x270/0x270 [ 37.209986] ? __lock_acquire+0x664/0x3e00 [ 37.209990] ? __lock_acquire+0x3d4d/0x3e00 [ 37.209996] print_address_description+0x73/0x250 [ 37.210004] ? __lock_acquire+0x3d4d/0x3e00 [ 37.210008] kasan_report+0x25b/0x340 [ 37.210013] __asan_report_load8_noabort+0x14/0x20 [ 37.210016] __lock_acquire+0x3d4d/0x3e00 [ 37.210020] ? __lock_acquire+0x664/0x3e00 [ 37.210023] ? lock_downgrade+0x980/0x980 [ 37.210026] ? lock_downgrade+0x980/0x980 [ 37.210033] ? remove_wait_queue+0x81/0x350 [ 37.210039] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 37.210043] ? __lock_acquire+0x664/0x3e00 [ 37.210046] ? check_noncircular+0x20/0x20 [ 37.210054] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 37.210058] ? lock_acquire+0x1d5/0x580 [ 37.210062] ? lock_acquire+0x1d5/0x580 [ 37.210067] ? ep_free+0xf4/0x320 [ 37.210073] ? lock_release+0xa40/0xa40 [ 37.210077] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 37.210081] ? print_irqtrace_events+0x270/0x270 [ 37.210087] ? rcu_note_context_switch+0x710/0x710 [ 37.210091] ? __might_sleep+0x95/0x190 [ 37.210095] ? ep_free+0xf4/0x320 [ 37.210100] ? __mutex_lock+0x16f/0x1a80 [ 37.210103] ? ep_free+0xf4/0x320 [ 37.210107] ? print_irqtrace_events+0x270/0x270 [ 37.210110] ? ep_free+0xf4/0x320 [ 37.210116] lock_acquire+0x1d5/0x580 [ 37.210119] ? lock_acquire+0x1d5/0x580 [ 37.210122] ? remove_wait_queue+0x81/0x350 [ 37.210126] ? __lock_acquire+0x664/0x3e00 [ 37.210131] ? lock_release+0xa40/0xa40 [ 37.210136] ? lock_acquire+0x1d5/0x580 [ 37.210139] ? lock_acquire+0x1d5/0x580 [ 37.210143] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 37.210149] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.210152] ? remove_wait_queue+0x81/0x350 [ 37.210156] remove_wait_queue+0x81/0x350 [ 37.210161] ? add_wait_queue+0x290/0x290 [ 37.210165] ? rcutorture_record_progress+0x10/0x10 [ 37.210171] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 37.210176] ? __kernel_text_address+0xd/0x40 [ 37.210181] ? clear_tfile_check_list+0x370/0x370 [ 37.210186] ? check_noncircular+0x20/0x20 [ 37.210192] ? locks_remove_file+0x3fa/0x5a0 [ 37.210198] ep_free+0x13f/0x320 [ 37.210202] ? ep_remove+0x800/0x800 [ 37.210205] ? fsnotify_first_mark+0x2b0/0x2b0 [ 37.210210] ? ep_free+0x320/0x320 [ 37.210214] ep_eventpoll_release+0x44/0x60 [ 37.210218] __fput+0x327/0x7e0 [ 37.210224] ? fput+0x140/0x140 [ 37.210228] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.210234] ____fput+0x15/0x20 [ 37.210238] task_work_run+0x199/0x270 [ 37.210242] ? task_work_cancel+0x210/0x210 [ 37.210246] ? _raw_spin_unlock+0x22/0x30 [ 37.210250] ? switch_task_namespaces+0x87/0xc0 [ 37.210256] do_exit+0x9bb/0x1ad0 [ 37.210263] ? binder_ioctl+0x4d1/0x1417 [ 37.210267] ? mm_update_next_owner+0x930/0x930 [ 37.210272] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 37.210279] ? avc_ss_reset+0x110/0x110 [ 37.210282] ? mutex_unlock+0xd/0x10 [ 37.210286] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 37.210298] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 37.210301] ? up_read+0x1a/0x40 [ 37.210305] ? rcu_note_context_switch+0x710/0x710 [ 37.210309] ? __fd_install+0x288/0x740 [ 37.210315] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 37.210319] ? do_vfs_ioctl+0x486/0x1520 [ 37.210322] ? _cond_resched+0x14/0x30 [ 37.210327] ? ioctl_preallocate+0x2b0/0x2b0 [ 37.210332] ? selinux_capable+0x40/0x40 [ 37.210335] ? __alloc_fd+0x750/0x750 [ 37.210341] do_group_exit+0x149/0x400 [ 37.210345] ? SyS_exit+0x30/0x30 [ 37.210349] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 37.210354] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 37.210359] SyS_exit_group+0x1d/0x20 [ 37.210363] entry_SYSCALL_64_fastpath+0x23/0x9a [ 37.210366] RIP: 0033:0x4429f8 [ 37.210369] RSP: 002b:00007ffea67830a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 37.210373] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 37.210375] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 37.210377] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 37.210379] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 37.210381] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 37.210386] [ 37.210388] Allocated by task 3652: [ 37.210392] save_stack+0x43/0xd0 [ 37.210395] kasan_kmalloc+0xad/0xe0 [ 37.210398] kmem_cache_alloc_trace+0x136/0x750 [ 37.210401] binder_get_thread+0x1cf/0x870 [ 37.210404] binder_poll+0x8c/0x390 [ 37.210408] ep_item_poll.isra.10+0xec/0x320 [ 37.210410] ep_insert+0x6a3/0x1b10 [ 37.210414] SyS_epoll_ctl+0x12e4/0x1ab0 [ 37.210417] entry_SYSCALL_64_fastpath+0x23/0x9a [ 37.210418] [ 37.210419] Freed by task 3652: [ 37.210422] save_stack+0x43/0xd0 [ 37.210425] kasan_slab_free+0x71/0xc0 [ 37.210427] kfree+0xd6/0x260 [ 37.210430] binder_thread_dec_tmpref+0x27f/0x310 [ 37.210434] binder_thread_release+0x27d/0x540 [ 37.210437] binder_ioctl+0xc02/0x1417 [ 37.210439] do_vfs_ioctl+0x1b1/0x1520 [ 37.210442] SyS_ioctl+0x8f/0xc0 [ 37.210446] entry_SYSCALL_64_fastpath+0x23/0x9a [ 37.210446] [ 37.210449] The buggy address belongs to the object at ffff8801bc1c8d00 [ 37.210449] which belongs to the cache kmalloc-512 of size 512 [ 37.210452] The buggy address is located 176 bytes inside of [ 37.210452] 512-byte region [ffff8801bc1c8d00, ffff8801bc1c8f00) [ 37.210453] The buggy address belongs to the page: [ 37.210455] page:ffffea0006f07200 count:1 mapcount:0 mapping:ffff8801bc1c8080 index:0x0 [ 37.210459] flags: 0x2fffc0000000100(slab) [ 37.210465] raw: 02fffc0000000100 ffff8801bc1c8080 0000000000000000 0000000100000006 [ 37.210469] raw: ffffea0006f12ba0 ffff8801dac01748 ffff8801dac00940 0000000000000000 [ 37.210471] page dumped because: kasan: bad access detected [ 37.210472] [ 37.210473] Memory state around the buggy address: [ 37.210476] ffff8801bc1c8c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 37.210478] ffff8801bc1c8d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.210481] >ffff8801bc1c8d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.210482] ^ [ 37.210485] ffff8801bc1c8e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.210487] ffff8801bc1c8e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.210488] ================================================================== [ 37.210490] Disabling lock debugging due to kernel taint [ 37.210492] Kernel panic - not syncing: panic_on_warn set ... [ 37.210492] [ 37.210496] CPU: 1 PID: 3652 Comm: syzkaller895175 Tainted: G B 4.15.0-rc7+ #260 [ 37.210498] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.210499] Call Trace: [ 37.210503] dump_stack+0x194/0x257 [ 37.210507] ? arch_local_irq_restore+0x53/0x53 [ 37.210510] ? kasan_end_report+0x32/0x50 [ 37.210514] ? lock_downgrade+0x980/0x980 [ 37.210519] ? vsnprintf+0x1ed/0x1900 [ 37.210523] ? __lock_acquire+0x3cb0/0x3e00 [ 37.210527] panic+0x1e4/0x41c [ 37.210530] ? refcount_error_report+0x214/0x214 [ 37.210534] ? add_taint+0x40/0x50 [ 37.210537] ? add_taint+0x1c/0x50 [ 37.210541] ? __lock_acquire+0x3d4d/0x3e00 [ 37.210545] kasan_end_report+0x50/0x50 [ 37.210548] kasan_report+0x144/0x340 [ 37.210553] __asan_report_load8_noabort+0x14/0x20 [ 37.210556] __lock_acquire+0x3d4d/0x3e00 [ 37.210560] ? __lock_acquire+0x664/0x3e00 [ 37.210563] ? lock_downgrade+0x980/0x980 [ 37.210566] ? lock_downgrade+0x980/0x980 [ 37.210571] ? remove_wait_queue+0x81/0x350 [ 37.210577] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 37.210582] ? __lock_acquire+0x664/0x3e00 [ 37.210587] ? check_noncircular+0x20/0x20 [ 37.210597] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 37.210603] ? lock_acquire+0x1d5/0x580 [ 37.210607] ? lock_acquire+0x1d5/0x580 [ 37.210612] ? ep_free+0xf4/0x320 [ 37.210618] ? lock_release+0xa40/0xa40 [ 37.210623] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 37.210628] ? print_irqtrace_events+0x270/0x270 [ 37.210634] ? rcu_note_context_switch+0x710/0x710 [ 37.210639] ? __might_sleep+0x95/0x190 [ 37.210642] ? ep_free+0xf4/0x320 [ 37.210646] ? __mutex_lock+0x16f/0x1a80 [ 37.210649] ? ep_free+0xf4/0x320 [ 37.210653] ? print_irqtrace_events+0x270/0x270 [ 37.210656] ? ep_free+0xf4/0x320 [ 37.210661] lock_acquire+0x1d5/0x580 [ 37.210664] ? lock_acquire+0x1d5/0x580 [ 37.210667] ? remove_wait_queue+0x81/0x350 [ 37.210671] ? __lock_acquire+0x664/0x3e00 [ 37.210675] ? lock_release+0xa40/0xa40 [ 37.210680] ? lock_acquire+0x1d5/0x580 [ 37.210683] ? lock_acquire+0x1d5/0x580 [ 37.210687] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 37.210691] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.210695] ? remove_wait_queue+0x81/0x350 [ 37.210699] remove_wait_queue+0x81/0x350 [ 37.210703] ? add_wait_queue+0x290/0x290 [ 37.210707] ? rcutorture_record_progress+0x10/0x10 [ 37.210712] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 37.210716] ? __kernel_text_address+0xd/0x40 [ 37.210721] ? clear_tfile_check_list+0x370/0x370 [ 37.210726] ? check_noncircular+0x20/0x20 [ 37.210730] ? locks_remove_file+0x3fa/0x5a0 [ 37.210735] ep_free+0x13f/0x320 [ 37.210739] ? ep_remove+0x800/0x800 [ 37.210743] ? fsnotify_first_mark+0x2b0/0x2b0 [ 37.210747] ? ep_free+0x320/0x320 [ 37.210751] ep_eventpoll_release+0x44/0x60 [ 37.210754] __fput+0x327/0x7e0 [ 37.210763] ? fput+0x140/0x140 [ 37.210767] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.210772] ____fput+0x15/0x20 [ 37.210776] task_work_run+0x199/0x270 [ 37.210781] ? task_work_cancel+0x210/0x210 [ 37.210785] ? _raw_spin_unlock+0x22/0x30 [ 37.210789] ? switch_task_namespaces+0x87/0xc0 [ 37.210793] do_exit+0x9bb/0x1ad0 [ 37.210798] ? binder_ioctl+0x4d1/0x1417 [ 37.210801] ? mm_update_next_owner+0x930/0x930 [ 37.210806] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 37.210811] ? avc_ss_reset+0x110/0x110 [ 37.210815] ? mutex_unlock+0xd/0x10 [ 37.210818] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 37.210828] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 37.210831] ? up_read+0x1a/0x40 [ 37.210835] ? rcu_note_context_switch+0x710/0x710 [ 37.210838] ? __fd_install+0x288/0x740 [ 37.210844] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 37.210847] ? do_vfs_ioctl+0x486/0x1520 [ 37.210850] ? _cond_resched+0x14/0x30 [ 37.210854] ? ioctl_preallocate+0x2b0/0x2b0 [ 37.210858] ? selinux_capable+0x40/0x40 [ 37.210862] ? __alloc_fd+0x750/0x750 [ 37.210875] do_group_exit+0x149/0x400 [ 37.210879] ? SyS_exit+0x30/0x30 [ 37.210883] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 37.210887] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 37.210891] SyS_exit_group+0x1d/0x20 [ 37.210896] entry_SYSCALL_64_fastpath+0x23/0x9a [ 37.210898] RIP: 0033:0x4429f8 [ 37.210900] RSP: 002b:00007ffea67830a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 37.210903] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 37.210905] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 37.210907] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 37.210909] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 37.210911] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 37.231860] Dumping ftrace buffer: [ 37.231864] (ftrace buffer empty) [ 37.231866] Kernel Offset: disabled [ 38.354022] Rebooting in 86400 seconds..