[Bug 1922617] Re: qemu-aarch64-static "Illegal instruction" with debootstrap

2021-04-30 Thread Thomas Huth
** Changed in: qemu Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1922617 Title: qemu-aarch64-static "Illegal instruction" with debootstrap Status in Q

[Bug 1922617] Re: qemu-aarch64-static "Illegal instruction" with debootstrap

2021-04-12 Thread Richard Henderson
Fix commit: 52c01ada8661 ("exec: Fix overlap of PAGE_ANON and PAGE_TARGET_1") ** Changed in: qemu Status: In Progress => Fix Committed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1922617 Ti

[Bug 1922617] Re: qemu-aarch64-static "Illegal instruction" with debootstrap

2021-04-06 Thread Richard Henderson
Ouch, yes indeed. Will fix. ** Changed in: qemu Status: New => In Progress ** Changed in: qemu Assignee: (unassigned) => Richard Henderson (rth) -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net

[Bug 1922617] Re: qemu-aarch64-static "Illegal instruction" with debootstrap

2021-04-06 Thread Laurent Vivier
Perhaps the reason is: include/exec/cpu-all.h #define PAGE_ANON 0x0080 ... #define PAGE_TARGET_1 0x0080 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1922617 Title: qemu-aarch64-static "Ill

[Bug 1922617] Re: qemu-aarch64-static "Illegal instruction" with debootstrap

2021-04-06 Thread Laurent Vivier
commit be5d6f4884021208ae0e73379c83e51500ad3a8d Author: Richard Henderson Date: Wed Oct 21 10:37:39 2020 -0700 linux-user: Set PAGE_TARGET_1 for TARGET_PROT_BTI Transform the prot bit to a qemu internal page bit, and save it in the page tables. Reviewed-by: Peter Mayde

[Bug 1922617] Re: qemu-aarch64-static "Illegal instruction" with debootstrap

2021-04-06 Thread Laurent Vivier
Yes, applying the patch pointed out by Philippe doesn't fix the problem. But I think bisect has worked fine. If I revert this patch (26bab757d41), it works fine again. I revert: "target/arm: Add allocation tag storage for user mode" "linux-user: Introduce PAGE_ANON" Only reverting the first p

[Bug 1922617] Re: qemu-aarch64-static "Illegal instruction" with debootstrap

2021-04-06 Thread Richard Henderson
The fix that Phil links would only pertain if debootstrap were actively using MTE. I think we can safely disregard that. I don't believe that the bisect has worked. There is nothing in that 3 line patch that would affect *anything*, as the PAGE_ANON value is not used at this point. -- You rece

[Bug 1922617] Re: qemu-aarch64-static "Illegal instruction" with debootstrap

2021-04-06 Thread Philippe Mathieu-Daudé
Possible fix: https://www.mail-archive.com/qemu-devel@nongnu.org/msg796781.html -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1922617 Title: qemu-aarch64-static "Illegal instruction" with debootstr

[Bug 1922617] Re: qemu-aarch64-static "Illegal instruction" with debootstrap

2021-04-06 Thread Laurent Vivier
Bisected to commit 26bab757d41b853ea84cb52a10fafc9c10069658 Author: Richard Henderson Date: Fri Feb 12 10:48:33 2021 -0800 linux-user: Introduce PAGE_ANON Record whether the backing page is anonymous, or if it has file backing. This will allow us to get close to the Linux AAr

[Bug 1922617] Re: qemu-aarch64-static "Illegal instruction" with debootstrap

2021-04-06 Thread Laurent Vivier
I'm able to reproduce a coredump o("Illegal Instruction", but of host type) during a debootstrap process. The coredump is for a grep process, I'm trying to bisect. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad

[Bug 1922617] Re: qemu-aarch64-static "Illegal instruction" with debootstrap

2021-04-06 Thread Laurent Vivier
** Tags added: linux-user -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1922617 Title: qemu-aarch64-static "Illegal instruction" with debootstrap Status in QEMU: New Bug description: This is

[Bug 1922617] Re: qemu-aarch64-static "Illegal instruction" with debootstrap

2021-04-06 Thread Peter Maydell
This won't be the cause of the crash, but: don't run ninja directly. The build instructions (documented in README.rst) haven't changed: run configure, and then run make. The makefile still does some things and is not a pure does-absolutely-nothing wrapper around ninja in all cases. -- You receive