# 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_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 24 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 24 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 24 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:11: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 0xcc7628) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc7628) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc7628) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc7628) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc7628) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc7628) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc7628) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc7628) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc7628) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc7628) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc7628) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc7628) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc7628) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc7628) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc7628) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcb6e24) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.8.0-rc2-g625d3449788f Created: Mon Jun 22 19:36:15 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6226935 Bytes = 6080.99 KiB = 5.94 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.8.0-rc2-g625d3449788f Created: Mon Jun 22 19:36:17 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6262089 Bytes = 6115.32 KiB = 5.97 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.8.0-rc2-g625d3449788f Created: Mon Jun 22 19:36:16 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6260049 Bytes = 6113.33 KiB = 5.97 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.8.0-rc2-g625d3449788f Created: Mon Jun 22 19:36:17 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6259883 Bytes = 6113.17 KiB = 5.97 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.8.0-rc2-g625d3449788f Created: Mon Jun 22 19:36:18 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6261230 Bytes = 6114.48 KiB = 5.97 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.8.0-rc2-g625d3449788f Created: Mon Jun 22 19:36:18 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6260041 Bytes = 6113.32 KiB = 5.97 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.8.0-rc2-g625d3449788f Created: Mon Jun 22 19:36:18 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6262094 Bytes = 6115.33 KiB = 5.97 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.8.0-rc2-g625d3449788f Created: Mon Jun 22 19:36:18 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6261299 Bytes = 6114.55 KiB = 5.97 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.8.0-rc2-g625d3449788f Created: Mon Jun 22 19:36:18 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6259739 Bytes = 6113.03 KiB = 5.97 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.8.0-rc2-g625d3449788f Created: Mon Jun 22 19:36:18 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6261412 Bytes = 6114.66 KiB = 5.97 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.8.0-rc2-g625d3449788f Created: Mon Jun 22 19:36:19 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6261301 Bytes = 6114.55 KiB = 5.97 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.8.0-rc2-g625d3449788f Created: Mon Jun 22 19:36:19 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6259929 Bytes = 6113.21 KiB = 5.97 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.8.0-rc2-g625d3449788f Created: Mon Jun 22 19:36:19 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6260045 Bytes = 6113.33 KiB = 5.97 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.8.0-rc2-g625d3449788f Created: Mon Jun 22 19:36:19 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6261220 Bytes = 6114.47 KiB = 5.97 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.8.0-rc2-g625d3449788f Created: Mon Jun 22 19:36:19 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6261653 Bytes = 6114.90 KiB = 5.97 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.8.0-rc2-g625d3449788f Created: Mon Jun 22 19:36:18 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6259884 Bytes = 6113.17 KiB = 5.97 MiB Load Address: 00d00000 Entry Point: 00d002a4 Completed OK # rm -rf /kisskb/build/linus_mpc85xx_defconfig_powerpc-gcc4.9 # Build took: 0:02:19.204391