Skip to content

backend: avoid holding manager lock during PAC execution - #371

Open
nievesmontero wants to merge 2 commits into
libproxy:mainfrom
nievesmontero:fix/pac-manager-locking
Open

nievesmontero wants to merge 2 commits into
libproxy:mainfrom
nievesmontero:fix/pac-manager-locking

Conversation

@nievesmontero

@nievesmontero nievesmontero commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Bound PAC downloads with transfer and low-speed timeouts, and run PAC evaluation under a separate mutex so potentially blocking JavaScript does not hold the global manager lock.

Closes: #370

Found by AISLE in partnership with Red Hat

This report was generated using AI technology. Always review AI-generated
content prior to use

@nievesmontero
nievesmontero force-pushed the fix/pac-manager-locking branch 3 times, most recently from 20dc815 to cba5337 Compare September 24, 2026 11:04
@codecov

codecov Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 59.25926% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 69.00%. Comparing base (0ac6285) to head (901c6ad).

Files with missing lines Patch % Lines
src/backend/px-manager.c 59.25% 4 Missing and 7 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #371      +/-   ##
==========================================
- Coverage   69.28%   69.00%   -0.29%     
==========================================
  Files          18       18              
  Lines         915      926      +11     
  Branches      279      282       +3     
==========================================
+ Hits          634      639       +5     
- Misses        162      163       +1     
- Partials      119      124       +5     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Bound PAC downloads with transfer and low-speed timeouts, and run PAC
evaluation under a separate mutex so potentially blocking JavaScript does
not hold the global manager lock.

Closes: libproxy#370

Found by AISLE in partnership with Red Hat
@nievesmontero
nievesmontero force-pushed the fix/pac-manager-locking branch from fcb9590 to 901c6ad Compare September 28, 2026 11:27
@nievesmontero

Copy link
Copy Markdown
Contributor Author

As there is a CVE assigned, is there a possibility that there could be a release with the fixes in the near future?
Please let me know if there's something I can help with.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant