[....] Starting enhanced syslogd: rsyslogd[ 12.605799] audit: type=1400 audit(1515625001.900:5): avc: denied { syslog } for pid=3347 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.819174] audit: type=1400 audit(1515625008.113: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.21' (ECDSA) to the list of known hosts. executing program [ 25.271717] audit: type=1400 audit(1515625014.566:7): avc: denied { map } for pid=3501 comm="syzkaller624275" path="/root/syzkaller624275050" 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 [ 25.276330] ================================================================== [ 25.276341] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 25.276345] Read of size 8 at addr ffff8801c7582830 by task syzkaller624275/3501 [ 25.276346] [ 25.276351] CPU: 1 PID: 3501 Comm: syzkaller624275 Not tainted 4.15.0-rc7+ #257 [ 25.276353] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.276355] Call Trace: [ 25.276363] dump_stack+0x194/0x257 [ 25.276372] ? arch_local_irq_restore+0x53/0x53 [ 25.276377] ? show_regs_print_info+0x18/0x18 [ 25.276381] ? print_irqtrace_events+0x270/0x270 [ 25.276385] ? __lock_acquire+0x664/0x3e00 [ 25.276389] ? __lock_acquire+0x3d4d/0x3e00 [ 25.276395] print_address_description+0x73/0x250 [ 25.276399] ? __lock_acquire+0x3d4d/0x3e00 [ 25.276402] kasan_report+0x25b/0x340 [ 25.276408] __asan_report_load8_noabort+0x14/0x20 [ 25.276412] __lock_acquire+0x3d4d/0x3e00 [ 25.276415] ? __lock_acquire+0x664/0x3e00 [ 25.276419] ? lock_downgrade+0x980/0x980 [ 25.276422] ? lock_downgrade+0x980/0x980 [ 25.276428] ? remove_wait_queue+0x81/0x350 [ 25.276434] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.276438] ? __lock_acquire+0x664/0x3e00 [ 25.276441] ? check_noncircular+0x20/0x20 [ 25.276449] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.276453] ? lock_acquire+0x1d5/0x580 [ 25.276457] ? lock_acquire+0x1d5/0x580 [ 25.276461] ? ep_free+0xf4/0x320 [ 25.276466] ? lock_release+0xa40/0xa40 [ 25.276471] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.276474] ? print_irqtrace_events+0x270/0x270 [ 25.276480] ? rcu_note_context_switch+0x710/0x710 [ 25.276485] ? __might_sleep+0x95/0x190 [ 25.276489] ? ep_free+0xf4/0x320 [ 25.276493] ? __mutex_lock+0x16f/0x1a80 [ 25.276496] ? ep_free+0xf4/0x320 [ 25.276501] ? print_irqtrace_events+0x270/0x270 [ 25.276504] ? ep_free+0xf4/0x320 [ 25.276509] lock_acquire+0x1d5/0x580 [ 25.276512] ? lock_acquire+0x1d5/0x580 [ 25.276516] ? remove_wait_queue+0x81/0x350 [ 25.276519] ? __lock_acquire+0x664/0x3e00 [ 25.276524] ? lock_release+0xa40/0xa40 [ 25.276529] ? lock_acquire+0x1d5/0x580 [ 25.276532] ? lock_acquire+0x1d5/0x580 [ 25.276536] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.276542] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.276545] ? remove_wait_queue+0x81/0x350 [ 25.276549] remove_wait_queue+0x81/0x350 [ 25.276554] ? add_wait_queue+0x290/0x290 [ 25.276558] ? rcutorture_record_progress+0x10/0x10 [ 25.276564] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.276570] ? __kernel_text_address+0xd/0x40 [ 25.276575] ? clear_tfile_check_list+0x370/0x370 [ 25.276580] ? check_noncircular+0x20/0x20 [ 25.276586] ? locks_remove_file+0x3fa/0x5a0 [ 25.276592] ep_free+0x13f/0x320 [ 25.276596] ? ep_remove+0x800/0x800 [ 25.276600] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.276604] ? ep_free+0x320/0x320 [ 25.276608] ep_eventpoll_release+0x44/0x60 [ 25.276613] __fput+0x327/0x7e0 [ 25.276618] ? fput+0x140/0x140 [ 25.276622] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.276628] ____fput+0x15/0x20 [ 25.276632] task_work_run+0x199/0x270 [ 25.276636] ? task_work_cancel+0x210/0x210 [ 25.276640] ? _raw_spin_unlock+0x22/0x30 [ 25.276644] ? switch_task_namespaces+0x87/0xc0 [ 25.276651] do_exit+0x9bb/0x1ad0 [ 25.276657] ? binder_ioctl+0x481/0x1417 [ 25.276661] ? mm_update_next_owner+0x930/0x930 [ 25.276665] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.276672] ? avc_ss_reset+0x110/0x110 [ 25.276675] ? mutex_unlock+0xd/0x10 [ 25.276679] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 25.276691] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.276696] ? up_read+0x1a/0x40 [ 25.276702] ? rcu_note_context_switch+0x710/0x710 [ 25.276707] ? __fd_install+0x288/0x740 [ 25.276713] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.276716] ? do_vfs_ioctl+0x486/0x1520 [ 25.276719] ? _cond_resched+0x14/0x30 [ 25.276724] ? ioctl_preallocate+0x2b0/0x2b0 [ 25.276729] ? selinux_capable+0x40/0x40 [ 25.276733] ? __alloc_fd+0x750/0x750 [ 25.276739] do_group_exit+0x149/0x400 [ 25.276743] ? SyS_exit+0x30/0x30 [ 25.276747] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.276752] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.276757] SyS_exit_group+0x1d/0x20 [ 25.276761] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.276764] RIP: 0033:0x4429f8 [ 25.276766] RSP: 002b:00007ffeef558b98 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 25.276771] RAX: ffffffffffffffda RBX: 00000000006cfb80 RCX: 00000000004429f8 [ 25.276773] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 25.276775] RBP: 00000000004c25a0 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 25.276777] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 25.276779] R13: 00000000006d4180 R14: 0000000000000000 R15: 0000000000000000 [ 25.276785] [ 25.276786] Allocated by task 3501: [ 25.276791] save_stack+0x43/0xd0 [ 25.276795] kasan_kmalloc+0xad/0xe0 [ 25.276798] kmem_cache_alloc_trace+0x136/0x750 [ 25.276802] binder_get_thread+0x1cf/0x870 [ 25.276806] binder_poll+0x8c/0x390 [ 25.276809] ep_item_poll.isra.10+0xec/0x320 [ 25.276812] ep_insert+0x6a3/0x1b10 [ 25.276815] SyS_epoll_ctl+0x12e4/0x1ab0 [ 25.276818] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.276819] [ 25.276820] Freed by task 3501: [ 25.276823] save_stack+0x43/0xd0 [ 25.276826] kasan_slab_free+0x71/0xc0 [ 25.276829] kfree+0xd6/0x260 [ 25.276831] binder_thread_dec_tmpref+0x27f/0x310 [ 25.276834] binder_thread_release+0x27d/0x540 [ 25.276837] binder_ioctl+0xc02/0x1417 [ 25.276839] do_vfs_ioctl+0x1b1/0x1520 [ 25.276842] SyS_ioctl+0x8f/0xc0 [ 25.276845] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.276846] [ 25.276848] The buggy address belongs to the object at ffff8801c7582780 [ 25.276848] which belongs to the cache kmalloc-512 of size 512 [ 25.276851] The buggy address is located 176 bytes inside of [ 25.276851] 512-byte region [ffff8801c7582780, ffff8801c7582980) [ 25.276852] The buggy address belongs to the page: [ 25.276856] page:ffffea00071d6080 count:1 mapcount:0 mapping:ffff8801c7582000 index:0x0 [ 25.276860] flags: 0x2fffc0000000100(slab) [ 25.276865] raw: 02fffc0000000100 ffff8801c7582000 0000000000000000 0000000100000006 [ 25.276869] raw: ffffea00071d0220 ffffea00073903e0 ffff8801dac00940 0000000000000000 [ 25.276871] page dumped because: kasan: bad access detected [ 25.276872] [ 25.276873] Memory state around the buggy address: [ 25.276875] ffff8801c7582700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.276878] ffff8801c7582780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.276880] >ffff8801c7582800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.276882] ^ [ 25.276884] ffff8801c7582880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.276887] ffff8801c7582900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.276888] ================================================================== [ 25.276889] Disabling lock debugging due to kernel taint [ 25.276891] Kernel panic - not syncing: panic_on_warn set ... [ 25.276891] [ 25.276895] CPU: 1 PID: 3501 Comm: syzkaller624275 Tainted: G B 4.15.0-rc7+ #257 [ 25.276897] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.276898] Call Trace: [ 25.276902] dump_stack+0x194/0x257 [ 25.276906] ? arch_local_irq_restore+0x53/0x53 [ 25.276910] ? kasan_end_report+0x32/0x50 [ 25.276913] ? lock_downgrade+0x980/0x980 [ 25.276918] ? vsnprintf+0x1ed/0x1900 [ 25.276922] ? __lock_acquire+0x3cb0/0x3e00 [ 25.276925] panic+0x1e4/0x41c [ 25.276928] ? refcount_error_report+0x214/0x214 [ 25.276932] ? add_taint+0x40/0x50 [ 25.276935] ? add_taint+0x1c/0x50 [ 25.276939] ? __lock_acquire+0x3d4d/0x3e00 [ 25.276943] kasan_end_report+0x50/0x50 [ 25.276946] kasan_report+0x144/0x340 [ 25.276951] __asan_report_load8_noabort+0x14/0x20 [ 25.276954] __lock_acquire+0x3d4d/0x3e00 [ 25.276957] ? __lock_acquire+0x664/0x3e00 [ 25.276961] ? lock_downgrade+0x980/0x980 [ 25.276964] ? lock_downgrade+0x980/0x980 [ 25.276968] ? remove_wait_queue+0x81/0x350 [ 25.276973] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.276977] ? __lock_acquire+0x664/0x3e00 [ 25.276980] ? check_noncircular+0x20/0x20 [ 25.276987] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.276991] ? lock_acquire+0x1d5/0x580 [ 25.276994] ? lock_acquire+0x1d5/0x580 [ 25.276997] ? ep_free+0xf4/0x320 [ 25.277005] ? lock_release+0xa40/0xa40 [ 25.277009] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.277013] ? print_irqtrace_events+0x270/0x270 [ 25.277016] ? rcu_note_context_switch+0x710/0x710 [ 25.277021] ? __might_sleep+0x95/0x190 [ 25.277024] ? ep_free+0xf4/0x320 [ 25.277027] ? __mutex_lock+0x16f/0x1a80 [ 25.277030] ? ep_free+0xf4/0x320 [ 25.277034] ? print_irqtrace_events+0x270/0x270 [ 25.277037] ? ep_free+0xf4/0x320 [ 25.277042] lock_acquire+0x1d5/0x580 [ 25.277045] ? lock_acquire+0x1d5/0x580 [ 25.277048] ? remove_wait_queue+0x81/0x350 [ 25.277052] ? __lock_acquire+0x664/0x3e00 [ 25.277056] ? lock_release+0xa40/0xa40 [ 25.277061] ? lock_acquire+0x1d5/0x580 [ 25.277064] ? lock_acquire+0x1d5/0x580 [ 25.277068] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.277072] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.277076] ? remove_wait_queue+0x81/0x350 [ 25.277079] remove_wait_queue+0x81/0x350 [ 25.277084] ? add_wait_queue+0x290/0x290 [ 25.277087] ? rcutorture_record_progress+0x10/0x10 [ 25.277093] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.277097] ? __kernel_text_address+0xd/0x40 [ 25.277102] ? clear_tfile_check_list+0x370/0x370 [ 25.277106] ? check_noncircular+0x20/0x20 [ 25.277111] ? locks_remove_file+0x3fa/0x5a0 [ 25.277116] ep_free+0x13f/0x320 [ 25.277119] ? ep_remove+0x800/0x800 [ 25.277123] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.277127] ? ep_free+0x320/0x320 [ 25.277131] ep_eventpoll_release+0x44/0x60 [ 25.277134] __fput+0x327/0x7e0 [ 25.277139] ? fput+0x140/0x140 [ 25.277143] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.277148] ____fput+0x15/0x20 [ 25.277152] task_work_run+0x199/0x270 [ 25.277156] ? task_work_cancel+0x210/0x210 [ 25.277160] ? _raw_spin_unlock+0x22/0x30 [ 25.277164] ? switch_task_namespaces+0x87/0xc0 [ 25.277168] do_exit+0x9bb/0x1ad0 [ 25.277172] ? binder_ioctl+0x481/0x1417 [ 25.277176] ? mm_update_next_owner+0x930/0x930 [ 25.277180] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.277185] ? avc_ss_reset+0x110/0x110 [ 25.277188] ? mutex_unlock+0xd/0x10 [ 25.277191] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 25.277201] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.277204] ? up_read+0x1a/0x40 [ 25.277208] ? rcu_note_context_switch+0x710/0x710 [ 25.277211] ? __fd_install+0x288/0x740 [ 25.277216] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.277219] ? do_vfs_ioctl+0x486/0x1520 [ 25.277222] ? _cond_resched+0x14/0x30 [ 25.277226] ? ioctl_preallocate+0x2b0/0x2b0 [ 25.277231] ? selinux_capable+0x40/0x40 [ 25.277234] ? __alloc_fd+0x750/0x750 [ 25.277239] do_group_exit+0x149/0x400 [ 25.277243] ? SyS_exit+0x30/0x30 [ 25.277247] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.277251] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.277255] SyS_exit_group+0x1d/0x20 [ 25.277259] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.277261] RIP: 0033:0x4429f8 [ 25.277263] RSP: 002b:00007ffeef558b98 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 25.277266] RAX: ffffffffffffffda RBX: 00000000006cfb80 RCX: 00000000004429f8 [ 25.277268] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 25.277270] RBP: 00000000004c25a0 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 25.277272] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 25.277274] R13: 00000000006d4180 R14: 0000000000000000 R15: 0000000000000000 [ 25.297614] Dumping ftrace buffer: [ 25.297617] (ftrace buffer empty) [ 25.297619] Kernel Offset: disabled [ 26.420836] Rebooting in 86400 seconds..