[....] Starting enhanced syslogd: rsyslogd[ 10.929851] audit: type=1400 audit(1514568589.359:5): avc: denied { syslog } for pid=2998 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: [ 15.721429] audit: type=1400 audit(1514568594.151:6): avc: denied { map } for pid=3139 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.25' (ECDSA) to the list of known hosts. executing program [ 21.955436] audit: type=1400 audit(1514568600.385:7): avc: denied { map } for pid=3153 comm="syzkaller320140" path="/root/syzkaller320140232" 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 [ 21.960044] ================================================================== [ 21.960058] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 21.960063] Read of size 8 at addr ffff8801ca114378 by task syzkaller320140/3153 [ 21.960065] [ 21.960072] CPU: 0 PID: 3153 Comm: syzkaller320140 Not tainted 4.15.0-rc4-mm1+ #49 [ 21.960075] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 21.960077] Call Trace: [ 21.960086] dump_stack+0x194/0x257 [ 21.960094] ? arch_local_irq_restore+0x53/0x53 [ 21.960102] ? show_regs_print_info+0x18/0x18 [ 21.960107] ? print_irqtrace_events+0x270/0x270 [ 21.960114] ? __lock_acquire+0x664/0x3e00 [ 21.960120] ? __lock_acquire+0x3d4d/0x3e00 [ 21.960130] print_address_description+0x73/0x250 [ 21.960136] ? __lock_acquire+0x3d4d/0x3e00 [ 21.960142] kasan_report+0x23b/0x360 [ 21.960150] __asan_report_load8_noabort+0x14/0x20 [ 21.960155] __lock_acquire+0x3d4d/0x3e00 [ 21.960161] ? __lock_acquire+0x664/0x3e00 [ 21.960167] ? lock_downgrade+0x980/0x980 [ 21.960172] ? lock_downgrade+0x980/0x980 [ 21.960181] ? remove_wait_queue+0x81/0x350 [ 21.960190] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.960196] ? __lock_acquire+0x664/0x3e00 [ 21.960202] ? check_noncircular+0x20/0x20 [ 21.960214] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.960221] ? lock_acquire+0x1d5/0x580 [ 21.960226] ? lock_acquire+0x1d5/0x580 [ 21.960233] ? ep_free+0xf4/0x320 [ 21.960241] ? lock_release+0xa40/0xa40 [ 21.960248] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 21.960254] ? print_irqtrace_events+0x270/0x270 [ 21.960262] ? rcu_note_context_switch+0x710/0x710 [ 21.960269] ? __might_sleep+0x95/0x190 [ 21.960274] ? ep_free+0xf4/0x320 [ 21.960280] ? __mutex_lock+0x16f/0x1a80 [ 21.960285] ? ep_free+0xf4/0x320 [ 21.960292] ? print_irqtrace_events+0x270/0x270 [ 21.960297] ? ep_free+0xf4/0x320 [ 21.960305] lock_acquire+0x1d5/0x580 [ 21.960310] ? lock_acquire+0x1d5/0x580 [ 21.960316] ? remove_wait_queue+0x81/0x350 [ 21.960322] ? __lock_acquire+0x664/0x3e00 [ 21.960329] ? lock_release+0xa40/0xa40 [ 21.960339] ? lock_acquire+0x1d5/0x580 [ 21.960344] ? lock_acquire+0x1d5/0x580 [ 21.960350] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 21.960357] _raw_spin_lock_irqsave+0x96/0xc0 [ 21.960363] ? remove_wait_queue+0x81/0x350 [ 21.960369] remove_wait_queue+0x81/0x350 [ 21.960377] ? add_wait_queue+0x290/0x290 [ 21.960383] ? rcutorture_record_progress+0x10/0x10 [ 21.960393] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 21.960399] ? __kernel_text_address+0xd/0x40 [ 21.960407] ? clear_tfile_check_list+0x370/0x370 [ 21.960415] ? check_noncircular+0x20/0x20 [ 21.960424] ? locks_remove_file+0x3fa/0x5a0 [ 21.960433] ep_free+0x13f/0x320 [ 21.960439] ? ep_remove+0x800/0x800 [ 21.960444] ? fsnotify_first_mark+0x2b0/0x2b0 [ 21.960452] ? ep_free+0x320/0x320 [ 21.960457] ep_eventpoll_release+0x44/0x60 [ 21.960464] __fput+0x327/0x7e0 [ 21.960472] ? fput+0x140/0x140 [ 21.960479] ? _raw_spin_unlock_irq+0x27/0x70 [ 21.960487] ____fput+0x15/0x20 [ 21.960493] task_work_run+0x199/0x270 [ 21.960500] ? task_work_cancel+0x210/0x210 [ 21.960506] ? _raw_spin_unlock+0x22/0x30 [ 21.960512] ? switch_task_namespaces+0x87/0xc0 [ 21.960521] do_exit+0x9bb/0x1ad0 [ 21.960529] ? binder_ioctl+0x551/0x1417 [ 21.960536] ? mm_update_next_owner+0x930/0x930 [ 21.960543] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 21.960553] ? avc_ss_reset+0x110/0x110 [ 21.960559] ? mutex_unlock+0xd/0x10 [ 21.960565] ? SyS_epoll_ctl+0x30a/0x1a80 [ 21.960584] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 21.960589] ? up_read+0x1a/0x40 [ 21.960596] ? rcu_note_context_switch+0x710/0x710 [ 21.960601] ? __fd_install+0x288/0x740 [ 21.960610] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 21.960615] ? do_vfs_ioctl+0x486/0x1520 [ 21.960620] ? _cond_resched+0x14/0x30 [ 21.960628] ? ioctl_preallocate+0x2b0/0x2b0 [ 21.960635] ? selinux_capable+0x40/0x40 [ 21.960641] ? __alloc_fd+0x750/0x750 [ 21.960650] do_group_exit+0x149/0x400 [ 21.960656] ? SyS_exit+0x30/0x30 [ 21.960663] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 21.960671] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 21.960678] SyS_exit_group+0x1d/0x20 [ 21.960685] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 21.960689] RIP: 0033:0x4429f8 [ 21.960692] RSP: 002b:00007ffe8ae102a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 21.960698] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 21.960702] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 21.960705] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 21.960709] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 21.960712] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 21.960720] [ 21.960723] Allocated by task 3153: [ 21.960729] save_stack+0x43/0xd0 [ 21.960733] kasan_kmalloc+0xad/0xe0 [ 21.960738] kmem_cache_alloc_trace+0x136/0x750 [ 21.960743] binder_get_thread+0x1cf/0x870 [ 21.960747] binder_poll+0x8c/0x390 [ 21.960752] ep_item_poll.isra.10+0xf2/0x320 [ 21.960756] ep_insert+0x6a2/0x1ac0 [ 21.960761] SyS_epoll_ctl+0x12bf/0x1a80 [ 21.960766] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 21.960767] [ 21.960769] Freed by task 3153: [ 21.960773] save_stack+0x43/0xd0 [ 21.960778] kasan_slab_free+0x71/0xc0 [ 21.960782] kfree+0xd6/0x260 [ 21.960787] binder_thread_dec_tmpref+0x27f/0x310 [ 21.960791] binder_thread_release+0x27d/0x540 [ 21.960796] binder_ioctl+0xc02/0x1417 [ 21.960800] do_vfs_ioctl+0x1b1/0x1520 [ 21.960804] SyS_ioctl+0x8f/0xc0 [ 21.960809] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 21.960810] [ 21.960814] The buggy address belongs to the object at ffff8801ca1142c0 [ 21.960814] which belongs to the cache kmalloc-512 of size 512 [ 21.960818] The buggy address is located 184 bytes inside of [ 21.960818] 512-byte region [ffff8801ca1142c0, ffff8801ca1144c0) [ 21.960820] The buggy address belongs to the page: [ 21.960825] page:ffffea0007284500 count:1 mapcount:0 mapping:ffff8801ca114040 index:0x0 [ 21.960829] flags: 0x2fffc0000000100(slab) [ 21.960838] raw: 02fffc0000000100 ffff8801ca114040 0000000000000000 0000000100000006 [ 21.960844] raw: ffffea0007232760 ffffea0007235fa0 ffff8801dac00940 0000000000000000 [ 21.960847] page dumped because: kasan: bad access detected [ 21.960848] [ 21.960850] Memory state around the buggy address: [ 21.960854] ffff8801ca114200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.960858] ffff8801ca114280: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 21.960863] >ffff8801ca114300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.960865] ^ [ 21.960870] ffff8801ca114380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.960874] ffff8801ca114400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.960876] ================================================================== [ 21.960877] Disabling lock debugging due to kernel taint [ 21.960881] Kernel panic - not syncing: panic_on_warn set ... [ 21.960881] [ 21.960887] CPU: 0 PID: 3153 Comm: syzkaller320140 Tainted: G B 4.15.0-rc4-mm1+ #49 [ 21.960889] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 21.960891] Call Trace: [ 21.960896] dump_stack+0x194/0x257 [ 21.960903] ? arch_local_irq_restore+0x53/0x53 [ 21.960908] ? kasan_end_report+0x32/0x50 [ 21.960915] ? lock_downgrade+0x980/0x980 [ 21.960920] ? vsnprintf+0x1ed/0x1900 [ 21.960926] ? __lock_acquire+0x3c90/0x3e00 [ 21.960932] panic+0x1e4/0x41c [ 21.960937] ? refcount_error_report+0x214/0x214 [ 21.960945] ? add_taint+0x40/0x50 [ 21.960950] ? add_taint+0x1c/0x50 [ 21.960957] ? __lock_acquire+0x3d4d/0x3e00 [ 21.960963] kasan_end_report+0x50/0x50 [ 21.960968] kasan_report+0x148/0x360 [ 21.960976] __asan_report_load8_noabort+0x14/0x20 [ 21.960981] __lock_acquire+0x3d4d/0x3e00 [ 21.960991] ? __lock_acquire+0x664/0x3e00 [ 21.960997] ? lock_downgrade+0x980/0x980 [ 21.961005] ? lock_downgrade+0x980/0x980 [ 21.961012] ? remove_wait_queue+0x81/0x350 [ 21.961021] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.961027] ? __lock_acquire+0x664/0x3e00 [ 21.961032] ? check_noncircular+0x20/0x20 [ 21.961044] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 21.961051] ? lock_acquire+0x1d5/0x580 [ 21.961057] ? lock_acquire+0x1d5/0x580 [ 21.961062] ? ep_free+0xf4/0x320 [ 21.961070] ? lock_release+0xa40/0xa40 [ 21.961075] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 21.961081] ? print_irqtrace_events+0x270/0x270 [ 21.961088] ? rcu_note_context_switch+0x710/0x710 [ 21.961095] ? __might_sleep+0x95/0x190 [ 21.961100] ? ep_free+0xf4/0x320 [ 21.961105] ? __mutex_lock+0x16f/0x1a80 [ 21.961110] ? ep_free+0xf4/0x320 [ 21.961117] ? print_irqtrace_events+0x270/0x270 [ 21.961122] ? ep_free+0xf4/0x320 [ 21.961130] lock_acquire+0x1d5/0x580 [ 21.961135] ? lock_acquire+0x1d5/0x580 [ 21.961141] ? remove_wait_queue+0x81/0x350 [ 21.961147] ? __lock_acquire+0x664/0x3e00 [ 21.961154] ? lock_release+0xa40/0xa40 [ 21.961163] ? lock_acquire+0x1d5/0x580 [ 21.961168] ? lock_acquire+0x1d5/0x580 [ 21.961174] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 21.961181] _raw_spin_lock_irqsave+0x96/0xc0 [ 21.961186] ? remove_wait_queue+0x81/0x350 [ 21.961193] remove_wait_queue+0x81/0x350 [ 21.961200] ? add_wait_queue+0x290/0x290 [ 21.961206] ? rcutorture_record_progress+0x10/0x10 [ 21.961215] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 21.961222] ? __kernel_text_address+0xd/0x40 [ 21.961230] ? clear_tfile_check_list+0x370/0x370 [ 21.961237] ? check_noncircular+0x20/0x20 [ 21.961245] ? locks_remove_file+0x3fa/0x5a0 [ 21.961253] ep_free+0x13f/0x320 [ 21.961259] ? ep_remove+0x800/0x800 [ 21.961264] ? fsnotify_first_mark+0x2b0/0x2b0 [ 21.961272] ? ep_free+0x320/0x320 [ 21.961278] ep_eventpoll_release+0x44/0x60 [ 21.961283] __fput+0x327/0x7e0 [ 21.961291] ? fput+0x140/0x140 [ 21.961298] ? _raw_spin_unlock_irq+0x27/0x70 [ 21.961306] ____fput+0x15/0x20 [ 21.961312] task_work_run+0x199/0x270 [ 21.961319] ? task_work_cancel+0x210/0x210 [ 21.961325] ? _raw_spin_unlock+0x22/0x30 [ 21.961331] ? switch_task_namespaces+0x87/0xc0 [ 21.961338] do_exit+0x9bb/0x1ad0 [ 21.961345] ? binder_ioctl+0x551/0x1417 [ 21.961351] ? mm_update_next_owner+0x930/0x930 [ 21.961358] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 21.961366] ? avc_ss_reset+0x110/0x110 [ 21.961372] ? mutex_unlock+0xd/0x10 [ 21.961378] ? SyS_epoll_ctl+0x30a/0x1a80 [ 21.961396] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 21.961400] ? up_read+0x1a/0x40 [ 21.961407] ? rcu_note_context_switch+0x710/0x710 [ 21.961411] ? __fd_install+0x288/0x740 [ 21.961420] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 21.961425] ? do_vfs_ioctl+0x486/0x1520 [ 21.961430] ? _cond_resched+0x14/0x30 [ 21.961437] ? ioctl_preallocate+0x2b0/0x2b0 [ 21.961444] ? selinux_capable+0x40/0x40 [ 21.961450] ? __alloc_fd+0x750/0x750 [ 21.961458] do_group_exit+0x149/0x400 [ 21.961465] ? SyS_exit+0x30/0x30 [ 21.961471] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 21.961478] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 21.961485] SyS_exit_group+0x1d/0x20 [ 21.961491] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 21.961494] RIP: 0033:0x4429f8 [ 21.961497] RSP: 002b:00007ffe8ae102a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 21.961503] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 21.961506] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 21.961509] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 21.961512] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 21.961515] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 21.981786] Dumping ftrace buffer: [ 21.981791] (ftrace buffer empty) [ 21.981793] Kernel Offset: disabled [ 23.108550] Rebooting in 86400 seconds..