# git rev-parse -q --verify a2ccce2ddfec3972eb628de6aafe4910770ccb21^{commit} a2ccce2ddfec3972eb628de6aafe4910770ccb21 already have revision, skipping fetch # git checkout -q -f -B kisskb a2ccce2ddfec3972eb628de6aafe4910770ccb21 # git clean -qxdf # < git log -1 # commit a2ccce2ddfec3972eb628de6aafe4910770ccb21 # Author: Paul Mackerras # Date: Fri Aug 3 20:13:06 2018 +1000 # # powerpc/64: Copy as much as possible in __copy_tofrom_user # # In __copy_tofrom_user, if we encounter an exception on a store, we # stop copying and return the number of bytes not copied. However, # if the store is wider than one byte and is to an unaligned address, # it is possible that the store operand overlaps a page boundary # and the exception occurred on the latter part of the store operand, # meaning that it would be possible to copy a few more bytes. Since # copy_to_user is generally expected to copy as much as possible, # it would be better to copy those extra few bytes. This adds code # to do that. Since this edge case is not performance-critical, # the code has been written to be compact rather than as fast as # possible. # # Signed-off-by: Paul Mackerras # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < git log --format=%s --max-count=1 a2ccce2ddfec3972eb628de6aafe4910770ccb21 # < make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_40x_obs600_defconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- 40x/obs600_defconfig # make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_40x_obs600_defconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/net/Makefile:24: CC cannot link executables. Skipping bpfilter. /kisskb/src/net/Makefile:24: CC cannot link executables. Skipping bpfilter. INFO: Uncompressed kernel (size 0x485bd8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x500000) Image Name: Linux-4.18.0-rc3-ga2ccce2 Created: Mon Aug 6 23:34:31 2018 Image Type: PowerPC Linux Multi-File Image (gzip compressed) Data Size: 2329838 Bytes = 2275.23 kB = 2.22 MB Load Address: 00000000 Entry Point: 00000000 Contents: Image 0: 2322949 Bytes = 2268.50 kB = 2.22 MB Image 1: 3 Bytes = 0.00 kB = 0.00 MB Image 2: 6866 Bytes = 6.71 kB = 0.01 MB Completed OK # rm -rf /kisskb/build/powerpc-next_40x_obs600_defconfig_powerpc-5.3 # Build took: 0:00:18.804458