syzbot


KASAN: use-after-free Read in __list_del_entry

Status: fixed on 2018/05/22 16:53
Fix commit: UPSTREAM: ANDROID: binder: prevent transactions into own process.
First crash: 2215d, last: 2212d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-49 KASAN: use-after-free Read in __list_del_entry (3) C 9 2208d 2215d 3/3 fixed on 2018/06/04 19:55

Sample crash report:
binder: undelivered TRANSACTION_ERROR: 29189
binder: 3794:3796 BC_ACQUIRE_DONE u0000000000000000 no match
binder: send failed reply for transaction 8 to 3787:3789
binder: 3794:3797 transaction failed 29189/-22, size 0-0 line 3005
==================================================================
BUG: KASAN: use-after-free in __list_del_entry+0x196/0x1d0 lib/list_debug.c:60
binder: 3798:3799 ERROR: BC_REGISTER_LOOPER called without request
Read of size 8 at addr ffff8801d4933c10 by task kworker/u4:1/19

binder: release 3798:3799 transaction 15 out, still active
binder: release 3798:3799 transaction 14 in, still active
binder: undelivered TRANSACTION_COMPLETE
binder: 3798:3799 BC_ACQUIRE_DONE u0000000000000000 node 13 cookie mismatch 0000000000000004 != 0000000000000000
CPU: 0 PID: 19 Comm: kworker/u4:1 Not tainted 4.4.119-g855ea74 #27
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
binder: BINDER_SET_CONTEXT_MGR already set
binder: 3801:3802 ioctl 40046207 0 returned -16
binder: 3801:3802 ERROR: BC_REGISTER_LOOPER called without request
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3801:3803 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: 3801:3803 BC_ACQUIRE_DONE u0000000000000000 no match
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3801:3804 transaction failed 29189/-3, size 0-0 line 3128
Workqueue: binder binder_deferred_func[   32.484559] binder: BINDER_SET_CONTEXT_MGR already set
binder: 3805:3806 ioctl 40046207 0 returned -16
binder: 3805:3806 ERROR: BC_REGISTER_LOOPER called without request

 0000000000000000[   32.506005] binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3805:3807 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: 3805:3807 BC_ACQUIRE_DONE u0000000000000000 no match
 b6dc3e4a89cbf741[   32.533103] binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3805:3808 transaction failed 29189/-3, size 0-0 line 3128
 ffff8801d94a7a58 ffffffff81d0402d[   32.551666] binder: BINDER_SET_CONTEXT_MGR already set
binder: 3809:3810 ioctl 40046207 0 returned -16
binder: 3809:3810 ERROR: BC_REGISTER_LOOPER called without request

binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3809:3811 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: 3809:3811 BC_ACQUIRE_DONE u0000000000000000 no match
 ffffea0007524cc0[   32.600171] binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3809:3812 transaction failed 29189/-3, size 0-0 line 3128
 ffff8801d4933c10 0000000000000000 ffff8801d4933c10[   32.618735] binder: BINDER_SET_CONTEXT_MGR already set
binder: 3813:3814 ioctl 40046207 0 returned -16
binder: 3813:3814 ERROR: BC_REGISTER_LOOPER called without request

 ffffed0039617cf9[   32.640170] binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3813:3815 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: 3813:3815 BC_ACQUIRE_DONE u0000000000000000 no match
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3813:3816 transaction failed 29189/-3, size 0-0 line 3128
 ffff8801d94a7a90 ffffffff814fe103 ffff8801d4933c10
binder: BINDER_SET_CONTEXT_MGR already set
binder: 3817:3818 ioctl 40046207 0 returned -16
binder: 3817:3818 ERROR: BC_REGISTER_LOOPER called without request
Call Trace:
 [<ffffffff81d0402d>] __dump_stack lib/dump_stack.c:15 [inline]
 [<ffffffff81d0402d>] dump_stack+0xc1/0x124 lib/dump_stack.c:51
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3817:3819 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: 3817:3819 BC_ACQUIRE_DONE u0000000000000000 no match
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3817:3820 transaction failed 29189/-3, size 0-0 line 3128
 [<ffffffff814fe103>] print_address_description+0x73/0x260 mm/kasan/report.c:252
