# git rev-parse -q --verify acc657692aed438e9931438f8c923b2b107aebf9^{commit} acc657692aed438e9931438f8c923b2b107aebf9 already have revision, skipping fetch # git checkout -q -f -B kisskb acc657692aed438e9931438f8c923b2b107aebf9 # git clean -qxdf # < git log -1 # commit acc657692aed438e9931438f8c923b2b107aebf9 # Author: David Howells # Date: Wed Jan 10 21:11:40 2024 +0000 # # keys, dns: Fix size check of V1 server-list header # # Fix the size check added to dns_resolver_preparse() for the V1 server-list # header so that it doesn't give EINVAL if the size supplied is the same as # the size of the header struct (which should be valid). # # This can be tested with: # # echo -n -e '\0\0\01\xff\0\0' | keyctl padd dns_resolver desc @p # # which will give "add_key: Invalid argument" without this fix. # # Fixes: 1997b3cb4217 ("keys, dns: Fix missing size check of V1 server-list header") # Reported-by: Pengfei Xu # Link: https://lore.kernel.org/r/ZZ4fyY4r3rqgZL+4@xpf.sh.intel.com/ # Signed-off-by: David Howells # Signed-off-by: Linus Torvalds # < /opt/cross/kisskb/korg/gcc-8.5.0-nolibc/mips-linux/bin/mips-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-8.5.0-nolibc/mips-linux/bin/mips-linux-ld --version # < git log --format=%s --max-count=1 acc657692aed438e9931438f8c923b2b107aebf9 # make -s -j 40 ARCH=mips O=/kisskb/build/linus_allmodconfig_mips-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/mips-linux/bin/mips-linux- allmodconfig # Added to kconfig CONFIG_BUILD_DOCSRC=n # Added to kconfig CONFIG_MODULE_SIG=n # Added to kconfig CONFIG_SAMPLES=n # Added to kconfig CONFIG_MIPS_CPS_NS16550_BASE=0x1b0003f8 # Added to kconfig CONFIG_MIPS_CPS_NS16550_SHIFT=0 # Added to kconfig CONFIG_GCC_PLUGINS=n # Added to kconfig # < make -s -j 40 ARCH=mips O=/kisskb/build/linus_allmodconfig_mips-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/mips-linux/bin/mips-linux- help # make -s -j 40 ARCH=mips O=/kisskb/build/linus_allmodconfig_mips-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/mips-linux/bin/mips-linux- olddefconfig .config:14797:warning: override: reassigning to symbol MIPS_CPS_NS16550_SHIFT # make -s -j 40 ARCH=mips O=/kisskb/build/linus_allmodconfig_mips-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/mips-linux/bin/mips-linux- /kisskb/src/arch/mips/vdso/vgettimeofday.c:14:5: error: no previous prototype for '__vdso_clock_gettime' [-Werror=missing-prototypes] int __vdso_clock_gettime(clockid_t clock, ^~~~~~~~~~~~~~~~~~~~ /kisskb/src/arch/mips/vdso/vgettimeofday.c:28:5: error: no previous prototype for '__vdso_gettimeofday' [-Werror=missing-prototypes] int __vdso_gettimeofday(struct __kernel_old_timeval *tv, ^~~~~~~~~~~~~~~~~~~ /kisskb/src/arch/mips/vdso/vgettimeofday.c:36:5: error: no previous prototype for '__vdso_clock_getres' [-Werror=missing-prototypes] int __vdso_clock_getres(clockid_t clock_id, ^~~~~~~~~~~~~~~~~~~ /kisskb/src/arch/mips/vdso/vgettimeofday.c:42:5: error: no previous prototype for '__vdso_clock_gettime64' [-Werror=missing-prototypes] int __vdso_clock_gettime64(clockid_t clock, ^~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[5]: *** [/kisskb/src/scripts/Makefile.build:243: arch/mips/vdso/vgettimeofday.o] Error 1 make[4]: *** [/kisskb/src/scripts/Makefile.build:480: arch/mips/vdso] Error 2 make[4]: *** Waiting for unfinished jobs.... /kisskb/src/arch/mips/mm/fault.c:324:17: error: no previous prototype for 'do_page_fault' [-Werror=missing-prototypes] asmlinkage void do_page_fault(struct pt_regs *regs, ^~~~~~~~~~~~~ cc1: all warnings being treated as errors make[5]: *** [/kisskb/src/scripts/Makefile.build:243: arch/mips/mm/fault.o] Error 1 make[4]: *** [/kisskb/src/scripts/Makefile.build:480: arch/mips/mm] Error 2 /kisskb/src/arch/mips/kernel/ftrace.c:305:6: error: no previous prototype for 'prepare_ftrace_return' [-Werror=missing-prototypes] void prepare_ftrace_return(unsigned long *parent_ra_addr, unsigned long self_ra, ^~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[5]: *** [/kisskb/src/scripts/Makefile.build:243: arch/mips/kernel/ftrace.o] Error 1 make[4]: *** [/kisskb/src/scripts/Makefile.build:480: arch/mips/kernel] Error 2 make[3]: *** [/kisskb/src/scripts/Makefile.build:480: arch/mips] Error 2 make[3]: *** Waiting for unfinished jobs.... /kisskb/src/kernel/irq_work.c:72:13: error: no previous prototype for 'arch_irq_work_raise' [-Werror=missing-prototypes] void __weak arch_irq_work_raise(void) ^~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[4]: *** [/kisskb/src/scripts/Makefile.build:243: kernel/irq_work.o] Error 1 make[3]: *** [/kisskb/src/scripts/Makefile.build:480: kernel] Error 2 In file included from /kisskb/src/include/linux/string.h:295, from /kisskb/src/include/linux/bitmap.h:12, from /kisskb/src/include/linux/cpumask.h:12, from /kisskb/src/include/linux/smp.h:13, from /kisskb/src/arch/mips/include/asm/cpu-type.h:12, from /kisskb/src/arch/mips/include/asm/timex.h:19, from /kisskb/src/include/linux/timex.h:67, from /kisskb/src/include/linux/time32.h:13, from /kisskb/src/include/linux/time.h:60, from /kisskb/src/include/linux/ktime.h:24, from /kisskb/src/include/linux/iopoll.h:11, from /kisskb/src/drivers/crypto/intel/qat/qat_common/adf_gen4_hw_data.c:3: In function 'fortify_memcpy_chk', inlined from 'adf_gen4_init_thd2arb_map' at /kisskb/src/drivers/crypto/intel/qat/qat_common/adf_gen4_hw_data.c:401:3: /kisskb/src/include/linux/fortify-string.h:579:4: error: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror] __write_overflow_field(p_size_field, size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/include/linux/fortify-string.h:588:4: error: call to '__read_overflow2_field' declared with attribute warning: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Werror] __read_overflow2_field(q_size_field, size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[8]: *** [/kisskb/src/scripts/Makefile.build:243: drivers/crypto/intel/qat/qat_common/adf_gen4_hw_data.o] Error 1 make[8]: *** Waiting for unfinished jobs.... make[7]: *** [/kisskb/src/scripts/Makefile.build:480: drivers/crypto/intel/qat/qat_common] Error 2 make[6]: *** [/kisskb/src/scripts/Makefile.build:480: drivers/crypto/intel/qat] Error 2 make[5]: *** [/kisskb/src/scripts/Makefile.build:480: drivers/crypto/intel] Error 2 make[5]: *** Waiting for unfinished jobs.... make[4]: *** [/kisskb/src/scripts/Makefile.build:480: drivers/crypto] Error 2 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [/kisskb/src/scripts/Makefile.build:480: drivers] Error 2 make[2]: *** [/kisskb/src/Makefile:1912: .] Error 2 make[1]: *** [/kisskb/src/Makefile:234: __sub-make] Error 2 make: *** [Makefile:234: __sub-make] Error 2 Command 'make -s -j 40 ARCH=mips O=/kisskb/build/linus_allmodconfig_mips-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/mips-linux/bin/mips-linux- ' returned non-zero exit status 2. # rm -rf /kisskb/build/linus_allmodconfig_mips-gcc8 # Build took: 0:09:16.056176