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

Issue 10854242: Make shared memory segments writable only by their rightful owners. (Closed)

Created:
8 years, 4 months ago by palmer
Modified:
8 years, 3 months ago
CC:
chromium-reviews, sadrul, yusukes+watch_chromium.org, derat+watch_chromium.org, Kees Cook, jln (very slow on Chromium), Chris Evans, Jorge Lucangeli Obes
Visibility:
Public.

Description

Make shared memory segments writable only by their rightful owners. BUG=143859 TEST=Chrome's UI still works on Linux and Chrome OS Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=158289

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -11 lines) Patch
M content/browser/renderer_host/backing_store_gtk.cc View 1 2 chunks +10 lines, -1 line 2 comments Download
M ui/base/x/x11_util.cc View 1 2 6 chunks +25 lines, -6 lines 0 comments Download
M ui/surface/transport_dib_linux.cc View 1 1 chunk +3 lines, -4 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
palmer
PTAL. Thank you!
8 years, 4 months ago (2012-08-21 02:05:27 UTC) #1
agl
The fact that X needs 0666 memory was certainly true in the past. I'm afraid ...
8 years, 4 months ago (2012-08-21 02:14:00 UTC) #2
palmer
On 2012/08/21 02:14:00, agl wrote: > The fact that X needs 0666 memory was certainly ...
8 years, 3 months ago (2012-08-30 20:45:05 UTC) #3
palmer
Kees, thoughts about the viability of non-root X, and/or about this patch in general? Thanks.
8 years, 3 months ago (2012-08-30 20:45:43 UTC) #4
keescook
On 2012/08/30 20:45:43, Chris P. wrote: > Kees, thoughts about the viability of non-root X, ...
8 years, 3 months ago (2012-08-30 22:22:00 UTC) #5
agl
On Thu, Aug 30, 2012 at 6:22 PM, <keescook@google.com> wrote: > What is this shm ...
8 years, 3 months ago (2012-08-30 22:27:23 UTC) #6
agl
On Thu, Aug 30, 2012 at 6:22 PM, <keescook@google.com> wrote: > What is this shm ...
8 years, 3 months ago (2012-08-30 22:27:23 UTC) #7
palmer
So the next question is, what UID will non-root X run as? If it runs ...
8 years, 3 months ago (2012-08-30 22:35:08 UTC) #8
palmer
CCing jln for thoughts/info.
8 years, 3 months ago (2012-08-30 22:35:31 UTC) #9
Wez
FWIW, the access-check appears to be applied to XShmAttach in Xorg here: http://cgit.freedesktop.org/xorg/xserver/tree/Xext/shm.c#n416
8 years, 3 months ago (2012-09-06 23:10:23 UTC) #10
palmer
> FWIW, the access-check appears to be applied to XShmAttach in Xorg here: > > ...
8 years, 3 months ago (2012-09-07 19:06:21 UTC) #11
palmer
Adding cevans and jorgelo in case they have additional insight.
8 years, 3 months ago (2012-09-07 19:07:07 UTC) #12
agl
lgtm
8 years, 3 months ago (2012-09-07 19:08:07 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/palmer@chromium.org/10854242/6006
8 years, 3 months ago (2012-09-07 22:47:54 UTC) #14
commit-bot: I haz the power
Presubmit check for 10854242-6006 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 3 months ago (2012-09-07 22:48:01 UTC) #15
palmer
Adding kbr for ui/surface/OWNERS ben for content/browser/renderer_host/OWNERS derat and sadrul for ui/base/x/OWNERS Thank you!
8 years, 3 months ago (2012-09-07 22:54:21 UTC) #16
palmer
Hmm, somehow I failed to actually add kbr and derat. :]
8 years, 3 months ago (2012-09-13 21:38:03 UTC) #17
Ken Russell (switch to Gerrit)
LGTM as long as this has been well tested.
8 years, 3 months ago (2012-09-13 21:47:45 UTC) #18
Daniel Erat
https://codereview.chromium.org/10854242/diff/6006/content/browser/renderer_host/backing_store_gtk.cc File content/browser/renderer_host/backing_store_gtk.cc (right): https://codereview.chromium.org/10854242/diff/6006/content/browser/renderer_host/backing_store_gtk.cc#newcode525 content/browser/renderer_host/backing_store_gtk.cc:525: LOG(WARNING) << "Failed to get shared memory segment. " ...
8 years, 3 months ago (2012-09-13 22:04:39 UTC) #19
Daniel Erat
(LGTM if the logging question isn't an issue; just wanted to make sure that we're ...
8 years, 3 months ago (2012-09-13 22:36:50 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/palmer@chromium.org/10854242/6006
8 years, 3 months ago (2012-09-22 06:35:55 UTC) #21
commit-bot: I haz the power
Presubmit check for 10854242-6006 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 3 months ago (2012-09-22 06:36:04 UTC) #22
palmer
8 years, 3 months ago (2012-09-24 16:26:10 UTC) #23
https://codereview.chromium.org/10854242/diff/6006/content/browser/renderer_h...
File content/browser/renderer_host/backing_store_gtk.cc (right):

https://codereview.chromium.org/10854242/diff/6006/content/browser/renderer_h...
content/browser/renderer_host/backing_store_gtk.cc:525: LOG(WARNING) << "Failed
to get shared memory segment. "
> How frequently can this be logged?

This one, once. Some of the other logging statements happen more often, but I'd
like to leave them for now in case we do hit upon a real-life case where
XShmAttach fails during the canary/dev bug shake-out.

Powered by Google App Engine
This is Rietveld 408576698