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

Issue 560983003: Non-SFI mode: Quick workaround of unexpected CHECK failure. (Closed)

Created:
6 years, 3 months ago by hidehiko
Modified:
6 years, 3 months ago
Reviewers:
teravest
CC:
chromium-reviews, hamaji, Takashi Toyoshima, Peng
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Non-SFI mode: Quick workaround of unexpected CHECK failure. Recently, crrev.com/418423002 is landed, but it has a bug in Non-SFI mode. It introduces CHECK for the file token in ManifestService::OpenResource(). However, in Non-SFI mode, there is no NaClIPCAdapter, so the token is passed from the renderer directly. (Actually the IPC channel is connected directly to the renderer). As a result, if the renderer fills the file token properly, it crashes. As far as I investigated, it happens, at least, when the fast-path is triggered (i.e. OpenNaClExecutable works in DownloadFile in ppb_nacl_private_impl.cc). Anyway, we can ignore file tokens in Non-SFI mode, because it is for SFI NaCl's validation cache. BUG=394130 TEST=Ran trybots. Patched locally and run our Non-SFI NaCl app. CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:linux_rel_precise32 Committed: https://crrev.com/b16b57b17667f75ee80b3abe5dd59529bc48a8e5 Cr-Commit-Position: refs/heads/master@{#294396}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M ppapi/nacl_irt/manifest_service.cc View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
hidehiko
Hi Justin, crrev.com/418423002 breaks Non-SFI mode. It triggers CHECK failure in ManifestService::OpenResource, which causes seccomp-bpf ...
6 years, 3 months ago (2014-09-11 05:17:04 UTC) #2
teravest
lgtm
6 years, 3 months ago (2014-09-11 14:57:26 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/560983003/1
6 years, 3 months ago (2014-09-11 14:59:10 UTC) #5
Mark Seaborn
This is only good as a temporary fix, though. This exposes the token values to ...
6 years, 3 months ago (2014-09-11 15:04:41 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1) as 968f0cba660c61c8f440b181262532da4090458e
6 years, 3 months ago (2014-09-11 15:59:18 UTC) #7
teravest
On 2014/09/11 05:17:04, hidehiko wrote: > Hi Justin, > > crrev.com/418423002 breaks Non-SFI mode. > ...
6 years, 3 months ago (2014-09-11 16:02:20 UTC) #8
teravest
On 2014/09/11 15:04:41, Mark Seaborn wrote: > This is only good as a temporary fix, ...
6 years, 3 months ago (2014-09-11 16:03:19 UTC) #9
commit-bot: I haz the power
6 years, 3 months ago (2014-09-11 16:06:23 UTC) #10
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/b16b57b17667f75ee80b3abe5dd59529bc48a8e5
Cr-Commit-Position: refs/heads/master@{#294396}

Powered by Google App Engine
This is Rietveld 408576698