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

Issue 8735015: Add CHECK on file descriptor in various IPC::ChannelHandle passed in. (Closed)

Created:
9 years ago by xhwang
Modified:
3 years, 2 months ago
Reviewers:
jam, ddorwin, piman
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, dpranke-watch+content_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add CHECK on file descriptor in various IPC::ChannelHandle passed in. Regarding Chromium issues 73355, 95129, 95732, 97285, 103957 and Chromium-os issue 18437, 22372, we suspect the channel handles passed to the renderer have invalid file descriptors (fd). This is supported by the fact that using a channel handle with a valid name but an invalid fd will produce crashes with exactly the same stack trace as reported in these issues. Running out of fd in either the renderer, browser or the other process (GPU, broker, etc) could cause this to happen, but we are not sure if that's the real cause. Adding check for the fd in various places to help investigate these issues further. We will be able to tell if invalid fd is passed in and if yes, which process generates it. Browser side check is only added for the broker case to limit the scale of bad user experience, while providing enough cases for investigation. BUG=none TEST=passed unit tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=112647

Patch Set 1 #

Patch Set 2 : Rebase only. #

Patch Set 3 : Add CHECK on fd. #

Patch Set 4 : Remove CHECK in plugin thread. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -1 line) Patch
M content/browser/renderer_host/render_message_filter.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_channel_manager.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M content/common/np_channel_base.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M content/ppapi_plugin/ppapi_thread.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/pepper_plugin_delegate_impl.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
xhwang
Hello ddorwin, piman and jam, This is a small change to add check on the ...
9 years ago (2011-11-30 19:28:09 UTC) #1
piman
Could we CHECK() instead of silently failing? That way we'd get more accurate crash reports ...
9 years ago (2011-11-30 19:39:25 UTC) #2
xhwang
On 2011/11/30 19:39:25, piman wrote: > Could we CHECK() instead of silently failing? That way ...
9 years ago (2011-11-30 20:12:52 UTC) #3
piman
On Wed, Nov 30, 2011 at 12:12 PM, <xhwang@chromium.org> wrote: > On 2011/11/30 19:39:25, piman ...
9 years ago (2011-11-30 21:11:01 UTC) #4
xhwang
On 2011/11/30 21:11:01, piman wrote: > On Wed, Nov 30, 2011 at 12:12 PM, <mailto:xhwang@chromium.org> ...
9 years ago (2011-12-01 00:05:35 UTC) #5
jam
I defer to Antoine who's an owner of content\renderer In general, we prefer to CHECK. ...
9 years ago (2011-12-01 03:56:34 UTC) #6
xhwang
Hello ddorwin and piman, As discussed, added CHECK on fd for all gpu, npapi plugin ...
9 years ago (2011-12-01 18:09:41 UTC) #7
piman
LGTM. Please make sure the referenced bugs are marked as ReleaseBlock-Beta, so that we don't ...
9 years ago (2011-12-01 18:25:31 UTC) #8
xhwang
hello jam, Could you please do an OWNERS review on the following two files: content/browser/renderer_host/render_message_filter.cc ...
9 years ago (2011-12-01 19:25:16 UTC) #9
xhwang
Hello piman, ddorwin and I investigated the NPAPI case a little more and found that ...
9 years ago (2011-12-01 23:45:23 UTC) #10
piman
On 2011/12/01 23:45:23, xhwang wrote: > Hello piman, > > ddorwin and I investigated the ...
9 years ago (2011-12-01 23:53:04 UTC) #11
jam
lgtm
9 years ago (2011-12-02 00:16:11 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/8735015/12014
9 years ago (2011-12-02 04:51:43 UTC) #13
commit-bot: I haz the power
9 years ago (2011-12-02 07:27:05 UTC) #14
Change committed as 112647

Powered by Google App Engine
This is Rietveld 408576698