binder: BINDER_SET_CONTEXT_MGR already set
binder: 3821:3822 ioctl 40046207 0 returned -16
binder: 3821:3822 ERROR: BC_REGISTER_LOOPER called without request
 [<ffffffff814fe615>] kasan_report_error mm/kasan/report.c:351 [inline]
 [<ffffffff814fe615>] kasan_report+0x285/0x370 mm/kasan/report.c:408
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3821:3823 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: 3821:3823 BC_ACQUIRE_DONE u0000000000000000 no match
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3821:3824 transaction failed 29189/-3, size 0-0 line 3128
binder: BINDER_SET_CONTEXT_MGR already set
binder: 3825:3826 ioctl 40046207 0 returned -16
binder: 3825:3826 ERROR: BC_REGISTER_LOOPER called without request
 [<ffffffff814fe774>] __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:429
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3825:3827 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: 3825:3827 BC_ACQUIRE_DONE u0000000000000000 no match
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3825:3828 transaction failed 29189/-3, size 0-0 line 3128
 [<ffffffff81d64346>] __list_del_entry+0x196/0x1d0 lib/list_debug.c:60
binder: BINDER_SET_CONTEXT_MGR already set
binder: 3829:3830 ioctl 40046207 0 returned -16
binder: 3829:3830 ERROR: BC_REGISTER_LOOPER called without request
 [<ffffffff82c7676e>] list_del_init include/linux/list.h:145 [inline]
 [<ffffffff82c7676e>] binder_dequeue_work_head_ilocked drivers/android/binder.c:914 [inline]
 [<ffffffff82c7676e>] binder_dequeue_work_head drivers/android/binder.c:934 [inline]
 [<ffffffff82c7676e>] binder_release_work+0x6e/0x260 drivers/android/binder.c:4356
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3829:3831 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: 3829:3831 BC_ACQUIRE_DONE u0000000000000000 no match
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3829:3832 transaction failed 29189/-3, size 0-0 line 3128
binder: BINDER_SET_CONTEXT_MGR already set
binder: 3833:3834 ioctl 40046207 0 returned -16
binder: 3833:3834 ERROR: BC_REGISTER_LOOPER called without request
 [<ffffffff82c76d85>] binder_thread_release+0x425/0x600 drivers/android/binder.c:4564
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3833:3835 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: 3833:3835 BC_ACQUIRE_DONE u0000000000000000 no match
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3833:3836 transaction failed 29189/-3, size 0-0 line 3128
 [<ffffffff82c7b9f8>] binder_deferred_release drivers/android/binder.c:5105 [inline]
 [<ffffffff82c7b9f8>] binder_deferred_func+0x438/0xd10 drivers/android/binder.c:5177
binder: BINDER_SET_CONTEXT_MGR already set
binder: 3837:3838 ioctl 40046207 0 returned -16
binder: 3837:3838 ERROR: BC_REGISTER_LOOPER called without request
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3837:3839 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: 3837:3839 BC_ACQUIRE_DONE u0000000000000000 no match
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3837:3840 transaction failed 29189/-3, size 0-0 line 3128
 [<ffffffff8117fd37>] process_one_work+0x7d7/0x16e0 kernel/workqueue.c:2064
binder: BINDER_SET_CONTEXT_MGR already set
binder: 3841:3842 ioctl 40046207 0 returned -16
binder: 3841:3842 ERROR: BC_REGISTER_LOOPER called without request
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3841:3843 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: 3841:3843 BC_ACQUIRE_DONE u0000000000000000 no match
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3841:3844 transaction failed 29189/-3, size 0-0 line 3128
binder: BINDER_SET_CONTEXT_MGR already set
binder: 3845:3846 ioctl 40046207 0 returned -16
binder: 3845:3846 ERROR: BC_REGISTER_LOOPER called without request
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3845:3847 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: 3845:3847 BC_ACQUIRE_DONE u0000000000000000 no match
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3845:3848 transaction failed 29189/-3, size 0-0 line 3128
 [<ffffffff81180d19>] worker_thread+0xd9/0xfc0 kernel/workqueue.c:2196
