x86/mce: Change to not send SIGBUS error during copy from user
authorTony Luck <tony.luck@intel.com>
Wed, 18 Aug 2021 00:29:41 +0000 (17:29 -0700)
committerBorislav Petkov <bp@suse.de>
Mon, 20 Sep 2021 08:55:41 +0000 (10:55 +0200)
commita6e3cf70b772541c2388abdb86e5a562cfe18e63
tree513d9e0becdf14ef0f216621b85098433110d4a2
parente4e737bb5c170df6135a127739a9e6148ee3da82
x86/mce: Change to not send SIGBUS error during copy from user

Sending a SIGBUS for a copy from user is not the correct semantic.
System calls should return -EFAULT (or a short count for write(2)).

Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210818002942.1607544-3-tony.luck@intel.com
arch/x86/kernel/cpu/mce/core.c