commit | 6cbcf8d7d5e5bd4bb5b59c485320e058e9ffd1fe | [log] [tgz] |
---|---|---|
author | Wenhao Wang <wenhaowang@google.com> | Thu Feb 13 20:32:02 2020 -0800 |
committer | Wenhao Wang <wenhaowang@google.com> | Tue Feb 18 13:04:51 2020 -0800 |
tree | a08fed14464b435b9e6bf8fbd47c7df3c57d52f6 | |
parent | 4d2ada0965dbf2775351ab95097ccb7ca4572b7d [diff] |
[lib][trusty] Add stack cookies to trusty apps Trusty kernel initializes and maintains a random number pool. The pool provides 16 bytes random number for each trusty app, hence the trusty app use the random number as stack cookies. The random number is allocated into trusty app's stack and pointed by AT_RANDOM auxiliary variable. Bug: 149518090 Test: Pass libc.stack_cookies in libc-test. Change-Id: I5bf4e571ed35041cde6b33799210d948d519db1a