RISC-V offers several virtual memory address schemes (Sv39, Sv48, and Sv57), but ASan currently supports only Sv39 on RISC-V64. For riscv64, Asan's tuning for Sv39 can be enabled in qemu by default. Additional info in - https://git.openembedded.org/openembedded-core/commit/?id=4b4450ff695ef73bf7a2437e142d2e0730d6a547
No objections in the bug review but it is odd that qemu isn't doing this already. Please work with qemu upstream to see if the default can be changed there.
Sundeep, YP release 5.2-M2 will be built soon so we are one release until feature freeze. Please have someone on the team look at the qemu source and our qemu recipe to see if we can safely change the default virtual memory address scheme.
Add Raj from WR who may have some guidance on options or interest in ensuring that the qemuriscv64 "BSP" configuration. Raj, perhaps you and Sundeep can talk since you're in the same timzeone.
Fix merged in oe-core master: https://git.openembedded.org/openembedded-core/commit/?id=5e749a2576698e390392b5d522a2dc5fdc9556cd