On Tue, 13 Dec 2022 at 10:26, Sudip Mukherjee (Codethink) <sudipm.mukherjee@xxxxxxxxx> wrote: > > Hi All, > > The latest mainline kernel branch fails to build xtensa allmodconfig > with gcc-11 with the error: And, also powerpc allmodconfig with the error: fs/f2fs/inline.c: In function 'f2fs_move_inline_dirents': ./include/linux/fortify-string.h:59:33: error: '__builtin_memset' pointer overflow between offset [28, 898293814] and size [-898293787, -1] [-Werror=array-bounds] 59 | #define __underlying_memset __builtin_memset | ^ ./include/linux/fortify-string.h:337:9: note: in expansion of macro '__underlying_memset' 337 | __underlying_memset(p, c, __fortify_size); \ | ^~~~~~~~~~~~~~~~~~~ ./include/linux/fortify-string.h:345:25: note: in expansion of macro '__fortify_memset_chk' 345 | #define memset(p, c, s) __fortify_memset_chk(p, c, s, \ | ^~~~~~~~~~~~~~~~~~~~ fs/f2fs/inline.c:430:9: note: in expansion of macro 'memset' 430 | memset(dst.bitmap + src.nr_bitmap, 0, dst.nr_bitmap - src.nr_bitmap); | ^~~~~~ Note: the powerpc failure is also with gcc-11 only. gcc-12 builds fine. -- Regards Sudip