binder: BINDER_SET_CONTEXT_MGR already set
binder: 3849:3850 ioctl 40046207 0 returned -16
binder: 3849:3850 ERROR: BC_REGISTER_LOOPER called without request
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3849:3851 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: 3849:3851 BC_ACQUIRE_DONE u0000000000000000 no match
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3849:3852 transaction failed 29189/-3, size 0-0 line 3128
 [<ffffffff81190788>] kthread+0x268/0x300 kernel/kthread.c:211
binder: BINDER_SET_CONTEXT_MGR already set
binder: 3853:3854 ioctl 40046207 0 returned -16
binder: 3853:3854 ERROR: BC_REGISTER_LOOPER called without request
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3853:3855 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: 3853:3855 BC_ACQUIRE_DONE u0000000000000000 no match
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3853:3856 transaction failed 29189/-3, size 0-0 line 3128
binder: BINDER_SET_CONTEXT_MGR already set
binder: 3857:3858 ioctl 40046207 0 returned -16
binder: 3857:3858 ERROR: BC_REGISTER_LOOPER called without request
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3857:3859 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: 3857:3859 BC_ACQUIRE_DONE u0000000000000000 no match
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3857:3860 transaction failed 29189/-3, size 0-0 line 3128
binder: BINDER_SET_CONTEXT_MGR already set
binder: 3861:3862 ioctl 40046207 0 returned -16
binder: 3861:3862 ERROR: BC_REGISTER_LOOPER called without request
 [<ffffffff83773a85>] ret_from_fork+0x55/0x80 arch/x86/entry/entry_64.S:506
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3861:3863 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: 3861:3863 BC_ACQUIRE_DONE u0000000000000000 no match
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3861:3864 transaction failed 29189/-3, size 0-0 line 3128
binder: BINDER_SET_CONTEXT_MGR already set
binder: 3865:3866 ioctl 40046207 0 returned -16
binder: 3865:3866 ERROR: BC_REGISTER_LOOPER called without request

Allocated by task 3789:
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3865:3867 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: 3865:3867 BC_ACQUIRE_DONE u0000000000000000 no match
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3865:3868 transaction failed 29189/-3, size 0-0 line 3128
 [<ffffffff81035d96>] save_stack_trace+0x26/0x50 arch/x86/kernel/stacktrace.c:63
binder: BINDER_SET_CONTEXT_MGR already set
binder: 3869:3870 ioctl 40046207 0 returned -16
binder: 3869:3870 ERROR: BC_REGISTER_LOOPER called without request
 [<ffffffff814fd173>] save_stack+0x43/0xd0 mm/kasan/kasan.c:512
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3869:3871 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: 3869:3871 BC_ACQUIRE_DONE u0000000000000000 no match
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3869:3872 transaction failed 29189/-3, size 0-0 line 3128
 [<ffffffff814fd43d>] set_track mm/kasan/kasan.c:524 [inline]
 [<ffffffff814fd43d>] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:616
 [   33.635331] binder: BINDER_SET_CONTEXT_MGR already set
binder: 3873:3874 ioctl 40046207 0 returned -16
binder: 3873:3874 ERROR: BC_REGISTER_LOOPER called without request
[<ffffffff814f93c0>] kmem_cache_alloc_trace+0x100/0x2b0 mm/slub.c:2642
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3873:3875 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: 3873:3875 BC_ACQUIRE_DONE u0000000000000000 no match
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3873:3876 transaction failed 29189/-3, size 0-0 line 3128
 [<ffffffff82c86b4c>] kmalloc include/linux/slab.h:476 [inline]
 [<ffffffff82c86b4c>] kzalloc include/linux/slab.h:620 [inline]
 [<ffffffff82c86b4c>] binder_transaction+0x103c/0x7290 drivers/android/binder.c:3057
