On Sun, 15 Nov 2026 at 03:29, Abhigyan Kumar <[email protected]> wrote: > This commit introduces CPUTLBEntryFull.extra.riscv.sstack as > a marker for shadow stack pages inside TLB entries. When riscv.sstack is > set, check_zicbom_access falls through it to probe_write. > > With this commit, the now-redundant special case in get_physical_address > for probe is removed. is_probe in a call to get_physical_address is > replaced with is_sstack_page. As a side effect non-fault probes of > shadow stack pages no longer see them as unreadable, matching what a > usual load does. > > Resolves: https://gitlab.com/qemu-project/qemu/-/issues/4789 > Fixes: 669b4867495c ("target/riscv: mmu changes for zicfiss shadow stack > protection") > Signed-off-by: Abhigyan Kumar <[email protected]>
With this patch on master (97c88c61d45d), the reproducer from #4789 passes and exits 0. Tested on Debian 13 x86_64 (riscv64-softmmu and riscv64-linux-user build). Tested-by: Karl Mehltretter <[email protected]> Thanks, Karl
