RFC net: support for CFI with libslirp >= 4.7
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest4 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | net: slirp: introduce a wrapper struct for QemuTimernet/ | +14 | 1 reply | |
| 2/4 | net: slirp: switch to slirp_newnet/ | +21 | 1 reply | |
| 3/4 | net: slirp: add support for CFI-friendly timer APInet/ | +40 | 1 reply | |
| 4/4 | net: slirp: allow CFI with libslirp >= 4.7meson.build | +12 | 1 reply |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Samuel Thibault |
|---|---|
| 1/4 | R-b |
| 2/4 | R-b |
| 3/4 | R-b |
| 4/4 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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