]> git.baikalelectronics.ru Git - kernel.git/commit
x86_64: csum_..._copy_..._user(): switch to unsafe_..._user()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 16 Feb 2020 19:56:36 +0000 (14:56 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 29 May 2020 20:11:28 +0000 (16:11 -0400)
commite1f0df94edb2d4929a138833bb82d1e075dac040
tree7f5d2b239ddd0884a20990caafb3b9a80da2c247
parente21e5126f5db12e545defd1b2d399a6c360c9786
x86_64: csum_..._copy_..._user(): switch to unsafe_..._user()

We already have stac/clac pair around the calls of csum_partial_copy_generic().
Stretch that area back, so that it covers the preceding loop (and convert
the loop body from __{get,put}_user() to unsafe_{get,put}_user()).
That brings the beginning of the areas to the earlier access_ok(),
which allows to convert them into user_access_{begin,end}() ones.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/x86/lib/csum-wrappers_64.c