Re: tst-arm-mte bug: PSTATE.TCO is cleared on exceptions

2020-05-19 Thread Richard Henderson
On 5/18/20 5:59 AM, Szabolcs Nagy wrote: > i got some time to create a reproducer (with public code), Thanks. I've grabbed it. I'll try it out soon. r~

Re: tst-arm-mte bug: PSTATE.TCO is cleared on exceptions

2020-05-18 Thread Szabolcs Nagy
The 05/07/2020 10:21, Richard Henderson wrote: > A reproducer would be most helpful. > > Something that can help is saving a VM snapshot with the kernel booted and the > user logged in, just ready to run the test program. Then you can get back to > exactly the state you want before things go

Re: tst-arm-mte bug: PSTATE.TCO is cleared on exceptions

2020-05-07 Thread Richard Henderson
On 5/7/20 2:59 AM, Szabolcs Nagy wrote: > is there some recommended way to turn some form > of tracing on in qemu before i execute the > problematic application? I didn't add any tracing within mte. I can do so if we can guess what we're looking for. > or is it better if i try to extract a

Re: tst-arm-mte bug: PSTATE.TCO is cleared on exceptions

2020-05-07 Thread Szabolcs Nagy
The 05/06/2020 13:57, Szabolcs Nagy wrote: > However later on during testing malloc with PROT_MTE > i got a qemu assert failure: > > Bail out! ERROR:/S/target/arm/mte_helper.c:97:allocation_tag_mem: assertion > failed: (tag_size <= in_page) > > i can reproduce it, but i don't know how to debug

Re: tst-arm-mte bug: PSTATE.TCO is cleared on exceptions

2020-05-06 Thread Szabolcs Nagy
The 04/24/2020 12:47, Richard Henderson wrote: > On 4/21/20 9:39 PM, Richard Henderson wrote: > > Yep. I failed to update aarch64_pstate_valid_mask for TCO. > > Will fix. Thanks, > > Fixed on the branch. > > I still need to work out how best to plumb the arm,armv8.5-memtag property so > the

Re: tst-arm-mte bug: PSTATE.TCO is cleared on exceptions

2020-04-24 Thread Richard Henderson
On 4/21/20 9:39 PM, Richard Henderson wrote: > On 4/20/20 3:29 AM, Szabolcs Nagy wrote: >> i'm using the branch at >> >> https://github.com/rth7680/qemu/tree/tgt-arm-mte >> >> to test armv8.5-a mte and hope this is ok to report bugs here. >> >> i'm doing tests in qemu-system-aarch64 with linux

Re: tst-arm-mte bug: PSTATE.TCO is cleared on exceptions

2020-04-21 Thread Richard Henderson
On 4/20/20 3:29 AM, Szabolcs Nagy wrote: > i'm using the branch at > > https://github.com/rth7680/qemu/tree/tgt-arm-mte > > to test armv8.5-a mte and hope this is ok to report bugs here. > > i'm doing tests in qemu-system-aarch64 with linux userspace > code and it seems TCO bit gets cleared

tst-arm-mte bug: PSTATE.TCO is cleared on exceptions

2020-04-20 Thread Szabolcs Nagy
i'm using the branch at https://github.com/rth7680/qemu/tree/tgt-arm-mte to test armv8.5-a mte and hope this is ok to report bugs here. i'm doing tests in qemu-system-aarch64 with linux userspace code and it seems TCO bit gets cleared after syscalls or other kernel entry, but PSTATE is expected