Skip to content

RFC Introduce '--use-libc' option

Ammar Faizi 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 RFC Latest3 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3configure: Remove --nolibc optionconfigure+0 -190 replies
2/3configure: Introduce '--use-libc' optionconfigure+16 -70 replies
3/3src/Makefile: Allow using stack protector with libcsrc/Makefile+3 -42 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchAlviro Iskandar Setiawan
1/3Co-authored-by
2/3Co-authored-by
3/3Co-authored-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH liburing v1 0/3] Introduce '--use-libc' option

Hi Jens,
Hi Stefan and Guillem,

This is an RFC patch series to introduce the '--use-libc' option to the configure script.

Currently, when compiling liburing on x86, x86-64, and aarch64 architectures, the resulting binary lacks the linkage with the standard C library (libc).

To address the concerns raised by Linux distribution package maintainers regarding security, it is necessary to enable the linkage of libc to liburing. Especially right now, when the security of io_uring is being scrutinized. By incorporating the '--use-libc' option, developers can now enhance the overall hardening of liburing by utilizing compiler features such as the stack protector and address sanitizer.

See the following links for viewing the discussion:

There are three patches in this series.

- The first patch removes the '--nolibc' option from the configure script as it is no longer needed. The default build on x86, x86-64, and aarch64 architectures is still not using libc.

- The second patch introduces the '--use-libc' option to the configure script. This option enables the linkage of libc to liburing.

- The third patch allows the use of the stack protector when building liburing with libc.

Please review. Thank you.

---

Ammar Faizi (3):
configure: Remove --nolibc option
configure: Introduce '--use-libc' option src/Makefile: Allow using stack protector with libc

 configure    | 40 +++++++++++++++-------------------------
 src/Makefile |  7 +++----
 2 files changed, 18 insertions(+), 29 deletions(-)

base-commit: 49fa118c58422bad38cb96fea0f10af60691baa9

Signature · 1 line
Ammar Faizi