commit | 0e30c6a0fab15701632d0e6d434c8fb2a4597b13 | [log] [tgz] |
---|---|---|
author | Andrew Boie <andrew.p.boie@intel.com> | Sat Oct 24 13:04:04 2020 -0700 |
committer | Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no> | Mon Oct 26 13:06:16 2020 +0100 |
tree | 54cf076a9388f0f149d87bd3e64d600c2b426f1f | |
parent | 5c5e3597c841752d3c087f6ed6c71fb9efde71b1 [diff] |
kernel: wipe TLS when dropping to user mode For threads that run in supervisor mode for some time before synchronously dropping to user mode, re-initialize the TLS area to prevent leakage of potentially sensitive information. We did this already for CONFIG_THREAD_USERSPACE_LOCAL_DATA but not the new CONFIG_THREAD_LOCAL_STORAGE. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>