Skip to content

linux-user: Fix shmat(NULL) for h != g

Ilya Leoshkevich qemu-devel 2 versions Applied

Status from this message: Queued, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyApplied
  2. v14 patches 4 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4linux-user: Fix semctl() stracelinux-user/strace.c+2 -60 replies
2/4linux-user: Fix shmat() stracelinux-user/strace.c+1 -10 replies
3/4linux-user: Fix shmat(NULL) for h != glinux-user/mmap.c+1 -10 replies
4/4tests/tcg: Test shmat(NULL)tests/tcg/multiarch/linux/linux-shmat-null.c+38 -00 replies

Reviews trailers per patch

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

PatchRichard Henderson
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 v2 thread

Cover letter [PATCH v2 0/4] linux-user: Fix shmat(NULL) for h != g

v1: https://lore.kernel.org/qemu-devel/[email protected]/
v1 -> v2: Remove an unnecessary ifdef, add R-Bs (Richard).

Hi,

I noticed that while shmat() now works with /proc/self/maps, shmat(NULL) got broken. This series fixes that along with two related strace issues, and adds a test.

Best regards,
Ilya

Ilya Leoshkevich (4):
linux-user: Fix semctl() strace
linux-user: Fix shmat() strace
linux-user: Fix shmat(NULL) for h != g
tests/tcg: Test shmat(NULL)

 linux-user/mmap.c                            |  2 +-
 linux-user/strace.c                          | 10 ++----
 tests/tcg/multiarch/linux/linux-shmat-null.c | 38 ++++++++++++++++++++
 3 files changed, 42 insertions(+), 8 deletions(-)
 create mode 100644 tests/tcg/multiarch/linux/linux-shmat-null.c
Signature · 1 line
2.44.0