From: Jens Axboe <axboe@kernel.dk>
To: Caleb Sander Mateos <csander@purestorage.com>
Cc: io-uring@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] io_uring/rsrc: take unsigned index in io_rsrc_node_lookup()
Date: Thu, 22 Jan 2026 15:59:18 -0700 [thread overview]
Message-ID: <176912275829.523910.8844345576274421651.b4-ty@kernel.dk> (raw)
In-Reply-To: <20260122214506.88529-1-csander@purestorage.com>
On Thu, 22 Jan 2026 14:45:04 -0700, Caleb Sander Mateos wrote:
> io_rsrc_node_lookup() takes a signed int index as input and compares it
> to an unsigned length. Since the signed int is implicitly cast to an
> unsigned int for the comparison and the length is bounded by
> IORING_MAX_FIXED_FILES/IORING_MAX_REG_BUFFERS, negative indices are
> already rejected on architectures where int is at least 32 bits. Make
> this a bit clearer and avoid compiler warnings for comparisons of
> signed and unsigned values by taking an unsigned int index instead.
>
> [...]
Applied, thanks!
[1/1] io_uring/rsrc: take unsigned index in io_rsrc_node_lookup()
commit: 82dadc8a494758093e775336390cb31033c6f9a3
Best regards,
--
Jens Axboe
prev parent reply other threads:[~2026-01-22 22:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-22 21:45 [PATCH] io_uring/rsrc: take unsigned index in io_rsrc_node_lookup() Caleb Sander Mateos
2026-01-22 22:59 ` Jens Axboe [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=176912275829.523910.8844345576274421651.b4-ty@kernel.dk \
--to=axboe@kernel.dk \
--cc=csander@purestorage.com \
--cc=io-uring@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox