commit | 705b335f9c36b598f5fbb08aa5a730b04c994fa4 | [log] [tgz] |
---|---|---|
author | Holmes Chou <[email protected]> | Wed Jun 26 18:59:57 2024 +0800 |
committer | Holmes Chou <[email protected]> | Thu Jun 27 10:55:19 2024 +0800 |
tree | 3c4e84db8dee971283cdab5b00025fca6e18d55b | |
parent | deda4741852bbae188dfb3c4718b804311e845d7 [diff] |
Allocator: Fix UAF in lwis_allocator_release() Current implementations use a spinlock to protect block_mgr accessing, but this spinlock is holded by block_mgr. It causes use-after-free when release block_mgr. Move the spinlock to lwis_dev to fix it. Bug: 349428550 Test: GCA, CTS, PTS Change-Id: Ia436514cb3485cfab1da64e21b2618808f28db1c Signed-off-by: Holmes Chou <[email protected]>