# git rev-parse -q --verify f8ad8187c3b536ee2b10502a8340c014204a1af0^{commit} f8ad8187c3b536ee2b10502a8340c014204a1af0 already have revision, skipping fetch # git checkout -q -f -B kisskb f8ad8187c3b536ee2b10502a8340c014204a1af0 # git clean -qxdf # < git log -1 # commit f8ad8187c3b536ee2b10502a8340c014204a1af0 # Author: Johannes Berg # Date: Mon Jan 25 10:16:15 2021 +0100 # # fs/pipe: allow sendfile() to pipe again # # After commit 36e2c7421f02 ("fs: don't allow splice read/write # without explicit ops") sendfile() could no longer send data # from a real file to a pipe, breaking for example certain cgit # setups (e.g. when running behind fcgiwrap), because in this # case cgit will try to do exactly this: sendfile() to a pipe. # # Fix this by using iter_file_splice_write for the splice_write # method of pipes, as suggested by Christoph. # # Cc: stable@vger.kernel.org # Fixes: 36e2c7421f02 ("fs: don't allow splice read/write without explicit ops") # Suggested-by: Christoph Hellwig # Reviewed-by: Christoph Hellwig # Tested-by: Johannes Berg # Signed-off-by: Johannes Berg # Signed-off-by: Linus Torvalds # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux-ld --version # < git log --format=%s --max-count=1 f8ad8187c3b536ee2b10502a8340c014204a1af0 # < make -s -j 8 ARCH=x86_64 O=/kisskb/build/linus-rand_x86_64-randconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux- randconfig KCONFIG_SEED=0x4DA77290 # 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 # < make -s -j 8 ARCH=x86_64 O=/kisskb/build/linus-rand_x86_64-randconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux- help # make -s -j 8 ARCH=x86_64 O=/kisskb/build/linus-rand_x86_64-randconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux- olddefconfig .config:4403:warning: override: reassigning to symbol PREVENT_FIRMWARE_BUILD .config:4408:warning: override: reassigning to symbol GCC_PLUGIN_LATENT_ENTROPY # make -s -j 8 ARCH=x86_64 O=/kisskb/build/linus-rand_x86_64-randconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux- Completed OK # rm -rf /kisskb/build/linus-rand_x86_64-randconfig_x86_64-gcc8 # Build took: 0:07:12.938392