aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorDiana Craciun <[email protected]>2018-12-12 16:03:06 +0200
committerMichael Ellerman <[email protected]>2018-12-20 22:59:03 +1100
commit7fef436295bf6c05effe682c8797dfcb0deb112a (patch)
tree63a3c7741aa3ce4b306457836145046f52a4c5fc /scripts/gcc-plugins/cyc_complexity_plugin.c
parent10c5e83afd4a3f01712d97d3bb1ae34d5b74a185 (diff)
powerpc/fsl: Flush the branch predictor at each kernel entry (32 bit)
In order to protect against speculation attacks on indirect branches, the branch predictor is flushed at kernel entry to protect for the following situations: - userspace process attacking another userspace process - userspace process attacking the kernel Basically when the privillege level change (i.e.the kernel is entered), the branch predictor state is flushed. Signed-off-by: Diana Craciun <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions