# 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-8.1.0-nolibc/mips-linux/bin/mips-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/mips-linux/bin/mips-linux-ld --version # < git log --format=%s --max-count=1 fe673d3f5bf1fc50cdc4b754831db91a2ec10126 # < make -s -j 48 ARCH=mips O=/kisskb/build/linus_mips-allmodconfig_mips-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/mips-linux/bin/mips-linux- allmodconfig # Added to kconfig CONFIG_BUILD_DOCSRC=n # Added to kconfig CONFIG_MODULE_SIG=n # Added to kconfig CONFIG_SAMPLES=n # Added to kconfig CONFIG_MIPS_CPS_NS16550_BASE=0x1b0003f8 # Added to kconfig CONFIG_MIPS_CPS_NS16550_SHIFT=0 # < make -s -j 48 ARCH=mips O=/kisskb/build/linus_mips-allmodconfig_mips-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/mips-linux/bin/mips-linux- help # make -s -j 48 ARCH=mips O=/kisskb/build/linus_mips-allmodconfig_mips-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/mips-linux/bin/mips-linux- olddefconfig .config:13503:warning: override: reassigning to symbol MIPS_CPS_NS16550_SHIFT # make -s -j 48 ARCH=mips O=/kisskb/build/linus_mips-allmodconfig_mips-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/mips-linux/bin/mips-linux- /kisskb/src/arch/mips/boot/dts/img/boston.dts:128.19-178.5: Warning (pci_device_reg): /pci@14000000/pci2_root@0,0,0: PCI unit address format error, expected "0,0" /kisskb/src/arch/mips/boot/dts/ingenic/jz4780.dtsi:513.33-515.6: Warning (unit_address_format): /nemc@13410000/efuse@d0/eth-mac-addr@0x22: unit name should not have leading "0x" Completed OK # rm -rf /kisskb/build/linus_mips-allmodconfig_mips-gcc8 # Build took: 0:29:07.185001