projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccbe22d
)
copy_oldmem_kernel() - WRITE is "data source", not destination
author
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 15 Sep 2022 22:55:18 +0000
(18:55 -0400)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 9 Feb 2023 10:28:03 +0000
(11:28 +0100)
[ Upstream commit
0e1e4a2238d465199e8f11eb7a779bcb224a0505
]
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Stable-dep-of:
6dd88fd59da8
("vhost-scsi: unbreak any layout for response")
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/s390/kernel/crash_dump.c
patch
|
blob
|
history
diff --git
a/arch/s390/kernel/crash_dump.c
b/arch/s390/kernel/crash_dump.c
index
e4ef67e
..
a19a276
100644
(file)
--- a/
arch/s390/kernel/crash_dump.c
+++ b/
arch/s390/kernel/crash_dump.c
@@
-153,7
+153,7
@@
int copy_oldmem_kernel(void *dst, unsigned long src, size_t count)
kvec.iov_base = dst;
kvec.iov_len = count;
- iov_iter_kvec(&iter,
WRITE
, &kvec, 1, count);
+ iov_iter_kvec(&iter,
READ
, &kvec, 1, count);
if (copy_oldmem_iter(&iter, src, count) < count)
return -EFAULT;
return 0;