OPTEE-OS: xtes and optee_example_hello_world all crashed after booting

cancel
Showing results for 
Search instead for 
Did you mean: 

OPTEE-OS: xtes and optee_example_hello_world all crashed after booting

522 Views
Contributor II

xtes and optee_example_hello_world all crashed after booting, below are logs:

D/TC:0 0 add_phys_mem:576 TEE_SHMEM_START type NSEC_SHM 0x8fe00000 size 0x00200000
D/TC:0 0 add_phys_mem:576 TA_RAM_START type TA_RAM 0x8e100000 size 0x01d00000
D/TC:0 0 add_phys_mem:576 VCORE_UNPG_RW_PA type TEE_RAM_RW 0x8e042000 size 0x000be000
D/TC:0 0 add_phys_mem:576 VCORE_UNPG_RX_PA type TEE_RAM_RX 0x8e000000 size 0x00042000
D/TC:0 0 add_phys_mem:576 ROUNDDOWN(IRAM_BASE, CORE_MMU_PGDIR_SIZE) type TEE_COHERENT 0x00900000 size 0x00100000
D/TC:0 0 add_phys_mem:576 ROUNDDOWN(0x02200000, CORE_MMU_PGDIR_SIZE) type IO_SEC 0x02200000 size 0x00100000
D/TC:0 0 add_phys_mem:576 ROUNDDOWN(0x02100000, CORE_MMU_PGDIR_SIZE) type IO_SEC 0x02100000 size 0x00100000
D/TC:0 0 add_phys_mem:576 ROUNDDOWN(0x02000000, CORE_MMU_PGDIR_SIZE) type IO_SEC 0x02000000 size 0x00100000
D/TC:0 0 add_phys_mem:576 ROUNDDOWN(0x020C8000, CORE_MMU_PGDIR_SIZE) type IO_SEC 0x02000000 size 0x00200000
D/TC:0 0 add_phys_mem:589 Physical mem map overlaps 0x2000000
D/TC:0 0 add_phys_mem:576 ROUNDDOWN(0x00A00000, CORE_MMU_PGDIR_SIZE) type IO_SEC 0x00a00000 size 0x00100000
D/TC:0 0 add_phys_mem:576 ROUNDDOWN((0x2020000), CORE_MMU_PGDIR_SIZE) type IO_NSEC 0x02000000 size 0x00200000
D/TC:0 0 verify_special_mem_areas:514 No NSEC DDR memory area defined
D/TC:0 0 add_va_space:615 type RES_VASPACE size 0x00a00000
D/TC:0 0 add_va_space:615 type SHM_VASPACE size 0x02000000
D/TC:0 0 dump_mmap_table:751 type IO_SEC va 0x88c00000..0x88cfffff pa 0x02100000..0x021fffff size 0x00100000 (pgdir)
D/TC:0 0 dump_mmap_table:751 type IO_SEC va 0x88d00000..0x88efffff pa 0x02000000..0x021fffff size 0x00200000 (pgdir)
D/TC:0 0 dump_mmap_table:751 type IO_SEC va 0x88f00000..0x88ffffff pa 0x00a00000..0x00afffff size 0x00100000 (pgdir)
D/TC:0 0 dump_mmap_table:751 type IO_NSEC va 0x89000000..0x891fffff pa 0x02000000..0x021fffff size 0x00200000 (pgdir)
D/TC:0 0 dump_mmap_table:751 type NSEC_SHM va 0x89200000..0x893fffff pa 0x8fe00000..0x8fffffff size 0x00200000 (pgdir)
D/TC:0 0 dump_mmap_table:751 type TA_RAM va 0x89400000..0x8b0fffff pa 0x8e100000..0x8fdfffff size 0x01d00000 (pgdir)
D/TC:0 0 dump_mmap_table:751 type TEE_COHERENT va 0x8b200000..0x8b2fffff pa 0x00900000..0x009fffff size 0x00100000 (pgdir)
D/TC:0 0 dump_mmap_table:751 type RES_VASPACE va 0x8b300000..0x8bcfffff pa 0x00000000..0x009fffff size 0x00a00000 (pgdir)
D/TC:0 0 dump_mmap_table:751 type IO_SEC va 0x8be00000..0x8befffff pa 0x02200000..0x022fffff size 0x00100000 (pgdir)
D/TC:0 0 dump_mmap_table:751 type SHM_VASPACE va 0x8bf00000..0x8defffff pa 0x00000000..0x01ffffff size 0x02000000 (pgdir)
D/TC:0 0 dump_mmap_table:751 type TEE_RAM_RX va 0x8e000000..0x8e041fff pa 0x8e000000..0x8e041fff size 0x00042000 (smallpg)
D/TC:0 0 dump_mmap_table:751 type TEE_RAM_RW va 0x8e042000..0x8e0fffff pa 0x8e042000..0x8e0fffff size 0x000be000 (smallpg)
D/TC:0 0 core_mmu_alloc_l2:273 L2 table used: 1/4
I/TC:
D/TC:0 0 init_canaries:173 #Stack canaries for stack_tmp[0] with top at 0x8e06f0f8
D/TC:0 0 init_canaries:173 watch *0x8e06f0fc
D/TC:0 0 init_canaries:174 #Stack canaries for stack_abt[0] with top at 0x8e06a938
D/TC:0 0 init_canaries:174 watch *0x8e06a93c
D/TC:0 0 init_canaries:176 #Stack canaries for stack_thread[0] with top at 0x8e06c978
D/TC:0 0 init_canaries:176 watch *0x8e06c97c
D/TC:0 0 init_canaries:176 #Stack canaries for stack_thread[1] with top at 0x8e06e9b8
D/TC:0 0 init_canaries:176 watch *0x8e06e9bc
I/TC: Non-secure external DT found
D/TC:0 0 add_optee_dt_node:616 OP-TEE Device Tree node already exists!
I/TC: OP-TEE version: 3.5.0-155-geb2046fc-dev #3 2019骞08鏈23鏃鏄熸湡浜07:35:53 UTC arm
D/TC:0 0 check_ta_store:653 TA store: "Secure Storage TA"
D/TC:0 0 check_ta_store:653 TA store: "REE [buffered]"
D/TC:0 0 mobj_mapped_shm_init:447 Shared memory address range: 8bf00000, 8df00000
E/TC:0 0 plat_rng_init:354 Warning: seeding RNG with zeroes
D/TC:0 0 imx_wdog_base:125 path: /soc/aips-bus@2000000/wdog@20bc000
I/TC: Initialized
D/TC:0 0 init_primary_helper:1105 Primary CPU switching to normal world boot
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.1.0-253104-g9823b258b332-dirty (jason@ubuntu) (gcc version 6.2.1 20161016 (Linaro GCC 6.2-2016.11)) #12 SMP Fri Aug 23 13:30:31 CST 2019
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Freescale i.MX6 UltraLite 14x14 EVK Board
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] cma: Reserved 64 MiB at 0x8a000000
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.0 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.0
[ 0.000000] random: get_random_bytes called from start_kernel+0x88/0x49c with crng_init=0
[ 0.000000] percpu: Embedded 17 pages/cpu s37864 r8192 d23576 u69632
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 56896
[ 0.000000] Kernel command line: console=ttymxc0,115200 root=/dev/mtdblock5 rootfstype=yaffs2
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 138688K/229376K available (9216K kernel code, 741K rwdata, 3004K rodata, 1024K init, 7742K bss, 25152K reserved, 65536K cma-reserved, 0K highmem)
[ 0.000000] Running RCU self tests
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] rcu: RCU lockdep checking is enabled.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] Switching to timer-based delay loop, resolution 41ns
[ 0.000019] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000089] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.005786] Console: colour dummy device 80x30
[ 0.005903] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
[ 0.005949] ... MAX_LOCKDEP_SUBCLASSES: 8
[ 0.005989] ... MAX_LOCK_DEPTH: 48
[ 0.006030] ... MAX_LOCKDEP_KEYS: 8191
[ 0.006071] ... CLASSHASH_SIZE: 4096
[ 0.006111] ... MAX_LOCKDEP_ENTRIES: 32768
[ 0.006151] ... MAX_LOCKDEP_CHAINS: 65536
[ 0.006189] ... CHAINHASH_SIZE: 32768
[ 0.006230] memory used by lock dependency info: 5243 kB
[ 0.006273] per task-struct memory footprint: 1536 bytes
[ 0.006580] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.006655] pid_max: default: 32768 minimum: 301
[ 0.007730] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.007801] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.014142] *** VALIDATE proc ***
[ 0.015794] *** VALIDATE cgroup1 ***
[ 0.015866] *** VALIDATE cgroup2 ***
[ 0.015951] CPU: Testing write buffer coherency: ok
[ 0.019046] /cpus/cpu@0 missing clock-frequency property
[ 0.019129] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.025023] Setting up static identity map for 0x80100000 - 0x80100078
[ 0.026512] rcu: Hierarchical SRCU implementation.
[ 0.030598] smp: Bringing up secondary CPUs ...
[ 0.030669] smp: Brought up 1 node, 1 CPU
[ 0.030724] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.030767] CPU: All CPU(s) started in SVC mode.
[ 0.038283] devtmpfs: initialized
[ 0.091012] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.093302] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.093485] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.099326] pinctrl core: initialized pinctrl subsystem
[ 0.112229] NET: Registered protocol family 16
[ 0.170520] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.178755] cpuidle: using governor menu
[ 0.214819] vdd3p0: supplied by regulator-dummy
[ 0.218966] cpu: supplied by regulator-dummy
[ 0.223144] vddsoc: supplied by regulator-dummy
[ 0.265608] No ATAGs?
[ 0.266339] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.266600] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.277319] imx6ul-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[ 0.421816] mxs-dma 1804000.dma-apbh: initialized
[ 0.434102] usbcore: registered new interface driver usbfs
[ 0.434676] usbcore: registered new interface driver hub
[ 0.435323] usbcore: registered new device driver usb
[ 0.438993] pps_core: LinuxPPS API ver. 1 registered
[ 0.439058] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it
[ 0.439220] PTP clock support registered
[ 0.453162] clocksource: Switched to clocksource mxc_timer1
[ 1.901854] NET: Registered protocol family 2
[ 1.907813] tcp_listen_portaddr_hash hash table entries: 128 (order: 0, 5120 bytes)
[ 1.907958] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[ 1.908119] TCP bind hash table entries: 2048 (order: 4, 73728 bytes)
[ 1.908825] TCP: Hash tables configured (established 2048 bind 2048)
[ 1.909917] UDP hash table entries: 256 (order: 2, 20480 bytes)
[ 1.910212] UDP-Lite hash table entries: 256 (order: 2, 20480 bytes)
[ 1.911336] NET: Registered protocol family 1
[ 1.917697] RPC: Registered named UNIX socket transport module.
[ 1.917940] RPC: Registered udp transport module.
[ 1.917998] RPC: Registered tcp transport module.
[ 1.918046] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 1.927509] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[ 1.939095] Initialise system trusted keyrings
[ 1.941049] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[ 1.946686] NFS: Registering the id_resolver key type
[ 1.947101] Key type id_resolver registered
[ 1.947350] Key type id_legacy registered
[ 1.947859] jffs2: version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
[ 1.950353] fuse init (API version 7.29)
[ 2.045842] Key type asymmetric registered
[ 2.046227] Asymmetric key parser 'x509' registered
[ 2.046734] io scheduler mq-deadline registered
[ 2.046804] io scheduler kyber registered
[ 2.060462] pwm-backlight backlight-display: backlight-display supply power not found, using dummy regulator
[ 2.074115] imx-sdma 20ec000.sdma: Direct firmware load for imx/sdma/sdma-imx6q.bin failed with error -2
[ 2.074430] imx-sdma 20ec000.sdma: Falling back to syfs fallback for: imx/sdma/sdma-imx6q.bin
[ 2.104038] 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 22, base_baud = 5000000) is a IMX
[ 2.583444] random: fast init done
[ 2.763832] printk: console [ttymxc0] enabled
[ 2.777196] 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 54, base_baud = 5000000) is a IMX
[ 2.811408] panel-simple panel: panel supply power not found, using dummy regulator
[ 2.899503] brd: module loaded
[ 2.972080] loop: module loaded
[ 2.978009] SSFDC read-only Flash Translation layer
[ 3.018653] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
[ 3.025277] nand: Micron MT29F2G08ABAEAWP
[ 3.029399] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 3.043379] Scanning device for bad blocks
[ 4.118359] 6 fixed-partitions partitions found on MTD device gpmi-nand
[ 4.125288] Creating 6 MTD partitions on "gpmi-nand":
[ 4.130481] 0x000000000000-0x000000400000 : "boot"
[ 4.158379] 0x000000400000-0x000000600000 : "logo"
[ 4.177136] 0x000000600000-0x000000700000 : "ENV"
[ 4.195080] 0x000000700000-0x000000a00000 : "DTB"
[ 4.215399] 0x000000a00000-0x000001200000 : "kernel"
[ 4.242326] 0x000001200000-0x000010000000 : "rootfs"
[ 4.583374] gpmi-nand 1806000.gpmi-nand: driver registered.
[ 4.593474] libphy: Fixed MDIO Bus: probed
[ 4.609435] pps pps0: new PPS source ptp0
[ 4.616538] libphy: fec_enet_mii_bus: probed
[ 4.634296] fec 20b4000.ethernet eth0: registered PHC device 0
[ 4.648475] pps pps1: new PPS source ptp1
[ 4.741825] libphy: fec_enet_mii_bus: probed
[ 4.749913] fec 2188000.ethernet eth1: registered PHC device 1
[ 4.758052] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 4.765426] ehci-mxc: Freescale On-Chip EHCI Host driver
[ 4.779084] snvs_rtc 20cc000.snvs:snvs-rtc-lp: registered as rtc0
[ 4.795536] imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
[ 4.805489] sdhci: Secure Digital Host Controller Interface driver
[ 4.811790] sdhci: Copyright(c) Pierre Ossman
[ 4.816424] sdhci-pltfm: SDHCI platform and OF driver helper
[ 4.836248] caam 2140000.caam: Entropy delay = 3200
[ 4.878292] caam 2140000.caam: failed to acquire DECO 0
[ 4.883776] caam 2140000.caam: failed to instantiate RNG
[ 4.899919] usbcore: registered new interface driver usbhid
[ 4.905922] usbhid: USB HID core driver
[ 4.914347] optee: probing for conduit method from DT.
[ 4.919691] optee: revision 3.5 (eb2046f)
[ 4.919827] optee: Shared Memory Address: 0x8fe00000, Size: 0x200000.
[ 4.934634] optee: dynamic shared memory is enabled
[ 4.941514] optee: initialized driver
[ 4.947658] NET: Registered protocol family 10
[ 4.961994] Segment Routing with IPv6
[ 4.966868] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 4.978193] NET: Registered protocol family 17
[ 4.983704] Key type dns_resolver registered
[ 5.009859] Registering SWP/SWPB emulation handler
[ 5.018363] Loading compiled-in X.509 certificates
[ 5.180612] imx_thermal tempmon: Industrial CPU temperature grade - max:105C critical:100C passive:95C
[ 5.198571] snvs_rtc 20cc000.snvs:snvs-rtc-lp: setting system clock to 1970-01-01T03:16:15 UTC (11775)
[ 5.209263] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 5.228718] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 5.239084] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 5.248287] platform regulatory.0: Falling back to syfs fallback for: regulatory.db
[ 5.256563] VSD_3V3: disabling
[ 5.267944] yaffs: dev is 32505861 name is "mtdblock5" ro
[ 5.273991] yaffs: passed flags ""
[ 6.159018] random: crng init done
[ 8.508569] VFS: Mounted root (yaffs2 filesystem) readonly on device 31:5.
[ 8.518956] devtmpfs: mounted
[ 8.525538] Freeing unused kernel memory: 1024K
[ 8.531289] Run /sbin/init as init process
starting pid 135, tty '': '/etc/rc.d/rcS'
Mounting /proc and /sys
Setting the hostname to freescale
Mounting filesystems
mount: mounting shm on /dev/shm failed: No such file or directory
mount: mounting devpts on /dev/pts failed: No such device
Starting syslogd and klogd
starting pid 168, tty '': '/sbin/getty -L ttymxc0 115200 vt100'