binder: BINDER_SET_CONTEXT_MGR already set
binder: 3877:3878 ioctl 40046207 0 returned -16
binder: 3877:3878 ERROR: BC_REGISTER_LOOPER called without request
 [   33.724195] binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3877:3879 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: 3877:3879 BC_ACQUIRE_DONE u0000000000000000 no match
[<ffffffff82c8d5bf>] binder_thread_write+0x81f/0x33e0 drivers/android/binder.c:3680
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3877:3880 transaction failed 29189/-3, size 0-0 line 3128
 [   33.770164] binder: BINDER_SET_CONTEXT_MGR already set
binder: 3881:3882 ioctl 40046207 0 returned -16
binder: 3881:3882 ERROR: BC_REGISTER_LOOPER called without request
[<ffffffff82c9034f>] binder_ioctl_write_read.isra.55+0x1cf/0xbc0 drivers/android/binder.c:4619
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3881:3883 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: 3881:3883 BC_ACQUIRE_DONE u0000000000000000 no match
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3881:3884 transaction failed 29189/-3, size 0-0 line 3128
 [<ffffffff82c91990>] binder_ioctl+0xc50/0x12e0 drivers/android/binder.c:4758
binder: BINDER_SET_CONTEXT_MGR already set
binder: 3885:3886 ioctl 40046207 0 returned -16
binder: 3885:3886 ERROR: BC_REGISTER_LOOPER called without request
 [   33.859031] binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3885:3887 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: 3885:3887 BC_ACQUIRE_DONE u0000000000000000 no match
[<ffffffff81559d4a>] vfs_ioctl fs/ioctl.c:43 [inline]
[<ffffffff81559d4a>] do_vfs_ioctl+0x7aa/0xee0 fs/ioctl.c:607
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3885:3888 transaction failed 29189/-3, size 0-0 line 3128
 [<ffffffff8155a50f>] SYSC_ioctl fs/ioctl.c:622 [inline]
 [<ffffffff8155a50f>] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:613
binder: BINDER_SET_CONTEXT_MGR already set
binder: 3889:3890 ioctl 40046207 0 returned -16
binder: 3889:3890 ERROR: BC_REGISTER_LOOPER called without request
 [   33.926427] binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3889:3891 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: 3889:3891 BC_ACQUIRE_DONE u0000000000000000 no match
[<ffffffff8377365f>] entry_SYSCALL_64_fastpath+0x1c/0x98
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3889:3892 transaction failed 29189/-3, size 0-0 line 3128

binder: BINDER_SET_CONTEXT_MGR already set
binder: 3893:3894 ioctl 40046207 0 returned -16
binder: 3893:3894 ERROR: BC_REGISTER_LOOPER called without request
Freed by task 19:
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3893:3895 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: 3893:3895 BC_ACQUIRE_DONE u0000000000000000 no match
 [   34.021007] binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3893:3896 transaction failed 29189/-3, size 0-0 line 3128
[<ffffffff81035d96>] save_stack_trace+0x26/0x50 arch/x86/kernel/stacktrace.c:63
binder: BINDER_SET_CONTEXT_MGR already set
binder: 3897:3898 ioctl 40046207 0 returned -16
binder: 3897:3898 ERROR: BC_REGISTER_LOOPER called without request
 [<ffffffff814fd173>] save_stack+0x43/0xd0 mm/kasan/kasan.c:512
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3897:3899 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: 3897:3899 BC_ACQUIRE_DONE u0000000000000000 no match
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3897:3900 transaction failed 29189/-3, size 0-0 line 3128
 [<ffffffff814fda92>] set_track mm/kasan/kasan.c:524 [inline]
 [<ffffffff814fda92>] kasan_slab_free+0x72/0xc0 mm/kasan/kasan.c:589
 [   34.107353] binder: BINDER_SET_CONTEXT_MGR already set
