Alexander Gordeev
2165fd2bae
s390/maccess: fix semantics of memcpy_real() and its callers
...
[ Upstream commit 303fd988ed ]
There is a confusion with regard to the source address of
memcpy_real() and calling functions. While the declared
type for a source assumes a virtual address, in fact it
always called with physical address of the source.
This confusion led to bugs in copy_oldmem_kernel() and
copy_oldmem_user() functions, where __pa() macro applied
mistakenly to physical addresses. It does not lead to a
real issue, since virtual and physical addresses are
currently the same.
Fix both the bugs and memcpy_real() prototype by making
type of source address consistent to the function name
and the way it actually used.
Reviewed-by: Heiko Carstens <hca@linux.ibm.com >
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com >
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2022-08-17 14:24:09 +02:00
..
2022-07-29 17:25:32 +02:00
2022-08-17 14:23:11 +02:00
2022-08-17 14:23:58 +02:00
2022-06-22 14:21:56 +02:00
2022-03-23 09:16:41 +01:00
2022-08-17 14:23:45 +02:00
2022-08-17 14:24:00 +02:00
2022-08-17 14:23:34 +02:00
2022-08-17 14:23:10 +02:00
2022-06-29 09:03:31 +02:00
2022-08-17 14:23:55 +02:00
2022-07-07 17:53:32 +02:00
2022-06-22 14:22:03 +02:00
2022-07-21 21:24:34 +02:00
2022-06-09 10:22:33 +02:00
2022-08-17 14:23:35 +02:00
2022-07-12 16:34:58 +02:00
2022-04-08 14:23:31 +02:00
2022-07-07 17:53:27 +02:00
2022-08-17 14:23:56 +02:00
2022-07-12 16:34:51 +02:00
2022-08-03 12:03:55 +02:00
2022-06-14 18:36:22 +02:00
2022-05-12 12:30:05 +02:00
2022-08-17 14:23:11 +02:00
2022-08-17 14:23:41 +02:00
2022-07-07 17:53:32 +02:00
2022-08-17 14:23:56 +02:00
2022-08-17 14:23:30 +02:00
2022-04-08 14:22:50 +02:00
2022-08-17 14:23:57 +02:00
2022-06-22 14:22:00 +02:00
2022-08-17 14:23:13 +02:00
2022-08-17 14:23:49 +02:00
2022-08-17 14:23:34 +02:00
2022-07-23 12:54:04 +02:00
2022-08-17 14:23:55 +02:00
2022-08-17 14:23:59 +02:00
2022-07-12 16:34:51 +02:00
2022-08-17 14:23:53 +02:00
2022-08-17 14:24:09 +02:00
2022-08-17 14:23:01 +02:00
2022-08-11 13:07:54 +02:00
2022-06-09 10:23:12 +02:00
2022-08-17 14:23:15 +02:00
2022-08-17 14:23:28 +02:00
2022-07-12 16:34:52 +02:00
2022-08-17 14:23:50 +02:00
2022-08-17 14:24:09 +02:00
2022-08-17 14:23:52 +02:00
2022-08-17 14:23:57 +02:00
2022-08-17 14:23:58 +02:00
2022-08-17 14:23:44 +02:00
2022-07-21 21:24:35 +02:00
2022-07-07 17:53:24 +02:00
2022-08-17 14:24:00 +02:00
2022-08-17 14:23:59 +02:00
2022-08-17 14:24:01 +02:00
2022-08-17 14:22:51 +02:00
2022-08-17 14:23:57 +02:00
2022-06-14 18:36:02 +02:00
2022-08-17 14:23:14 +02:00
2022-08-17 14:23:52 +02:00
2022-07-29 17:25:20 +02:00
2022-08-17 14:23:58 +02:00
2022-07-29 17:25:10 +02:00
2022-04-08 14:23:44 +02:00
2022-04-13 20:59:01 +02:00
2022-08-17 14:23:16 +02:00
2022-08-17 14:23:14 +02:00
2022-08-17 14:24:09 +02:00
2022-04-27 14:38:55 +02:00
2022-08-17 14:24:08 +02:00
2022-08-17 14:22:53 +02:00
2022-08-17 14:24:09 +02:00
2022-08-17 14:23:51 +02:00
2022-05-18 10:26:55 +02:00
2022-08-17 14:23:14 +02:00
2022-08-17 14:23:48 +02:00
2022-08-17 14:23:12 +02:00
2022-08-17 14:23:50 +02:00
2022-06-09 10:22:47 +02:00
2022-08-17 14:22:50 +02:00
2022-06-14 18:36:20 +02:00
2022-08-17 14:24:07 +02:00
2022-08-17 14:24:01 +02:00
2022-07-21 21:24:33 +02:00
2022-04-20 09:34:13 +02:00
2022-06-14 18:36:24 +02:00
2022-08-17 14:22:51 +02:00
2022-04-08 14:23:50 +02:00
2022-07-21 21:24:33 +02:00
2022-04-13 20:59:11 +02:00
2022-06-14 18:36:22 +02:00
2022-07-21 21:24:23 +02:00