Thread (12 messages) 12 messages, 3 authors, 2020-09-15

Re: [net] tipc: fix using smp_processor_id() in preemptible

From: David Miller <davem@davemloft.net>
Date: 2020-08-31 02:14:28

From: Tuong Lien <redacted>
Date: Sun, 30 Aug 2020 02:37:55 +0700
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 <redacted>
Applied and queued up for -stable.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help