Re: [PATCH 3/6] linux-user: Adjust brk for load_bias [regression]

2024-11-26 Thread Dominique MARTINET
Ilya Leoshkevich wrote on Tue, Nov 26, 2024 at 10:24:12AM +0100: > I think this is > https://gitlab.com/qemu-project/qemu/-/issues/1913 Thank you, I should have looked there first ! I'll continue to follow-up on the issue if time permits as it doesn't look like this has had progress in the past f

Re: [PATCH 3/6] linux-user: Adjust brk for load_bias [regression]

2024-11-26 Thread Ilya Leoshkevich
On Tue, 2024-11-26 at 16:11 +0900, Dominique MARTINET wrote: > This commit is fairly old, but this appears to cause a segfault for > older versions of ldconfig: > ``` > $ docker run --rm --platform linux/arm64/v8 -ti > docker.io/debian:bullseye-slim ldconfig > qemu: uncaught target signal 11 (Segme

Re: [PATCH 3/6] linux-user: Adjust brk for load_bias [regression]

2024-11-25 Thread Dominique MARTINET
This commit is fairly old, but this appears to cause a segfault for older versions of ldconfig: ``` $ docker run --rm --platform linux/arm64/v8 -ti docker.io/debian:bullseye-slim ldconfig qemu: uncaught target signal 11 (Segmentation fault) - core dumped Segmentation fault (core dumped) ``` The s

Re: [PATCH 3/6] linux-user: Adjust brk for load_bias

2023-08-17 Thread Richard Henderson
On 8/17/23 09:04, Michael Tokarev wrote: 16.08.2023 21:14, Richard Henderson wrote: PIE executables are usually linked at offset 0 and are relocated somewhere during load.  The hiaddr needs to be adjusted to keep the brk next to the executable. Cc: qemu-sta...@nongnu.org Fixes: 1f356e8c013 ("li

Re: [PATCH 3/6] linux-user: Adjust brk for load_bias

2023-08-17 Thread Richard Henderson
On 8/17/23 01:53, Philippe Mathieu-Daudé wrote: On 16/8/23 20:14, Richard Henderson wrote: PIE executables are usually linked at offset 0 and are relocated somewhere during load.  The hiaddr needs to be adjusted to keep the brk next to the executable. Cc: qemu-sta...@nongnu.org Fixes: 1f356e8c0

Re: [PATCH 3/6] linux-user: Adjust brk for load_bias

2023-08-17 Thread Michael Tokarev
16.08.2023 21:14, Richard Henderson wrote: PIE executables are usually linked at offset 0 and are relocated somewhere during load. The hiaddr needs to be adjusted to keep the brk next to the executable. Cc: qemu-sta...@nongnu.org Fixes: 1f356e8c013 ("linux-user: Adjust initial brk when interpre

Re: [PATCH 3/6] linux-user: Adjust brk for load_bias

2023-08-17 Thread Philippe Mathieu-Daudé
On 16/8/23 20:14, Richard Henderson wrote: PIE executables are usually linked at offset 0 and are relocated somewhere during load. The hiaddr needs to be adjusted to keep the brk next to the executable. Cc: qemu-sta...@nongnu.org Fixes: 1f356e8c013 ("linux-user: Adjust initial brk when interpre

[PATCH 3/6] linux-user: Adjust brk for load_bias

2023-08-16 Thread Richard Henderson
PIE executables are usually linked at offset 0 and are relocated somewhere during load. The hiaddr needs to be adjusted to keep the brk next to the executable. Cc: qemu-sta...@nongnu.org Fixes: 1f356e8c013 ("linux-user: Adjust initial brk when interpreter is close to executable") Signed-off-by: