[....] Starting enhanced syslogd: rsyslogd[ 12.037584] audit: type=1400 audit(1515669739.069:5): avc: denied { syslog } for pid=3340 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.806955] audit: type=1400 audit(1515669745.838:6): avc: denied { map } for pid=3482 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.15.193' (ECDSA) to the list of known hosts. executing program [ 25.030211] audit: type=1400 audit(1515669752.061:7): avc: denied { map } for pid=3496 comm="syzkaller841163" path="/root/syzkaller841163895" 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.034814] ================================================================== [ 25.034825] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 25.034829] Read of size 8 at addr ffff8801cdd6adb0 by task syzkaller841163/3496 [ 25.034829] [ 25.034835] CPU: 1 PID: 3496 Comm: syzkaller841163 Not tainted 4.15.0-rc7+ #257 [ 25.034837] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.034839] Call Trace: [ 25.034847] dump_stack+0x194/0x257 [ 25.034852] ? arch_local_irq_restore+0x53/0x53 [ 25.034857] ? show_regs_print_info+0x18/0x18 [ 25.034861] ? print_irqtrace_events+0x270/0x270 [ 25.034865] ? __lock_acquire+0x664/0x3e00 [ 25.034869] ? __lock_acquire+0x3d4d/0x3e00 [ 25.034875] print_address_description+0x73/0x250 [ 25.034879] ? __lock_acquire+0x3d4d/0x3e00 [ 25.034882] kasan_report+0x25b/0x340 [ 25.034894] __asan_report_load8_noabort+0x14/0x20 [ 25.034897] __lock_acquire+0x3d4d/0x3e00 [ 25.034901] ? __lock_acquire+0x664/0x3e00 [ 25.034904] ? lock_downgrade+0x980/0x980 [ 25.034907] ? lock_downgrade+0x980/0x980 [ 25.034914] ? remove_wait_queue+0x81/0x350 [ 25.034919] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.034924] ? __lock_acquire+0x664/0x3e00 [ 25.034927] ? check_noncircular+0x20/0x20 [ 25.034934] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.034939] ? lock_acquire+0x1d5/0x580 [ 25.034942] ? lock_acquire+0x1d5/0x580 [ 25.034947] ? ep_free+0xf4/0x320 [ 25.034952] ? lock_release+0xa40/0xa40 [ 25.034956] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.034960] ? print_irqtrace_events+0x270/0x270 [ 25.034966] ? rcu_note_context_switch+0x710/0x710 [ 25.034971] ? __might_sleep+0x95/0x190 [ 25.034974] ? ep_free+0xf4/0x320 [ 25.034979] ? __mutex_lock+0x16f/0x1a80 [ 25.034982] ? ep_free+0xf4/0x320 [ 25.034986] ? print_irqtrace_events+0x270/0x270 [ 25.034990] ? ep_free+0xf4/0x320 [ 25.034995] lock_acquire+0x1d5/0x580 [ 25.034998] ? lock_acquire+0x1d5/0x580 [ 25.035004] ? remove_wait_queue+0x81/0x350 [ 25.035008] ? __lock_acquire+0x664/0x3e00 [ 25.035012] ? lock_release+0xa40/0xa40 [ 25.035018] ? lock_acquire+0x1d5/0x580 [ 25.035021] ? lock_acquire+0x1d5/0x580 [ 25.035025] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.035031] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.035035] ? remove_wait_queue+0x81/0x350 [ 25.035039] remove_wait_queue+0x81/0x350 [ 25.035043] ? add_wait_queue+0x290/0x290 [ 25.035047] ? rcutorture_record_progress+0x10/0x10 [ 25.035053] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.035060] ? __kernel_text_address+0xd/0x40 [ 25.035065] ? clear_tfile_check_list+0x370/0x370 [ 25.035069] ? check_noncircular+0x20/0x20 [ 25.035076] ? locks_remove_file+0x3fa/0x5a0 [ 25.035082] ep_free+0x13f/0x320 [ 25.035086] ? ep_remove+0x800/0x800 [ 25.035089] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.035094] ? ep_free+0x320/0x320 [ 25.035098] ep_eventpoll_release+0x44/0x60 [ 25.035104] __fput+0x327/0x7e0 [ 25.035109] ? fput+0x140/0x140 [ 25.035113] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.035118] ____fput+0x15/0x20 [ 25.035122] task_work_run+0x199/0x270 [ 25.035127] ? task_work_cancel+0x210/0x210 [ 25.035131] ? _raw_spin_unlock+0x22/0x30 [ 25.035135] ? switch_task_namespaces+0x87/0xc0 [ 25.035142] do_exit+0x9bb/0x1ad0 [ 25.035148] ? binder_ioctl+0x481/0x1417 [ 25.035151] ? mm_update_next_owner+0x930/0x930 [ 25.035156] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.035163] ? avc_ss_reset+0x110/0x110 [ 25.035166] ? mutex_unlock+0xd/0x10 [ 25.035170] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 25.035182] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.035185] ? up_read+0x1a/0x40 [ 25.035190] ? rcu_note_context_switch+0x710/0x710 [ 25.035193] ? __fd_install+0x288/0x740 [ 25.035199] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.035203] ? do_vfs_ioctl+0x486/0x1520 [ 25.035205] ? _cond_resched+0x14/0x30 [ 25.035210] ? ioctl_preallocate+0x2b0/0x2b0 [ 25.035215] ? selinux_capable+0x40/0x40 [ 25.035219] ? __alloc_fd+0x750/0x750 [ 25.035224] do_group_exit+0x149/0x400 [ 25.035228] ? SyS_exit+0x30/0x30 [ 25.035232] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.035237] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.035242] SyS_exit_group+0x1d/0x20 [ 25.035246] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.035250] RIP: 0033:0x4429f8 [ 25.035252] RSP: 002b:00007ffd8bd40b28 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 25.035256] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 25.035258] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 25.035260] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 25.035262] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 25.035264] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 25.035270] [ 25.035271] Allocated by task 3496: [ 25.035275] save_stack+0x43/0xd0 [ 25.035278] kasan_kmalloc+0xad/0xe0 [ 25.035281] kmem_cache_alloc_trace+0x136/0x750 [ 25.035284] binder_get_thread+0x1cf/0x870 [ 25.035287] binder_poll+0x8c/0x390 [ 25.035290] ep_item_poll.isra.10+0xec/0x320 [ 25.035293] ep_insert+0x6a3/0x1b10 [ 25.035296] SyS_epoll_ctl+0x12e4/0x1ab0 [ 25.035299] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.035300] [ 25.035301] Freed by task 3496: [ 25.035304] save_stack+0x43/0xd0 [ 25.035306] kasan_slab_free+0x71/0xc0 [ 25.035309] kfree+0xd6/0x260 [ 25.035312] binder_thread_dec_tmpref+0x27f/0x310 [ 25.035315] binder_thread_release+0x27d/0x540 [ 25.035317] binder_ioctl+0xc02/0x1417 [ 25.035320] do_vfs_ioctl+0x1b1/0x1520 [ 25.035323] SyS_ioctl+0x8f/0xc0 [ 25.035326] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.035327] [ 25.035329] The buggy address belongs to the object at ffff8801cdd6ad00 [ 25.035329] which belongs to the cache kmalloc-512 of size 512 [ 25.035332] The buggy address is located 176 bytes inside of [ 25.035332] 512-byte region [ffff8801cdd6ad00, ffff8801cdd6af00) [ 25.035333] The buggy address belongs to the page: [ 25.035337] page:ffffea0007375a80 count:1 mapcount:0 mapping:ffff8801cdd6a080 index:0x0 [ 25.035340] flags: 0x2fffc0000000100(slab) [ 25.035347] raw: 02fffc0000000100 ffff8801cdd6a080 0000000000000000 0000000100000006 [ 25.035350] raw: ffffea00071e7ce0 ffffea0007375b60 ffff8801dac00940 0000000000000000 [ 25.035352] page dumped because: kasan: bad access detected [ 25.035353] [ 25.035353] Memory state around the buggy address: [ 25.035356] ffff8801cdd6ac80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.035359] ffff8801cdd6ad00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.035361] >ffff8801cdd6ad80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.035363] ^ [ 25.035365] ffff8801cdd6ae00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.035368] ffff8801cdd6ae80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.035369] ================================================================== [ 25.035370] Disabling lock debugging due to kernel taint [ 25.035372] Kernel panic - not syncing: panic_on_warn set ... [ 25.035372] [ 25.035376] CPU: 1 PID: 3496 Comm: syzkaller841163 Tainted: G B 4.15.0-rc7+ #257 [ 25.035378] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.035379] Call Trace: [ 25.035383] dump_stack+0x194/0x257 [ 25.035387] ? arch_local_irq_restore+0x53/0x53 [ 25.035390] ? kasan_end_report+0x32/0x50 [ 25.035394] ? lock_downgrade+0x980/0x980 [ 25.035399] ? vsnprintf+0x1ed/0x1900 [ 25.035402] ? __lock_acquire+0x3cb0/0x3e00 [ 25.035405] panic+0x1e4/0x41c [ 25.035409] ? refcount_error_report+0x214/0x214 [ 25.035413] ? add_taint+0x40/0x50 [ 25.035416] ? add_taint+0x1c/0x50 [ 25.035420] ? __lock_acquire+0x3d4d/0x3e00 [ 25.035424] kasan_end_report+0x50/0x50 [ 25.035427] kasan_report+0x144/0x340 [ 25.035432] __asan_report_load8_noabort+0x14/0x20 [ 25.035435] __lock_acquire+0x3d4d/0x3e00 [ 25.035438] ? __lock_acquire+0x664/0x3e00 [ 25.035442] ? lock_downgrade+0x980/0x980 [ 25.035445] ? lock_downgrade+0x980/0x980 [ 25.035449] ? remove_wait_queue+0x81/0x350 [ 25.035454] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.035458] ? __lock_acquire+0x664/0x3e00 [ 25.035461] ? check_noncircular+0x20/0x20 [ 25.035468] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.035472] ? lock_acquire+0x1d5/0x580 [ 25.035475] ? lock_acquire+0x1d5/0x580 [ 25.035478] ? ep_free+0xf4/0x320 [ 25.035483] ? lock_release+0xa40/0xa40 [ 25.035486] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.035490] ? print_irqtrace_events+0x270/0x270 [ 25.035494] ? rcu_note_context_switch+0x710/0x710 [ 25.035498] ? __might_sleep+0x95/0x190 [ 25.035501] ? ep_free+0xf4/0x320 [ 25.035505] ? __mutex_lock+0x16f/0x1a80 [ 25.035508] ? ep_free+0xf4/0x320 [ 25.035512] ? print_irqtrace_events+0x270/0x270 [ 25.035515] ? ep_free+0xf4/0x320 [ 25.035519] lock_acquire+0x1d5/0x580 [ 25.035522] ? lock_acquire+0x1d5/0x580 [ 25.035526] ? remove_wait_queue+0x81/0x350 [ 25.035529] ? __lock_acquire+0x664/0x3e00 [ 25.035533] ? lock_release+0xa40/0xa40 [ 25.035539] ? lock_acquire+0x1d5/0x580 [ 25.035541] ? lock_acquire+0x1d5/0x580 [ 25.035545] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.035550] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.035554] ? remove_wait_queue+0x81/0x350 [ 25.035557] remove_wait_queue+0x81/0x350 [ 25.035562] ? add_wait_queue+0x290/0x290 [ 25.035565] ? rcutorture_record_progress+0x10/0x10 [ 25.035571] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.035575] ? __kernel_text_address+0xd/0x40 [ 25.035579] ? clear_tfile_check_list+0x370/0x370 [ 25.035584] ? check_noncircular+0x20/0x20 [ 25.035589] ? locks_remove_file+0x3fa/0x5a0 [ 25.035594] ep_free+0x13f/0x320 [ 25.035597] ? ep_remove+0x800/0x800 [ 25.035601] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.035605] ? ep_free+0x320/0x320 [ 25.035609] ep_eventpoll_release+0x44/0x60 [ 25.035612] __fput+0x327/0x7e0 [ 25.035617] ? fput+0x140/0x140 [ 25.035621] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.035626] ____fput+0x15/0x20 [ 25.035630] task_work_run+0x199/0x270 [ 25.035634] ? task_work_cancel+0x210/0x210 [ 25.035638] ? _raw_spin_unlock+0x22/0x30 [ 25.035642] ? switch_task_namespaces+0x87/0xc0 [ 25.035646] do_exit+0x9bb/0x1ad0 [ 25.035650] ? binder_ioctl+0x481/0x1417 [ 25.035654] ? mm_update_next_owner+0x930/0x930 [ 25.035658] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.035663] ? avc_ss_reset+0x110/0x110 [ 25.035666] ? mutex_unlock+0xd/0x10 [ 25.035669] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 25.035679] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.035682] ? up_read+0x1a/0x40 [ 25.035686] ? rcu_note_context_switch+0x710/0x710 [ 25.035689] ? __fd_install+0x288/0x740 [ 25.035694] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.035697] ? do_vfs_ioctl+0x486/0x1520 [ 25.035700] ? _cond_resched+0x14/0x30 [ 25.035704] ? ioctl_preallocate+0x2b0/0x2b0 [ 25.035709] ? selinux_capable+0x40/0x40 [ 25.035713] ? __alloc_fd+0x750/0x750 [ 25.035717] do_group_exit+0x149/0x400 [ 25.035721] ? SyS_exit+0x30/0x30 [ 25.035725] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.035729] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.035733] SyS_exit_group+0x1d/0x20 [ 25.035737] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.035740] RIP: 0033:0x4429f8 [ 25.035741] RSP: 002b:00007ffd8bd40b28 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 25.035745] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 25.035747] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 25.035749] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 25.035751] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 25.035752] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 25.056098] Dumping ftrace buffer: [ 25.056101] (ftrace buffer empty) [ 25.056103] Kernel Offset: disabled [ 26.179643] Rebooting in 86400 seconds..