[RFC PATCH 19/39] io_uring: store its sysctl bounds by value

From: wen . yang

Date: Wed Oct 28 2026 - 12:43:19 EST


From: Wen Yang <wen.yang@xxxxxxxxx>

Replace io_uring bound pointers with numeric limits.

Suggested-by: Joel Granados <joel.granados@xxxxxxxxxx>
Signed-off-by: Wen Yang <wen.yang@xxxxxxxxx>
---
io_uring/io_uring.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c
index 8ffe0c9a4e29..48e03c3c066c 100644
--- a/io_uring/io_uring.c
+++ b/io_uring/io_uring.c
@@ -138,8 +138,8 @@ static const struct ctl_table kernel_io_uring_disabled_table[] = {
.maxlen = sizeof(sysctl_io_uring_disabled),
.mode = 0644,
.proc_handler = proc_dointvec_minmax,
- .extra1 = SYSCTL_ZERO,
- .extra2 = SYSCTL_TWO,
+ .min = 0,
+ .max = 2,
},
{
.procname = "io_uring_group",
--
2.25.1