Closed
Bug 1152361
Opened 10 years ago
Closed 10 years ago
GonkDisplayJB.cpp - outbufAcquireFenceFd is not initialized during boot animation before calling hwc_set()
Categories
(Firefox OS Graveyard :: GonkIntegration, defect)
Tracking
(firefox38 wontfix, firefox39 wontfix, firefox40 fixed, b2g-v2.2 fixed, b2g-master fixed)
RESOLVED
FIXED
2.2 S10 (17apr)
People
(Reporter: m1, Assigned: m1)
References
Details
(Whiteboard: [caf priority: p2][CR 819588])
Attachments
(1 file)
2.10 KB,
patch
|
mwu
:
review+
bajaj
:
approval-mozilla-b2g37+
|
Details | Diff | Splinter Review |
outbufAcquireFenceFd is not initialized in this code path:
BootAnimation.cpp::AnimationThread() ... GonkDisplayJB::QueueBuffer() .. GonkDisplayJB::Post() ... hwc_set()
The L HWC HAL will attempt to close outbufAcquireFenceFd if it's > -1, so during the boot animation Gecko is causing random fds to be close()ed.
For reference, see the closeAcquireFds() implementation in hwc_utils.cpp:
* L - https://www.codeaurora.org/cgit/quic/la/platform/hardware/qcom/display/tree/libhwcomposer/hwc_utils.cpp?h=LA.BR.1.2.3#n1461
* KK - https://www.codeaurora.org/cgit/quic/la/platform/hardware/qcom/display/tree/libhwcomposer/hwc_utils.cpp?h=LNX.LA.3.5.1#n1170
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8589788 -
Flags: review?(mwu)
Comment 2•10 years ago
|
||
Comment on attachment 8589788 [details] [diff] [review]
outbufAcquireFenceFd == -1
Review of attachment 8589788 [details] [diff] [review]:
-----------------------------------------------------------------
Good find.
Attachment #8589788 -
Flags: review?(mwu) → review+
Updated•10 years ago
|
Whiteboard: [CR 819588]
Updated•10 years ago
|
Whiteboard: [CR 819588] → [caf priority: p2][CR 819588]
Assignee | ||
Comment 3•10 years ago
|
||
Assignee | ||
Comment 4•10 years ago
|
||
Comment 5•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 2.2 S10 (17apr)
Assignee | ||
Comment 6•10 years ago
|
||
Comment on attachment 8589788 [details] [diff] [review]
outbufAcquireFenceFd == -1
Bug caused by (feature/regressing bug #): N/A
User impact if declined: Device could crash randomly during boot.
Testing completed: Test setup that detected the invalid close() now passes, plus couple days of normal FC testing has occurred as this patch has been in our tree for some time now.
Risk to taking this patch (and alternatives if risky): Close to zero.
String or UUID changes made by this patch: Zip.
Attachment #8589788 -
Flags: approval-mozilla-b2g37?
Updated•10 years ago
|
Attachment #8589788 -
Flags: approval-mozilla-b2g37? → approval-mozilla-b2g37+
Comment 7•10 years ago
|
||
status-b2g-v2.2:
--- → fixed
status-b2g-master:
--- → fixed
status-firefox38:
--- → wontfix
status-firefox39:
--- → wontfix
You need to log in
before you can comment on or make changes to this bug.
Description
•