[....] Starting enhanced syslogd: rsyslogd[ 10.901849] audit: type=1400 audit(1514403828.751:5): avc: denied { syslog } for pid=2996 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: [ 16.392898] audit: type=1400 audit(1514403834.242:6): avc: denied { map } for pid=3135 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.55' (ECDSA) to the list of known hosts. executing program [ 22.582309] audit: type=1400 audit(1514403840.432:7): avc: denied { map } for pid=3149 comm="syzkaller801384" path="/root/syzkaller801384724" 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 [ 22.587947] ================================================================== [ 22.587962] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 22.587973] Read of size 8 at addr ffff8801c9878af0 by task syzkaller801384/3149 [ 22.587974] [ 22.587981] CPU: 1 PID: 3149 Comm: syzkaller801384 Not tainted 4.15.0-rc5+ #238 [ 22.587984] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.587986] Call Trace: [ 22.587995] dump_stack+0x194/0x257 [ 22.588006] ? arch_local_irq_restore+0x53/0x53 [ 22.588014] ? show_regs_print_info+0x18/0x18 [ 22.588019] ? print_irqtrace_events+0x270/0x270 [ 22.588026] ? __lock_acquire+0x664/0x3e00 [ 22.588032] ? __lock_acquire+0x3d4d/0x3e00 [ 22.588041] print_address_description+0x73/0x250 [ 22.588047] ? __lock_acquire+0x3d4d/0x3e00 [ 22.588053] kasan_report+0x25b/0x340 [ 22.588061] __asan_report_load8_noabort+0x14/0x20 [ 22.588066] __lock_acquire+0x3d4d/0x3e00 [ 22.588072] ? __lock_acquire+0x664/0x3e00 [ 22.588077] ? lock_downgrade+0x980/0x980 [ 22.588083] ? lock_downgrade+0x980/0x980 [ 22.588091] ? remove_wait_queue+0x81/0x350 [ 22.588100] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.588106] ? __lock_acquire+0x664/0x3e00 [ 22.588111] ? check_noncircular+0x20/0x20 [ 22.588124] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.588131] ? lock_acquire+0x1d5/0x580 [ 22.588137] ? lock_acquire+0x1d5/0x580 [ 22.588143] ? ep_free+0xf4/0x320 [ 22.588151] ? lock_release+0xa40/0xa40 [ 22.588158] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.588164] ? print_irqtrace_events+0x270/0x270 [ 22.588172] ? rcu_note_context_switch+0x710/0x710 [ 22.588179] ? __might_sleep+0x95/0x190 [ 22.588185] ? ep_free+0xf4/0x320 [ 22.588191] ? __mutex_lock+0x16f/0x1a80 [ 22.588195] ? ep_free+0xf4/0x320 [ 22.588202] ? print_irqtrace_events+0x270/0x270 [ 22.588207] ? ep_free+0xf4/0x320 [ 22.588215] lock_acquire+0x1d5/0x580 [ 22.588220] ? lock_acquire+0x1d5/0x580 [ 22.588226] ? remove_wait_queue+0x81/0x350 [ 22.588232] ? __lock_acquire+0x664/0x3e00 [ 22.588239] ? lock_release+0xa40/0xa40 [ 22.588248] ? lock_acquire+0x1d5/0x580 [ 22.588254] ? lock_acquire+0x1d5/0x580 [ 22.588259] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 22.588267] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.588272] ? remove_wait_queue+0x81/0x350 [ 22.588279] remove_wait_queue+0x81/0x350 [ 22.588286] ? add_wait_queue+0x290/0x290 [ 22.588292] ? rcutorture_record_progress+0x10/0x10 [ 22.588302] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 22.588310] ? __kernel_text_address+0xd/0x40 [ 22.588317] ? clear_tfile_check_list+0x370/0x370 [ 22.588325] ? check_noncircular+0x20/0x20 [ 22.588333] ? locks_remove_file+0x3fa/0x5a0 [ 22.588342] ep_free+0x13f/0x320 [ 22.588348] ? ep_remove+0x800/0x800 [ 22.588354] ? fsnotify_first_mark+0x2b0/0x2b0 [ 22.588362] ? ep_free+0x320/0x320 [ 22.588367] ep_eventpoll_release+0x44/0x60 [ 22.588373] __fput+0x327/0x7e0 [ 22.588381] ? fput+0x140/0x140 [ 22.588388] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.588396] ____fput+0x15/0x20 [ 22.588402] task_work_run+0x199/0x270 [ 22.588410] ? task_work_cancel+0x210/0x210 [ 22.588416] ? _raw_spin_unlock+0x22/0x30 [ 22.588422] ? switch_task_namespaces+0x87/0xc0 [ 22.588430] do_exit+0x9bb/0x1ad0 [ 22.588440] ? binder_ioctl+0x4a1/0x1417 [ 22.588446] ? mm_update_next_owner+0x930/0x930 [ 22.588453] ? binder_ioctl_write_read.isra.41+0xcb0/0xcb0 [ 22.588464] ? avc_ss_reset+0x110/0x110 [ 22.588469] ? mutex_unlock+0xd/0x10 [ 22.588474] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 22.588493] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.588498] ? up_read+0x1a/0x40 [ 22.588505] ? rcu_note_context_switch+0x710/0x710 [ 22.588512] ? __fd_install+0x288/0x740 [ 22.588521] ? binder_ioctl_write_read.isra.41+0xcb0/0xcb0 [ 22.588527] ? do_vfs_ioctl+0x486/0x1520 [ 22.588533] ? _cond_resched+0x14/0x30 [ 22.588542] ? ioctl_preallocate+0x2b0/0x2b0 [ 22.588549] ? selinux_capable+0x40/0x40 [ 22.588556] ? __alloc_fd+0x750/0x750 [ 22.588564] do_group_exit+0x149/0x400 [ 22.588571] ? SyS_exit+0x30/0x30 [ 22.588578] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 22.588586] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 22.588593] SyS_exit_group+0x1d/0x20 [ 22.588600] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.588605] RIP: 0033:0x4429f8 [ 22.588608] RSP: 002b:00007fff41b4dc98 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 22.588614] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 22.588618] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 22.588621] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 22.588625] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 22.588628] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 22.588636] [ 22.588639] Allocated by task 3149: [ 22.588645] save_stack+0x43/0xd0 [ 22.588649] kasan_kmalloc+0xad/0xe0 [ 22.588657] kmem_cache_alloc_trace+0x136/0x750 [ 22.588662] binder_get_thread+0x1cf/0x870 [ 22.588667] binder_poll+0x8c/0x390 [ 22.588671] ep_item_poll.isra.10+0xec/0x320 [ 22.588675] ep_insert+0x6a3/0x1b10 [ 22.588680] SyS_epoll_ctl+0x12e4/0x1ab0 [ 22.588685] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.588686] [ 22.588688] Freed by task 3149: [ 22.588692] save_stack+0x43/0xd0 [ 22.588697] kasan_slab_free+0x71/0xc0 [ 22.588700] kfree+0xd6/0x260 [ 22.588705] binder_thread_dec_tmpref+0x27f/0x310 [ 22.588710] binder_thread_release+0x27d/0x540 [ 22.588715] binder_ioctl+0xc02/0x1417 [ 22.588720] do_vfs_ioctl+0x1b1/0x1520 [ 22.588725] SyS_ioctl+0x8f/0xc0 [ 22.588730] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.588731] [ 22.588735] The buggy address belongs to the object at ffff8801c9878a40 [ 22.588735] which belongs to the cache kmalloc-512 of size 512 [ 22.588740] The buggy address is located 176 bytes inside of [ 22.588740] 512-byte region [ffff8801c9878a40, ffff8801c9878c40) [ 22.588741] The buggy address belongs to the page: [ 22.588747] page:0000000098877e39 count:1 mapcount:0 mapping:00000000bedaceb1 index:0x0 [ 22.588752] flags: 0x2fffc0000000100(slab) [ 22.588760] raw: 02fffc0000000100 ffff8801c9878040 0000000000000000 0000000100000006 [ 22.588767] raw: ffffea00072506e0 ffffea000726a9e0 ffff8801db000940 0000000000000000 [ 22.588769] page dumped because: kasan: bad access detected [ 22.588770] [ 22.588772] Memory state around the buggy address: [ 22.588776] ffff8801c9878980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.588781] ffff8801c9878a00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 22.588785] >ffff8801c9878a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.588787] ^ [ 22.588791] ffff8801c9878b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.588796] ffff8801c9878b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.588797] ================================================================== [ 22.588799] Disabling lock debugging due to kernel taint [ 22.588803] Kernel panic - not syncing: panic_on_warn set ... [ 22.588803] [ 22.588809] CPU: 1 PID: 3149 Comm: syzkaller801384 Tainted: G B 4.15.0-rc5+ #238 [ 22.588812] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.588813] Call Trace: [ 22.588819] dump_stack+0x194/0x257 [ 22.588826] ? arch_local_irq_restore+0x53/0x53 [ 22.588831] ? kasan_end_report+0x32/0x50 [ 22.588837] ? lock_downgrade+0x980/0x980 [ 22.588843] ? vsnprintf+0x1ed/0x1900 [ 22.588849] ? __lock_acquire+0x3cd0/0x3e00 [ 22.588854] panic+0x1e4/0x41c [ 22.588860] ? refcount_error_report+0x214/0x214 [ 22.588867] ? add_taint+0x40/0x50 [ 22.588872] ? add_taint+0x1c/0x50 [ 22.588879] ? __lock_acquire+0x3d4d/0x3e00 [ 22.588884] kasan_end_report+0x50/0x50 [ 22.588890] kasan_report+0x144/0x340 [ 22.588897] __asan_report_load8_noabort+0x14/0x20 [ 22.588903] __lock_acquire+0x3d4d/0x3e00 [ 22.588908] ? __lock_acquire+0x664/0x3e00 [ 22.588914] ? lock_downgrade+0x980/0x980 [ 22.588919] ? lock_downgrade+0x980/0x980 [ 22.588926] ? remove_wait_queue+0x81/0x350 [ 22.588935] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.588941] ? __lock_acquire+0x664/0x3e00 [ 22.588946] ? check_noncircular+0x20/0x20 [ 22.588958] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.588968] ? lock_acquire+0x1d5/0x580 [ 22.588974] ? lock_acquire+0x1d5/0x580 [ 22.588979] ? ep_free+0xf4/0x320 [ 22.588987] ? lock_release+0xa40/0xa40 [ 22.588993] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.588999] ? print_irqtrace_events+0x270/0x270 [ 22.589005] ? rcu_note_context_switch+0x710/0x710 [ 22.589012] ? __might_sleep+0x95/0x190 [ 22.589017] ? ep_free+0xf4/0x320 [ 22.589022] ? __mutex_lock+0x16f/0x1a80 [ 22.589026] ? ep_free+0xf4/0x320 [ 22.589033] ? print_irqtrace_events+0x270/0x270 [ 22.589038] ? ep_free+0xf4/0x320 [ 22.589046] lock_acquire+0x1d5/0x580 [ 22.589051] ? lock_acquire+0x1d5/0x580 [ 22.589056] ? remove_wait_queue+0x81/0x350 [ 22.589062] ? __lock_acquire+0x664/0x3e00 [ 22.589069] ? lock_release+0xa40/0xa40 [ 22.589078] ? lock_acquire+0x1d5/0x580 [ 22.589083] ? lock_acquire+0x1d5/0x580 [ 22.589089] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 22.589096] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.589101] ? remove_wait_queue+0x81/0x350 [ 22.589108] remove_wait_queue+0x81/0x350 [ 22.589115] ? add_wait_queue+0x290/0x290 [ 22.589121] ? rcutorture_record_progress+0x10/0x10 [ 22.589130] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 22.589136] ? __kernel_text_address+0xd/0x40 [ 22.589144] ? clear_tfile_check_list+0x370/0x370 [ 22.589151] ? check_noncircular+0x20/0x20 [ 22.589158] ? locks_remove_file+0x3fa/0x5a0 [ 22.589167] ep_free+0x13f/0x320 [ 22.589172] ? ep_remove+0x800/0x800 [ 22.589179] ? fsnotify_first_mark+0x2b0/0x2b0 [ 22.589186] ? ep_free+0x320/0x320 [ 22.589191] ep_eventpoll_release+0x44/0x60 [ 22.589197] __fput+0x327/0x7e0 [ 22.589204] ? fput+0x140/0x140 [ 22.589211] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.589218] ____fput+0x15/0x20 [ 22.589224] task_work_run+0x199/0x270 [ 22.589232] ? task_work_cancel+0x210/0x210 [ 22.589238] ? _raw_spin_unlock+0x22/0x30 [ 22.589243] ? switch_task_namespaces+0x87/0xc0 [ 22.589250] do_exit+0x9bb/0x1ad0 [ 22.589258] ? binder_ioctl+0x4a1/0x1417 [ 22.589264] ? mm_update_next_owner+0x930/0x930 [ 22.589271] ? binder_ioctl_write_read.isra.41+0xcb0/0xcb0 [ 22.589280] ? avc_ss_reset+0x110/0x110 [ 22.589285] ? mutex_unlock+0xd/0x10 [ 22.589290] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 22.589308] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.589313] ? up_read+0x1a/0x40 [ 22.589319] ? rcu_note_context_switch+0x710/0x710 [ 22.589325] ? __fd_install+0x288/0x740 [ 22.589334] ? binder_ioctl_write_read.isra.41+0xcb0/0xcb0 [ 22.589340] ? do_vfs_ioctl+0x486/0x1520 [ 22.589345] ? _cond_resched+0x14/0x30 [ 22.589353] ? ioctl_preallocate+0x2b0/0x2b0 [ 22.589360] ? selinux_capable+0x40/0x40 [ 22.589367] ? __alloc_fd+0x750/0x750 [ 22.589375] do_group_exit+0x149/0x400 [ 22.589381] ? SyS_exit+0x30/0x30 [ 22.589387] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 22.589394] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 22.589401] SyS_exit_group+0x1d/0x20 [ 22.589407] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.589411] RIP: 0033:0x4429f8 [ 22.589414] RSP: 002b:00007fff41b4dc98 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 22.589419] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 22.589423] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 22.589426] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 22.589430] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 22.589433] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 22.608640] Dumping ftrace buffer: [ 22.608644] (ftrace buffer empty) [ 22.608647] Kernel Offset: disabled [ 23.734312] Rebooting in 86400 seconds..