Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > muc.lists.freebsd.emulation > #13183
| From | bugzilla-noreply@freebsd.org |
|---|---|
| Newsgroups | muc.lists.freebsd.emulation |
| Subject | [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ |
| Date | 2026-09-14 14:40 +0000 |
| Organization | Newsgate at muc.de e.V. |
| Message-ID | <bug-286875-4077-0CCJtMz68D@https.bugs.freebsd.org/bugzilla/> (permalink) |
| References | <bug-286875-4077@https.bugs.freebsd.org/bugzilla/> |
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286875
--- Comment #43 from Rick Richard <rick@sloservers.com> ---
The aarch64 failure in comment #40 is not caused by the pull request. blitz
reproduces it with only the two patches needed to execute a guest at all, and
it is the same failure Alexey reported in comment #32.
Two bugs, both now fixed in the pull request:
1. mmap_find_vma() converts the host address it receives with h2g(), which
subtracts guest_base. The kernel may return an address below guest_base,
and the subtraction wraps. h2g_valid() does not catch it: without
reserved_va, guest_addr_max is ~0ul, so the comparison is always true. The
wrapped value becomes the initial stack address, and libthr derives its red
zone from _usrstack, so every threaded program dies at startup.
riscv64 does not hit this because guest_base is 0 and the subtraction
cannot wrap. armv7 does not because reserved_va gives guest_addr_max a real
bound.
2. setup_arg_pages() places the stack with mmap() and keeps whatever address
it gets back, but the KERN_USRSTACK sysctl answered with TARGET_USRSTACK,
the address it had asked for. On aarch64 the two differ by orders of
magnitude: 0x7fffdf000000 reported against a stack at 0x80b30bafc. Boehm GC
scans conservatively from that base and faults, which is why www/w3m dies
building its mktable helper.
The first needs no poudriere to reproduce. Any threaded program will do:
#include <pthread.h>
static void *
w(void *a)
{
return (a);
}
int
main(void)
{
pthread_t t;
if (pthread_create(&t, NULL, w, NULL) != 0)
return (2);
return (pthread_join(t, NULL));
}
On blitz with only the two execute-a-guest patches:
Fatal error 'Cannot allocate red zone for initial thread' at line 398 in
file /usr/src/lib/libthr/thread/thr_init.c (errno = 1073737728)
With the pull request it exits 0.
Checked on a 15.1-RELEASE aarch64 jail created as in comment #40, with
poudriere jail -c -m http -v 15.1-RELEASE -a arm64.aarch64 -x: ports-mgmt/pkg
builds, and a 13-port request expanding to 91 packages builds in full, www/w3m
included. w3m needed the second fix; the rest needed only the first.
https://github.com/qemu-bsd-user/qemu-bsd-user/pull/68
--
You are receiving this mail because:
You are the assignee for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Back to muc.lists.freebsd.emulation | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[Bug 286875] emulators/qemu-user-static-devel: Sync with upstream; restore build on 15-CURRENT bugzilla-noreply@freebsd.org - 2025-05-17 14:17 +0000 [Bug 286875] emulators/qemu-user-static-devel: Sync with upstream; restore build on 15-CURRENT bugzilla-noreply@freebsd.org - 2025-05-17 14:37 +0000 [Bug 286875] emulators/qemu-user-static-devel: Sync with upstream; restore build on 15-CURRENT bugzilla-noreply@freebsd.org - 2025-05-17 14:40 +0000 [Bug 286875] emulators/qemu-user-static-devel: Sync with upstream; restore build on 15-CURRENT bugzilla-noreply@freebsd.org - 2025-05-17 14:51 +0000 [Bug 286875] emulators/qemu-user-static-devel: Sync with upstream; restore build on 15-CURRENT bugzilla-noreply@freebsd.org - 2025-05-20 11:28 +0000 [Bug 286875] emulators/qemu-user-static-devel: Sync with upstream; restore build on 15-CURRENT bugzilla-noreply@freebsd.org - 2026-02-19 18:06 +0000 [Bug 286875] emulators/qemu-user-static-devel: Sync with upstream; restore build on 15-CURRENT bugzilla-noreply@freebsd.org - 2026-02-20 06:51 +0000 [Bug 286875] emulators/qemu-user-static-devel: Sync with upstream; restore build on 15-CURRENT bugzilla-noreply@freebsd.org - 2026-02-21 03:46 +0000 [Bug 286875] emulators/qemu-user-static-devel: Sync with upstream; restore build on 15-CURRENT bugzilla-noreply@freebsd.org - 2026-02-21 03:54 +0000 [Bug 286875] emulators/qemu-user-static-devel: Sync with upstream; restore build on 15-CURRENT bugzilla-noreply@freebsd.org - 2026-02-21 03:55 +0000 [Bug 286875] emulators/qemu-user-static-devel: Sync with upstream; restore build on 15-CURRENT bugzilla-noreply@freebsd.org - 2026-02-21 04:15 +0000 [Bug 286875] emulators/qemu-user-static-devel: Sync with upstream; restore build on 15-CURRENT bugzilla-noreply@freebsd.org - 2026-02-23 17:23 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 10.2.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-03-08 07:19 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 10.2.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-03-08 07:20 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 10.2.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-05-16 19:37 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 10.2.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-05-21 02:00 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-05-21 02:00 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-05-25 00:40 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-05-25 00:41 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-05-25 00:48 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-05-25 00:49 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-05-25 02:46 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-05-25 02:51 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-05-25 04:38 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-05-25 04:40 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-05-25 07:13 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-05-26 16:27 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-05-26 16:42 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-05-26 23:14 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-06-03 11:15 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-06-03 11:16 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-06-21 00:38 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-06-21 00:40 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-06-21 00:44 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-06-21 00:51 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-06-21 00:58 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-06-22 02:55 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-06-22 03:01 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-06-23 17:12 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-09-14 02:23 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-09-14 07:55 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-09-14 09:28 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-09-14 09:41 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-09-14 09:48 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-09-14 09:52 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-09-14 14:40 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-09-14 17:33 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-09-14 17:33 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-09-14 17:34 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-09-14 17:35 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-09-14 17:43 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-09-15 07:20 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-09-15 17:03 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-09-15 23:16 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-09-16 04:19 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-09-16 05:11 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-09-16 15:43 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-09-16 16:01 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-09-16 16:07 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-09-17 00:50 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-09-17 00:51 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-09-17 01:04 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-09-17 01:04 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-09-17 02:08 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-09-17 02:27 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-09-17 02:33 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-09-17 02:48 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-09-17 02:53 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-09-17 02:55 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-09-17 03:03 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-09-17 08:54 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-11-01 00:14 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-11-01 02:01 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-11-01 02:04 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-11-11 02:32 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-11-11 02:56 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-11-11 02:58 +0000 [Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+ bugzilla-noreply@freebsd.org - 2026-11-11 03:16 +0000
csiph-web