Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Issue 1072383003: ozone: drm: Fix HardwareDisplayController use-after-free (Closed)

Created:
5 years, 8 months ago by spang
Modified:
5 years, 8 months ago
CC:
chromium-reviews, kalyank, piman+watch_chromium.org, ozone-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ozone: drm: Fix HardwareDisplayController use-after-free Any time we destroy a HardwareDisplayController, we have to be careful to dissociate it from any DrmWindow objects. Make a new RemoveController funtion to handle this. BUG=477129 TEST=Unplug HDMI display from panther on login screen. No crash. Committed: https://crrev.com/bbc34a8a27f991478aae35e6d3ece9a4ea9964a6 Cr-Commit-Position: refs/heads/master@{#325242}

Patch Set 1 #

Total comments: 5

Patch Set 2 : revert HandleMirrorMode #

Patch Set 3 : add test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -1 line) Patch
M ui/ozone/platform/drm/gpu/screen_manager.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/ozone/platform/drm/gpu/screen_manager_unittest.cc View 1 2 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
spang
5 years, 8 months ago (2015-04-15 00:23:03 UTC) #2
alexst (slow to review)
https://codereview.chromium.org/1072383003/diff/1/ui/ozone/platform/drm/gpu/screen_manager.cc File ui/ozone/platform/drm/gpu/screen_manager.cc (left): https://codereview.chromium.org/1072383003/diff/1/ui/ozone/platform/drm/gpu/screen_manager.cc#oldcode103 ui/ozone/platform/drm/gpu/screen_manager.cc:103: controllers_.erase(it); I want to say there was a reason ...
5 years, 8 months ago (2015-04-15 00:50:03 UTC) #3
spang
https://codereview.chromium.org/1072383003/diff/1/ui/ozone/platform/drm/gpu/screen_manager.cc File ui/ozone/platform/drm/gpu/screen_manager.cc (left): https://codereview.chromium.org/1072383003/diff/1/ui/ozone/platform/drm/gpu/screen_manager.cc#oldcode103 ui/ozone/platform/drm/gpu/screen_manager.cc:103: controllers_.erase(it); On 2015/04/15 00:50:02, alexst wrote: > I want ...
5 years, 8 months ago (2015-04-15 02:12:11 UTC) #4
dnicoara
Would you mind adding/updating one of the unittests to make sure a window isn't associated ...
5 years, 8 months ago (2015-04-15 13:43:42 UTC) #5
spang
https://codereview.chromium.org/1072383003/diff/1/ui/ozone/platform/drm/gpu/screen_manager.cc File ui/ozone/platform/drm/gpu/screen_manager.cc (right): https://codereview.chromium.org/1072383003/diff/1/ui/ozone/platform/drm/gpu/screen_manager.cc#newcode285 ui/ozone/platform/drm/gpu/screen_manager.cc:285: RemoveController(original); On 2015/04/15 13:43:41, dnicoara wrote: > This will ...
5 years, 8 months ago (2015-04-15 13:48:24 UTC) #6
dnicoara
lgtm
5 years, 8 months ago (2015-04-15 13:58:55 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1072383003/40001
5 years, 8 months ago (2015-04-15 14:37:49 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 8 months ago (2015-04-15 15:03:19 UTC) #11
commit-bot: I haz the power
5 years, 8 months ago (2015-04-15 15:04:22 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/bbc34a8a27f991478aae35e6d3ece9a4ea9964a6
Cr-Commit-Position: refs/heads/master@{#325242}

Powered by Google App Engine
This is Rietveld 408576698