<
3
>[
81169.367408
] c6
20464
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
<
3
>[
81169.367435
] c6
20464
BUG: KASAN: use
-
after
-
free
in
binder_release_work
+
0x84
/
0x1b8
<
3
>[
81169.367469
] c6
20464
Read of size
4
at addr ffffffc053e45850 by task poc
/
20464
<
3
>[
81169.367481
] c6
20464
<
4
>[
81169.367498
] c6
20464
CPU:
6
PID:
20464
Comm: poc Tainted: G S W
4.14
.
170
-
g551313822
-
dirty_audio
-
g199e9bf
<
4
>[
81169.367507
] c6
20464
Hardware name: Qualcomm Technologies, Inc. SM8150 V2 PM8150 Google Inc. MSM sm8150 Flame (DT)
<
4
>[
81169.367514
] c6
20464
Call trace:
<
4
>[
81169.367530
] c6
20464
dump_backtrace
+
0x0
/
0x380
<
4
>[
81169.367541
] c6
20464
show_stack
+
0x20
/
0x2c
<
4
>[
81169.367554
] c6
20464
dump_stack
+
0xc4
/
0x11c
<
4
>[
81169.367576
] c6
20464
print_address_description
+
0x70
/
0x240
<
4
>[
81169.367594
] c6
20464
kasan_report_error
+
0x1a0
/
0x204
<
4
>[
81169.367605
] c6
20464
kasan_report_error
+
0x0
/
0x204
<
4
>[
81169.367619
] c6
20464
__asan_load4
+
0x80
/
0x84
/
/
引用
<
4
>[
81169.367631
] c6
20464
binder_release_work
+
0x84
/
0x1b8
<
4
>[
81169.367644
] c6
20464
binder_thread_release
+
0x2ac
/
0x2e0
<
4
>[
81169.367655
] c6
20464
binder_ioctl
+
0x9a4
/
0x122c
<
4
>[
81169.367680
] c6
20464
do_vfs_ioctl
+
0x7c8
/
0xefc
<
4
>[
81169.367693
] c6
20464
SyS_ioctl
+
0x68
/
0xa0
<
4
>[
81169.367716
] c6
20464
el0_svc_naked
+
0x34
/
0x38
<
3
>[
81169.367725
] c6
20464
<
3
>[
81169.367734
] c6
20464
Allocated by task
20464
:
<
4
>[
81169.367747
] c6
20464
kasan_kmalloc
+
0xe0
/
0x1ac
<
4
>[
81169.367761
] c6
20464
kmem_cache_alloc_trace
+
0x3b8
/
0x454
<
4
>[
81169.367774
] c6
20464
binder_new_node
+
0x4c
/
0x394
/
/
分配
<
4
>[
81169.367802
] c6
20464
binder_transaction
+
0x2398
/
0x4308
<
4
>[
81169.367816
] c6
20464
binder_ioctl_write_read
+
0xc28
/
0x4dc8
<
4
>[
81169.367826
] c6
20464
binder_ioctl
+
0x650
/
0x122c
<
4
>[
81169.367836
] c6
20464
do_vfs_ioctl
+
0x7c8
/
0xefc
<
4
>[
81169.367846
] c6
20464
SyS_ioctl
+
0x68
/
0xa0
<
4
>[
81169.367862
] c6
20464
el0_svc_naked
+
0x34
/
0x38
<
3
>[
81169.367868
] c6
20464
<
4
>[
81169.367936
] c7
20469
CPU7: update
max
cpu_capacity
989
<
3
>[
81169.368496
] c6
20464
Freed by task
594
:
<
4
>[
81169.368518
] c6
20464
__kasan_slab_free
+
0x13c
/
0x21c
<
4
>[
81169.368534
] c6
20464
kasan_slab_free
+
0x10
/
0x1c
<
4
>[
81169.368549
] c6
20464
kfree
+
0x248
/
0x810
/
/
释放
<
4
>[
81169.368564
] c6
20464
binder_free_ref
+
0x30
/
0x64
<
4
>[
81169.368584
] c6
20464
binder_update_ref_for_handle
+
0x294
/
0x2b0
<
4
>[
81169.368600
] c6
20464
binder_transaction_buffer_release
+
0x46c
/
0x7a0
<
4
>[
81169.368616
] c6
20464
binder_ioctl_write_read
+
0x21d0
/
0x4dc8
<
4
>[
81169.368653
] c6
20464
binder_ioctl
+
0x650
/
0x122c
<
4
>[
81169.368667
] c6
20464
do_vfs_ioctl
+
0x7c8
/
0xefc
<
4
>[
81169.368684
] c6
20464
SyS_ioctl
+
0x68
/
0xa0
<
4
>[
81169.368697
] c6
20464
el0_svc_naked
+
0x34
/
0x38
<
3
>[
81169.368704
] c6
20464
<
3
>[
81169.368735
] c6
20464
The buggy address belongs to the
object
at ffffffc053e45800
<
3
>[
81169.368735
] c6
20464
which belongs to the cache kmalloc
-
256
of size
256
<
3
>[
81169.368753
] c6
20464
The buggy address
is
located
80
bytes inside of
<
3
>[
81169.368753
] c6
20464
256
-
byte region [ffffffc053e45800, ffffffc053e45900)
<
3
>[
81169.368767
] c6
20464
The buggy address belongs to the page:
<
0
>[
81169.368779
] c6
20464
page:ffffffbf014f9100 count:
1
mapcount:
0
mapping: (null) index:
0x0
compound_mapcount:
0
<
0
>[
81169.368804
] c6
20464
flags:
0x10200
(slab|head)
<
1
>[
81169.368824
] c6
20464
raw:
0000000000010200
0000000000000000
0000000000000000
0000000100150015
<
1
>[
81169.368843
] c6
20464
raw: ffffffbf04e39e00
0000000e00000002
ffffffc148c0fa00
0000000000000000
<
1
>[
81169.368867
] c6
20464
page dumped because: kasan: bad access detected
<
3
>[
81169.368882
] c6
20464
<
3
>[
81169.368894
] c6
20464
Memory state around the buggy address:
<
3
>[
81169.368910
] c6
20464
ffffffc053e45700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
<
3
>[
81169.368955
] c6
20464
ffffffc053e45780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
<
3
>[
81169.368984
] c6
20464
>ffffffc053e45800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
<
3
>[
81169.368997
] c6
20464
^
<
3
>[
81169.369012
] c6
20464
ffffffc053e45880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
<
3
>[
81169.369037
] c6
20464
ffffffc053e45900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
<
3
>[
81169.369049
] c6
20464
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=