nginx-util: fix a use-after-free and a hang in init_lan #31550
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.44) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.44 · 256 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.332
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #31550"
general
weight: 0.35
openwrt-ai
📦 Package Details
Maintainer: @peter-stadler
Description:
Fixes #18904:
nginx-util init_lan, which the nginx init script runs on every start, can hang forever.If
init_laninternally throws, UCI-driven configuration can hang.This changeset:
prevents certain exceptions from UCI-related nginx-util worker threads
from causing a hang on the nginx-util main thread (main thread waits
on workers to report whether uci_enable is set, and if a worker throws
before releasing the old mutex, the main thread waits forever)
fixes a read of a destroyed temporary in
uci::item::operator bool(AddressSanitizer: stack-use-after-scope)
This description, and the patch description, were reviewed by an LLM.
The patch diff was generated by an LLM, and the tests below were run by an LLM agent at my direction; I reviewed the results.
---
🔬 Run Testing Details
Built with each release's SDK, stock and with this patch.
uci_enable=true: stock and patched write the same files to/var/lib/nginx.uci_enable=bogus: stock hangsinit_lan,/etc/init.d/nginx restartand boot atS80nginx, so later start scripts never run. Patched exits 1 withuci_error: item is not bool bogus, and boot completes.init_lanwithuci_enable=true: no hangs, stock or patched.uci::item::operator boolfor every validuci_enable; patched is clean.---
✅ Formalities
- [x] I have used AI or LLM in my pull request, description, or commit
messages, and the description says what it was used for.