* [Bug 1926044] [NEW] QEMU-user doesn't report HWCAP2_MTE
@ 2021-04-25 2:32 Vitaly Buka
2021-04-25 2:45 ` [Bug 1926044] " Vitaly Buka
` (7 more replies)
0 siblings, 8 replies; 10+ messages in thread
From: Vitaly Buka @ 2021-04-25 2:32 UTC (permalink / raw)
To: qemu-devel
Public bug reported:
Reproducible on ffa090bc56e73e287a63261e70ac02c0970be61a
Host Debian 5.10.24 x86_64 GNU
Configured with "configure --disable-system --enable-linux-user
--static"
This one works and prints "OK" as expected:
clang tests/tcg/aarch64/mte-3.c -target aarch64-linux-gnu -fsanitize=memtag -march=armv8+memtag
qemu-aarch64 --cpu max -L /usr/aarch64-linux-gnu ./a.out && echo OK
This one fails and print "0":
cat mytest.c
#include <stdio.h>
#include <sys/auxv.h>
#ifndef HWCAP2_MTE
#define HWCAP2_MTE (1 << 18)
#endif
int main(int ac, char **av)
{
printf("%d\n", (int)(getauxval(AT_HWCAP2) & HWCAP2_MTE));
}
clang mytest.c -target aarch64-linux-gnu -fsanitize=memtag -march=armv8+memtag
qemu-aarch64 --cpu max -L /usr/aarch64-linux-gnu ./a.out
** Affects: qemu
Importance: Undecided
Status: New
** Tags: aarch64 mte 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/1926044
Title:
QEMU-user doesn't report HWCAP2_MTE
Status in QEMU:
New
Bug description:
Reproducible on ffa090bc56e73e287a63261e70ac02c0970be61a
Host Debian 5.10.24 x86_64 GNU
Configured with "configure --disable-system --enable-linux-user
--static"
This one works and prints "OK" as expected:
clang tests/tcg/aarch64/mte-3.c -target aarch64-linux-gnu -fsanitize=memtag -march=armv8+memtag
qemu-aarch64 --cpu max -L /usr/aarch64-linux-gnu ./a.out && echo OK
This one fails and print "0":
cat mytest.c
#include <stdio.h>
#include <sys/auxv.h>
#ifndef HWCAP2_MTE
#define HWCAP2_MTE (1 << 18)
#endif
int main(int ac, char **av)
{
printf("%d\n", (int)(getauxval(AT_HWCAP2) & HWCAP2_MTE));
}
clang mytest.c -target aarch64-linux-gnu -fsanitize=memtag -march=armv8+memtag
qemu-aarch64 --cpu max -L /usr/aarch64-linux-gnu ./a.out
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1926044/+subscriptions
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug 1926044] Re: QEMU-user doesn't report HWCAP2_MTE
2021-04-25 2:32 [Bug 1926044] [NEW] QEMU-user doesn't report HWCAP2_MTE Vitaly Buka
@ 2021-04-25 2:45 ` Vitaly Buka
2021-04-25 2:47 ` Vitaly Buka
` (6 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: Vitaly Buka @ 2021-04-25 2:45 UTC (permalink / raw)
To: qemu-devel
Actually if we make it like this:
#include <stdio.h>
#include <sys/auxv.h>
int main(int ac, char **av)
{
for (int i = 0; i < 32; ++i)
if ((int)(getauxval(AT_HWCAP2) & (1 << i)))
printf("%d\n", i);
}
clang mytest.c -target aarch64-linux-gnu -fsanitize=memtag -march=armv8+memtag
qemu-aarch64 --cpu max -L /usr/aarch64-linux-gnu ./a.out
I see only: HWCAP_FP HWCAP_CRC32 HWCAP_ATOMICS
So no HWCAP2_BTI as well.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1926044
Title:
QEMU-user doesn't report HWCAP2_MTE
Status in QEMU:
New
Bug description:
Reproducible on ffa090bc56e73e287a63261e70ac02c0970be61a
Host Debian 5.10.24 x86_64 GNU
Configured with "configure --disable-system --enable-linux-user
--static"
This one works and prints "OK" as expected:
clang tests/tcg/aarch64/mte-3.c -target aarch64-linux-gnu -fsanitize=memtag -march=armv8+memtag
qemu-aarch64 --cpu max -L /usr/aarch64-linux-gnu ./a.out && echo OK
This one fails and print "0":
cat mytest.c
#include <stdio.h>
#include <sys/auxv.h>
#ifndef HWCAP2_MTE
#define HWCAP2_MTE (1 << 18)
#endif
int main(int ac, char **av)
{
printf("%d\n", (int)(getauxval(AT_HWCAP2) & HWCAP2_MTE));
}
clang mytest.c -target aarch64-linux-gnu -fsanitize=memtag -march=armv8+memtag
qemu-aarch64 --cpu max -L /usr/aarch64-linux-gnu ./a.out
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1926044/+subscriptions
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug 1926044] Re: QEMU-user doesn't report HWCAP2_MTE
2021-04-25 2:32 [Bug 1926044] [NEW] QEMU-user doesn't report HWCAP2_MTE Vitaly Buka
2021-04-25 2:45 ` [Bug 1926044] " Vitaly Buka
@ 2021-04-25 2:47 ` Vitaly Buka
2021-04-25 18:39 ` Peter Maydell
` (5 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: Vitaly Buka @ 2021-04-25 2:47 UTC (permalink / raw)
To: qemu-devel
Sorry, 0 7 8 should be "HWCAP2_DCPODP HWCAP2_FLAGM2 HWCAP2_FRINT"
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1926044
Title:
QEMU-user doesn't report HWCAP2_MTE
Status in QEMU:
New
Bug description:
Reproducible on ffa090bc56e73e287a63261e70ac02c0970be61a
Host Debian 5.10.24 x86_64 GNU
Configured with "configure --disable-system --enable-linux-user
--static"
This one works and prints "OK" as expected:
clang tests/tcg/aarch64/mte-3.c -target aarch64-linux-gnu -fsanitize=memtag -march=armv8+memtag
qemu-aarch64 --cpu max -L /usr/aarch64-linux-gnu ./a.out && echo OK
This one fails and print "0":
cat mytest.c
#include <stdio.h>
#include <sys/auxv.h>
#ifndef HWCAP2_MTE
#define HWCAP2_MTE (1 << 18)
#endif
int main(int ac, char **av)
{
printf("%d\n", (int)(getauxval(AT_HWCAP2) & HWCAP2_MTE));
}
clang mytest.c -target aarch64-linux-gnu -fsanitize=memtag -march=armv8+memtag
qemu-aarch64 --cpu max -L /usr/aarch64-linux-gnu ./a.out
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1926044/+subscriptions
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug 1926044] Re: QEMU-user doesn't report HWCAP2_MTE
2021-04-25 2:32 [Bug 1926044] [NEW] QEMU-user doesn't report HWCAP2_MTE Vitaly Buka
2021-04-25 2:45 ` [Bug 1926044] " Vitaly Buka
2021-04-25 2:47 ` Vitaly Buka
@ 2021-04-25 18:39 ` Peter Maydell
2021-04-25 19:20 ` Richard Henderson
` (4 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: Peter Maydell @ 2021-04-25 18:39 UTC (permalink / raw)
To: qemu-devel
** Tags removed: aarch64
** Tags added: arm
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1926044
Title:
QEMU-user doesn't report HWCAP2_MTE
Status in QEMU:
New
Bug description:
Reproducible on ffa090bc56e73e287a63261e70ac02c0970be61a
Host Debian 5.10.24 x86_64 GNU
Configured with "configure --disable-system --enable-linux-user
--static"
This one works and prints "OK" as expected:
clang tests/tcg/aarch64/mte-3.c -target aarch64-linux-gnu -fsanitize=memtag -march=armv8+memtag
qemu-aarch64 --cpu max -L /usr/aarch64-linux-gnu ./a.out && echo OK
This one fails and print "0":
cat mytest.c
#include <stdio.h>
#include <sys/auxv.h>
#ifndef HWCAP2_MTE
#define HWCAP2_MTE (1 << 18)
#endif
int main(int ac, char **av)
{
printf("%d\n", (int)(getauxval(AT_HWCAP2) & HWCAP2_MTE));
}
clang mytest.c -target aarch64-linux-gnu -fsanitize=memtag -march=armv8+memtag
qemu-aarch64 --cpu max -L /usr/aarch64-linux-gnu ./a.out
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1926044/+subscriptions
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug 1926044] Re: QEMU-user doesn't report HWCAP2_MTE
2021-04-25 2:32 [Bug 1926044] [NEW] QEMU-user doesn't report HWCAP2_MTE Vitaly Buka
` (2 preceding siblings ...)
2021-04-25 18:39 ` Peter Maydell
@ 2021-04-25 19:20 ` Richard Henderson
2021-04-27 21:46 ` Richard Henderson
` (3 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: Richard Henderson @ 2021-04-25 19:20 UTC (permalink / raw)
To: qemu-devel
Yep, there's a whole bunch that have been missed.
** Changed in: qemu
Assignee: (unassigned) => Richard Henderson (rth)
** Changed in: qemu
Status: New => In Progress
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1926044
Title:
QEMU-user doesn't report HWCAP2_MTE
Status in QEMU:
In Progress
Bug description:
Reproducible on ffa090bc56e73e287a63261e70ac02c0970be61a
Host Debian 5.10.24 x86_64 GNU
Configured with "configure --disable-system --enable-linux-user
--static"
This one works and prints "OK" as expected:
clang tests/tcg/aarch64/mte-3.c -target aarch64-linux-gnu -fsanitize=memtag -march=armv8+memtag
qemu-aarch64 --cpu max -L /usr/aarch64-linux-gnu ./a.out && echo OK
This one fails and print "0":
cat mytest.c
#include <stdio.h>
#include <sys/auxv.h>
#ifndef HWCAP2_MTE
#define HWCAP2_MTE (1 << 18)
#endif
int main(int ac, char **av)
{
printf("%d\n", (int)(getauxval(AT_HWCAP2) & HWCAP2_MTE));
}
clang mytest.c -target aarch64-linux-gnu -fsanitize=memtag -march=armv8+memtag
qemu-aarch64 --cpu max -L /usr/aarch64-linux-gnu ./a.out
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1926044/+subscriptions
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug 1926044] Re: QEMU-user doesn't report HWCAP2_MTE
2021-04-25 2:32 [Bug 1926044] [NEW] QEMU-user doesn't report HWCAP2_MTE Vitaly Buka
` (3 preceding siblings ...)
2021-04-25 19:20 ` Richard Henderson
@ 2021-04-27 21:46 ` Richard Henderson
2021-04-27 23:58 ` Vitaly Buka
2021-04-29 10:54 ` Thomas Huth
` (2 subsequent siblings)
7 siblings, 1 reply; 10+ messages in thread
From: Richard Henderson @ 2021-04-27 21:46 UTC (permalink / raw)
To: qemu-devel
https://patchew.org/QEMU/20210427214108.88503-1-richard.henderson@linaro.org/
This has missed 6.0, but should be acceptable to roll into 6.0.1.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1926044
Title:
QEMU-user doesn't report HWCAP2_MTE
Status in QEMU:
In Progress
Bug description:
Reproducible on ffa090bc56e73e287a63261e70ac02c0970be61a
Host Debian 5.10.24 x86_64 GNU
Configured with "configure --disable-system --enable-linux-user
--static"
This one works and prints "OK" as expected:
clang tests/tcg/aarch64/mte-3.c -target aarch64-linux-gnu -fsanitize=memtag -march=armv8+memtag
qemu-aarch64 --cpu max -L /usr/aarch64-linux-gnu ./a.out && echo OK
This one fails and print "0":
cat mytest.c
#include <stdio.h>
#include <sys/auxv.h>
#ifndef HWCAP2_MTE
#define HWCAP2_MTE (1 << 18)
#endif
int main(int ac, char **av)
{
printf("%d\n", (int)(getauxval(AT_HWCAP2) & HWCAP2_MTE));
}
clang mytest.c -target aarch64-linux-gnu -fsanitize=memtag -march=armv8+memtag
qemu-aarch64 --cpu max -L /usr/aarch64-linux-gnu ./a.out
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1926044/+subscriptions
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Bug 1926044] Re: QEMU-user doesn't report HWCAP2_MTE
2021-04-27 21:46 ` Richard Henderson
@ 2021-04-27 23:58 ` Vitaly Buka
0 siblings, 0 replies; 10+ messages in thread
From: Vitaly Buka @ 2021-04-27 23:58 UTC (permalink / raw)
To: qemu-devel
Thanks for the quick fix!
On Tue, Apr 27, 2021 at 2:55 PM Richard Henderson <
1926044@bugs.launchpad.net> wrote:
>
> https://patchew.org/QEMU/20210427214108.88503-1-richard.henderson@linaro.org/
>
> This has missed 6.0, but should be acceptable to roll into 6.0.1.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1926044
>
> Title:
> QEMU-user doesn't report HWCAP2_MTE
>
> Status in QEMU:
> In Progress
>
> Bug description:
> Reproducible on ffa090bc56e73e287a63261e70ac02c0970be61a
>
> Host Debian 5.10.24 x86_64 GNU
>
> Configured with "configure --disable-system --enable-linux-user
> --static"
>
> This one works and prints "OK" as expected:
> clang tests/tcg/aarch64/mte-3.c -target aarch64-linux-gnu
> -fsanitize=memtag -march=armv8+memtag
> qemu-aarch64 --cpu max -L /usr/aarch64-linux-gnu ./a.out && echo OK
>
>
> This one fails and print "0":
> cat mytest.c
> #include <stdio.h>
> #include <sys/auxv.h>
>
> #ifndef HWCAP2_MTE
> #define HWCAP2_MTE (1 << 18)
> #endif
>
> int main(int ac, char **av)
> {
> printf("%d\n", (int)(getauxval(AT_HWCAP2) & HWCAP2_MTE));
> }
>
>
> clang mytest.c -target aarch64-linux-gnu -fsanitize=memtag
> -march=armv8+memtag
> qemu-aarch64 --cpu max -L /usr/aarch64-linux-gnu ./a.out
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/qemu/+bug/1926044/+subscriptions
>
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1926044
Title:
QEMU-user doesn't report HWCAP2_MTE
Status in QEMU:
In Progress
Bug description:
Reproducible on ffa090bc56e73e287a63261e70ac02c0970be61a
Host Debian 5.10.24 x86_64 GNU
Configured with "configure --disable-system --enable-linux-user
--static"
This one works and prints "OK" as expected:
clang tests/tcg/aarch64/mte-3.c -target aarch64-linux-gnu -fsanitize=memtag -march=armv8+memtag
qemu-aarch64 --cpu max -L /usr/aarch64-linux-gnu ./a.out && echo OK
This one fails and print "0":
cat mytest.c
#include <stdio.h>
#include <sys/auxv.h>
#ifndef HWCAP2_MTE
#define HWCAP2_MTE (1 << 18)
#endif
int main(int ac, char **av)
{
printf("%d\n", (int)(getauxval(AT_HWCAP2) & HWCAP2_MTE));
}
clang mytest.c -target aarch64-linux-gnu -fsanitize=memtag -march=armv8+memtag
qemu-aarch64 --cpu max -L /usr/aarch64-linux-gnu ./a.out
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1926044/+subscriptions
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug 1926044] Re: QEMU-user doesn't report HWCAP2_MTE
2021-04-25 2:32 [Bug 1926044] [NEW] QEMU-user doesn't report HWCAP2_MTE Vitaly Buka
` (4 preceding siblings ...)
2021-04-27 21:46 ` Richard Henderson
@ 2021-04-29 10:54 ` Thomas Huth
2021-05-26 15:42 ` Thomas Huth
2021-08-25 7:10 ` Thomas Huth
7 siblings, 0 replies; 10+ messages in thread
From: Thomas Huth @ 2021-04-29 10:54 UTC (permalink / raw)
To: qemu-devel
** Tags removed: user
** 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/1926044
Title:
QEMU-user doesn't report HWCAP2_MTE
Status in QEMU:
In Progress
Bug description:
Reproducible on ffa090bc56e73e287a63261e70ac02c0970be61a
Host Debian 5.10.24 x86_64 GNU
Configured with "configure --disable-system --enable-linux-user
--static"
This one works and prints "OK" as expected:
clang tests/tcg/aarch64/mte-3.c -target aarch64-linux-gnu -fsanitize=memtag -march=armv8+memtag
qemu-aarch64 --cpu max -L /usr/aarch64-linux-gnu ./a.out && echo OK
This one fails and print "0":
cat mytest.c
#include <stdio.h>
#include <sys/auxv.h>
#ifndef HWCAP2_MTE
#define HWCAP2_MTE (1 << 18)
#endif
int main(int ac, char **av)
{
printf("%d\n", (int)(getauxval(AT_HWCAP2) & HWCAP2_MTE));
}
clang mytest.c -target aarch64-linux-gnu -fsanitize=memtag -march=armv8+memtag
qemu-aarch64 --cpu max -L /usr/aarch64-linux-gnu ./a.out
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1926044/+subscriptions
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug 1926044] Re: QEMU-user doesn't report HWCAP2_MTE
2021-04-25 2:32 [Bug 1926044] [NEW] QEMU-user doesn't report HWCAP2_MTE Vitaly Buka
` (5 preceding siblings ...)
2021-04-29 10:54 ` Thomas Huth
@ 2021-05-26 15:42 ` Thomas Huth
2021-08-25 7:10 ` Thomas Huth
7 siblings, 0 replies; 10+ messages in thread
From: Thomas Huth @ 2021-05-26 15:42 UTC (permalink / raw)
To: qemu-devel
Patch has been merged:
https://gitlab.com/qemu-project/qemu/-/commit/68948d18224b93361e28
** 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/1926044
Title:
QEMU-user doesn't report HWCAP2_MTE
Status in QEMU:
Fix Committed
Bug description:
Reproducible on ffa090bc56e73e287a63261e70ac02c0970be61a
Host Debian 5.10.24 x86_64 GNU
Configured with "configure --disable-system --enable-linux-user
--static"
This one works and prints "OK" as expected:
clang tests/tcg/aarch64/mte-3.c -target aarch64-linux-gnu -fsanitize=memtag -march=armv8+memtag
qemu-aarch64 --cpu max -L /usr/aarch64-linux-gnu ./a.out && echo OK
This one fails and print "0":
cat mytest.c
#include <stdio.h>
#include <sys/auxv.h>
#ifndef HWCAP2_MTE
#define HWCAP2_MTE (1 << 18)
#endif
int main(int ac, char **av)
{
printf("%d\n", (int)(getauxval(AT_HWCAP2) & HWCAP2_MTE));
}
clang mytest.c -target aarch64-linux-gnu -fsanitize=memtag -march=armv8+memtag
qemu-aarch64 --cpu max -L /usr/aarch64-linux-gnu ./a.out
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1926044/+subscriptions
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug 1926044] Re: QEMU-user doesn't report HWCAP2_MTE
2021-04-25 2:32 [Bug 1926044] [NEW] QEMU-user doesn't report HWCAP2_MTE Vitaly Buka
` (6 preceding siblings ...)
2021-05-26 15:42 ` Thomas Huth
@ 2021-08-25 7:10 ` Thomas Huth
7 siblings, 0 replies; 10+ messages in thread
From: Thomas Huth @ 2021-08-25 7:10 UTC (permalink / raw)
To: qemu-devel
** 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/1926044
Title:
QEMU-user doesn't report HWCAP2_MTE
Status in QEMU:
Fix Released
Bug description:
Reproducible on ffa090bc56e73e287a63261e70ac02c0970be61a
Host Debian 5.10.24 x86_64 GNU
Configured with "configure --disable-system --enable-linux-user
--static"
This one works and prints "OK" as expected:
clang tests/tcg/aarch64/mte-3.c -target aarch64-linux-gnu -fsanitize=memtag -march=armv8+memtag
qemu-aarch64 --cpu max -L /usr/aarch64-linux-gnu ./a.out && echo OK
This one fails and print "0":
cat mytest.c
#include <stdio.h>
#include <sys/auxv.h>
#ifndef HWCAP2_MTE
#define HWCAP2_MTE (1 << 18)
#endif
int main(int ac, char **av)
{
printf("%d\n", (int)(getauxval(AT_HWCAP2) & HWCAP2_MTE));
}
clang mytest.c -target aarch64-linux-gnu -fsanitize=memtag -march=armv8+memtag
qemu-aarch64 --cpu max -L /usr/aarch64-linux-gnu ./a.out
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1926044/+subscriptions
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2021-08-25 7:22 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-25 2:32 [Bug 1926044] [NEW] QEMU-user doesn't report HWCAP2_MTE Vitaly Buka
2021-04-25 2:45 ` [Bug 1926044] " Vitaly Buka
2021-04-25 2:47 ` Vitaly Buka
2021-04-25 18:39 ` Peter Maydell
2021-04-25 19:20 ` Richard Henderson
2021-04-27 21:46 ` Richard Henderson
2021-04-27 23:58 ` Vitaly Buka
2021-04-29 10:54 ` Thomas Huth
2021-05-26 15:42 ` Thomas Huth
2021-08-25 7:10 ` Thomas Huth
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.