# git rev-parse -q --verify 625d3449788f85569096780592549d0340e9c0c7^{commit} 625d3449788f85569096780592549d0340e9c0c7 already have revision, skipping fetch # git checkout -q -f -B kisskb 625d3449788f85569096780592549d0340e9c0c7 # git clean -qxdf # < git log -1 # commit 625d3449788f85569096780592549d0340e9c0c7 # Author: Jason A. Donenfeld # Date: Sun Jun 21 21:02:22 2020 -0600 # # Revert "kernel/printk: add kmsg SEEK_CUR handling" # # This reverts commit 8ece3b3eb576a78d2e67ad4c3a80a39fa6708809. # # This commit broke userspace. Bash uses ESPIPE to determine whether or # not the file should be read using "unbuffered I/O", which means reading # 1 byte at a time instead of 128 bytes at a time. I used to use bash to # read through kmsg in a really quite nasty way: # # while read -t 0.1 -r line 2>/dev/null || [[ $? -ne 142 ]]; do # echo "SARU $line" # done < /dev/kmsg # # This will show all lines that can fit into the 128 byte buffer, and skip # lines that don't. That's pretty awful, but at least it worked. # # With this change, bash now tries to do 1-byte reads, which means it # skips all the lines, which is worse than before. # # Now, I don't really care very much about this, and I'm already look for # a workaround. But I did just spend an hour trying to figure out why my # scripts were broken. Either way, it makes no difference to me personally # whether this is reverted, but it might be something to consider. If you # declare that "trying to read /dev/kmsg with bash is terminally stupid # anyway," I might be inclined to agree with you. But do note that bash # uses lseek(fd, 0, SEEK_CUR)==>ESPIPE to determine whether or not it's # reading from a pipe. # # Cc: Bruno Meneguele # Cc: Sergey Senozhatsky # Cc: Steven Rostedt # Cc: David Laight # Cc: Sergey Senozhatsky # Cc: Petr Mladek # Signed-off-by: Jason A. Donenfeld # 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 625d3449788f85569096780592549d0340e9c0c7 # < make -s -j 24 ARCH=powerpc O=/kisskb/build/linus_ppc44x_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc44x_defconfig # < make -s -j 24 ARCH=powerpc O=/kisskb/build/linus_ppc44x_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 24 ARCH=powerpc O=/kisskb/build/linus_ppc44x_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 24 ARCH=powerpc O=/kisskb/build/linus_ppc44x_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/block/genhd.c: In function 'diskstats_show': /kisskb/src/block/genhd.c:1623:1: warning: the frame size of 1160 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ /kisskb/src/lib/zstd/compress.c: In function 'ZSTD_compressBlock_doubleFast': /kisskb/src/lib/zstd/compress.c:1393:1: warning: the frame size of 1384 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ /kisskb/src/arch/powerpc/boot/dts/katmai.dts:322.26-361.5: Warning (pci_bridge): /plb/pciex@d00000000: node name is not "pci" or "pcie" /kisskb/src/arch/powerpc/boot/dts/katmai.dts:363.26-402.5: Warning (pci_bridge): /plb/pciex@d20000000: node name is not "pci" or "pcie" /kisskb/src/arch/powerpc/boot/dts/katmai.dts:404.26-443.5: Warning (pci_bridge): /plb/pciex@d40000000: node name is not "pci" or "pcie" arch/powerpc/boot/dts/katmai.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' INFO: Uncompressed kernel (size 0x5bf5e0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5bf5e0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5bf5e0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5bf5e0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5bf5e0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5bf5e0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5bf5e0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5bf5e0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5bf5e0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5bf5e0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5bf5e0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) Image Name: Linux-5.8.0-rc2-g625d3449788f Created: Mon Jun 22 19:41:22 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2968410 Bytes = 2898.84 KiB = 2.83 MiB Load Address: 00600000 Entry Point: 006014a8 Image Name: Linux-5.8.0-rc2-g625d3449788f Created: Mon Jun 22 19:41:23 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2968184 Bytes = 2898.62 KiB = 2.83 MiB Load Address: 00600000 Entry Point: 006001b8 Image Name: Linux-5.8.0-rc2-g625d3449788f Created: Mon Jun 22 19:41:23 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2968945 Bytes = 2899.36 KiB = 2.83 MiB Load Address: 00600000 Entry Point: 006014a8 Image Name: Linux-5.8.0-rc2-g625d3449788f Created: Mon Jun 22 19:41:23 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2968108 Bytes = 2898.54 KiB = 2.83 MiB Load Address: 00600000 Entry Point: 006014a8 Image Name: Linux-5.8.0-rc2-g625d3449788f Created: Mon Jun 22 19:41:23 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2968349 Bytes = 2898.78 KiB = 2.83 MiB Load Address: 00600000 Entry Point: 006014b8 Image Name: Linux-5.8.0-rc2-g625d3449788f Created: Mon Jun 22 19:41:23 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2968773 Bytes = 2899.19 KiB = 2.83 MiB Load Address: 00600000 Entry Point: 006014a0 Image Name: Linux-5.8.0-rc2-g625d3449788f Created: Mon Jun 22 19:41:23 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2968972 Bytes = 2899.39 KiB = 2.83 MiB Load Address: 00600000 Entry Point: 00601488 Image Name: Linux-5.8.0-rc2-g625d3449788f Created: Mon Jun 22 19:41:23 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2968318 Bytes = 2898.75 KiB = 2.83 MiB Load Address: 00600000 Entry Point: 00601498 Image Name: Linux-5.8.0-rc2-g625d3449788f Created: Mon Jun 22 19:41:23 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2968941 Bytes = 2899.36 KiB = 2.83 MiB Load Address: 00600000 Entry Point: 006000c4 Completed OK # rm -rf /kisskb/build/linus_ppc44x_defconfig_powerpc-gcc4.9 # Build took: 0:01:03.757510