binder: 3883:3885 transaction failed 29189/-3, size 0-0 line 3128 binder: undelivered TRANSACTION_ERROR: 29189 binder: release 3883:3885 transaction 85 in, still active binder: send failed reply for transaction 85 to 3883:3885 ================================================================== BUG: KASAN: use-after-free in __list_del_entry+0x196/0x1d0 lib/list_debug.c:60 Read of size 8 at addr ffff8801cc6c2c10 by task kworker/u4:1/19 CPU: 0 PID: 19 Comm: kworker/u4:1 Not tainted 4.4.119-g855ea74 #28 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: binder binder_deferred_func 0000000000000000 8b74a5c01ac0db4e ffff8801d94a7a58 ffffffff81d0402d ffffea000731b080 ffff8801cc6c2c10 0000000000000000 ffff8801cc6c2c10 ffffed00398d6d99 ffff8801d94a7a90 ffffffff814fe103 ffff8801cc6c2c10 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x124 lib/dump_stack.c:51 [] print_address_description+0x73/0x260 mm/kasan/report.c:252 [] kasan_report_error mm/kasan/report.c:351 [inline] [] kasan_report+0x285/0x370 mm/kasan/report.c:408 [] __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:429 [] __list_del_entry+0x196/0x1d0 lib/list_debug.c:60 [] list_del_init include/linux/list.h:145 [inline] [] binder_dequeue_work_head_ilocked drivers/android/binder.c:914 [inline] [] binder_dequeue_work_head drivers/android/binder.c:934 [inline] [] binder_release_work+0x6e/0x260 drivers/android/binder.c:4356 [] binder_thread_release+0x425/0x600 drivers/android/binder.c:4564 [] binder_deferred_release drivers/android/binder.c:5105 [inline] [] binder_deferred_func+0x438/0xd10 drivers/android/binder.c:5177 [] process_one_work+0x7d7/0x16e0 kernel/workqueue.c:2064 [] worker_thread+0xd9/0xfc0 kernel/workqueue.c:2196 [] kthread+0x268/0x300 kernel/kthread.c:211 [] ret_from_fork+0x55/0x80 arch/x86/entry/entry_64.S:506 Allocated by task 3885: [] save_stack_trace+0x26/0x50 arch/x86/kernel/stacktrace.c:63 [] save_stack+0x43/0xd0 mm/kasan/kasan.c:512 [] set_track mm/kasan/kasan.c:524 [inline] [] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:616 [] kmem_cache_alloc_trace+0x100/0x2b0 mm/slub.c:2642 [] kmalloc include/linux/slab.h:476 [inline] [] kzalloc include/linux/slab.h:620 [inline] [] binder_transaction+0x103c/0x7290 drivers/android/binder.c:3057 [] binder_thread_write+0x81f/0x33e0 drivers/android/binder.c:3680 [] binder_ioctl_write_read.isra.55+0x1cf/0xbc0 drivers/android/binder.c:4619 [] binder_ioctl+0xc50/0x12e0 drivers/android/binder.c:4758 [] C_SYSC_ioctl fs/compat_ioctl.c:1592 [inline] [] compat_SyS_ioctl+0x28a/0x2540 fs/compat_ioctl.c:1544 [] do_syscall_32_irqs_on arch/x86/entry/common.c:392 [inline] [] do_fast_syscall_32+0x321/0x8a0 arch/x86/entry/common.c:459 [] sysenter_flags_fixed+0xd/0x17 Freed by task 19: [] save_stack_trace+0x26/0x50 arch/x86/kernel/stacktrace.c:63 [] save_stack+0x43/0xd0 mm/kasan/kasan.c:512 [] set_track mm/kasan/kasan.c:524 [inline] [] kasan_slab_free+0x72/0xc0 mm/kasan/kasan.c:589 [] slab_free_hook mm/slub.c:1383 [inline] [] slab_free_freelist_hook mm/slub.c:1405 [inline] [] slab_free mm/slub.c:2859 [inline] [] kfree+0xfc/0x300 mm/slub.c:3749 [] binder_free_transaction+0x6a/0x90 drivers/android/binder.c:2123 [] binder_send_failed_reply+0x185/0x3a0 drivers/android/binder.c:2156 [] binder_thread_release+0x413/0x600 drivers/android/binder.c:4563 [] binder_deferred_release drivers/android/binder.c:5105 [inline] [] binder_deferred_func+0x438/0xd10 drivers/android/binder.c:5177 [] process_one_work+0x7d7/0x16e0 kernel/workqueue.c:2064 [] worker_thread+0xd9/0xfc0 kernel/workqueue.c:2196 [] kthread+0x268/0x300 kernel/kthread.c:211 [] ret_from_fork+0x55/0x80 arch/x86/entry/entry_64.S:506 The buggy address belongs to the object at ffff8801cc6c2c00 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 16 bytes inside of 192-byte region [ffff8801cc6c2c00, ffff8801cc6c2cc0) The buggy address belongs to the page: kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 1 PID: 3890 Comm: syz-executor5 Not tainted 4.4.119-g855ea74 #28 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8800bb370000 task.stack: ffff8801c6d28000 RIP: 0010:[] [] lookup_object lib/debugobjects.c:120 [inline] RIP: 0010:[] [] debug_object_deactivate+0x1a6/0x3c0 lib/debugobjects.c:465 RSP: 0018:ffff8801db307d20 EFLAGS: 00010803 RAX: 0000000000000092 RBX: e90006ddb8e80b0f RCX: ffff8801db319c40 RDX: 1d2000dbb71d0164 RSI: ffffffff842c6460 RDI: e90006ddb8e80b27 RBP: ffff8801db307de8 R08: 1ffff1003b02a273 R09: 0000000000000000 R10: ffffed0043fffa09 R11: 0000000000000000 R12: 1ffff1003b660fa8 R13: 0000000000000003 R14: dffffc0000000000 R15: ffffffff857d3748 FS: 0000000000000000(0000) GS:ffff8801db300000(0063) knlGS:00000000f7766b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00007f2d078dfdb8 CR3: 00000000bba18000 CR4: 0000000000160670 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: 0000000000000286 0000000000000286 ffffffff842c6460 ffff8801db319c40 0000000041b58ab3 ffffffff83fce929 ffffffff81d65e00 ffffffff842bf1a0 0000000000000286 ffff8801db307da0 ffffffff8121f80f ffffffff842beec0 Call Trace: [] debug_hrtimer_deactivate kernel/time/hrtimer.c:415 [inline] [] debug_deactivate kernel/time/hrtimer.c:461 [inline] [] __run_hrtimer kernel/time/hrtimer.c:1224 [inline] [] __hrtimer_run_queues+0x492/0xfe0 kernel/time/hrtimer.c:1319 [] hrtimer_interrupt+0x1a6/0x440 kernel/time/hrtimer.c:1353 [] local_apic_timer_interrupt+0x6a/0xb0 arch/x86/kernel/apic/apic.c:901 [] smp_apic_timer_interrupt+0x76/0xa0 arch/x86/kernel/apic/apic.c:925 [] apic_timer_interrupt+0xa0/0xb0 arch/x86/entry/entry_64.S:737 [] vprintk_emit+0x55e/0x850 kernel/printk/printk.c:1832 [] vprintk+0x28/0x30 kernel/printk/printk.c:1843 [] vprintk_default+0x1d/0x30 kernel/printk/printk.c:1844 [] printk+0xb7/0xe2 kernel/printk/printk.c:1922 [] binder_transaction+0x65b5/0x7290 drivers/android/binder.c:3023 [] binder_thread_write+0x95b/0x33e0 drivers/android/binder.c:3691 [] binder_ioctl_write_read.isra.55+0x1cf/0xbc0 drivers/android/binder.c:4619 [] binder_ioctl+0xc50/0x12e0 drivers/android/binder.c:4758 [] C_SYSC_ioctl fs/compat_ioctl.c:1592 [inline] [] compat_SyS_ioctl+0x28a/0x2540 fs/compat_ioctl.c:1544 [] do_syscall_32_irqs_on arch/x86/entry/common.c:392 [inline] [] do_fast_syscall_32+0x321/0x8a0 arch/x86/entry/common.c:459 [] sysenter_flags_fixed+0xd/0x17 Code: eb 1a 48 89 da 48 c1 ea 03 42 80 3c 32 00 0f 85 86 01 00 00 48 8b 1b 48 85 db 74 7a 48 8d 7b 18 41 83 c5 01 48 89 fa 48 c1 ea 03 <42> 80 3c 32 00 0f 85 3c 01 00 00 48 3b 4b 18 75 c6 48 8d 7b 10 RIP [] lookup_object lib/debugobjects.c:120 [inline] RIP [] debug_object_deactivate+0x1a6/0x3c0 lib/debugobjects.c:465 RSP ---[ end trace 0a32d07ee2e18782 ]---