axboe / liburing

Library providing helpers for the Linux kernel io_uring support
MIT License
2.89k stars 407 forks source link

Some sanitize fixes/cleanups #1245

Closed Oipo closed 1 month ago

Oipo commented 1 month ago

Some opcodes store non-pointers or potentially old-pointers in the addr field on purpose, without it leading to problems. Sanitize tried to check these and erroneously reports issues.

On top of that, some minor cleanups.


git request-pull output:

The following changes since commit 0c8975ad7c95de0f81a9dc869b55e77131159040:

  man/io_uring_register_ring_fd: add note about kernel availability (2024-09-22 00:47:34 -0600)

are available in the Git repository at:

  git@github.com:Oipo/liburing.git 

for you to fetch changes up to dcfa5314024eb1c655901653fd404868046c59ac:

  include/liburing.h: Remove redundant sanitize check (2024-09-24 20:06:32 +0200)

----------------------------------------------------------------
Michael de Lang (3):
      src/sanitize: Remove unused ifdef guard
      src/sanitize: don't sanitize opcodes with non-pointer inputs
      include/liburing.h: Remove redundant sanitize check

 src/include/liburing.h |  3 ---
 src/register.c         |  1 +
 src/sanitize.c         | 29 +++++------------------------
 3 files changed, 6 insertions(+), 27 deletions(-)