{"action":"created","issue":{"url":"https://api.github.com/repos/OP-TEE/optee_os/issues/577","labels_url":"https://api.github.com/repos/OP-TEE/optee_os/issues/577/labels{/name}","comments_url":"https://api.github.com/repos/OP-TEE/optee_os/issues/577/comments","events_url":"https://api.github.com/repos/OP-TEE/optee_os/issues/577/events","html_url":"https://github.com/OP-TEE/optee_os/issues/577","id":120723001,"number":577,"title":"concurrent ta","user":{"login":"neil1899","id":5242551,"avatar_url":"https://avatars.githubusercontent.com/u/5242551?v=3","gravatar_id":"","url":"https://api.github.com/users/neil1899","html_url":"https://github.com/neil1899","followers_url":"https://api.github.com/users/neil1899/followers","following_url":"https://api.github.com/users/neil1899/following{/other_user}","gists_url":"https://api.github.com/users/neil1899/gists{/gist_id}","starred_url":"https://api.github.com/users/neil1899/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neil1899/subscriptions","organizations_url":"https://api.github.com/users/neil1899/orgs","repos_url":"https://api.github.com/users/neil1899/repos","events_url":"https://api.github.com/users/neil1899/events{/privacy}","received_events_url":"https://api.github.com/users/neil1899/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-12-07T08:30:59Z","updated_at":"2015-12-25T06:19:30Z","closed_at":null,"body":"hi,all\r\nwhen i run xtest 1013, in order to test concurrent: when i use the commit of:\r\nhttps://github.com/OP-TEE/optee_os/commit/80c558efb87fac8651270e20f00acc85f972bdd1\r\nit will cause my test failed，l->curr_thread == -1 failed\r\nbecause on my platform such as sun-xi, i don't config GENERIC_BOOT.\r\n\r\nand when i run my test.sh to test the concurrent stability, it failed. log is \r\n* XTEST_TEE_1013 Test concurency with concurrent TA\r\no XTEST_TEE_1013.1 Busy loop with 3 parallel threads\r\nMax concurrency 1\r\n  XTEST_TEE_1013.1 OK\r\no XTEST_TEE_1013.2 Hashing with 3 parallel threads\r\n[39440.278095@1] misc opteearmtz00: Can't find shm for 000000000710d000\r\n[39440.278843@1] BUG: failure at /mnt/fileroot/wei.nie/android-l/vendor/amlogic/tdk-1.0.1/linuxdriver/core/tee_supp_com.c:221/tee_supp_write()!\r\n[39440.291347@1] Kernel panic - not syncing: BUG!\r\n[39440.295713@1] CPU: 1 PID: 3065 Comm: tee-supplicant Tainted: P           O 3.14.29-gfd3994a-dirty #1\r\n[39440.304765@1] Call trace:\r\n[39440.307363@1] [<ffffffc001088e74>] dump_backtrace+0x0/0x144\r\n[39440.312874@1] [<ffffffc001088fd4>] show_stack+0x1c/0x28\r\n[39440.318050@1] [<ffffffc001a0af20>] dump_stack+0x74/0xb8\r\n[39440.323223@1] [<ffffffc001a08620>] panic+0xe8/0x20c\r\n[39440.328060@1] [<ffffffbffc062f9c>] tee_supp_write+0x1d8/0x218 [optee]\r\n[39440.334438@1] [<ffffffc0011b4af4>] vfs_write+0xac/0x198\r\n[39440.339611@1] [<ffffffc0011b53e0>] SyS_write+0x50/0xb0\r\n[39440.344700@0] CPU0: stopping\r\n[39440.347547@0] CPU: 0 PID: 0 Comm: swapper/0 Tainted: P           O 3.14.29-gfd3994a-dirty #1\r\n[39440.355910@0] Call trace:\r\n\r\nthanks in advance!\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/OP-TEE/optee_os/issues/comments/167199580","html_url":"https://github.com/OP-TEE/optee_os/issues/577#issuecomment-167199580","issue_url":"https://api.github.com/repos/OP-TEE/optee_os/issues/577","id":167199580,"user":{"login":"neil1899","id":5242551,"avatar_url":"https://avatars.githubusercontent.com/u/5242551?v=3","gravatar_id":"","url":"https://api.github.com/users/neil1899","html_url":"https://github.com/neil1899","followers_url":"https://api.github.com/users/neil1899/followers","following_url":"https://api.github.com/users/neil1899/following{/other_user}","gists_url":"https://api.github.com/users/neil1899/gists{/gist_id}","starred_url":"https://api.github.com/users/neil1899/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neil1899/subscriptions","organizations_url":"https://api.github.com/users/neil1899/orgs","repos_url":"https://api.github.com/users/neil1899/repos","events_url":"https://api.github.com/users/neil1899/events{/privacy}","received_events_url":"https://api.github.com/users/neil1899/received_events","type":"User","site_admin":false},"created_at":"2015-12-25T06:19:30Z","updated_at":"2015-12-25T06:19:30Z","body":"hi @pascal-brand-st-dev \r\ncould you reproduct the crash problem?"}}