summaryrefslogtreecommitdiff
path: root/drivers/char/drm/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorAnas Iqbal <mohd.abd.6602@gmail.com>2026-03-31 22:07:39 +0100
committerJens Axboe <axboe@kernel.dk>2026-04-01 10:21:13 -0600
commit77d8c8d0f1b76a005267ee9714ed98964c87ecc5 (patch)
tree4db4d4214c289ee9602eef9f7cf81e9121cfdb93 /drivers/char/drm/git@git.tavy.me:linux.git
parenta9d008489f0c5304ca7f705348324e47824a7454 (diff)
io_uring: cast id to u64 before shifting in io_allocate_rbuf_ring()
Smatch warns: io_uring/zcrx.c:393 io_allocate_rbuf_ring() warn: should 'id << 16' be a 64 bit type? The expression 'id << IORING_OFF_PBUF_SHIFT' is evaluated using 32-bit arithmetic because id is a u32. This may overflow before being promoted to the 64-bit mmap_offset. Cast id to u64 before shifting to ensure the shift is performed in 64-bit arithmetic. Signed-off-by: Anas Iqbal <mohd.abd.6602@gmail.com> Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://patch.msgid.link/52400e1b343691416bef3ed3ae287fb1a88d407f.1774780198.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/char/drm/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions