mbox series

[pseudo,0/3] Implement io_uring wrapping

Message ID 20261116185400.2205466-1-mark.hatle@amd.com
Headers show
Series Implement io_uring wrapping | expand

Message

Mark Hatle Nov. 16, 2026, 6:53 p.m. UTC
[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