]> git.baikalelectronics.ru Git - kernel.git/commit
s390/crash: fix incorrect number of bytes to copy to user space
authorAlexander Gordeev <agordeev@linux.ibm.com>
Fri, 15 Jul 2022 10:59:33 +0000 (12:59 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Wed, 20 Jul 2022 15:21:41 +0000 (17:21 +0200)
commit21825ee6329d75e7496bc17a7cd2776a44d939a9
treec879fc3814c2090141e81bfc8499211df02479b0
parent4a14d3a3e8187628ae04599820f2e088ad03e663
s390/crash: fix incorrect number of bytes to copy to user space

The number of bytes in a chunk is correctly calculated, but instead
the total number of bytes is passed to copy_to_user_real() function.

Reported-by: Matthew Wilcox <willy@infradead.org>
Fixes: f65379ecb51f ("s390/dump: streamline oldmem copy functions")
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/kernel/crash_dump.c