]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
x86/fault/32: Move is_f00f_bug() to do_kern_addr_fault()
authorAndy Lutomirski <luto@kernel.org>
Wed, 10 Feb 2021 02:33:36 +0000 (18:33 -0800)
committerBorislav Petkov <bp@suse.de>
Wed, 10 Feb 2021 13:11:07 +0000 (14:11 +0100)
commitf42a40fd53fb5c77bae67d917d66078dbaa46bc2
tree1fb05efd1fd6c2a21cb2a1e2d43defdc0fe307c6
parentec352711ceba890ea3a0c182c2d49c86c1a5e30e
x86/fault/32: Move is_f00f_bug() to do_kern_addr_fault()

bad_area() and its relatives are called from many places in fault.c, and
exactly one of them wants the F00F workaround.

__bad_area_nosemaphore() no longer contains any kernel fault code, which
prepares for further cleanups.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/e9668729a48ce6754022b0a4415631e8ebdd00e7.1612924255.git.luto@kernel.org
arch/x86/mm/fault.c