In function 'strlcat',
inlined from 'strcat' at include/linux/fortify-string.h:432:6,
inlined from 'setup_zfcpdump' at arch/s390/kernel/setup.c:309:2,
inlined from 'setup_arch' at arch/s390/kernel/setup.c:1009:2:
include/linux/fortify-string.h:57:33: warning: '__builtin_memcpy' writing 30 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=]
57 | #define __underlying_memcpy __builtin_memcpy
| ^
include/linux/fortify-string.h:405:9: note: in expansion of macro '__underlying_memcpy'
405 | __underlying_memcpy(p + p_len, q, copy_len);
| ^~~~~~~~~~~~~~~~~~~
436 config COMMAND_LINE_SIZE
437 int "Maximum size of kernel command line"
438 default 4096
439 range 896 1048576
440 help
441 This allows you to specify the maximum length of the kernel command
442 line.
Seen under s390 and allyesconfig
Code to audit:
arch/s390/kernel/setup.c:
init/main.c:
include/linux/init.h:
arch/s390/include/asm/setup.h:
arch/s390/Kconfig: