-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
TEE OS panic when enable kasan #7099
Comments
It depends on where you put the ASAN area. In core_mmu.c it's assumed that Out of curiosity, do you use CFG_WITH_PAGER=y on an Arm v8-A platform? |
Thank you for your reply. Out of curiosity, do you use CFG_WITH_PAGER=y on an Arm v8-A platform? As mentioned above, If I want to enbale kasan, CFG_WITH_PAGER must set to n, otherwise the optee os run with panic.
and add the modification:
|
Hi, experts I have another question about kasan.
So is the canaries codes causing the panic? |
The memory is for some reason not writable according to kasan. I guess you need to debug and fix this problem on your platform port. |
Hi, experts
I try to enable kasan on my borad, op-tee(version is 4.1.0) run with panic.
This is my conf.mk:
This is panic log:
The call stack:
I have some questions:
if I want to enbale the kasan, the CFG_CORE_SANITIZE_KADDRESS and CFG_WITH_PAGER must set to y?
2. If I set CFG_WITH_PAGER=y the tee-os run with panic.
If my conf.mk is:
and I add following code in core_mmu.c
tee-os run ok.
So, the above operation configuration is correct?
Thank you!
The text was updated successfully, but these errors were encountered: