diff options
author | Dan Williams <dan.j.williams@intel.com> | 2018-07-08 13:46:12 -0700 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-07-16 00:05:05 +0200 |
commit | ca146f6f091e47b3fd18d6a7e76ec0297d202e0f (patch) | |
tree | 473101ada06498159f8c9f09a1aa4d6d8360ab8b /arch/x86 | |
parent | abd08d7d245397bcbded8c6c29ff79a36b3875b0 (diff) | |
download | linux-stable-ca146f6f091e47b3fd18d6a7e76ec0297d202e0f.tar.gz linux-stable-ca146f6f091e47b3fd18d6a7e76ec0297d202e0f.tar.bz2 linux-stable-ca146f6f091e47b3fd18d6a7e76ec0297d202e0f.zip |
lib/iov_iter: Fix pipe handling in _copy_to_iter_mcsafe()
By mistake the ITER_PIPE early-exit / warning from copy_from_iter() was
cargo-culted in _copy_to_iter_mcsafe() rather than a machine-check-safe
version of copy_to_iter_pipe().
Implement copy_pipe_to_iter_mcsafe() being careful to return the
indication of short copies due to a CPU exception.
Without this regression-fix all splice reads to dax-mode files fail.
Reported-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Tested-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tony Luck <tony.luck@intel.com>
Fixes: 8780356ef630 ("x86/asm/memcpy_mcsafe: Define copy_to_iter_mcsafe()")
Link: http://lkml.kernel.org/r/153108277278.37979.3327916996902264102.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86')
0 files changed, 0 insertions, 0 deletions