# git rev-parse -q --verify fe673d3f5bf1fc50cdc4b754831db91a2ec10126^{commit} fe673d3f5bf1fc50cdc4b754831db91a2ec10126 already have revision, skipping fetch # git checkout -q -f -B kisskb fe673d3f5bf1fc50cdc4b754831db91a2ec10126 # git clean -qxdf # < git log -1 # commit fe673d3f5bf1fc50cdc4b754831db91a2ec10126 # Author: Linus Torvalds # Date: Tue Mar 8 11:55:48 2022 -0800 # # mm: gup: make fault_in_safe_writeable() use fixup_user_fault() # # Instead of using GUP, make fault_in_safe_writeable() actually force a # 'handle_mm_fault()' using the same fixup_user_fault() machinery that # futexes already use. # # Using the GUP machinery meant that fault_in_safe_writeable() did not do # everything that a real fault would do, ranging from not auto-expanding # the stack segment, to not updating accessed or dirty flags in the page # tables (GUP sets those flags on the pages themselves). # # The latter causes problems on architectures (like s390) that do accessed # bit handling in software, which meant that fault_in_safe_writeable() # didn't actually do all the fault handling it needed to, and trying to # access the user address afterwards would still cause faults. # # Reported-and-tested-by: Andreas Gruenbacher # Fixes: cdd591fc86e3 ("iov_iter: Introduce fault_in_iov_iter_writeable") # Link: https://lore.kernel.org/all/CAHc6FU5nP+nziNGG0JAF1FUx-GV7kKFvM7aZuU_XD2_1v4vnvg@mail.gmail.com/ # Acked-by: David Hildenbrand # Signed-off-by: Linus Torvalds # < /opt/cross/kisskb/korg/gcc-11.1.0-nolibc/x86_64-linux/bin/x86_64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-11.1.0-nolibc/x86_64-linux/bin/x86_64-linux-ld --version # < git log --format=%s --max-count=1 fe673d3f5bf1fc50cdc4b754831db91a2ec10126 # < make -s -j 10 ARCH=x86_64 O=/kisskb/build/linus-rand_x86_64-randconfig_x86_64-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.1.0-nolibc/x86_64-linux/bin/x86_64-linux- randconfig # Added to kconfig CONFIG_STANDALONE=y # Added to kconfig CONFIG_PREVENT_FIRMWARE_BUILD=y # Added to kconfig CONFIG_CC_STACKPROTECTOR_STRONG=n # Added to kconfig CONFIG_GCC_PLUGINS=n # Added to kconfig CONFIG_GCC_PLUGIN_CYC_COMPLEXITY=n # Added to kconfig CONFIG_GCC_PLUGIN_SANCOV=n # Added to kconfig CONFIG_GCC_PLUGIN_LATENT_ENTROPY=n # Added to kconfig CONFIG_BPF_PRELOAD=n # Added to kconfig # < make -s -j 10 ARCH=x86_64 O=/kisskb/build/linus-rand_x86_64-randconfig_x86_64-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.1.0-nolibc/x86_64-linux/bin/x86_64-linux- help # make -s -j 10 ARCH=x86_64 O=/kisskb/build/linus-rand_x86_64-randconfig_x86_64-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.1.0-nolibc/x86_64-linux/bin/x86_64-linux- olddefconfig .config:4881:warning: override: reassigning to symbol STANDALONE .config:4882:warning: override: reassigning to symbol PREVENT_FIRMWARE_BUILD .config:4884:warning: override: reassigning to symbol GCC_PLUGINS .config:4888:warning: override: reassigning to symbol BPF_PRELOAD # make -s -j 10 ARCH=x86_64 O=/kisskb/build/linus-rand_x86_64-randconfig_x86_64-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.1.0-nolibc/x86_64-linux/bin/x86_64-linux- lib/strncpy_from_user.o: warning: objtool: strncpy_from_user()+0x289: call to do_strncpy_from_user() with UACCESS enabled lib/strnlen_user.o: warning: objtool: strnlen_user()+0x242: call to do_strnlen_user() with UACCESS enabled vmlinux.o: warning: objtool: __do_fast_syscall_32()+0x1a: call to static_key_count.constprop.0() leaves .noinstr.text section vmlinux.o: warning: objtool: do_syscall_64()+0xc: call to static_key_count.constprop.0() leaves .noinstr.text section vmlinux.o: warning: objtool: do_int80_syscall_32()+0x1a: call to static_key_count.constprop.0() leaves .noinstr.text section vmlinux.o: warning: objtool: fixup_bad_iret()+0x71: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: noist_exc_debug()+0x33: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: exc_nmi()+0x139: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: poke_int3_handler()+0x4d: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: __sev_get_ghcb()+0x1b: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: __sev_put_ghcb()+0x18: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: __sev_es_ist_exit()+0x2b: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: kernel_exc_vmm_communication()+0x3d: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: irqentry_nmi_enter()+0x36: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: irqentry_nmi_exit()+0x42: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: enter_from_user_mode()+0x13: call to test_bit() leaves .noinstr.text section vmlinux.o: warning: objtool: syscall_enter_from_user_mode()+0x19: call to test_bit() leaves .noinstr.text section vmlinux.o: warning: objtool: syscall_enter_from_user_mode_prepare()+0x13: call to test_bit() leaves .noinstr.text section vmlinux.o: warning: objtool: exit_to_user_mode()+0x9: call to static_key_count() leaves .noinstr.text section vmlinux.o: warning: objtool: syscall_exit_to_user_mode()+0x21: call to static_key_count() leaves .noinstr.text section vmlinux.o: warning: objtool: irqentry_enter_from_user_mode()+0x13: call to test_bit() leaves .noinstr.text section vmlinux.o: warning: objtool: irqentry_exit_to_user_mode()+0x10: call to static_key_count() leaves .noinstr.text section vmlinux.o: warning: objtool: context_tracking_recursion_enter()+0x2e: call to ftrace_likely_update() leaves .noinstr.text section vmlinux.o: warning: objtool: __context_tracking_enter()+0x25: call to ftrace_likely_update() leaves .noinstr.text section Completed OK # rm -rf /kisskb/build/linus-rand_x86_64-randconfig_x86_64-gcc11 # Build took: 0:07:02.282888