binder: 3901:3902 ioctl 40046207 0 returned -16
binder: 3901:3902 ERROR: BC_REGISTER_LOOPER called without request
[<ffffffff814fa52c>] slab_free_hook mm/slub.c:1383 [inline]
[<ffffffff814fa52c>] slab_free_freelist_hook mm/slub.c:1405 [inline]
[<ffffffff814fa52c>] slab_free mm/slub.c:2859 [inline]
[<ffffffff814fa52c>] kfree+0xfc/0x300 mm/slub.c:3749
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3901:3903 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: 3901:3903 BC_ACQUIRE_DONE u0000000000000000 no match
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3901:3904 transaction failed 29189/-3, size 0-0 line 3128
 [<ffffffff82c6beca>] binder_free_transaction+0x6a/0x90 drivers/android/binder.c:2123
binder: BINDER_SET_CONTEXT_MGR already set
binder: 3905:3906 ioctl 40046207 0 returned -16
binder: 3905:3906 ERROR: BC_REGISTER_LOOPER called without request
 [<ffffffff82c763a5>] binder_send_failed_reply+0x185/0x3a0 drivers/android/binder.c:2156
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3905:3907 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: 3905:3907 BC_ACQUIRE_DONE u0000000000000000 no match
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3905:3908 transaction failed 29189/-3, size 0-0 line 3128
 [<ffffffff82c76d73>] binder_thread_release+0x413/0x600 drivers/android/binder.c:4563
binder: BINDER_SET_CONTEXT_MGR already set
binder: 3909:3910 ioctl 40046207 0 returned -16
binder: 3909:3910 ERROR: BC_REGISTER_LOOPER called without request
 [   34.263918] binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3909:3911 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: 3909:3911 BC_ACQUIRE_DONE u0000000000000000 no match
[<ffffffff82c7b9f8>] binder_deferred_release drivers/android/binder.c:5105 [inline]
[<ffffffff82c7b9f8>] binder_deferred_func+0x438/0xd10 drivers/android/binder.c:5177
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3909:3912 transaction failed 29189/-3, size 0-0 line 3128
 [   34.309979] binder: BINDER_SET_CONTEXT_MGR already set
binder: 3913:3914 ioctl 40046207 0 returned -16
binder: 3913:3914 ERROR: BC_REGISTER_LOOPER called without request
[<ffffffff8117fd37>] process_one_work+0x7d7/0x16e0 kernel/workqueue.c:2064
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3913:3915 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: 3913:3915 BC_ACQUIRE_DONE u0000000000000000 no match
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3913:3916 transaction failed 29189/-3, size 0-0 line 3128
 [<ffffffff81180d19>] worker_thread+0xd9/0xfc0 kernel/workqueue.c:2196
binder: BINDER_SET_CONTEXT_MGR already set
binder: 3917:3918 ioctl 40046207 0 returned -16
binder: 3917:3918 ERROR: BC_REGISTER_LOOPER called without request
 [<ffffffff81190788>] kthread+0x268/0x300 kernel/kthread.c:211
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3917:3919 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: 3917:3919 BC_ACQUIRE_DONE u0000000000000000 no match
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3917:3920 transaction failed 29189/-3, size 0-0 line 3128
 [<ffffffff83773a85>] ret_from_fork+0x55/0x80 arch/x86/entry/entry_64.S:506
binder: BINDER_SET_CONTEXT_MGR already set
binder: 3921:3922 ioctl 40046207 0 returned -16
binder: 3921:3922 ERROR: BC_REGISTER_LOOPER called without request

