# git rev-parse -q --verify 0b2c8f8b6b0c7530e2866c95862546d0da2057b0^{commit} 0b2c8f8b6b0c7530e2866c95862546d0da2057b0 already have revision, skipping fetch # git checkout -q -f -B kisskb 0b2c8f8b6b0c7530e2866c95862546d0da2057b0 # git clean -qxdf # < git log -1 # commit 0b2c8f8b6b0c7530e2866c95862546d0da2057b0 # Author: Linus Torvalds # Date: Fri Jan 4 10:23:10 2019 -0800 # # i915: fix missing user_access_end() in page fault exception case # # When commit fddcd00a49e9 ("drm/i915: Force the slow path after a # user-write error") unified the error handling for various user access # problems, it didn't do the user_access_end() that is needed for the # unsafe_put_user() case. # # It's not a huge deal: a missed user_access_end() will only mean that # SMAP protection isn't active afterwards, and for the error case we'll be # returning to user mode soon enough anyway. But it's wrong, and adding # the proper user_access_end() is trivial enough (and doing it for the # other error cases where it isn't needed doesn't hurt). # # I noticed it while doing the same prep-work for changing # user_access_begin() that precipitated the access_ok() changes in commit # 96d4f267e40f ("Remove 'type' argument from access_ok() function"). # # Fixes: fddcd00a49e9 ("drm/i915: Force the slow path after a user-write error") # Cc: Chris Wilson # Cc: Joonas Lahtinen # Cc: stable@kernel.org # v4.20 # Signed-off-by: Linus Torvalds # < /opt/cross/kisskb/gcc-4.6.3-nolibc/x86_64-linux/bin/x86_64-linux-gcc --version # < /opt/cross/kisskb/gcc-4.6.3-nolibc/x86_64-linux/bin/x86_64-linux-ld --version # < git log --format=%s --max-count=1 0b2c8f8b6b0c7530e2866c95862546d0da2057b0 # < make -s -j 48 ARCH=x86 O=/kisskb/build/linus_x86_64_defconfig_x86_64 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/x86_64-linux/bin/x86_64-linux- x86_64_defconfig # make -s -j 48 ARCH=x86 O=/kisskb/build/linus_x86_64_defconfig_x86_64 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/x86_64-linux/bin/x86_64-linux- You are building kernel with non-retpoline compiler. Please update your compiler. make[1]: *** [arch/x86/Makefile:300: checkbin] Error 1 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:152: sub-make] Error 2 Command 'make -s -j 48 ARCH=x86 O=/kisskb/build/linus_x86_64_defconfig_x86_64 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/x86_64-linux/bin/x86_64-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/linus_x86_64_defconfig_x86_64 # Build took: 0:00:02.755413