BusyBox v1.20.2 (2019-08-23 10:53:19 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

root@freescale ~$
root@freescale ~$ ls /dev/tee*
/dev/tee0 /dev/teepriv0
root@freescale ~$
root@freescale ~$ tee-supplicant &
root@freescale ~$
root@freescale ~$ xtest
Run test suite with level=0[ 46.315211] Bad mode in prefetch abort handler detected
[ 46.321181] Internal error: Oops - bad mode: 0 [#1] SMP ARM
[ 46.326782] Modules linked in:
[ 46.329873] CPU: 0 PID: 172 Comm: xtest Not tainted 5.1.0-253104-g9823b258b332-dirty #12
[ 46.337984] Hardware name: Freescale i.MX6 Ultralite (Device Tree)
[ 46.344195] PC is at 0xd3273f68
[ 46.347369] LR is at optee_smccc_smc+0x3c/0x44
[ 46.351840] pc : [] lr : [] psr: 600e01d6
[ 46.358129] sp : c6615d00 ip : c6615d58 fp : c669b5c0
[ 46.363375] r10: ffff0000 r9 : c0f0c848 r8 : c669b640
[ 46.368623] r7 : 00000000 r6 : 00000000 r5 : 00000000 r4 : 00000000
[ 46.375173] r3 : 00000000 r2 : 8637c000 r1 : 00000000 r0 : 32000004
[ 46.381725] Flags: nZCv IRQs off FIQs off Mode MON_32 ISA ARM Segment none
[ 46.389058] Control: 10c5387d Table: 866d806a DAC: 00000000
[ 46.394835] Process xtest (pid: 172, stack limit = 0x725e5f75)
[ 46.400691] Stack: (0xc6615d00 to 0xc6616000)
[ 46.405083] 5d00: 32000004 00000000 8637c000 00000000 00000000 00000000 00000000 00000000
[ 46.413293] 5d20: c669b640 c0f0c848 ffff0000 c669b5c0 c6615d58 c6615d00 c06c1690 d3273f68
[ 46.421500] 5d40: 600e01d6 ffffffff 00000000 00000000 c6615da0 c65e0e0c 00000000 00000000
[ 46.429708] 5d60: 00000000 00000000 c6615da0 00000000 c0f0c848 c06c1654 c65e0e00 c06c1dec
[ 46.437917] 5d80: 00000000 00000000 00000000 00000000 c6615da0 c017cf68 00000000 00000000
[ 46.446124] 5da0: 00000000 c0228328 00000000 00000000 32000004 00000000 8637c000 00000000
[ 46.454332] 5dc0: 00000000 00000000 00000000 00000000 c65e0e50 c65e0e50 00000000 00000000
[ 46.462540] 5de0: dead4ead ffffffff ffffffff c173fdcc 00000000 00000000 c0c01a84 c6615dfc
[ 46.470748] 5e00: c6615dfc 7c3444d6 c6615ea8 c0f0c848 c669b600 c669b640 c65fd380 c65fd400
[ 46.478956] 5e20: 00000000 c06c20b8 00000000 c637c000 8637c000 7c3444d6 00000002 00000000
[ 46.487164] 5e40: c6615ea8 c669b640 c65fd380 bef499d0 c0f0c848 bef49a08 00000000 c06bf1d8
[ 46.495372] 5e60: c025b890 c46cb99c 00000002 c46cba4c c6615edc c025b890 c6366500 c6233e70
[ 46.503580] 5e80: c025b8c4 c0f0c848 bef499d0 00000000 000000b8 00000000 00000000 c6233e60
[ 46.511789] 5ea0: c66696c0 c0f0c848 405b6ad9 e321e5c3 02109487 1bc6d5a5 00000000 00000000
[ 46.519997] 5ec0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000004
[ 46.528205] 5ee0: 00000070 7c3444d6 00000001 c0f0c848 bef49b28 c65b5310 c66b6d00 c0294694
[ 46.536413] 5f00: c6614000 00000036 00000000 c0293cac 00000000 c633ed98 c6366500 c633ed40
[ 46.544621] 5f20: 80000007 b6f7769e 00000000 c633ed98 00000070 c0175384 c6615fb0 c01169f8
[ 46.552828] 5f40: c6685e88 00000022 00000000 00000022 00000100 00000000 00000000 00000000
[ 46.561036] 5f60: c6685e80 7c3444d6 00000007 c66b6d00 c66b6d00 00000003 8010a402 bef49b28
[ 46.569244] 5f80: c6614000 00000036 00000000 c0294694 00000000 00000000 bef49a88 00000036
[ 46.577451] 5fa0: c01011c4 c0101000 00000000 00000000 00000003 8010a402 bef49b28 00000003
[ 46.585658] 5fc0: 00000000 00000000 bef49a88 00000036 000005c0 00000000 000005c0 00000000
[ 46.593867] 5fe0: b6f883ec bef499c4 b6f77861 b6e7c116 200e0030 00000003 00000000 00000000
[ 46.602093] [] (optee_smccc_smc) from [] (__stack_chk_guard+0x0/0x4)
[ 46.610212] Code: bad PC value
[ 46.613301] ---[ end trace 9232b2e5f77508ca ]---

TEE test application started with device [(null)]
######################################################

regression

######################################################

  • regression_1001 Core self tests
    Segmentation fault
    root@freescale ~$
    root@freescale ~$ optee_example_hello_world
    [ 52.138890] Bad mode in prefetch abort handler detected
    [ 52.144184] Internal error: Oops - bad mode: 0 [#2] SMP ARM
    [ 52.149784] Modules linked in:
    [ 52.152880] CPU: 0 PID: 173 Comm: optee_example_h Tainted: G D 5.1.0-253104-g9823b258b332-dirty #12
    [ 52.163249] Hardware name: Freescale i.MX6 Ultralite (Device Tree)
    [ 52.169458] PC is at 0xd3273f68
    [ 52.172631] LR is at optee_smccc_smc+0x3c/0x44
    [ 52.177100] pc : [] lr : [] psr: 600e01d6
    [ 52.183387] sp : c6615d00 ip : c6615d58 fp : c669b500
    [ 52.188634] r10: ffff0000 r9 : c0f0c848 r8 : c669b580
    [ 52.193881] r7 : 00000000 r6 : 00000000 r5 : 00000000 r4 : 00000000
    [ 52.200432] r3 : 00000000 r2 : 866aa000 r1 : 00000000 r0 : 32000004
    [ 52.206983] Flags: nZCv IRQs off FIQs off Mode MON_32 ISA ARM Segment none
    [ 52.214316] Control: 10c5387d Table: 866a006a DAC: 00000000
    [ 52.220092] Process optee_example_h (pid: 173, stack limit = 0x725e5f75)
    [ 52.226817] Stack: (0xc6615d00 to 0xc6616000)
    [ 52.231208] 5d00: 32000004 00000000 866aa000 00000000 00000000 00000000 00000000 00000000
    [ 52.239416] 5d20: c669b580 c0f0c848 ffff0000 c669b500 c6615d58 c6615d00 c06c1690 d3273f68
    [ 52.247624] 5d40: 600e01d6 ffffffff 00000000 00000000 c6615da0 c65e0e0c 00000000 00000000
    [ 52.255832] 5d60: 00000000 00000000 c6615da0 00000000 c0f0c848 c06c1654 c65e0e00 c06c1dec
    [ 52.264040] 5d80: 00000000 00000000 00000000 00000000 c6615da0 c017cf68 00000000 00000000
    [ 52.272247] 5da0: 00000000 c0228328 00000000 00000000 32000004 00000000 866aa000 00000000
    [ 52.280454] 5dc0: 00000000 00000000 00000000 00000000 c6615dd0 c6615dd0 00000000 00000000
    [ 52.288663] 5de0: dead4ead ffffffff ffffffff c173fdcc 00000000 00000000 c0c01a84 c6615dfc
    [ 52.296871] 5e00: c6615dfc 7c3444d6 c6615ea8 c0f0c848 c669b540 c669b580 c65fd280 c65fd300
    [ 52.305079] 5e20: 00000000 c06c20b8 00000000 c66aa000 866aa000 7c3444d6 c65b5310 00000000
    [ 52.313287] 5e40: c6615ea8 c669b580 c65fd280 bedb7a10 c0f0c848 bedb7a48 00000000 c06bf1d8
    [ 52.321495] 5e60: c025b890 00000000 00000000 c46be7dc c6615edc c025b890 c6685700 c46be72c
    [ 52.329703] 5e80: c0f0c870 c46be7e0 bedb7a10 00000000 000000b8 00000000 c6004900 00000003
    [ 52.337911] 5ea0: c6615f70 c0f0c848 00f2aa8a e4115024 0200e2ab 1bc5d5a5 00000000 00000000
    [ 52.346119] 5ec0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000004
    [ 52.354329] 5ee0: 00000002 7c3444d6 600e0013 c0f0c848 bedb7b68 c65b5310 c6685d40 c0294694
    [ 52.362536] 5f00: c6614000 00000036 00000000 c0293cac c66b6bc0 c66b6bf4 00000003 c6685d40
    [ 52.370745] 5f20: c66b7000 7c3444d6 c65b5310 c6004900 c6004900 c66b7000 c027c744 a00e0013
    [ 52.378953] 5f40: 00000020 c65b5310 c6685d48 c02755ec 00000003 c0f0c848 c6685d40 c66b7000
    [ 52.387160] 5f60: 00000020 7c3444d6 00000000 c6685d40 c6685d40 00000003 8010a402 bedb7b68
    [ 52.395368] 5f80: c6614000 00000036 00000000 c0294694 00000000 00000000 bedb7ac8 00000036
    [ 52.403576] 5fa0: c01011c4 c0101000 00000000 00000000 00000003 8010a402 bedb7b68 00000003
    [ 52.411784] 5fc0: 00000000 00000000 bedb7ac8 00000036 000005c0 00000000 000005c0 00000000
    [ 52.419992] 5fe0: b6f4b3ec bedb7a04 b6f3a861 b6edb116 200e0030 00000003 00000000 00000000
    [ 52.428219] [] (optee_smccc_smc) from [] (__stack_chk_guard+0x0/0x4)
    [ 52.436338] Code: bad PC value
    [ 52.439426] ---[ end trace 9232b2e5f77508cb ]---
    Segmentation fault
Labels (4)
0 Kudos
1 Reply

95 Views
Senior Contributor II

Hi jasonshao,

From the logs you shared, your regression test is also  failing. It seems you have started the "tee-supplicant" process in background manually. However, according to me the kernel will automatically start this service, we no need to start it manually. Manually starting this again can lead to crash. Can you please boot the kernel and then directly test the "xtest" application? If this regression test passes then continue with hello world application.

Regards,

Kunal