-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blocking from a hook is not stopping code execution #2836
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2836 +/- ##
=============================================
- Coverage 74.82% 49.72% -25.10%
+ Complexity 2741 2736 -5
=============================================
Files 110 110
Lines 10863 10858 -5
=============================================
- Hits 8128 5399 -2729
- Misses 2735 5459 +2724
Flags with carried forward coverage won't be shown. Click here to find out more. see 50 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
I see, the tracer sandboxing is sandboxing the bailout away :-) |
c5d1d67
to
1d93a16
Compare
1d93a16
to
78a05a9
Compare
78a05a9
to
dedee17
Compare
dedee17
to
3438fca
Compare
Benchmarks [ tracer ]Benchmark execution time: 2024-11-29 16:40:28 Comparing candidate commit 1602d2c in PR branch Found 0 performance improvements and 2 performance regressions! Performance is the same for 176 metrics, 0 unstable metrics. scenario:HookBench/benchHookOverheadTraceMethod
scenario:PDOBench/benchPDOBaseline
|
e086d75
to
8322005
Compare
8322005
to
1602d2c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's fine although it's a mystery to me why sandbox.{h,c} are written the way they are.
inline void zai_sandbox_bailout(zai_sandbox *sandbox) { | ||
if (!zai_sandbox_timed_out()) { | ||
if (!zai_sandbox_timed_out() && !zai_is_request_blocked()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know why sandbox.h is written this way, with just C inline functions, but I guess that in the context of its strangeness it's fine.
Description
Blocking a request from Appsec should stop customer code execution. However, when this blocking happens within a tracer hook, it does not stop executing customer code execution.
Reviewer checklist