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

Issue 215173002: Linux Sandbox: fix BPF compiler bug (Closed)

Created:
6 years, 9 months ago by jln (very slow on Chromium)
Modified:
6 years, 9 months ago
CC:
chromium-reviews, agl, jln+watch_chromium.org, Jorge Lucangeli Obes, Jed Davis
Visibility:
Public.

Description

Linux Sandbox: fix BPF compiler bug The code responsible for detecting similar blocks and merging them didn't check for the next blocks if the last instruction was not a JMP or a RET. The patch to fix this bug (in codegen.cc) is based on a patch by jld@panix.com, attached to the bug report. Additional unittests are from jln@chromium.org BUG=351103 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260157

Patch Set 1 #

Patch Set 2 : Fix comments. #

Total comments: 3

Patch Set 3 : Add assertions. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -1 line) Patch
M sandbox/linux/seccomp-bpf/codegen.cc View 1 2 3 chunks +25 lines, -1 line 0 comments Download
M sandbox/linux/seccomp-bpf/codegen_unittest.cc View 1 1 chunk +96 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
jln (very slow on Chromium)
Markus: if you could take a look, that would be very helpful Mdempsky: please, take ...
6 years, 9 months ago (2014-03-27 18:31:39 UTC) #1
jln (very slow on Chromium)
+cc: Jed
6 years, 9 months ago (2014-03-27 19:08:10 UTC) #2
mdempsky
lgtm https://codereview.chromium.org/215173002/diff/30001/sandbox/linux/seccomp-bpf/codegen.cc File sandbox/linux/seccomp-bpf/codegen.cc (right): https://codereview.chromium.org/215173002/diff/30001/sandbox/linux/seccomp-bpf/codegen.cc#newcode447 sandbox/linux/seccomp-bpf/codegen.cc:447: if (BPF_CLASS(insns1.back()->code) != BPF_JMP && Are Instructions guaranteed ...
6 years, 9 months ago (2014-03-27 20:27:32 UTC) #3
jln (very slow on Chromium)
Jorge, do you mind reviewing or stamping this? https://codereview.chromium.org/215173002/diff/30001/sandbox/linux/seccomp-bpf/codegen.cc File sandbox/linux/seccomp-bpf/codegen.cc (right): https://codereview.chromium.org/215173002/diff/30001/sandbox/linux/seccomp-bpf/codegen.cc#newcode447 sandbox/linux/seccomp-bpf/codegen.cc:447: if ...
6 years, 9 months ago (2014-03-27 21:44:07 UTC) #4
mdempsky
https://codereview.chromium.org/215173002/diff/30001/sandbox/linux/seccomp-bpf/codegen.cc File sandbox/linux/seccomp-bpf/codegen.cc (right): https://codereview.chromium.org/215173002/diff/30001/sandbox/linux/seccomp-bpf/codegen.cc#newcode447 sandbox/linux/seccomp-bpf/codegen.cc:447: if (BPF_CLASS(insns1.back()->code) != BPF_JMP && On 2014/03/27 21:44:08, jln ...
6 years, 9 months ago (2014-03-27 21:46:38 UTC) #5
Jorge Lucangeli Obes
lgtm
6 years, 9 months ago (2014-03-27 21:47:37 UTC) #6
jln (very slow on Chromium)
The CQ bit was checked by jln@chromium.org
6 years, 9 months ago (2014-03-28 12:40:46 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jln@chromium.org/215173002/50001
6 years, 9 months ago (2014-03-28 12:41:00 UTC) #8
commit-bot: I haz the power
6 years, 9 months ago (2014-03-28 16:26:33 UTC) #9
Message was sent while issue was closed.
Change committed as 260157

Powered by Google App Engine
This is Rietveld 408576698