# 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-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 f8ad8187c3b536ee2b10502a8340c014204a1af0 # < make -s -j 120 ARCH=powerpc O=/kisskb/build/linus_mpc85xx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_defconfig # < make -s -j 120 ARCH=powerpc O=/kisskb/build/linus_mpc85xx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 120 ARCH=powerpc O=/kisskb/build/linus_mpc85xx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 120 ARCH=powerpc O=/kisskb/build/linus_mpc85xx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/include/linux/kernel.h:10:0, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:12, from /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:15: /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c: In function 'allocate_bd': /kisskb/src/include/linux/err.h:22:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO) ^ /kisskb/src/include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:139:6: note: in expansion of macro 'IS_ERR_VALUE' if (IS_ERR_VALUE(fep->ring_mem_addr)) ^ /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8541cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8555cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) INFO: Uncompressed kernel (size 0xd4fa70) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd4fa70) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd4fa70) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd4fa70) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd4fa70) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd4fa70) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd4fa70) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd4fa70) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd4fa70) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd4fa70) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd4fa70) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd4fa70) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd4fa70) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd4fa70) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd4fa70) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd3f344) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) Image Name: Linux-5.11.0-rc5-gf8ad8187c3b5 Created: Tue Jan 26 08:09:12 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6478157 Bytes = 6326.33 KiB = 6.18 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.11.0-rc5-gf8ad8187c3b5 Created: Tue Jan 26 08:09:12 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6478813 Bytes = 6326.97 KiB = 6.18 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.11.0-rc5-gf8ad8187c3b5 Created: Tue Jan 26 08:09:12 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6479530 Bytes = 6327.67 KiB = 6.18 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.11.0-rc5-gf8ad8187c3b5 Created: Tue Jan 26 08:09:12 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6478577 Bytes = 6326.74 KiB = 6.18 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.11.0-rc5-gf8ad8187c3b5 Created: Tue Jan 26 08:09:12 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6479535 Bytes = 6327.67 KiB = 6.18 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.11.0-rc5-gf8ad8187c3b5 Created: Tue Jan 26 08:09:12 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6479085 Bytes = 6327.23 KiB = 6.18 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.11.0-rc5-gf8ad8187c3b5 Created: Tue Jan 26 08:09:12 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6446128 Bytes = 6295.05 KiB = 6.15 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.11.0-rc5-gf8ad8187c3b5 Created: Tue Jan 26 08:09:12 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6478207 Bytes = 6326.37 KiB = 6.18 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.11.0-rc5-gf8ad8187c3b5 Created: Tue Jan 26 08:09:12 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6478598 Bytes = 6326.76 KiB = 6.18 MiB Load Address: 00e00000 Entry Point: 00e00314 Image Name: Linux-5.11.0-rc5-gf8ad8187c3b5 Created: Tue Jan 26 08:09:12 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6478134 Bytes = 6326.30 KiB = 6.18 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.11.0-rc5-gf8ad8187c3b5 Created: Tue Jan 26 08:09:12 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6478318 Bytes = 6326.48 KiB = 6.18 MiB Load Address: 00e00000 Entry Point: 00e00314 Image Name: Linux-5.11.0-rc5-gf8ad8187c3b5 Created: Tue Jan 26 08:09:12 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6478210 Bytes = 6326.38 KiB = 6.18 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.11.0-rc5-gf8ad8187c3b5 Created: Tue Jan 26 08:09:12 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6478174 Bytes = 6326.34 KiB = 6.18 MiB Load Address: 00e00000 Entry Point: 00e00314 Image Name: Linux-5.11.0-rc5-gf8ad8187c3b5 Created: Tue Jan 26 08:09:12 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6478244 Bytes = 6326.41 KiB = 6.18 MiB Load Address: 00e00000 Entry Point: 00e002a4 Image Name: Linux-5.11.0-rc5-gf8ad8187c3b5 Created: Tue Jan 26 08:09:12 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6478172 Bytes = 6326.34 KiB = 6.18 MiB Load Address: 00e00000 Entry Point: 00e00314 Image Name: Linux-5.11.0-rc5-gf8ad8187c3b5 Created: Tue Jan 26 08:09:12 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6478584 Bytes = 6326.74 KiB = 6.18 MiB Load Address: 00e00000 Entry Point: 00e00314 Completed OK # rm -rf /kisskb/build/linus_mpc85xx_defconfig_powerpc-gcc4.9 # Build took: 0:01:22.547933