/openbmc/linux/arch/s390/include/asm/ |
H A D | os_info.h | diff 303fd988ed644c7daa260410f3ac99266573557d Sat Jan 29 02:24:50 CST 2022 Alexander Gordeev <agordeev@linux.ibm.com> s390/maccess: fix semantics of memcpy_real() and its callers
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>
|
H A D | uaccess.h | diff 303fd988ed644c7daa260410f3ac99266573557d Sat Jan 29 02:24:50 CST 2022 Alexander Gordeev <agordeev@linux.ibm.com> s390/maccess: fix semantics of memcpy_real() and its callers
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>
|
H A D | processor.h | diff 303fd988ed644c7daa260410f3ac99266573557d Sat Jan 29 02:24:50 CST 2022 Alexander Gordeev <agordeev@linux.ibm.com> s390/maccess: fix semantics of memcpy_real() and its callers
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>
|
/openbmc/linux/arch/s390/kernel/ |
H A D | os_info.c | diff 303fd988ed644c7daa260410f3ac99266573557d Sat Jan 29 02:24:50 CST 2022 Alexander Gordeev <agordeev@linux.ibm.com> s390/maccess: fix semantics of memcpy_real() and its callers
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>
|
H A D | crash_dump.c | diff 303fd988ed644c7daa260410f3ac99266573557d Sat Jan 29 02:24:50 CST 2022 Alexander Gordeev <agordeev@linux.ibm.com> s390/maccess: fix semantics of memcpy_real() and its callers
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>
|
H A D | smp.c | diff 303fd988ed644c7daa260410f3ac99266573557d Sat Jan 29 02:24:50 CST 2022 Alexander Gordeev <agordeev@linux.ibm.com> s390/maccess: fix semantics of memcpy_real() and its callers
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>
|
/openbmc/linux/arch/s390/mm/ |
H A D | maccess.c | diff 303fd988ed644c7daa260410f3ac99266573557d Sat Jan 29 02:24:50 CST 2022 Alexander Gordeev <agordeev@linux.ibm.com> s390/maccess: fix semantics of memcpy_real() and its callers
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>
|
/openbmc/linux/drivers/s390/char/ |
H A D | zcore.c | diff 303fd988ed644c7daa260410f3ac99266573557d Sat Jan 29 02:24:50 CST 2022 Alexander Gordeev <agordeev@linux.ibm.com> s390/maccess: fix semantics of memcpy_real() and its callers
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>
|