Title: Bump bundled libuv to ≥1.49 so io_uring isn't silently on by default · Issue #752 · MagicStack/uvloop · GitHub
Open Graph Title: Bump bundled libuv to ≥1.49 so io_uring isn't silently on by default · Issue #752 · MagicStack/uvloop
X Title: Bump bundled libuv to ≥1.49 so io_uring isn't silently on by default · Issue #752 · MagicStack/uvloop
Description: Problem uvloop vendors libuv 1.48.0 (vendor/libuv submodule SHA e9f29cb9… → tag v1.48.0, 2024-02-07). On kernels ≥ 5.10.186 that libuv turns on io_uring by default — an IORING_SETUP_SQPOLL ring for async file ops and an IORING_OP_EPOLL_C...
Open Graph Description: Problem uvloop vendors libuv 1.48.0 (vendor/libuv submodule SHA e9f29cb9… → tag v1.48.0, 2024-02-07). On kernels ≥ 5.10.186 that libuv turns on io_uring by default — an IORING_SETUP_SQPOLL ring for...
X Description: Problem uvloop vendors libuv 1.48.0 (vendor/libuv submodule SHA e9f29cb9… → tag v1.48.0, 2024-02-07). On kernels ≥ 5.10.186 that libuv turns on io_uring by default — an IORING_SETUP_SQPOLL ring for...
Opengraph URL: https://github.com/MagicStack/uvloop/issues/752
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bump bundled libuv to ≥1.49 so io_uring isn't silently on by default","articleBody":"## Problem\n\n`uvloop` vendors libuv 1.48.0 (`vendor/libuv` submodule SHA `e9f29cb9…` → tag v1.48.0, 2024-02-07). On kernels ≥ 5.10.186 that libuv turns on io_uring **by default** — an `IORING_SETUP_SQPOLL` ring for async file ops and an `IORING_OP_EPOLL_CTL` batching ring for `epoll_ctl`. Nothing in the stack opts in:\n\n```\napp → uvloop.run() → uvloop → bundled libuv 1.48 → io_uring_enter\n```\n\nObserved via an eBPF tracepoint on `io_uring_setup`/`io_uring_enter`: uvloop-driven processes issue those syscalls during normal startup, before any app file I/O.\n\n## Why\n\nio_uring bypasses the syscall boundary seccomp filters on. Ops inside the ring (openat, read, write, connect) aren't individual syscalls — seccomp can only allow/deny `io_uring_enter` wholesale, not the ops inside. So if you relax the profile to silence the inevitable EPERM noise, you punch a hole through the whole seccomp profile. The default Kubernetes `RuntimeDefault` profile denies `io_uring_setup` (#426), which is correct — but means uvloop-driven processes noisily fail into libuv's epoll+threadpool fallback on every loop init.\n\nlibuv already agreed: **v1.49.0 disabled SQPOLL io_uring by default** (#4492). The gap isn't libuv — it's consumers still bundling 1.48.\n\nuvloop is the layer that controls io_uring exposure for most of the Python ecosystem (via `uvicorn[standard]` → uvloop). Today that choice is \"io_uring on by default, suppressed only by seccomp.\"\n\n## Proposal\n\n1. **Bump `vendor/libuv` to ≥ 1.49.0.** Consistent with prior uvloop libuv bumps (v0.15.0, v0.14.0, etc.). Removes the SQPOLL ring from the default footprint.\n2. **Document** the io_uring behavior + the `UV_USE_IO_URING=0` escape hatch in the README. (Note: the env var fully gates io_uring in 1.48; in 1.49+ the `IORING_OP_EPOLL_CTL` batching ring is no longer gated by it — verify against whatever version you ship.)\n3. Optionally expose a uvloop-level switch (`UVLOOP_USE_IO_URING=0`) so apps don't have to reach into libuv's env var.\n\n## References\n\n- libuv v1.49.0 (2024-09-25): https://github.com/libuv/libuv/releases/tag/v1.49.0 — \"linux: disable SQPOLL io_uring by default #4492\"\n- libuv v1.48.0 (2024-02-07): https://github.com/libuv/libuv/releases/tag/v1.48.0 — what uvloop currently bundles\n- PR #4492: https://github.com/libuv/libuv/pull/4492","author":{"url":"https://github.com/hixichen","@type":"Person","name":"hixichen"},"datePublished":"2026-06-23T18:31:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/752/uvloop/issues/752"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:22f715a1-b672-2fcb-bb08-064a177abac8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9148:1793BD:2E9199D:40F44E8:6A634264 |
| html-safe-nonce | 3c24fac5a79596d28b67fd2389cbf95000a7732bf4ab319b44c8ce43f93ffe01 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTQ4OjE3OTNCRDoyRTkxOTlEOjQwRjQ0RTg6NkE2MzQyNjQiLCJ2aXNpdG9yX2lkIjoiMzU3OTYzMDcxOTI5MDUyNDI2MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d459069b94ef79054cb63d6fb05ca7a5eacb19264d65b1bb380aa5c9a24abd54 |
| hovercard-subject-tag | issue:4728522886 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/MagicStack/uvloop/752/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2937bfe6979ece941748c3cae626a2367d4183abd374d08c5aad21beb9d4d011/MagicStack/uvloop/issues/752 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2937bfe6979ece941748c3cae626a2367d4183abd374d08c5aad21beb9d4d011/MagicStack/uvloop/issues/752 |
| og:image:alt | Problem uvloop vendors libuv 1.48.0 (vendor/libuv submodule SHA e9f29cb9… → tag v1.48.0, 2024-02-07). On kernels ≥ 5.10.186 that libuv turns on io_uring by default — an IORING_SETUP_SQPOLL ring for... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hixichen |
| hostname | github.com |
| expected-hostname | github.com |
| None | 59e55daad7174ca59d63c6974d58276ccb5477442e550bebb3c035e1bef11c94 |
| turbo-cache-control | no-preview |
| go-import | github.com/MagicStack/uvloop git https://github.com/MagicStack/uvloop.git |
| octolytics-dimension-user_id | 14324950 |
| octolytics-dimension-user_login | MagicStack |
| octolytics-dimension-repository_id | 45766550 |
| octolytics-dimension-repository_nwo | MagicStack/uvloop |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 45766550 |
| octolytics-dimension-repository_network_root_nwo | MagicStack/uvloop |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 990295d92a4cc7b63fbbd83a046217cd7d77d49c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width