# git rev-parse -q --verify e4d8a29997731b3bb14059024b24df9f784288d0^{commit} e4d8a29997731b3bb14059024b24df9f784288d0 already have revision, skipping fetch # git checkout -q -f -B kisskb e4d8a29997731b3bb14059024b24df9f784288d0 # git clean -qxdf # < git log -1 # commit e4d8a29997731b3bb14059024b24df9f784288d0 # Author: Mikulas Patocka # Date: Wed Apr 27 11:26:40 2022 -0400 # # hex2bin: fix access beyond string end # # If we pass too short string to "hex2bin" (and the string size without # the terminating NUL character is even), "hex2bin" reads one byte after # the terminating NUL character. This patch fixes it. # # Note that hex_to_bin returns -1 on error and hex2bin return -EINVAL on # error - so we can't just return the variable "hi" or "lo" on error. # This inconsistency may be fixed in the next merge window, but for the # purpose of fixing this bug, we just preserve the existing behavior and # return -1 and -EINVAL. # # Signed-off-by: Mikulas Patocka # Reviewed-by: Andy Shevchenko # Fixes: b78049831ffe ("lib: add error checking to hex2bin") # Cc: stable@vger.kernel.org # Signed-off-by: Linus Torvalds # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/aarch64-linux/bin/aarch64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/aarch64-linux/bin/aarch64-linux-ld --version # < git log --format=%s --max-count=1 e4d8a29997731b3bb14059024b24df9f784288d0 # < make -s -j 32 ARCH=arm64 O=/kisskb/build/linus-rand_arm64-randconfig_arm64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/aarch64-linux/bin/aarch64-linux- randconfig # Added to kconfig CONFIG_PREVENT_FIRMWARE_BUILD=y # < make -s -j 32 ARCH=arm64 O=/kisskb/build/linus-rand_arm64-randconfig_arm64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/aarch64-linux/bin/aarch64-linux- help # make -s -j 32 ARCH=arm64 O=/kisskb/build/linus-rand_arm64-randconfig_arm64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/aarch64-linux/bin/aarch64-linux- olddefconfig # make -s -j 32 ARCH=arm64 O=/kisskb/build/linus-rand_arm64-randconfig_arm64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/aarch64-linux/bin/aarch64-linux- ERROR: modpost: missing MODULE_LICENSE() in drivers/iio/afe/iio-rescale.o make[2]: *** [/kisskb/src/scripts/Makefile.modpost:134: modules-only.symvers] Error 1 make[2]: *** Deleting file 'modules-only.symvers' make[1]: *** [/kisskb/src/Makefile:1749: modules] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:219: __sub-make] Error 2 Command 'make -s -j 32 ARCH=arm64 O=/kisskb/build/linus-rand_arm64-randconfig_arm64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/aarch64-linux/bin/aarch64-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/linus-rand_arm64-randconfig_arm64-gcc8 # Build took: 0:02:26.491717