lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 13 Apr 2017 12:56:15 +0800
From:   Herbert Xu <>
To:     Thomas Gleixner <>
Cc:     LKML <>,
        Peter Zijlstra <>,
        Ingo Molnar <>,
        Sebastian Siewior <>,
        Benjamin Herrenschmidt <>,
        "David S. Miller" <>,
        Fenghua Yu <>,
        Lai Jiangshan <>,
        Len Brown <>,
        Michael Ellerman <>,
        "Rafael J. Wysocki" <>, Tejun Heo <>,
        Tony Luck <>,
        Viresh Kumar <>,
Subject: Re: [patch 13/13] crypto: n2 - Replace racy task affinity logic

On Wed, Apr 12, 2017 at 10:07:39PM +0200, Thomas Gleixner wrote:
> spu_queue_register() needs to invoke setup functions on a particular
> CPU. This is achieved by temporarily setting the affinity of the
> calling user space thread to the requested CPU and reset it to the original
> affinity afterwards.
> That's racy vs. CPU hotplug and concurrent affinity settings for that
> thread resulting in code executing on the wrong CPU and overwriting the
> new affinity setting.
> Replace it by using work_on_cpu_safe() which guarantees to run the code on
> the requested CPU or to fail in case the CPU is offline.
> Signed-off-by: Thomas Gleixner <>
> Cc: Herbert Xu <>
> Cc: "David S. Miller" <>
> Cc:

Acked-by: Herbert Xu <>
Email: Herbert Xu <>
Home Page:
PGP Key:

Powered by blists - more mailing lists