lists.openwall.net | 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 linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Tue, 27 Oct 2020 11:09:49 +0100 From: Thomas Gleixner <tglx@...utronix.de> To: LKML <linux-kernel@...r.kernel.org> Cc: x86@...nel.org, Sebastian Andrzej Siewior <bigeasy@...utronix.de> Subject: [patch 0/2] x86/fpu: Make fpu_lock() RT compliant FPU serialization uses preempt_disable(); local_bh_disable(); which is silly because local_bh_disable() implicitly disables preemption. So this can be reduced to local_bh_disable(). But this does not work on RT kernels because local_bh_disable() only serializes bottom half related processing via a local lock, but does not disable preemption. On RT kernels preempt_disable() is the right choice because on RT bottom half processing is always in thread context, so preempt_disable() implicitly protects against bottom half processing there. Thanks, tglx
Powered by blists - more mailing lists