Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aarch64 qasan_shadow_stack address error #28

Open
uncr4ck4ble opened this issue Nov 24, 2021 · 0 comments
Open

aarch64 qasan_shadow_stack address error #28

uncr4ck4ble opened this issue Nov 24, 2021 · 0 comments

Comments

@uncr4ck4ble
Copy link

gen_helper_qasan_shadow_stack_push(tcg_const_tl(s->pc_curr));
gen_helper_qasan_shadow_stack_pop(cpu_reg(s, 30)); //linker register address will not equel pushed address


void HELPER(qasan_shadow_stack_pop)(target_ulong ptr) {

#if defined(TARGET_ARM)
  ptr &= ~1;

#endif
#if defined (TARGET_AARCH64)   //simple fix ,make stack frame right
  ptr -= 4;      
#endif
  ...
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant