Skip to content

Commit

Permalink
fix(wasm): disable jit for set_host_properties_handlers()
Browse files Browse the repository at this point in the history
This can trigger a segfault if it is jit-compiled due to the semantics
of making an FFI call to a C land function which in turn calls back into
a Lua land function.
  • Loading branch information
flrgh committed Jun 18, 2024
1 parent a3f5410 commit b4bd033
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kong/runloop/wasm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -836,6 +836,7 @@ local function enable(kong_config)

if not ngx.IS_CLI then
proxy_wasm = proxy_wasm or require "resty.wasmx.proxy_wasm"
jit.off(proxy_wasm.set_host_properties_handlers)

register_property_handlers()
end
Expand Down

0 comments on commit b4bd033

Please sign in to comment.