Jimmy Shiu
3478253879
sm6375-common: power-libperfmgr: ADPF: fix use-after-free crash
...
The main problem is the timer thread could be woken after the session
was destroyed. We did have a closed flag which was set in destructor and the flag would be checked before handleMessage accessing the session
instance. To fix the problem, the operations of flag checking and session instance accessing should be guarded by the lock.
Bug: 236674672
Test: manual test
Change-Id: I49a18efbc135b1bc070b101038a8a0bcc6e19fec
(cherry picked from commit 5c75978f530b27bd976d8695ed79acd336c24776)
Merged-In: I49a18efbc135b1bc070b101038a8a0bcc6e19fec
2024-07-18 20:16:00 +05:30
..
Android.bp
sm6375-common: power-libperfmgr: aidl: Remove ndk_platform backend. Use the ndk backend.
2024-07-18 20:16:00 +05:30
android.hardware.power-service.moto_sm6375-libperfmgr.rc
sm6375-common: power-libperfmgr: Add global debug property for override config path properly
2024-07-18 20:16:00 +05:30
android.hardware.power-service.moto_sm6375.xml
sm6375-common: power-libperfmgr: add PowerHintSession for ADPF implementation
2024-07-18 20:16:00 +05:30
InteractionHandler.cpp
sm6375-common: power-libperfmgr: Make HintManager a singleton class
2024-07-18 20:16:00 +05:30
InteractionHandler.h
sm6375-common: power-libperfmgr: Make HintManager a singleton class
2024-07-18 20:16:00 +05:30
Power.cpp
sm6375-common: power-libperfmgr: ADPF: Fix updateHintBoost blocks the binder thread
2024-07-18 20:16:00 +05:30
Power.h
sm6375-common: power-libperfmgr: ADPF: Use Adpf Profile for PID tunnables
2024-07-18 20:16:00 +05:30
PowerExt.cpp
sm6375-common: power-libperfmgr: ADPF: Fix updateHintBoost blocks the binder thread
2024-07-18 20:16:00 +05:30
PowerExt.h
sm6375-common: power-libperfmgr: Make HintManager a singleton class
2024-07-18 20:16:00 +05:30
PowerHintSession.cpp
sm6375-common: power-libperfmgr: ADPF: fix use-after-free crash
2024-07-18 20:16:00 +05:30
PowerHintSession.h
sm6375-common: power-libperfmgr: ADPF: fix use-after-free crash
2024-07-18 20:16:00 +05:30
PowerSessionManager.cpp
sm6375-common: power-libperfmgr: ADPF: optimize the wakeup performance and fix unstable boost.
2024-07-18 20:16:00 +05:30
PowerSessionManager.h
sm6375-common: power-libperfmgr: ADPF: Fix updateHintBoost blocks the binder thread
2024-07-18 20:16:00 +05:30
service.cpp
sm6375-common: power-libperfmgr: Add minimal binder thread prio as -20 to match process prio
2024-07-18 20:16:00 +05:30