The buggy address belongs to the object at ffff8801d4933c00
 which belongs to the cache kmalloc-192 of size 192
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3921:3923 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: 3921:3923 BC_ACQUIRE_DONE u0000000000000000 no match
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3921:3924 transaction failed 29189/-3, size 0-0 line 3128
binder: BINDER_SET_CONTEXT_MGR already set
binder: 3925:3926 ioctl 40046207 0 returned -16
binder: 3925:3926 ERROR: BC_REGISTER_LOOPER called without request
The buggy address is located 16 bytes inside of
 192-byte region [ffff8801d4933c00, ffff8801d4933cc0)
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3925:3927 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: 3925:3927 BC_ACQUIRE_DONE u0000000000000000 no match
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3925:3928 transaction failed 29189/-3, size 0-0 line 3128
binder: BINDER_SET_CONTEXT_MGR already set
binder: 3929:3930 ioctl 40046207 0 returned -16
binder: 3929:3930 ERROR: BC_REGISTER_LOOPER called without request
The buggy address belongs to the page:
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3929:3931 transaction failed 29189/-3, size 0-0 line 3128
binder: undelivered TRANSACTION_ERROR: 29189
binder: 3929:3931 BC_ACQUIRE_DONE u0000000000000000 no match
binder_alloc: 3798: binder_alloc_buf, no vma
binder: 3929:3932 transaction failed 29189/-3, size 0-0 line 3128
------------[ cut here ]------------
kernel BUG at include/linux/mm.h:460!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
Dumping ftrace buffer:
   (ftrace buffer empty)
Modules linked in:
CPU: 1 PID: 3780 Comm: syzkaller316977 Not tainted 4.4.119-g855ea74 #27
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8801c507e000 task.stack: ffff8801d8e48000
SeaBIOS (version 1.8.2-20180102_145157-google)
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Initializing cgroup subsys schedtune
Linux version 4.4.119-g855ea74 (syzkaller@ci) (gcc version 7.1.1 20170620 (GCC) ) #27 SMP PREEMPT Fri Mar 2 20:49:12 UTC 2018
Command line: BOOT_IMAGE=/vmlinuz root=/dev/sda1 console=ttyS0 earlyprintk=serial vsyscall=native rodata=n ftrace_dump_on_oops=orig_cpu oops=panic panic_on_warn=1 nmi_watchdog=panic panic=86400 workqueue.watchdog_thresh=120
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
x86/fpu: xstate_offset[2]:  576, xstate_sizes[2]:  256
x86/fpu: Supporting XSAVE feature 0x01: 'x87 floating point registers'
x86/fpu: Supporting XSAVE feature 0x02: 'SSE registers'
x86/fpu: Supporting XSAVE feature 0x04: 'AVX registers'
x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format.
x86/fpu: Using 'eager' FPU context switches.
e820: BIOS-provided physical RAM map:
BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
BIOS-e820: [mem 0x0000000000100000-0x00000000bfff2fff] usable
BIOS-e820: [mem 0x00000000bfff3000-0x00000000bfffffff] reserved
BIOS-e820: [mem 0x00000000fffbc000-0x00000000ffffffff] reserved
BIOS-e820: [mem 0x0000000100000000-0x000000021fffffff] usable
bootconsole [earlyser0] enabled
NX (Execute Disable) protection: active
SMBIOS 2.4 present.
Hypervisor detected: KVM
e820: last_pfn = 0x220000 max_arch_pfn = 0x400000000
x86/PAT: Configuration [0-7]: WB  WC  UC- UC  WB  WC  UC- WT  
e820: last_pfn = 0xbfff3 max_arch_pfn = 0x400000000
found SMP MP-table at [mem 0x000f23b0-0x000f23bf] mapped at [ffff8800000f23b0]
Scanning 1 areas for low memory corruption
Using GB pages for direct mapping
ACPI: Early table checksum verification disabled
ACPI: RSDP 0x00000000000F2370 000014 (v00 Google)
ACPI: RSDT 0x00000000BFFF3430 000038 (v01 Google GOOGRSDT 00000001 GOOG 00000001)
ACPI: FACP 0x00000000BFFFCF60 0000F4 (v02 Google GOOGFACP 00000001 GOOG 00000001)
ACPI: DSDT 0x00000000BFFF3470 0017B2 (v01 Google GOOGDSDT 00000001 GOOG 00000001)
ACPI: FACS 0x00000000BFFFCF00 000040
ACPI: FACS 0x00000000BFFFCF00 000040
ACPI: SSDT 0x00000000BFFF65F0 00690D (v01 Google GOOGSSDT 00000001 GOOG 00000001)
ACPI: APIC 0x00000000BFFF5D10 000076 (v01 Google GOOGAPIC 00000001 GOOG 00000001)
ACPI: WAET 0x00000000BFFF5CE0 000028 (v01 Google GOOGWAET 00000001 GOOG 00000001)
ACPI: SRAT 0x00000000BFFF4C30 0000C8 (v01 Google GOOGSRAT 00000001 GOOG 00000001)
kvm-clock: Using msrs 4b564d01 and 4b564d00
kvm-clock: cpu 0, msr 2:1fffd001, primary cpu clock
kvm-clock: using sched offset of 2280730208 cycles
clocksource: kvm-clock: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns
Zone ranges:
  DMA      [mem 0x0000000000001000-0x0000000000ffffff]
  DMA32    [mem 0x0000000001000000-0x00000000ffffffff]
  Normal   [mem 0x0000000100000000-0x000000021fffffff]
