qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PULL 0/5] Linux user brk fixes patches
@ 2023-07-19 15:52 Helge Deller
  2023-07-19 15:52 ` [PULL 1/5] linux-user: Fix qemu brk() to not zero bytes on current page Helge Deller
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Helge Deller @ 2023-07-19 15:52 UTC (permalink / raw)
  To: Richard Henderson, Laurent Vivier, Andreas Schwab,
	Michael Tokarev, qemu-devel
  Cc: Helge Deller

The following changes since commit 361d5397355276e3007825cc17217c1e4d4320f7:

  Merge tag 'block-pull-request' of https://gitlab.com/stefanha/qemu into staging (2023-07-17 15:49:27 +0100)

are available in the Git repository at:

  https://github.com/hdeller/qemu-hppa.git tags/linux-user-brk-fixes-pull-request

for you to fetch changes up to 518f32221af759a29500ac172c4c857bef142067:

  linux-user: Fix qemu-arm to run static armhf binaries (2023-07-18 20:42:05 +0200)

----------------------------------------------------------------
linux-user: brk() syscall fixes and armhf static binary fix

Commit 86f04735ac ("linux-user: Fix brk() to release pages") introduced
the possibility for userspace applications to reduce memory footprint by
calling brk() with a lower address and as such free up memory, the same
way as the Linux kernel allows on physical machines.

This change introduced some failures for applications with errors like
- accesing bytes above the brk heap address on the same page,
- freeing memory below the initial brk address,
and introduced a behaviour which isn't done by the kernel (e.g. zeroing
memory above brk).

This patch series fixes those issues and has been tested with existing
programs (e.g. upx).

Additionally one patch fixes running static armhf executables (e.g. fstype)
which was broken since qemu-8.0.

Changes in v2:
- dropped patch to revert d28b3c90cfad ("linux-user: Make sure initial brk(0)
  is page-aligned")
- rephrased some commit messages
- fixed Cc email addresses, added new ones
- added R-b tags

Helge

----------------------------------------------------------------

Helge Deller (5):
  linux-user: Fix qemu brk() to not zero bytes on current page
  linux-user: Prohibit brk() to to shrink below initial heap address
  linux-user: Fix signed math overflow in brk() syscall
  linux-user: Fix strace output for old_mmap
  linux-user: Fix qemu-arm to run static armhf binaries

 linux-user/elfload.c |  7 +++++++
 linux-user/strace.c  | 49 ++++++++++++++++++++++++++++++++++++++++----
 linux-user/syscall.c | 23 +++++++++++++--------
 3 files changed, 66 insertions(+), 13 deletions(-)

--
2.41.0



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-07-24  9:46 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-19 15:52 [PULL 0/5] Linux user brk fixes patches Helge Deller
2023-07-19 15:52 ` [PULL 1/5] linux-user: Fix qemu brk() to not zero bytes on current page Helge Deller
2023-07-19 15:52 ` [PULL 2/5] linux-user: Prohibit brk() to to shrink below initial heap address Helge Deller
2023-07-19 15:52 ` [PULL 3/5] linux-user: Fix signed math overflow in brk() syscall Helge Deller
2023-07-19 15:52 ` [PULL 4/5] linux-user: Fix strace output for old_mmap Helge Deller
2023-07-19 15:52 ` [PULL 5/5] linux-user: Fix qemu-arm to run static armhf binaries Helge Deller
2023-07-21 15:14   ` Michael Tokarev
2023-07-21 15:20     ` Michael Tokarev
2023-07-21 21:37     ` Helge Deller
2023-07-22  7:37       ` Michael Tokarev
2023-07-24  9:45     ` Helge Deller
2023-07-21  9:51 ` [PULL 0/5] Linux user brk fixes patches Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).