[PULL 07/28] linux-user: Fix brk() to release pages

2023-03-10 Thread Laurent Vivier
From: Helge Deller The current brk() implementation does not de-allocate pages if a lower address is given compared to earlier brk() calls. But according to the manpage, brk() shall deallocate memory in this case and currently it breaks a real-world application, specifically building the debian

[PULL 07/28] linux-user: Fix brk() to release pages

2023-03-08 Thread Laurent Vivier
From: Helge Deller The current brk() implementation does not de-allocate pages if a lower address is given compared to earlier brk() calls. But according to the manpage, brk() shall deallocate memory in this case and currently it breaks a real-world application, specifically building the debian