Movable zone start for each node
Early memory node ranges
  node   0: [mem 0x0000000000001000-0x000000000009efff]
  node   0: [mem 0x0000000000100000-0x00000000bfff2fff]
  node   0: [mem 0x0000000100000000-0x000000021fffffff]
Initmem setup node 0 [mem 0x0000000000001000-0x000000021fffffff]
kasan: KernelAddressSanitizer initialized
ACPI: PM-Timer IO Port: 0xb008
ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1])
IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
Using ACPI (MADT) for SMP configuration information
smpboot: Allowing 2 CPUs, 0 hotplug CPUs
PM: Registered nosave memory: [mem 0x00000000-0x00000fff]
PM: Registered nosave memory: [mem 0x0009f000-0x0009ffff]
PM: Registered nosave memory: [mem 0x000a0000-0x000effff]
PM: Registered nosave memory: [mem 0x000f0000-0x000fffff]
PM: Registered nosave memory: [mem 0xbfff3000-0xbfffffff]
PM: Registered nosave memory: [mem 0xc0000000-0xfffbbfff]
PM: Registered nosave memory: [mem 0xfffbc000-0xffffffff]
e820: [mem 0xc0000000-0xfffbbfff] available for PCI devices
Booting paravirtualized kernel on KVM
clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
setup_percpu: NR_CPUS:64 nr_cpumask_bits:64 nr_cpu_ids:2 nr_node_ids:1
PERCPU: Embedded 42 pages/cpu @ffff8801db200000 s134024 r8192 d29816 u1048576
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 1935227
Kernel command line: BOOT_IMAGE=/vmlinuz root=/dev/sda1 console=ttyS0 earlyprintk=serial vsyscall=native rodata=n ftrace_dump_on_oops=orig_cpu oops=panic panic_on_warn=1 nmi_watchdog=panic panic=86400 workqueue.watchdog_thresh=120
PID hash table entries: 4096 (order: 3, 32768 bytes)
Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes)
Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes)
Memory: 6581404K/7863876K available (40421K kernel code, 6136K rwdata, 8808K rodata, 1848K init, 23616K bss, 1282472K reserved, 0K cma-reserved)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Kernel/User page tables isolation: enabled
Running RCU self tests
Preemptible hierarchical RCU implementation.
	RCU lockdep checking is enabled.
	Build-time adjustment of leaf fanout to 64.
	RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=2.
RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=2
NR_IRQS:4352 nr_irqs:440 16
console [ttyS0] enabled
console [ttyS0] enabled
bootconsole [earlyser0] disabled
bootconsole [earlyser0] disabled
Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
... MAX_LOCKDEP_SUBCLASSES:  8
... MAX_LOCK_DEPTH:          48
... MAX_LOCKDEP_KEYS:        8191
... CLASSHASH_SIZE:          4096
... MAX_LOCKDEP_ENTRIES:     32768
... MAX_LOCKDEP_CHAINS:      65536
... CHAINHASH_SIZE:          32768
 memory used by lock dependency info: 8159 kB
 per task-struct memory footprint: 1920 bytes
