Skip to content

Problems with upstream SPECTRE mitigation found in sendmsg/recvmsg syscalls

François Legal xenomai 1 version New

Get series with b4
b4 am 1176-5fce0980-155-12dbaa60@116771100

Versions newest first

  1. v1 Latest0 of 5 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 5 patches the cover letter announces are in this archive.

Reviews trailers per patch

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

Read the v1 thread

Cover letter [Patch 0/5] Problems with upstream SPECTRE mitigation found in sendmsg/recvmsg syscalls

From: François LEGAL <[email protected]>

The syscall entry code used to copy the struct user_msghdr on the syscall stack, and some registered callbacks (notably in RTNet) were then calling again copy_from/to_user on that struct, which would trigger the SPECTRE mitigation protection.

I ran the iddp/xddp/bufp-label tests which seems ok with the patch, and retested RTNet af_packet part I did not test the rtcan part as I have no hardware available.

 kernel/cobalt/posix/io.c          | 20 ++------------------
 kernel/drivers/can/rtcan_raw.c    | 37 +++++++++++++++++++++++++++++--------
 kernel/drivers/ipc/bufp.c         | 14 ++++++++++++--
 kernel/drivers/ipc/iddp.c         | 14 ++++++++++++--
 kernel/drivers/ipc/xddp.c         | 14 ++++++++++++--
 5 files changed, 67 insertions(+), 32 deletions(-)