summaryrefslogtreecommitdiff
path: root/arch/x86/net/bpf_jit_comp.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2018-07-19 14:21:31 +0300
committerRussell King <rmk+kernel@armlinux.org.uk>2018-11-12 13:51:01 +0300
commit383fb3ee8024d596f488d2dbaf45e572897acbdb (patch)
treeb67a58bae630bacced733e397dab05ceef57166f /arch/x86/net/bpf_jit_comp.c
parente209950fdd065d2cc46e6338e47e52841b830cba (diff)
downloadlinux-383fb3ee8024d596f488d2dbaf45e572897acbdb.tar.xz
ARM: spectre-v2: per-CPU vtables to work around big.Little systems
In big.Little systems, some CPUs require the Spectre workarounds in paths such as the context switch, but other CPUs do not. In order to handle these differences, we need per-CPU vtables. We are unable to use the kernel's per-CPU variables to support this as per-CPU is not initialised at times when we need access to the vtables, so we have to use an array indexed by logical CPU number. We use an array-of-pointers to avoid having function pointers in the kernel's read/write .data section. Reviewed-by: Julien Thierry <julien.thierry@arm.com> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/x86/net/bpf_jit_comp.c')
0 files changed, 0 insertions, 0 deletions