tsc: Detected 2300.000 MHz processor
Calibrating delay loop (skipped) preset value.. 4600.00 BogoMIPS (lpj=23000000)
pid_max: default: 32768 minimum: 301
ACPI: Core revision 20150930
ACPI: 2 ACPI AML tables successfully acquired and loaded
Security Framework initialized
SELinux:  Initializing.
AppArmor: AppArmor disabled by boot time parameter
Mount-cache hash table entries: 16384 (order: 5, 131072 bytes)
Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes)
Initializing cgroup subsys io
Initializing cgroup subsys freezer
Initializing cgroup subsys hugetlb
Initializing cgroup subsys debug
CPU: Physical Processor ID: 0
mce: CPU supports 32 MCE banks
Last level iTLB entries: 4KB 1024, 2MB 1024, 4MB 1024
Last level dTLB entries: 4KB 1024, 2MB 1024, 4MB 1024, 1GB 4
Spectre V2 : Vulnerable: Minimal generic ASM retpoline
Freeing SMP alternatives memory: 44K
..TIMER: vector=0x30 apic1=0 pin1=0 apic2=-1 pin2=-1
smpboot: CPU0: Intel(R) Xeon(R) CPU @ 2.30GHz (family: 0x6, model: 0x3f, stepping: 0x0)
Performance Events: unsupported p6 CPU model 63 no PMU driver, software events only.
x86: Booting SMP configuration:
.... node  #0, CPUs:      #1
kvm-clock: cpu 1, msr 2:1fffd041, secondary cpu clock
x86: Booted up 1 node, 2 CPUs
smpboot: Total of 2 processors activated (9200.00 BogoMIPS)
devtmpfs: initialized
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
futex hash table entries: 512 (order: 4, 65536 bytes)
xor: automatically using best checksumming function:
kworker/u4:0 (21) used greatest stack depth: 27448 bytes left
   avx       : 21035.600 MB/sec
RTC time: 12:45:36, date: 03/05/18
NET: Registered protocol family 16
schedtune: init normalization constants...
schedtune: no energy model data
schedtune: disabled!
cpuidle: using governor ladder
cpuidle: using governor menu
ACPI: bus type PCI registered
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
PCI: Using configuration type 1 for base access
kworker/u4:1 (467) used greatest stack depth: 27080 bytes left
raid6: sse2x1   gen()  4701 MB/s
raid6: sse2x1   xor()  2629 MB/s
raid6: sse2x2   gen()  7048 MB/s
raid6: sse2x2   xor()  4079 MB/s
raid6: sse2x4   gen()  7968 MB/s
raid6: sse2x4   xor()  5305 MB/s
raid6: avx2x1   gen()  9417 MB/s
raid6: avx2x2   gen() 14633 MB/s
raid6: avx2x4   gen() 19105 MB/s
raid6: using algorithm avx2x4 gen() 19105 MB/s
raid6: using avx2x2 recovery algorithm
ACPI: Added _OSI(Module Device)
ACPI: Added _OSI(Processor Device)
ACPI: Added _OSI(3.0 _SCP Extensions)
ACPI: Added _OSI(Processor Aggregator Device)
ACPI: Executed 2 blocks of module-level executable AML code
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/03/05 12:48 https://android.googlesource.com/kernel/common android-4.4 855ea747806b bbd5104f .config console log report syz C ci-android-44-kasan-gce
2018/03/08 19:00 https://android.googlesource.com/kernel/common android-4.4 d63fdf61a4dc acd0caa5 .config console log report syz ci-android-44-kasan-gce-386
2018/03/06 12:43 https://android.googlesource.com/kernel/common android-4.4 d63fdf61a4dc aef0b792 .config console log report syz ci-android-44-kasan-gce-386
2018/03/06 03:20 https://android.googlesource.com/kernel/common android-4.4 855ea747806b aef0b792 .config console log report syz ci-android-44-kasan-gce-386
2018/03/05 12:40 https://android.googlesource.com/kernel/common android-4.4 855ea747806b bbd5104f .config console log report syz ci-android-44-kasan-gce-386
* Struck through repros no longer work on HEAD.