Skip to content

RFC net: support for CFI with libslirp >= 4.7

Paolo Bonzini qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4net: slirp: introduce a wrapper struct for QemuTimernet/slirp.c+14 -51 reply
2/4net: slirp: switch to slirp_newnet/slirp.c+21 -61 reply
3/4net: slirp: add support for CFI-friendly timer APInet/slirp.c+40 -11 reply
4/4net: slirp: allow CFI with libslirp >= 4.7meson.build+12 -121 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchSamuel Thibault
1/4R-b
2/4R-b
3/4R-b
4/4R-b

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 0/4] net: support for CFI with libslirp >= 4.7

A system libslirp (either static or dynamic) cannot be used with QEMU if QEMU is compiled with control-flow instrumentation, because of the way
timers are implemented in libslirp. libslirp passes a function pointer
to the timer_new callback but the type information for the callback is missing; invoking the timer callback produces a CFI false positive.

The fix requires the introduction of new interfaces in libslirp. This series is an example of how QEMU would use the new interfaces introduced by libslirp merge request at
https://gitlab.freedesktop.org/slirp/libslirp/-/merge_requests/117.
It is RFC-only because the new interfaces have not been accepted yet.

Paolo Bonzini (4):
net: slirp: introduce a wrapper struct for QemuTimer
net: slirp: switch to slirp_new
net: slirp: add support for CFI-friendly timer API
net: slirp: allow CFI with libslirp >= 4.7

 meson.build | 24 +++++++--------
 net/slirp.c | 85 ++++++++++++++++++++++++++++++++++++++++++++++-------
 2 files changed, 86 insertions(+), 23 deletions(-)
Signature · 1 line
2.35.1