Skip to content

Implement io_uring wrapping

Mark Hatle yocto-patches 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ports/linux/pseudo_wrappers: Report io_uring as unsupported in syscall()ports/linux/pseudo_wrappers.c test/test-io-uring-syscall.c test/test-io-uring-syscall.sh+74 -00 replies
2/3ports/linux: Refuse io_uring in the kernel rather than be bypassed by itMakefile.in ports/linux/io_uring_syscalls.h ports/linux/portdefs.h +7 more+817 -00 replies
3/3README.security: Describe io_uring refusal and the host fallbackREADME.security+16 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [pseudo][PATCH 0/3] Implement io_uring wrapping

[YOCTO #15244]

Implemented via a combination of intercepting the syscalls as well as trying to use seccomp to prevent the call from working if a user bypasses our syscall wrapper.

David Nyström (1):
ports/linux: Refuse io_uring in the kernel rather than be bypassed by
it

Mark Hatle (2):
ports/linux/pseudo_wrappers: Report io_uring as unsupported in
syscall()
README.security: Describe io_uring refusal and the host fallback

 Makefile.in                           |   1 +
 README.security                       |  16 ++
 ports/linux/io_uring_syscalls.h       |  72 +++++
 ports/linux/portdefs.h                |   2 +
 ports/linux/pseudo_io_uring_seccomp.c | 363 ++++++++++++++++++++++++++
 ports/linux/pseudo_wrappers.c         |  24 ++
 pseudo.1                              |  79 ++++++
 pseudo_util.c                         |   2 +
 pseudo_wrappers.c                     |  11 +
 test/test-io-uring-deny.c             | 267 +++++++++++++++++++
 test/test-io-uring-deny.sh            |  16 ++
 test/test-io-uring-syscall.c          |  47 ++++
 test/test-io-uring-syscall.sh         |   7 +
 13 files changed, 907 insertions(+)
 create mode 100644 ports/linux/io_uring_syscalls.h
 create mode 100644 ports/linux/pseudo_io_uring_seccomp.c
 create mode 100644 test/test-io-uring-deny.c
 create mode 100755 test/test-io-uring-deny.sh
 create mode 100644 test/test-io-uring-syscall.c
 create mode 100755 test/test-io-uring-syscall.sh
Signature · 1 line
2.34.1