Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1154251
| From | Michael Tokarev <mjt@tls.msk.ru> |
|---|---|
| Newsgroups | linux.debian.bugs.dist |
| Subject | Bug#1040981: klibc-utils: segfault executing armhf binaries under qemu-user |
| Date | 2023-07-14 22:30 +0200 |
| Message-ID | <GRxAl-fsI-1@gated-at.bofh.it> (permalink) |
| References | (6 earlier) <GRwNX-eWi-5@gated-at.bofh.it> <GRdih-2QS-3@gated-at.bofh.it> <GRxqF-fo5-3@gated-at.bofh.it> <GRdih-2QS-3@gated-at.bofh.it> <GRxqF-fo5-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Control: forwarded -1 https://lists.nongnu.org/archive/html/qemu-devel/2023-07/msg03138.html 14.07.2023 23:07, Thorsten Glaser wrote: > Michael Tokarev dixit: > >> commit 6fd5944980f4ccee728ce34bdaffc117db50b34d > > From the comment, it reserves 16 MiB after the main executable. > > In klibc/armhf, however, the main executable starts around > 0x00010000 whereas the interpreter starts after that, around > 0x00380000… Aren't it happens on all architectures, not just armhf? I had an impression it is not arch-specific. $subject mentions armhf only, but I think somewhere in the discussion it's been said all architectures are affected? Ok. > Perhaps the fix here would be to see if the interpreter comes > within 16 MiB past the main executable’s end, and if so, to > move the break (I wasn’t aware stuff on GNU/Linux still uses > that!) to start after the interpreter instead. > > The BSD manpage begins with… > DESCRIPTION > The brk() and sbrk() functions are historical curiosities left over from > earlier days before the advent of virtual memory management. > … so… oh well. That's lovely. There's another change for brk() pending in qemu right now (to make it page-aligned; and no, it does not fix this issue). I guess it is not just curiocities :) > Anyway, while my proposed fix in theory moves the “end of the > process’ data segment” to behind the interpreter instead of > behind the main executable, processes are not supposed to use > it in combination with _end, only the returned pointers. It’s > something to at least consider. Will you forward this upstream? Yeah, already did, was just waiting for it to appear in the archives for the URL. Thank you! /mjt
Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Bug#1040981: klibc-utils: Segmentation fault while executin klibc binaries in armhf architecture under qemu-user Thorsten Glaser <tg@debian.org> - 2023-07-14 00:50 +0200
Bug#1040981: klibc-utils: segfault executing armhf binaries under qemu-user Thorsten Glaser <tg@debian.org> - 2023-07-14 02:20 +0200
Bug#1040981: klibc-utils: segfault executing armhf binaries under qemu-user Helge Deller <deller@gmx.de> - 2023-07-14 06:20 +0200
Bug#1040981: klibc-utils: Segmentation fault while executin klibc binaries in armhf architecture under qemu-user Ben Hutchings <ben@decadent.org.uk> - 2023-07-14 15:30 +0200
Bug#1040981: klibc-utils: Segmentation fault while executin klibc binaries in armhf architecture under qemu-user Michael Tokarev <mjt@tls.msk.ru> - 2023-07-14 15:40 +0200
Bug#1040981: klibc-utils: segfault executing armhf binaries under qemu-user Thorsten Glaser <tg@debian.org> - 2023-07-14 20:50 +0200
Bug#1040981: klibc-utils: segfault executing armhf binaries under qemu-user Michael Tokarev <mjt@tls.msk.ru> - 2023-07-14 21:40 +0200
Bug#1040981: klibc-utils: segfault executing armhf binaries under qemu-user Thorsten Glaser <tg@debian.org> - 2023-07-14 22:20 +0200
Bug#1040981: klibc-utils: segfault executing armhf binaries under qemu-user Michael Tokarev <mjt@tls.msk.ru> - 2023-07-14 22:30 +0200
Bug#1040981: klibc-utils: segfault executing armhf binaries under qemu-user Thorsten Glaser <tg@debian.org> - 2023-07-15 00:20 +0200
Bug#1040981: klibc-utils: segfault executing armhf binaries under qemu-user Ben Hutchings <ben@decadent.org.uk> - 2023-07-15 23:50 +0200
csiph-web