[....] Starting enhanced syslogd: rsyslogd[ 13.100890] audit: type=1400 audit(1517190510.548:5): avc: denied { syslog } for pid=3536 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: [ 18.990296] audit: type=1400 audit(1517190516.438:6): avc: denied { map } for pid=3677 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.38' (ECDSA) to the list of known hosts. executing program [ 25.288175] audit: type=1400 audit(1517190522.735:7): avc: denied { map } for pid=3691 comm="syzkaller375381" path="/root/syzkaller375381687" 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.293048] ================================================================== [ 25.293059] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 25.293063] Read of size 8 at addr ffff8801d9abf330 by task syzkaller375381/3691 [ 25.293064] [ 25.293069] CPU: 0 PID: 3691 Comm: syzkaller375381 Not tainted 4.15.0-rc9+ #284 [ 25.293071] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.293073] Call Trace: [ 25.293080] dump_stack+0x194/0x257 [ 25.293085] ? arch_local_irq_restore+0x53/0x53 [ 25.293090] ? show_regs_print_info+0x18/0x18 [ 25.293093] ? print_irqtrace_events+0x270/0x270 [ 25.293097] ? __lock_acquire+0x664/0x3e00 [ 25.293101] ? __lock_acquire+0x3d4d/0x3e00 [ 25.293108] print_address_description+0x73/0x250 [ 25.293111] ? __lock_acquire+0x3d4d/0x3e00 [ 25.293115] kasan_report+0x25b/0x340 [ 25.293120] __asan_report_load8_noabort+0x14/0x20 [ 25.293123] __lock_acquire+0x3d4d/0x3e00 [ 25.293127] ? __lock_acquire+0x664/0x3e00 [ 25.293130] ? lock_downgrade+0x980/0x980 [ 25.293133] ? lock_downgrade+0x980/0x980 [ 25.293140] ? remove_wait_queue+0x81/0x350 [ 25.293145] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.293149] ? __lock_acquire+0x664/0x3e00 [ 25.293153] ? check_noncircular+0x20/0x20 [ 25.293160] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.293165] ? lock_acquire+0x1d5/0x580 [ 25.293168] ? lock_acquire+0x1d5/0x580 [ 25.293173] ? ep_free+0xf4/0x320 [ 25.293178] ? lock_release+0xa40/0xa40 [ 25.293182] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.293186] ? print_irqtrace_events+0x270/0x270 [ 25.293192] ? rcu_note_context_switch+0x710/0x710 [ 25.293197] ? __might_sleep+0x95/0x190 [ 25.293200] ? ep_free+0xf4/0x320 [ 25.293205] ? __mutex_lock+0x16f/0x1a80 [ 25.293208] ? ep_free+0xf4/0x320 [ 25.293212] ? print_irqtrace_events+0x270/0x270 [ 25.293215] ? ep_free+0xf4/0x320 [ 25.293220] lock_acquire+0x1d5/0x580 [ 25.293223] ? lock_acquire+0x1d5/0x580 [ 25.293227] ? remove_wait_queue+0x81/0x350 [ 25.293230] ? __lock_acquire+0x664/0x3e00 [ 25.293235] ? lock_release+0xa40/0xa40 [ 25.293240] ? lock_acquire+0x1d5/0x580 [ 25.293243] ? lock_acquire+0x1d5/0x580 [ 25.293247] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.293252] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.293255] ? remove_wait_queue+0x81/0x350 [ 25.293259] remove_wait_queue+0x81/0x350 [ 25.293264] ? add_wait_queue+0x290/0x290 [ 25.293267] ? rcutorture_record_progress+0x10/0x10 [ 25.293273] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.293279] ? __kernel_text_address+0xd/0x40 [ 25.293284] ? clear_tfile_check_list+0x370/0x370 [ 25.293289] ? check_noncircular+0x20/0x20 [ 25.293295] ? locks_remove_file+0x3fa/0x5a0 [ 25.293301] ep_free+0x13f/0x320 [ 25.293305] ? ep_remove+0x800/0x800 [ 25.293308] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.293313] ? ep_free+0x320/0x320 [ 25.293317] ep_eventpoll_release+0x44/0x60 [ 25.293323] __fput+0x327/0x7e0 [ 25.293328] ? fput+0x140/0x140 [ 25.293332] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.293337] ____fput+0x15/0x20 [ 25.293341] task_work_run+0x199/0x270 [ 25.293346] ? task_work_cancel+0x210/0x210 [ 25.293350] ? _raw_spin_unlock+0x22/0x30 [ 25.293360] ? switch_task_namespaces+0x87/0xc0 [ 25.293366] do_exit+0x9bb/0x1ad0 [ 25.293372] ? binder_ioctl+0x4c1/0x1417 [ 25.293376] ? mm_update_next_owner+0x930/0x930 [ 25.293380] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.293388] ? avc_ss_reset+0x110/0x110 [ 25.293391] ? mutex_unlock+0xd/0x10 [ 25.293395] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 25.293407] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.293410] ? up_read+0x1a/0x40 [ 25.293414] ? rcu_note_context_switch+0x710/0x710 [ 25.293418] ? __fd_install+0x288/0x740 [ 25.293423] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.293427] ? do_vfs_ioctl+0x486/0x1520 [ 25.293429] ? _cond_resched+0x14/0x30 [ 25.293435] ? ioctl_preallocate+0x2b0/0x2b0 [ 25.293443] ? selinux_capable+0x40/0x40 [ 25.293447] ? __alloc_fd+0x750/0x750 [ 25.293452] do_group_exit+0x149/0x400 [ 25.293456] ? SyS_exit+0x30/0x30 [ 25.293460] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.293466] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.293471] SyS_exit_group+0x1d/0x20 [ 25.293475] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.293478] RIP: 0033:0x4429f8 [ 25.293480] RSP: 002b:00007ffc3f6c33f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 25.293484] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 25.293486] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 25.293489] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 25.293491] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 25.293493] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 25.293498] [ 25.293500] Allocated by task 3691: [ 25.293504] save_stack+0x43/0xd0 [ 25.293507] kasan_kmalloc+0xad/0xe0 [ 25.293510] kmem_cache_alloc_trace+0x136/0x750 [ 25.293513] binder_get_thread+0x1cf/0x870 [ 25.293515] binder_poll+0x8c/0x390 [ 25.293518] ep_item_poll.isra.10+0xec/0x320 [ 25.293521] ep_insert+0x6a3/0x1b10 [ 25.293524] SyS_epoll_ctl+0x12e4/0x1ab0 [ 25.293527] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.293528] [ 25.293529] Freed by task 3691: [ 25.293532] save_stack+0x43/0xd0 [ 25.293535] kasan_slab_free+0x71/0xc0 [ 25.293537] kfree+0xd6/0x260 [ 25.293542] binder_thread_dec_tmpref+0x27f/0x310 [ 25.293545] binder_thread_release+0x27d/0x540 [ 25.293548] binder_ioctl+0xc02/0x1417 [ 25.293550] do_vfs_ioctl+0x1b1/0x1520 [ 25.293553] SyS_ioctl+0x8f/0xc0 [ 25.293556] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.293557] [ 25.293560] The buggy address belongs to the object at ffff8801d9abf280 [ 25.293560] which belongs to the cache kmalloc-512 of size 512 [ 25.293563] The buggy address is located 176 bytes inside of [ 25.293563] 512-byte region [ffff8801d9abf280, ffff8801d9abf480) [ 25.293564] The buggy address belongs to the page: [ 25.293567] page:ffffea000766afc0 count:1 mapcount:0 mapping:ffff8801d9abf000 index:0x0 [ 25.293571] flags: 0x2fffc0000000100(slab) [ 25.293576] raw: 02fffc0000000100 ffff8801d9abf000 0000000000000000 0000000100000006 [ 25.293580] raw: ffffea0006ef7aa0 ffff8801dac01748 ffff8801dac00940 0000000000000000 [ 25.293582] page dumped because: kasan: bad access detected [ 25.293582] [ 25.293583] Memory state around the buggy address: [ 25.293586] ffff8801d9abf200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.293589] ffff8801d9abf280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.293591] >ffff8801d9abf300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.293593] ^ [ 25.293595] ffff8801d9abf380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.293598] ffff8801d9abf400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.293599] ================================================================== [ 25.293600] Disabling lock debugging due to kernel taint [ 25.293602] Kernel panic - not syncing: panic_on_warn set ... [ 25.293602] [ 25.293605] CPU: 0 PID: 3691 Comm: syzkaller375381 Tainted: G B 4.15.0-rc9+ #284 [ 25.293607] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.293608] Call Trace: [ 25.293612] dump_stack+0x194/0x257 [ 25.293616] ? arch_local_irq_restore+0x53/0x53 [ 25.293620] ? kasan_end_report+0x32/0x50 [ 25.293623] ? lock_downgrade+0x980/0x980 [ 25.293628] ? vsnprintf+0x1ed/0x1900 [ 25.293631] ? __lock_acquire+0x3cd0/0x3e00 [ 25.293635] panic+0x1e4/0x41c [ 25.293639] ? refcount_error_report+0x214/0x214 [ 25.293643] ? add_taint+0x40/0x50 [ 25.293646] ? add_taint+0x1c/0x50 [ 25.293650] ? __lock_acquire+0x3d4d/0x3e00 [ 25.293653] kasan_end_report+0x50/0x50 [ 25.293658] kasan_report+0x144/0x340 [ 25.293663] __asan_report_load8_noabort+0x14/0x20 [ 25.293667] __lock_acquire+0x3d4d/0x3e00 [ 25.293670] ? __lock_acquire+0x664/0x3e00 [ 25.293673] ? lock_downgrade+0x980/0x980 [ 25.293676] ? lock_downgrade+0x980/0x980 [ 25.293681] ? remove_wait_queue+0x81/0x350 [ 25.293686] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.293689] ? __lock_acquire+0x664/0x3e00 [ 25.293693] ? check_noncircular+0x20/0x20 [ 25.293699] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.293703] ? lock_acquire+0x1d5/0x580 [ 25.293707] ? lock_acquire+0x1d5/0x580 [ 25.293710] ? ep_free+0xf4/0x320 [ 25.293714] ? lock_release+0xa40/0xa40 [ 25.293718] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.293721] ? print_irqtrace_events+0x270/0x270 [ 25.293725] ? rcu_note_context_switch+0x710/0x710 [ 25.293729] ? __might_sleep+0x95/0x190 [ 25.293733] ? ep_free+0xf4/0x320 [ 25.293736] ? __mutex_lock+0x16f/0x1a80 [ 25.293739] ? ep_free+0xf4/0x320 [ 25.293743] ? print_irqtrace_events+0x270/0x270 [ 25.293746] ? ep_free+0xf4/0x320 [ 25.293751] lock_acquire+0x1d5/0x580 [ 25.293754] ? lock_acquire+0x1d5/0x580 [ 25.293757] ? remove_wait_queue+0x81/0x350 [ 25.293761] ? __lock_acquire+0x664/0x3e00 [ 25.293765] ? lock_release+0xa40/0xa40 [ 25.293770] ? lock_acquire+0x1d5/0x580 [ 25.293773] ? lock_acquire+0x1d5/0x580 [ 25.293777] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.293781] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.293784] ? remove_wait_queue+0x81/0x350 [ 25.293788] remove_wait_queue+0x81/0x350 [ 25.293793] ? add_wait_queue+0x290/0x290 [ 25.293796] ? rcutorture_record_progress+0x10/0x10 [ 25.293802] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.293806] ? __kernel_text_address+0xd/0x40 [ 25.293810] ? clear_tfile_check_list+0x370/0x370 [ 25.293815] ? check_noncircular+0x20/0x20 [ 25.293819] ? locks_remove_file+0x3fa/0x5a0 [ 25.293824] ep_free+0x13f/0x320 [ 25.293828] ? ep_remove+0x800/0x800 [ 25.293831] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.293836] ? ep_free+0x320/0x320 [ 25.293839] ep_eventpoll_release+0x44/0x60 [ 25.293843] __fput+0x327/0x7e0 [ 25.293847] ? fput+0x140/0x140 [ 25.293851] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.293856] ____fput+0x15/0x20 [ 25.293860] task_work_run+0x199/0x270 [ 25.293864] ? task_work_cancel+0x210/0x210 [ 25.293868] ? _raw_spin_unlock+0x22/0x30 [ 25.293872] ? switch_task_namespaces+0x87/0xc0 [ 25.293876] do_exit+0x9bb/0x1ad0 [ 25.293880] ? binder_ioctl+0x4c1/0x1417 [ 25.293883] ? mm_update_next_owner+0x930/0x930 [ 25.293888] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.293892] ? avc_ss_reset+0x110/0x110 [ 25.293895] ? mutex_unlock+0xd/0x10 [ 25.293899] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 25.293909] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.293912] ? up_read+0x1a/0x40 [ 25.293915] ? rcu_note_context_switch+0x710/0x710 [ 25.293918] ? __fd_install+0x288/0x740 [ 25.293923] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.293926] ? do_vfs_ioctl+0x486/0x1520 [ 25.293929] ? _cond_resched+0x14/0x30 [ 25.293933] ? ioctl_preallocate+0x2b0/0x2b0 [ 25.293937] ? selinux_capable+0x40/0x40 [ 25.293941] ? __alloc_fd+0x750/0x750 [ 25.293946] do_group_exit+0x149/0x400 [ 25.293949] ? SyS_exit+0x30/0x30 [ 25.293953] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.293957] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.293961] SyS_exit_group+0x1d/0x20 [ 25.293965] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.293967] RIP: 0033:0x4429f8 [ 25.293969] RSP: 002b:00007ffc3f6c33f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 25.293973] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 25.293975] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 25.293977] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 25.293978] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 25.293980] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 25.314422] Dumping ftrace buffer: [ 25.314425] (ftrace buffer empty) [ 25.314427] Kernel Offset: disabled [ 26.439127] Rebooting in 86400 seconds..