summaryrefslogtreecommitdiffstats
path: root/lib/fault-inject.c
diff options
context:
space:
mode:
authorTuong Lien <tuong.t.lien@dektech.com.au>2020-08-30 02:37:55 +0700
committerDavid S. Miller <davem@davemloft.net>2020-08-30 19:12:17 -0700
commitbb8872a1e6bc911869a729240781076ed950764b (patch)
tree756ac8e2ce412fae24aeedb018ee8ba5871d22c0 /lib/fault-inject.c
parentc8146fe292a726d71e302719df90b53e2f84f7a5 (diff)
downloadlinux-bb8872a1e6bc911869a729240781076ed950764b.tar.gz
linux-bb8872a1e6bc911869a729240781076ed950764b.tar.bz2
linux-bb8872a1e6bc911869a729240781076ed950764b.zip
tipc: fix using smp_processor_id() in preemptible
The 'this_cpu_ptr()' is used to obtain the AEAD key' TFM on the current CPU for encryption, however the execution can be preemptible since it's actually user-space context, so the 'using smp_processor_id() in preemptible' has been observed. We fix the issue by using the 'get/put_cpu_ptr()' API which consists of a 'preempt_disable()' instead. Fixes: fc1b6d6de220 ("tipc: introduce TIPC encryption & authentication") Acked-by: Jon Maloy <jmaloy@redhat.com> Signed-off-by: Tuong Lien <tuong.t.lien@dektech.com.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/fault-inject.c')
0 files changed, 0 insertions, 0 deletions