-
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-supplicant panic & ta panic #506
Comments
hi,all #!/system/xbin/sh
while [ 1 ]
do
tee-supplicant&
tee_helloworld
kill -9 $(pidof tee-supplicant)
sleep 1
done it always occurs kernel panic: [ 117.547355@0] Unable to handle kernel paging request at virtual address d0c30001b80709ca
[ 117.551245@0] pgd = ffffffc01cfdb000
[ 117.555710@0] [d0c30001b80709ca] *pgd=0000000000000000
[ 117.559808@0] Internal error: Oops: 96000004 [#1] PREEMPT SMP
[ 117.565423@0] Modules linked in: optee_armtz(O) optee(O) dwc_otg aml_thermal(O) mali(O)
[ 117.573391@0] CPU: 0 PID: 3965 Comm: tee_helloworld Tainted: G O 3.14.29-gf020d86-dirty #3
[ 117.582424@0] task: ffffffc01cf7b000 ti: ffffffc01d5dc000 task.ti: ffffffc01d5dc000
[ 117.590076@0] PC is at tee_shm_free+0x40/0x68 [optee]
[ 117.595045@0] LR is at tee_shm_free+0x34/0x68 [optee]
[ 117.600015@0] pc : [<ffffffbffc0e928c>] lr : [<ffffffbffc0e9280>] pstate: 80000145
[ 117.607505@0] sp : ffffffc01d5dfa50
[ 117.610957@0] x29: ffffffc01d5dfa50 x28: 0000000000000000
[ 117.616390@0] x27: ffffff8005f00000 x26: 00000000ffff5701
[ 117.621822@0] x25: 0000000032000003 x24: ffffff8005f0100c
[ 117.627254@0] x23: 0000000000000008 x22: ffffffc01d5dfb38
[ 117.632689@0] x21: ffffffc022ce6018 x20: ffffffc022cd3818
[ 117.638124@0] x19: ffffffc022ce6168 x18: 0000000000000000
[ 117.643555@0] x17: 0000000000000000 x16: 0000000000000000
[ 117.648989@0] x15: 0000000000000000 x14: 0000000000000000
[ 117.654423@0] x13: 0000000000000000 x12: 0000000000000000
[ 117.659856@0] x11: 0000000000000000 x10: 0000000000000000
[ 117.665290@0] x9 : 0000000000000000 x8 : 0000000000000000
[ 117.670723@0] x7 : 0000000000000000 x6 : 0000000000000000
[ 117.676156@0] x5 : 0000000000000000 x4 : ffffffc022ce6168 |
Hi, Which platform are you using? Which kernel version? Are you booting with UEFI? Regards, |
hi,all #!/system/xbin/sh [ 117.547355@0] Unable to handle kernel paging request at virtual address d0c30001b80709ca |
hi, jenswi |
From what I've seen so far it looks like the shared memory isn't properly reserved and may be used for other purposes by the kernel too. |
Dear jenswi: on my platform, I have define the optee ram size my dts file has change such as:
but the issue also reappear my shell is |
if i don't do the job of kill -9 $(pidof tee-supplicant). i mean the shell just do the tee_helloworld, it can run all day but if i kill the tee-supplicant and run it again, about 3~4mins the tee_helloworld will occus kernel panic |
I think due to the killing different pages are used for user space memory making the problem visible earlier. Are you sure that the kernel doesn't use 0x05300000..0x053FFFFF for other purposes? |
yes, I'm sure i have rever the memory from 0x05300000 to 0x06300000 secos: share mem setup |
hi,jenswi: it runs ok either. another thing is that: sometimes when i run tee-supplicant& the system has no any response. such as [1] 3900 |
I suggest that we keep this issue open, even though I don't think we will do any further analysis right now. Indeed it shouldn't crash and there shouldn't be any timing related issues when loading/unloading the binaries and drivers. |
hi,jbech: while [ 1 ] I think if it's true, i would close this case, and analyse other module. |
@neil1899 no it doesn't work and that is why I suggested that we keep this particular issue posted by you open until the issue has been resolved. However, it will get a little bit lower priority to solve from our side, since that test sequence is somewhat unrealistic in real world use cases. |
@neil1899 , yesterday we released OP-TEE 2.1.0 and this time we kind of officially supports AOSP also (please see the note about AOSP in the CHANGELOG.md). Would you mind to check whether the issue you reported still exists? |
@neil1899 , this issue is becoming very old and we haven't really been able to reproduce it. Would you mind give a try on the 2.2.0 tag? If not, then I'm going to close the issue for now and then I'd suggest to re-open it later again if the error still shows up. |
This issue has been marked as a stale issue because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 5 days. Note, that you can always re-open a closed issue at any time. |
hi,all:
sometimes when i run the tee-supplicant on Android, it will happen
what's the reason of this case?
thanks in advance!
The text was updated successfully, but these errors were encountered: