Skip to content

io_uring: verify that reserved fields are 0

Dylan Yudaken io-uring lkml 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4io_uring: move io_uring_rsrc_update2 validationfs/io_uring.c+2 -20 replies
2/4io_uring: verify that resv2 is 0 in io_uring_rsrc_update2fs/io_uring.c+3 -20 replies
3/4io_uring: verify resv is 0 in ringfd register/unregisterfs/io_uring.c+6 -10 replies
4/4io_uring: verify pad field is 0 in io_get_ext_argfs/io_uring.c+2 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] io_uring: verify that reserved fields are 0

A few reserved fields are not verified to be 0. In preparation for possibly using these fields later we should verify that they are passed as 0.

One extra field I do not have confidence in verifying is up.nr in io_register_files_update(). Should this also be checked to be zero?

Patch 1 in this series just moves a validation out of __io_register_rsrc_update as it was duplicated Patch 2-4 add verifications for reserved fields

Dylan Yudaken (4):
io_uring: move io_uring_rsrc_update2 validation
io_uring: verify that resv2 is 0 in io_uring_rsrc_update2
io_uring: verify resv is 0 in ringfd register/unregister
io_uring: verify pad field is 0 in io_get_ext_arg

 fs/io_uring.c | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

base-commit: 0f8da75b51ac863b9435368bd50691718cc454b0

Signature · 1 line
2.30.2