# git rev-parse -q --verify d5226fa6dbae0569ee43ecfc08bdcd6770fc4755^{commit} d5226fa6dbae0569ee43ecfc08bdcd6770fc4755 already have revision, skipping fetch # git checkout -q -f -B kisskb d5226fa6dbae0569ee43ecfc08bdcd6770fc4755 # git clean -qxdf # < git log -1 # commit d5226fa6dbae0569ee43ecfc08bdcd6770fc4755 # Author: Linus Torvalds # Date: Sun Jan 26 16:23:03 2020 -0800 # # Linux 5.5 # < /opt/cross/kisskb/korg/gcc-12.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-12.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 d5226fa6dbae0569ee43ecfc08bdcd6770fc4755 # < make -s -j 40 ARCH=powerpc O=/kisskb/build/mpe_skiroot_defconfig_powerpc-gcc12 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-12.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- skiroot_defconfig # < make -s -j 40 ARCH=powerpc O=/kisskb/build/mpe_skiroot_defconfig_powerpc-gcc12 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-12.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 40 ARCH=powerpc O=/kisskb/build/mpe_skiroot_defconfig_powerpc-gcc12 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-12.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 40 ARCH=powerpc O=/kisskb/build/mpe_skiroot_defconfig_powerpc-gcc12 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-12.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- In function 'vdso_fixup_datapage', inlined from 'vdso_setup' at /kisskb/src/arch/powerpc/kernel/vdso.c:626:6, inlined from 'vdso_init' at /kisskb/src/arch/powerpc/kernel/vdso.c:759:6: /kisskb/src/arch/powerpc/kernel/vdso.c:505:67: error: array subscript 'int[0]' is partly outside array bounds of 'char[1]' [-Werror=array-bounds] 505 | *((int *)(vdso64_kbase + sym64->st_value - VDSO64_LBASE)) = | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 506 | (vdso64_pages << PAGE_SHIFT) - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 507 | (sym64->st_value - VDSO64_LBASE); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/arch/powerpc/kernel/vdso.c: In function 'vdso_init': /kisskb/src/arch/powerpc/kernel/vdso.c:59:13: note: object 'vdso64_start' of size 1 59 | extern char vdso64_start, vdso64_end; | ^~~~~~~~~~~~ cc1: all warnings being treated as errors make[3]: *** [/kisskb/src/scripts/Makefile.build:266: arch/powerpc/kernel/vdso.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/kisskb/src/scripts/Makefile.build:503: arch/powerpc/kernel] Error 2 make[2]: *** Waiting for unfinished jobs.... In file included from /kisskb/src/include/linux/kernel.h:11, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:12, from /kisskb/src/net/ethernet/eth.c:36: /kisskb/src/net/ethernet/eth.c: In function 'eth_type_trans': /kisskb/src/net/ethernet/eth.c:167:23: warning: 'ether_addr_equal_64bits' reading 8 bytes from a region of size 6 [-Wstringop-overread] 167 | if (unlikely(!ether_addr_equal_64bits(eth->h_dest, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 168 | dev->dev_addr))) { | ~~~~~~~~~~~~~~ /kisskb/src/include/linux/compiler.h:78:45: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ /kisskb/src/net/ethernet/eth.c:167:23: note: referencing argument 1 of type 'const u8[8]' {aka 'const unsigned char[8]'} 167 | if (unlikely(!ether_addr_equal_64bits(eth->h_dest, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 168 | dev->dev_addr))) { | ~~~~~~~~~~~~~~ /kisskb/src/include/linux/compiler.h:78:45: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ /kisskb/src/net/ethernet/eth.c:167:23: note: referencing argument 2 of type 'const u8[8]' {aka 'const unsigned char[8]'} 167 | if (unlikely(!ether_addr_equal_64bits(eth->h_dest, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 168 | dev->dev_addr))) { | ~~~~~~~~~~~~~~ /kisskb/src/include/linux/compiler.h:78:45: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from /kisskb/src/net/ethernet/eth.c:47: /kisskb/src/include/linux/etherdevice.h:344:20: note: in a call to function 'ether_addr_equal_64bits' 344 | static inline bool ether_addr_equal_64bits(const u8 addr1[6+2], | ^~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/net/ethernet/eth.c:169:30: warning: 'is_multicast_ether_addr_64bits' reading 8 bytes from a region of size 6 [-Wstringop-overread] 169 | if (unlikely(is_multicast_ether_addr_64bits(eth->h_dest))) { /kisskb/src/include/linux/compiler.h:78:45: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ /kisskb/src/net/ethernet/eth.c:169:30: note: referencing argument 1 of type 'const u8[8]' {aka 'const unsigned char[8]'} 169 | if (unlikely(is_multicast_ether_addr_64bits(eth->h_dest))) { /kisskb/src/include/linux/compiler.h:78:45: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ /kisskb/src/include/linux/etherdevice.h:130:20: note: in a call to function 'is_multicast_ether_addr_64bits' 130 | static inline bool is_multicast_ether_addr_64bits(const u8 addr[6+2]) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/net/ethernet/eth.c:170:29: warning: 'ether_addr_equal_64bits' reading 8 bytes from a region of size 6 [-Wstringop-overread] 170 | if (ether_addr_equal_64bits(eth->h_dest, dev->broadcast)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/net/ethernet/eth.c:170:29: note: referencing argument 1 of type 'const u8[8]' {aka 'const unsigned char[8]'} /kisskb/src/net/ethernet/eth.c:170:29: note: referencing argument 2 of type 'const u8[8]' {aka 'const unsigned char[8]'} /kisskb/src/include/linux/etherdevice.h:344:20: note: in a call to function 'ether_addr_equal_64bits' 344 | static inline bool ether_addr_equal_64bits(const u8 addr1[6+2], | ^~~~~~~~~~~~~~~~~~~~~~~ make[1]: *** [/kisskb/src/Makefile:1693: arch/powerpc] Error 2 make[1]: *** Waiting for unfinished jobs.... /kisskb/src/net/core/dev.c: In function 'netif_receive_generic_xdp': /kisskb/src/net/core/dev.c:4515:22: warning: 'is_multicast_ether_addr_64bits' reading 8 bytes from a region of size 6 [-Wstringop-overread] 4515 | orig_bcast = is_multicast_ether_addr_64bits(eth->h_dest); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/net/core/dev.c:4515:22: note: referencing argument 1 of type 'const u8[8]' {aka 'const unsigned char[8]'} In file included from /kisskb/src/net/core/dev.c:90: /kisskb/src/include/linux/etherdevice.h:130:20: note: in a call to function 'is_multicast_ether_addr_64bits' 130 | static inline bool is_multicast_ether_addr_64bits(const u8 addr[6+2]) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/net/core/dev.c:4548:28: warning: 'is_multicast_ether_addr_64bits' reading 8 bytes from a region of size 6 [-Wstringop-overread] 4548 | (orig_bcast != is_multicast_ether_addr_64bits(eth->h_dest))) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/net/core/dev.c:4548:28: note: referencing argument 1 of type 'const u8[8]' {aka 'const unsigned char[8]'} /kisskb/src/include/linux/etherdevice.h:130:20: note: in a call to function 'is_multicast_ether_addr_64bits' 130 | static inline bool is_multicast_ether_addr_64bits(const u8 addr[6+2]) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /kisskb/src/lib/zstd/compress.c:2270: In function 'ZSTD_compressBlock_opt_extDict_generic', inlined from 'ZSTD_compressBlock_btopt_extDict' at /kisskb/src/lib/zstd/compress.c:2299:2: /kisskb/src/lib/zstd/zstd_opt.h:855:143: warning: array subscript 3 is above array bounds of 'U32[3]' {aka 'unsigned int[3]'} [-Warray-bounds] 855 | ((opt[cur].off == ZSTD_REP_MOVE_OPT) && (mlen != 1)) ? (opt[cur - mlen].rep[0] - 1) : (opt[cur - mlen].rep[opt[cur].off]); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ In file included from /kisskb/src/lib/zstd/compress.c:23: /kisskb/src/lib/zstd/zstd_internal.h: In function 'ZSTD_compressBlock_btopt_extDict': /kisskb/src/lib/zstd/zstd_internal.h:169:13: note: while referencing 'rep' 169 | U32 rep[ZSTD_REP_NUM]; | ^~~ /kisskb/src/mm/page_alloc.c: In function 'mem_init_print_info': /kisskb/src/mm/page_alloc.c:7527:27: warning: comparison between two arrays [-Warray-compare] 7527 | if (start <= pos && pos < end && size > adj) \ | ^~ /kisskb/src/mm/page_alloc.c:7531:9: note: in expansion of macro 'adj_init_size' 7531 | adj_init_size(__init_begin, __init_end, init_data_size, | ^~~~~~~~~~~~~ /kisskb/src/mm/page_alloc.c:7527:27: note: use '&__init_begin[0] <= &_sinittext[0]' to compare the addresses 7527 | if (start <= pos && pos < end && size > adj) \ | ^~ /kisskb/src/mm/page_alloc.c:7531:9: note: in expansion of macro 'adj_init_size' 7531 | adj_init_size(__init_begin, __init_end, init_data_size, | ^~~~~~~~~~~~~ /kisskb/src/mm/page_alloc.c:7527:41: warning: comparison between two arrays [-Warray-compare] 7527 | if (start <= pos && pos < end && size > adj) \ | ^ /kisskb/src/mm/page_alloc.c:7531:9: note: in expansion of macro 'adj_init_size' 7531 | adj_init_size(__init_begin, __init_end, init_data_size, | ^~~~~~~~~~~~~ /kisskb/src/mm/page_alloc.c:7527:41: note: use '&_sinittext[0] < &__init_end[0]' to compare the addresses 7527 | if (start <= pos && pos < end && size > adj) \ | ^ /kisskb/src/mm/page_alloc.c:7531:9: note: in expansion of macro 'adj_init_size' 7531 | adj_init_size(__init_begin, __init_end, init_data_size, | ^~~~~~~~~~~~~ /kisskb/src/mm/page_alloc.c:7527:27: warning: comparison between two arrays [-Warray-compare] 7527 | if (start <= pos && pos < end && size > adj) \ | ^~ /kisskb/src/mm/page_alloc.c:7533:9: note: in expansion of macro 'adj_init_size' 7533 | adj_init_size(_stext, _etext, codesize, _sinittext, init_code_size); | ^~~~~~~~~~~~~ /kisskb/src/mm/page_alloc.c:7527:27: note: use '&_stext[0] <= &_sinittext[0]' to compare the addresses 7527 | if (start <= pos && pos < end && size > adj) \ | ^~ /kisskb/src/mm/page_alloc.c:7533:9: note: in expansion of macro 'adj_init_size' 7533 | adj_init_size(_stext, _etext, codesize, _sinittext, init_code_size); | ^~~~~~~~~~~~~ /kisskb/src/mm/page_alloc.c:7527:41: warning: comparison between two arrays [-Warray-compare] 7527 | if (start <= pos && pos < end && size > adj) \ | ^ /kisskb/src/mm/page_alloc.c:7533:9: note: in expansion of macro 'adj_init_size' 7533 | adj_init_size(_stext, _etext, codesize, _sinittext, init_code_size); | ^~~~~~~~~~~~~ /kisskb/src/mm/page_alloc.c:7527:41: note: use '&_sinittext[0] < &_etext[0]' to compare the addresses 7527 | if (start <= pos && pos < end && size > adj) \ | ^ /kisskb/src/mm/page_alloc.c:7533:9: note: in expansion of macro 'adj_init_size' 7533 | adj_init_size(_stext, _etext, codesize, _sinittext, init_code_size); | ^~~~~~~~~~~~~ /kisskb/src/mm/page_alloc.c:7527:27: warning: comparison between two arrays [-Warray-compare] 7527 | if (start <= pos && pos < end && size > adj) \ | ^~ /kisskb/src/mm/page_alloc.c:7534:9: note: in expansion of macro 'adj_init_size' 7534 | adj_init_size(_sdata, _edata, datasize, __init_begin, init_data_size); | ^~~~~~~~~~~~~ /kisskb/src/mm/page_alloc.c:7527:27: note: use '&_sdata[0] <= &__init_begin[0]' to compare the addresses 7527 | if (start <= pos && pos < end && size > adj) \ | ^~ /kisskb/src/mm/page_alloc.c:7534:9: note: in expansion of macro 'adj_init_size' 7534 | adj_init_size(_sdata, _edata, datasize, __init_begin, init_data_size); | ^~~~~~~~~~~~~ /kisskb/src/mm/page_alloc.c:7527:41: warning: comparison between two arrays [-Warray-compare] 7527 | if (start <= pos && pos < end && size > adj) \ | ^ /kisskb/src/mm/page_alloc.c:7534:9: note: in expansion of macro 'adj_init_size' 7534 | adj_init_size(_sdata, _edata, datasize, __init_begin, init_data_size); | ^~~~~~~~~~~~~ /kisskb/src/mm/page_alloc.c:7527:41: note: use '&__init_begin[0] < &_edata[0]' to compare the addresses 7527 | if (start <= pos && pos < end && size > adj) \ | ^ /kisskb/src/mm/page_alloc.c:7534:9: note: in expansion of macro 'adj_init_size' 7534 | adj_init_size(_sdata, _edata, datasize, __init_begin, init_data_size); | ^~~~~~~~~~~~~ /kisskb/src/mm/page_alloc.c:7527:27: warning: comparison between two arrays [-Warray-compare] 7527 | if (start <= pos && pos < end && size > adj) \ | ^~ /kisskb/src/mm/page_alloc.c:7535:9: note: in expansion of macro 'adj_init_size' 7535 | adj_init_size(_stext, _etext, codesize, __start_rodata, rosize); | ^~~~~~~~~~~~~ /kisskb/src/mm/page_alloc.c:7527:27: note: use '&_stext[0] <= &__start_rodata[0]' to compare the addresses 7527 | if (start <= pos && pos < end && size > adj) \ | ^~ /kisskb/src/mm/page_alloc.c:7535:9: note: in expansion of macro 'adj_init_size' 7535 | adj_init_size(_stext, _etext, codesize, __start_rodata, rosize); | ^~~~~~~~~~~~~ /kisskb/src/mm/page_alloc.c:7527:41: warning: comparison between two arrays [-Warray-compare] 7527 | if (start <= pos && pos < end && size > adj) \ | ^ /kisskb/src/mm/page_alloc.c:7535:9: note: in expansion of macro 'adj_init_size' 7535 | adj_init_size(_stext, _etext, codesize, __start_rodata, rosize); | ^~~~~~~~~~~~~ /kisskb/src/mm/page_alloc.c:7527:41: note: use '&__start_rodata[0] < &_etext[0]' to compare the addresses 7527 | if (start <= pos && pos < end && size > adj) \ | ^ /kisskb/src/mm/page_alloc.c:7535:9: note: in expansion of macro 'adj_init_size' 7535 | adj_init_size(_stext, _etext, codesize, __start_rodata, rosize); | ^~~~~~~~~~~~~ /kisskb/src/mm/page_alloc.c:7527:27: warning: comparison between two arrays [-Warray-compare] 7527 | if (start <= pos && pos < end && size > adj) \ | ^~ /kisskb/src/mm/page_alloc.c:7536:9: note: in expansion of macro 'adj_init_size' 7536 | adj_init_size(_sdata, _edata, datasize, __start_rodata, rosize); | ^~~~~~~~~~~~~ /kisskb/src/mm/page_alloc.c:7527:27: note: use '&_sdata[0] <= &__start_rodata[0]' to compare the addresses 7527 | if (start <= pos && pos < end && size > adj) \ | ^~ /kisskb/src/mm/page_alloc.c:7536:9: note: in expansion of macro 'adj_init_size' 7536 | adj_init_size(_sdata, _edata, datasize, __start_rodata, rosize); | ^~~~~~~~~~~~~ /kisskb/src/mm/page_alloc.c:7527:41: warning: comparison between two arrays [-Warray-compare] 7527 | if (start <= pos && pos < end && size > adj) \ | ^ /kisskb/src/mm/page_alloc.c:7536:9: note: in expansion of macro 'adj_init_size' 7536 | adj_init_size(_sdata, _edata, datasize, __start_rodata, rosize); | ^~~~~~~~~~~~~ /kisskb/src/mm/page_alloc.c:7527:41: note: use '&__start_rodata[0] < &_edata[0]' to compare the addresses 7527 | if (start <= pos && pos < end && size > adj) \ | ^ /kisskb/src/mm/page_alloc.c:7536:9: note: in expansion of macro 'adj_init_size' 7536 | adj_init_size(_sdata, _edata, datasize, __start_rodata, rosize); | ^~~~~~~~~~~~~ In function 'ZSTD_compressBlock_opt_extDict_generic', inlined from 'ZSTD_compressBlock_btopt2_extDict' at /kisskb/src/lib/zstd/compress.c:2311:2: /kisskb/src/lib/zstd/zstd_opt.h:855:143: warning: array subscript 3 is above array bounds of 'U32[3]' {aka 'unsigned int[3]'} [-Warray-bounds] 855 | ((opt[cur].off == ZSTD_REP_MOVE_OPT) && (mlen != 1)) ? (opt[cur - mlen].rep[0] - 1) : (opt[cur - mlen].rep[opt[cur].off]); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /kisskb/src/lib/zstd/zstd_internal.h: In function 'ZSTD_compressBlock_btopt2_extDict': /kisskb/src/lib/zstd/zstd_internal.h:169:13: note: while referencing 'rep' 169 | U32 rep[ZSTD_REP_NUM]; | ^~~ In file included from /kisskb/src/include/linux/if_ether.h:19, from /kisskb/src/include/uapi/linux/ethtool.h:19, from /kisskb/src/include/linux/ethtool.h:18, from /kisskb/src/include/linux/netdevice.h:37, from /kisskb/src/include/net/dst.h:13, from /kisskb/src/net/ipv4/tcp_input.c:73: In function '__skb_queue_before', inlined from '__skb_queue_tail' at /kisskb/src/include/linux/skbuff.h:2009:2, inlined from 'tcp_collapse' at /kisskb/src/net/ipv4/tcp_input.c:4977:4: /kisskb/src/include/linux/skbuff.h:1976:9: warning: array subscript 'struct sk_buff[0]' is partly outside array bounds of 'struct sk_buff_head[1]' [-Warray-bounds] 1976 | __skb_insert(newsk, next->prev, next, list); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/net/ipv4/tcp_input.c: In function 'tcp_collapse': /kisskb/src/net/ipv4/tcp_input.c:4916:29: note: object 'tmp' of size 24 4916 | struct sk_buff_head tmp; | ^~~ /kisskb/src/kernel/extable.c: In function 'sort_main_extable': /kisskb/src/kernel/extable.c:37:59: warning: comparison between two arrays [-Warray-compare] 37 | if (main_extable_sort_needed && __stop___ex_table > __start___ex_table) { | ^ /kisskb/src/kernel/extable.c:37:59: note: use '&__stop___ex_table[0] > &__start___ex_table[0]' to compare the addresses In function 'ZSTD_compressBlock_opt_generic', inlined from 'ZSTD_compressBlock_btopt' at /kisskb/src/lib/zstd/compress.c:2275:2: /kisskb/src/lib/zstd/zstd_opt.h:547:143: warning: array subscript 3 is above array bounds of 'U32[3]' {aka 'unsigned int[3]'} [-Warray-bounds] 547 | ((opt[cur].off == ZSTD_REP_MOVE_OPT) && (mlen != 1)) ? (opt[cur - mlen].rep[0] - 1) : (opt[cur - mlen].rep[opt[cur].off]); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /kisskb/src/lib/zstd/zstd_internal.h: In function 'ZSTD_compressBlock_btopt': /kisskb/src/lib/zstd/zstd_internal.h:169:13: note: while referencing 'rep' 169 | U32 rep[ZSTD_REP_NUM]; | ^~~ In function 'ZSTD_compressBlock_opt_generic', inlined from 'ZSTD_compressBlock_btopt2' at /kisskb/src/lib/zstd/compress.c:2287:2: /kisskb/src/lib/zstd/zstd_opt.h:547:143: warning: array subscript 3 is above array bounds of 'U32[3]' {aka 'unsigned int[3]'} [-Warray-bounds] 547 | ((opt[cur].off == ZSTD_REP_MOVE_OPT) && (mlen != 1)) ? (opt[cur - mlen].rep[0] - 1) : (opt[cur - mlen].rep[opt[cur].off]); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /kisskb/src/lib/zstd/zstd_internal.h: In function 'ZSTD_compressBlock_btopt2': /kisskb/src/lib/zstd/zstd_internal.h:169:13: note: while referencing 'rep' 169 | U32 rep[ZSTD_REP_NUM]; | ^~~ /kisskb/src/fs/notify/fdinfo.c: In function 'show_mark_fhandle': /kisskb/src/fs/notify/fdinfo.c:66:61: warning: array subscript 'i' is outside the bounds of an interior zero-length array 'unsigned char[0]' [-Wzero-length-bounds] 66 | seq_printf(m, "%02x", (int)f.handle.f_handle[i]); | ~~~~~~~~~~~~~~~~~^~~ In file included from /kisskb/src/fs/notify/fdinfo.c:3: /kisskb/src/include/linux/fs.h:980:23: note: while referencing 'f_handle' 980 | unsigned char f_handle[0]; | ^~~~~~~~ /kisskb/src/fs/udf/balloc.c: In function 'udf_add_free_space': /kisskb/src/fs/udf/balloc.c:101:43: warning: array subscript 65535 is outside the bounds of an interior zero-length array '__le32[0]' {aka 'unsigned int[]'} [-Wzero-length-bounds] 101 | le32_add_cpu(&lvid->freeSpaceTable[partition], cnt); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /kisskb/src/fs/udf/udfdecl.h:7, from /kisskb/src/fs/udf/balloc.c:22: /kisskb/src/fs/udf/ecma_167.h:360:33: note: while referencing 'freeSpaceTable' 360 | __le32 freeSpaceTable[0]; | ^~~~~~~~~~~~~~ /kisskb/src/fs/udf/balloc.c:101:43: warning: array subscript 65535 is outside the bounds of an interior zero-length array '__le32[0]' {aka 'unsigned int[]'} [-Wzero-length-bounds] 101 | le32_add_cpu(&lvid->freeSpaceTable[partition], cnt); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ /kisskb/src/fs/udf/ecma_167.h:360:33: note: while referencing 'freeSpaceTable' 360 | __le32 freeSpaceTable[0]; | ^~~~~~~~~~~~~~ /kisskb/src/fs/xfs/libxfs/xfs_attr_remote.c: In function '__xfs_attr3_rmt_read_verify': /kisskb/src/fs/xfs/libxfs/xfs_attr_remote.c:125:35: warning: storing the address of local variable '__here' in '*failaddr' [-Wdangling-pointer=] 125 | *failaddr = __this_address; In file included from /kisskb/src/fs/xfs/xfs.h:22, from /kisskb/src/fs/xfs/libxfs/xfs_attr_remote.c:7: /kisskb/src/fs/xfs/xfs_linux.h:137:46: note: '__here' declared here 137 | #define __this_address ({ __label__ __here; __here: barrier(); &&__here; }) | ^~~~~~ /kisskb/src/fs/xfs/libxfs/xfs_attr_remote.c:125:37: note: in expansion of macro '__this_address' 125 | *failaddr = __this_address; | ^~~~~~~~~~~~~~ /kisskb/src/fs/xfs/xfs_linux.h:137:46: note: 'failaddr' declared here 137 | #define __this_address ({ __label__ __here; __here: barrier(); &&__here; }) | ^~~~~~ /kisskb/src/fs/xfs/libxfs/xfs_attr_remote.c:125:37: note: in expansion of macro '__this_address' 125 | *failaddr = __this_address; | ^~~~~~~~~~~~~~ In file included from /kisskb/src/include/linux/byteorder/little_endian.h:5, from /kisskb/src/arch/powerpc/include/uapi/asm/byteorder.h:12, from /kisskb/src/include/asm-generic/bitops/le.h:6, from /kisskb/src/arch/powerpc/include/asm/bitops.h:250, from /kisskb/src/include/linux/bitops.h:26, from /kisskb/src/include/linux/kernel.h:12, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/wait.h:7, from /kisskb/src/include/linux/wait_bit.h:8, from /kisskb/src/include/linux/fs.h:6, from /kisskb/src/fs/udf/udfdecl.h:10, from /kisskb/src/fs/udf/super.c:41: In function 'udf_count_free', inlined from 'udf_statfs' at /kisskb/src/fs/udf/super.c:2403:17: /kisskb/src/fs/udf/super.c:2505:61: warning: array subscript 65535 is outside the bounds of an interior zero-length array '__le32[0]' {aka 'unsigned int[]'} [-Wzero-length-bounds] 2505 | lvid->freeSpaceTable[sbi->s_partition]); /kisskb/src/include/uapi/linux/byteorder/little_endian.h:34:51: note: in definition of macro '__le32_to_cpu' 34 | #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) | ^ /kisskb/src/fs/udf/super.c:2504:33: note: in expansion of macro 'le32_to_cpu' 2504 | accum = le32_to_cpu( | ^~~~~~~~~~~ In file included from /kisskb/src/fs/udf/udfdecl.h:7: /kisskb/src/fs/udf/ecma_167.h: In function 'udf_statfs': /kisskb/src/fs/udf/ecma_167.h:360:33: note: while referencing 'freeSpaceTable' 360 | __le32 freeSpaceTable[0]; | ^~~~~~~~~~~~~~ In function 'dp_link_status', inlined from 'drm_dp_get_adjust_request_post_cursor' at /kisskb/src/drivers/gpu/drm/drm_dp_helper.c:127:13: /kisskb/src/drivers/gpu/drm/drm_dp_helper.c:50:27: warning: array subscript 10 is outside array bounds of 'const u8[6]' {aka 'const unsigned char[6]'} [-Warray-bounds] 50 | return link_status[r - DP_LANE0_1_STATUS]; | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/gpu/drm/drm_dp_helper.c: In function 'drm_dp_get_adjust_request_post_cursor': /kisskb/src/drivers/gpu/drm/drm_dp_helper.c:123:51: note: at offset 10 into object 'link_status' of size [0, 6] 123 | u8 drm_dp_get_adjust_request_post_cursor(const u8 link_status[DP_LINK_STATUS_SIZE], | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/fs/xfs/libxfs/xfs_inode_fork.c: In function 'xfs_ifork_verify_attr': /kisskb/src/fs/xfs/libxfs/xfs_inode_fork.c:735:13: warning: the comparison will always evaluate as 'true' for the address of 'i_df' will never be NULL [-Waddress] 735 | if (!XFS_IFORK_PTR(ip, XFS_ATTR_FORK)) | ^ In file included from /kisskb/src/fs/xfs/libxfs/xfs_inode_fork.c:14: /kisskb/src/fs/xfs/xfs_inode.h:38:33: note: 'i_df' declared here 38 | struct xfs_ifork i_df; /* data fork */ | ^~~~ In file included from /kisskb/src/include/linux/if_ether.h:19, from /kisskb/src/include/uapi/linux/ethtool.h:19, from /kisskb/src/include/linux/ethtool.h:18, from /kisskb/src/include/linux/netdevice.h:37, from /kisskb/src/include/net/sock.h:46, from /kisskb/src/fs/io_uring.c:63: In function '__skb_queue_before', inlined from '__skb_queue_tail' at /kisskb/src/include/linux/skbuff.h:2009:2, inlined from 'io_sqe_file_unregister' at /kisskb/src/fs/io_uring.c:4393:3, inlined from 'io_sqe_files_update' at /kisskb/src/fs/io_uring.c:4488:4, inlined from '__io_uring_register' at /kisskb/src/fs/io_uring.c:5473:9, inlined from '__do_sys_io_uring_register' at /kisskb/src/fs/io_uring.c:5516:8, inlined from '__se_sys_io_uring_register' at /kisskb/src/fs/io_uring.c:5498:1: /kisskb/src/include/linux/skbuff.h:1976:9: warning: array subscript 'struct sk_buff[0]' is partly outside array bounds of 'struct sk_buff_head[1]' [-Warray-bounds] 1976 | __skb_insert(newsk, next->prev, next, list); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/fs/io_uring.c: In function '__se_sys_io_uring_register': /kisskb/src/fs/io_uring.c:4351:29: note: object 'list' of size 24 4351 | struct sk_buff_head list, *head = &sock->sk_receive_queue; | ^~~~ In function '__skb_queue_before', inlined from '__skb_queue_tail' at /kisskb/src/include/linux/skbuff.h:2009:2, inlined from 'io_sqe_file_unregister' at /kisskb/src/fs/io_uring.c:4383:5, inlined from 'io_sqe_files_update' at /kisskb/src/fs/io_uring.c:4488:4, inlined from '__io_uring_register' at /kisskb/src/fs/io_uring.c:5473:9, inlined from '__do_sys_io_uring_register' at /kisskb/src/fs/io_uring.c:5516:8, inlined from '__se_sys_io_uring_register' at /kisskb/src/fs/io_uring.c:5498:1: /kisskb/src/include/linux/skbuff.h:1976:9: warning: array subscript 'struct sk_buff[0]' is partly outside array bounds of 'struct sk_buff_head[1]' [-Warray-bounds] 1976 | __skb_insert(newsk, next->prev, next, list); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/fs/io_uring.c: In function '__se_sys_io_uring_register': /kisskb/src/fs/io_uring.c:4351:29: note: object 'list' of size 24 4351 | struct sk_buff_head list, *head = &sock->sk_receive_queue; | ^~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_sli.c: In function 'lpfc_reset_barrier': /kisskb/src/drivers/scsi/lpfc/lpfc_sli.c:4267:29: warning: array subscript 'MAILBOX_t[0]' is partly outside array bounds of 'volatile uint32_t[1]' {aka 'volatile unsigned int[1]'} [-Warray-bounds] 4267 | ((MAILBOX_t *)&mbox)->mbxCommand = MBX_KILL_BOARD; | ^~ /kisskb/src/drivers/scsi/lpfc/lpfc_sli.c:4232:27: note: object 'mbox' of size 4 4232 | volatile uint32_t mbox; | ^~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_sli.c:4268:29: warning: array subscript 'MAILBOX_t[0]' is partly outside array bounds of 'volatile uint32_t[1]' {aka 'volatile unsigned int[1]'} [-Warray-bounds] 4268 | ((MAILBOX_t *)&mbox)->mbxOwner = OWN_CHIP; | ^~ /kisskb/src/drivers/scsi/lpfc/lpfc_sli.c:4232:27: note: object 'mbox' of size 4 4232 | volatile uint32_t mbox; | ^~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_sli.c:4293:29: warning: array subscript 'MAILBOX_t[0]' is partly outside array bounds of 'volatile uint32_t[1]' {aka 'volatile unsigned int[1]'} [-Warray-bounds] 4293 | ((MAILBOX_t *)&mbox)->mbxOwner = OWN_HOST; | ^~ /kisskb/src/drivers/scsi/lpfc/lpfc_sli.c:4232:27: note: object 'mbox' of size 4 4232 | volatile uint32_t mbox; | ^~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_sli.c: In function 'lpfc_sli_brdrestart_s3': /kisskb/src/drivers/scsi/lpfc/lpfc_sli.c:4593:11: warning: array subscript 'MAILBOX_t[0]' is partly outside array bounds of 'volatile uint32_t[1]' {aka 'volatile unsigned int[1]'} [-Warray-bounds] 4593 | mb->mbxCommand = MBX_RESTART; | ^~ /kisskb/src/drivers/scsi/lpfc/lpfc_sli.c:4574:27: note: object 'word0' of size 4 4574 | volatile uint32_t word0; | ^~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_sli.c:4594:11: warning: array subscript 'MAILBOX_t[0]' is partly outside array bounds of 'volatile uint32_t[1]' {aka 'volatile unsigned int[1]'} [-Warray-bounds] 4594 | mb->mbxHc = 1; | ^~ /kisskb/src/drivers/scsi/lpfc/lpfc_sli.c:4574:27: note: object 'word0' of size 4 4574 | volatile uint32_t word0; | ^~~~~ In file included from /kisskb/src/drivers/usb/host/ehci-hcd.c:305: /kisskb/src/drivers/usb/host/ehci-hub.c: In function 'ehci_port_handed_over': /kisskb/src/drivers/usb/host/ehci-hub.c:1331:15: warning: array subscript '' is outside the bounds of an interior zero-length array 'u32[0]' {aka 'unsigned int[]'} [-Wzero-length-bounds] 1331 | reg = &ehci->regs->port_status[portnum - 1]; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /kisskb/src/drivers/usb/host/ehci.h:273, from /kisskb/src/drivers/usb/host/ehci-hcd.c:96: /kisskb/src/include/linux/usb/ehci_def.h:130:25: note: while referencing 'port_status' 130 | u32 port_status[0]; /* up to N_PORTS */ | ^~~~~~~~~~~ /kisskb/src/drivers/usb/host/ehci-hub.c: In function 'ehci_hub_status_data': /kisskb/src/drivers/usb/host/ehci-hub.c:662:49: warning: array subscript 14 is outside the bounds of an interior zero-length array 'u32[0]' {aka 'unsigned int[]'} [-Wzero-length-bounds] 662 | temp = ehci_readl(ehci, &ehci->regs->port_status[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/include/linux/usb/ehci_def.h:130:25: note: while referencing 'port_status' 130 | u32 port_status[0]; /* up to N_PORTS */ | ^~~~~~~~~~~ /kisskb/src/drivers/usb/host/ehci-hub.c: In function 'set_owner': /kisskb/src/drivers/usb/host/ehci-hub.c:541:22: warning: array subscript 'portnum' is outside the bounds of an interior zero-length array 'u32[0]' {aka 'unsigned int[]'} [-Wzero-length-bounds] 541 | status_reg = &ehci->regs->port_status[portnum]; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/include/linux/usb/ehci_def.h:130:25: note: while referencing 'port_status' 130 | u32 port_status[0]; /* up to N_PORTS */ | ^~~~~~~~~~~ /kisskb/src/drivers/usb/host/ehci-hub.c: In function 'ehci_port_power.isra': /kisskb/src/drivers/usb/host/ehci-hub.c:1338:35: warning: array subscript -3 is outside the bounds of an interior zero-length array 'u32[0]' {aka 'unsigned int[]'} [-Wzero-length-bounds] 1338 | u32 __iomem *status_reg = &ehci->regs->port_status[portnum]; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/include/linux/usb/ehci_def.h:130:25: note: while referencing 'port_status' 130 | u32 port_status[0]; /* up to N_PORTS */ | ^~~~~~~~~~~ In function 'ehci_turn_off_all_ports', inlined from 'ehci_silence_controller' at /kisskb/src/drivers/usb/host/ehci-hcd.c:340:2: /kisskb/src/drivers/usb/host/ehci-hcd.c:326:33: warning: array subscript 14 is outside the bounds of an interior zero-length array 'u32[0]' {aka 'unsigned int[]'} [-Wzero-length-bounds] 326 | &ehci->regs->port_status[port]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/include/linux/usb/ehci_def.h: In function 'ehci_silence_controller': /kisskb/src/include/linux/usb/ehci_def.h:130:25: note: while referencing 'port_status' 130 | u32 port_status[0]; /* up to N_PORTS */ | ^~~~~~~~~~~ /kisskb/src/drivers/usb/host/ehci-hub.c: In function 'ehci_hub_control': /kisskb/src/drivers/usb/host/ehci-hub.c:891:22: warning: array subscript 256 is outside the bounds of an interior zero-length array 'u32[0]' {aka 'unsigned int[]'} [-Wzero-length-bounds] 891 | status_reg = &ehci->regs->port_status[temp]; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/include/linux/usb/ehci_def.h:130:25: note: while referencing 'port_status' 130 | u32 port_status[0]; /* up to N_PORTS */ | ^~~~~~~~~~~ /kisskb/src/drivers/usb/host/ehci-hub.c:892:22: warning: array subscript 256 is outside the bounds of an interior zero-length array 'u32[0]' {aka 'unsigned int[]'} [-Wzero-length-bounds] 892 | hostpc_reg = &ehci->regs->hostpc[temp]; | ^~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/include/linux/usb/ehci_def.h:184:25: note: while referencing 'hostpc' 184 | u32 hostpc[0]; /* HOSTPC extension */ | ^~~~~~ /kisskb/src/drivers/usb/host/ehci-hub.c:1281:49: warning: array subscript 14 is outside the bounds of an interior zero-length array 'u32[0]' {aka 'unsigned int[]'} [-Wzero-length-bounds] 1281 | &ehci->regs->port_status[ports]; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/include/linux/usb/ehci_def.h:130:25: note: while referencing 'port_status' 130 | u32 port_status[0]; /* up to N_PORTS */ | ^~~~~~~~~~~ /kisskb/src/drivers/virtio/virtio_pci_common.c: In function 'vp_del_vqs': /kisskb/src/drivers/virtio/virtio_pci_common.c:257:29: warning: the comparison will always evaluate as 'true' for the pointer operand in 'vp_dev->msix_affinity_masks + (sizetype)((long unsigned int)i * 256)' must not be NULL [-Waddress] 257 | if (vp_dev->msix_affinity_masks[i]) | ^~~~~~ /kisskb/src/drivers/usb/host/ehci-hcd.c: In function 'ehci_irq': /kisskb/src/drivers/usb/host/ehci-hcd.c:786:42: warning: array subscript 14 is outside the bounds of an interior zero-length array 'u32[0]' {aka 'unsigned int[]'} [-Wzero-length-bounds] 786 | &ehci->regs->port_status[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/include/linux/usb/ehci_def.h:130:25: note: while referencing 'port_status' 130 | u32 port_status[0]; /* up to N_PORTS */ | ^~~~~~~~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_ct.c: In function 'lpfc_fdmi_hba_attr_drvr_ver': /kisskb/src/drivers/scsi/lpfc/lpfc_ct.c:2189:9: warning: 'strncpy' offset [8, 259] from the object at 'ad' is out of the bounds of referenced subobject 'AttrValue' with type 'unsigned int' at offset 4 [-Warray-bounds] 2189 | strncpy(ae->un.AttrString, lpfc_release_version, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2190 | sizeof(ae->un.AttrString)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /kisskb/src/drivers/scsi/lpfc/lpfc_ct.c:40: /kisskb/src/drivers/scsi/lpfc/lpfc_hw.h:1358:18: note: subobject 'AttrValue' declared here 1358 | uint32_t AttrValue; /* Marks start of Value (ATTRIBUTE_ENTRY) */ | ^~~~~~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_ct.c:2191:15: warning: 'strnlen' specified bound 256 exceeds source size 4 [-Wstringop-overread] 2191 | len = strnlen(ae->un.AttrString, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 2192 | sizeof(ae->un.AttrString)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_hw.h:1358:18: note: source object allocated here 1358 | uint32_t AttrValue; /* Marks start of Value (ATTRIBUTE_ENTRY) */ | ^~~~~~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_ct.c: In function 'lpfc_fdmi_hba_attr_description': /kisskb/src/drivers/scsi/lpfc/lpfc_ct.c:2136:9: warning: 'strncpy' offset [8, 259] from the object at 'ad' is out of the bounds of referenced subobject 'AttrValue' with type 'unsigned int' at offset 4 [-Warray-bounds] 2136 | strncpy(ae->un.AttrString, phba->ModelDesc, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2137 | sizeof(ae->un.AttrString)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_hw.h:1358:18: note: subobject 'AttrValue' declared here 1358 | uint32_t AttrValue; /* Marks start of Value (ATTRIBUTE_ENTRY) */ | ^~~~~~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_ct.c:2138:15: warning: 'strnlen' specified bound 256 exceeds source size 4 [-Wstringop-overread] 2138 | len = strnlen(ae->un.AttrString, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 2139 | sizeof(ae->un.AttrString)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_hw.h:1358:18: note: source object allocated here 1358 | uint32_t AttrValue; /* Marks start of Value (ATTRIBUTE_ENTRY) */ | ^~~~~~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_ct.c: In function 'lpfc_fdmi_hba_attr_model': /kisskb/src/drivers/scsi/lpfc/lpfc_ct.c:2115:9: warning: 'strncpy' offset [8, 259] from the object at 'ad' is out of the bounds of referenced subobject 'AttrValue' with type 'unsigned int' at offset 4 [-Warray-bounds] 2115 | strncpy(ae->un.AttrString, phba->ModelName, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2116 | sizeof(ae->un.AttrString)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_hw.h:1358:18: note: subobject 'AttrValue' declared here 1358 | uint32_t AttrValue; /* Marks start of Value (ATTRIBUTE_ENTRY) */ | ^~~~~~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_ct.c:2117:15: warning: 'strnlen' specified bound 256 exceeds source size 4 [-Wstringop-overread] 2117 | len = strnlen(ae->un.AttrString, sizeof(ae->un.AttrString)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_hw.h:1358:18: note: source object allocated here 1358 | uint32_t AttrValue; /* Marks start of Value (ATTRIBUTE_ENTRY) */ | ^~~~~~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_ct.c: In function 'lpfc_fdmi_hba_attr_sn': /kisskb/src/drivers/scsi/lpfc/lpfc_ct.c:2093:9: warning: 'strncpy' offset [8, 259] from the object at 'ad' is out of the bounds of referenced subobject 'AttrValue' with type 'unsigned int' at offset 4 [-Warray-bounds] 2093 | strncpy(ae->un.AttrString, phba->SerialNumber, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2094 | sizeof(ae->un.AttrString)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_hw.h:1358:18: note: subobject 'AttrValue' declared here 1358 | uint32_t AttrValue; /* Marks start of Value (ATTRIBUTE_ENTRY) */ | ^~~~~~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_ct.c:2095:15: warning: 'strnlen' specified bound 256 exceeds source size 4 [-Wstringop-overread] 2095 | len = strnlen(ae->un.AttrString, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 2096 | sizeof(ae->un.AttrString)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_hw.h:1358:18: note: source object allocated here 1358 | uint32_t AttrValue; /* Marks start of Value (ATTRIBUTE_ENTRY) */ | ^~~~~~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_ct.c: In function 'lpfc_fdmi_smart_attr_model': /kisskb/src/drivers/scsi/lpfc/lpfc_ct.c:2881:9: warning: 'strncpy' offset [8, 259] from the object at 'ad' is out of the bounds of referenced subobject 'AttrValue' with type 'unsigned int' at offset 4 [-Warray-bounds] 2881 | strncpy(ae->un.AttrString, phba->ModelName, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2882 | sizeof(ae->un.AttrString)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_hw.h:1358:18: note: subobject 'AttrValue' declared here 1358 | uint32_t AttrValue; /* Marks start of Value (ATTRIBUTE_ENTRY) */ | ^~~~~~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_ct.c:2883:15: warning: 'strnlen' specified bound 256 exceeds source size 4 [-Wstringop-overread] 2883 | len = strnlen(ae->un.AttrString, sizeof(ae->un.AttrString)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_hw.h:1358:18: note: source object allocated here 1358 | uint32_t AttrValue; /* Marks start of Value (ATTRIBUTE_ENTRY) */ | ^~~~~~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_ct.c: In function 'lpfc_fdmi_hba_attr_bios_ver': /kisskb/src/drivers/scsi/lpfc/lpfc_ct.c:2369:15: warning: 'strnlen' specified bound 256 exceeds source size 4 [-Wstringop-overread] 2369 | len = strnlen(ae->un.AttrString, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 2370 | sizeof(ae->un.AttrString)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_hw.h:1358:18: note: source object allocated here 1358 | uint32_t AttrValue; /* Marks start of Value (ATTRIBUTE_ENTRY) */ | ^~~~~~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_ct.c: In function 'lpfc_fdmi_hba_attr_os_ver': /kisskb/src/drivers/scsi/lpfc/lpfc_ct.c:2261:15: warning: 'strnlen' specified bound 256 exceeds source size 4 [-Wstringop-overread] 2261 | len = strnlen(ae->un.AttrString, sizeof(ae->un.AttrString)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_hw.h:1358:18: note: source object allocated here 1358 | uint32_t AttrValue; /* Marks start of Value (ATTRIBUTE_ENTRY) */ | ^~~~~~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_ct.c: In function 'lpfc_fdmi_port_attr_host_name': /kisskb/src/drivers/scsi/lpfc/lpfc_ct.c:2622:15: warning: 'strnlen' specified bound 256 exceeds source size 4 [-Wstringop-overread] 2622 | len = strnlen(ae->un.AttrString, sizeof(ae->un.AttrString)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_hw.h:1358:18: note: source object allocated here 1358 | uint32_t AttrValue; /* Marks start of Value (ATTRIBUTE_ENTRY) */ | ^~~~~~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_ct.c: In function 'lpfc_fdmi_port_attr_os_devname': /kisskb/src/drivers/scsi/lpfc/lpfc_ct.c:2600:15: warning: 'strnlen' specified bound 256 exceeds source size 4 [-Wstringop-overread] 2600 | len = strnlen((char *)ae->un.AttrString, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2601 | sizeof(ae->un.AttrString)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_hw.h:1358:18: note: source object allocated here 1358 | uint32_t AttrValue; /* Marks start of Value (ATTRIBUTE_ENTRY) */ | ^~~~~~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_ct.c: In function 'lpfc_fdmi_hba_attr_fmw_ver': /kisskb/src/drivers/scsi/lpfc/lpfc_ct.c:2237:15: warning: 'strnlen' specified bound 256 exceeds source size 4 [-Wstringop-overread] 2237 | len = strnlen(ae->un.AttrString, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 2238 | sizeof(ae->un.AttrString)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_hw.h:1358:18: note: source object allocated here 1358 | uint32_t AttrValue; /* Marks start of Value (ATTRIBUTE_ENTRY) */ | ^~~~~~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_ct.c: In function 'lpfc_fdmi_hba_attr_rom_ver': /kisskb/src/drivers/scsi/lpfc/lpfc_ct.c:2214:17: warning: 'strncpy' offset [8, 259] from the object at 'ad' is out of the bounds of referenced subobject 'AttrValue' with type 'unsigned int' at offset 4 [-Warray-bounds] 2214 | strncpy(ae->un.AttrString, phba->OptionROMVersion, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2215 | sizeof(ae->un.AttrString)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_hw.h:1358:18: note: subobject 'AttrValue' declared here 1358 | uint32_t AttrValue; /* Marks start of Value (ATTRIBUTE_ENTRY) */ | ^~~~~~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_ct.c:2216:15: warning: 'strnlen' specified bound 256 exceeds source size 4 [-Wstringop-overread] 2216 | len = strnlen(ae->un.AttrString, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 2217 | sizeof(ae->un.AttrString)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_hw.h:1358:18: note: source object allocated here 1358 | uint32_t AttrValue; /* Marks start of Value (ATTRIBUTE_ENTRY) */ | ^~~~~~~~~ In file included from /kisskb/src/include/linux/preempt.h:11, from /kisskb/src/include/linux/hardirq.h:5, from /kisskb/src/include/linux/interrupt.h:11, from /kisskb/src/drivers/scsi/lpfc/lpfc_bsg.c:23: In function '__list_add', inlined from 'list_add_tail' at /kisskb/src/include/linux/list.h:93:2, inlined from 'diag_cmd_data_free' at /kisskb/src/drivers/scsi/lpfc/lpfc_bsg.c:891:2, inlined from 'diag_cmd_data_free.isra' at /kisskb/src/drivers/scsi/lpfc/lpfc_bsg.c:879:1: /kisskb/src/include/linux/list.h:63:20: warning: storing the address of local variable 'head' in '*(struct list_head *)mlist.prev' [-Wdangling-pointer=] 63 | next->prev = new; | ~~~~~~~~~~~^~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_bsg.c: In function 'diag_cmd_data_free.isra': /kisskb/src/drivers/scsi/lpfc/lpfc_bsg.c:883:26: note: 'head' declared here 883 | struct list_head head, *curr, *next; | ^~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_bsg.c:883:26: note: 'mlist' declared here /kisskb/src/drivers/net/ethernet/mellanox/mlx4/en_rx.c: In function 'mlx4_en_process_rx_cq': /kisskb/src/drivers/net/ethernet/mellanox/mlx4/en_rx.c:748:45: warning: 'ether_addr_equal_64bits' reading 8 bytes from a region of size 6 [-Wstringop-overread] 748 | if (ether_addr_equal_64bits(entry->mac, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 749 | ethh->h_source)) | ~~~~~~~~~~~~~~~ /kisskb/src/drivers/net/ethernet/mellanox/mlx4/en_rx.c:748:45: note: referencing argument 2 of type 'const u8[8]' {aka 'const unsigned char[8]'} In file included from /kisskb/src/include/linux/if_vlan.h:11, from /kisskb/src/include/linux/filter.h:22, from /kisskb/src/include/trace/events/xdp.h:9, from /kisskb/src/include/linux/bpf_trace.h:5, from /kisskb/src/drivers/net/ethernet/mellanox/mlx4/en_rx.c:35: /kisskb/src/include/linux/etherdevice.h:344:20: note: in a call to function 'ether_addr_equal_64bits' 344 | static inline bool ether_addr_equal_64bits(const u8 addr1[6+2], | ^~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/scsi/lpfc/lpfc_attr.c: In function 'lpfc_nvme_info_show': /kisskb/src/drivers/scsi/lpfc/lpfc_attr.c:523:25: warning: 'strnlen' specified bound 65535 exceeds source size 24 [-Wstringop-overread] 523 | strnlen(LPFC_NVME_INFO_MORE_STR, PAGE_SIZE - 1), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/net/ethernet/broadcom/tg3.c: In function 'tg3_init_one': /kisskb/src/drivers/net/ethernet/broadcom/tg3.c:17864:51: warning: array subscript 5 is above array bounds of 'struct tg3_napi[5]' [-Warray-bounds] 17864 | struct tg3_napi *tnapi = &tp->napi[i]; | ~~~~~~~~^~~ In file included from /kisskb/src/drivers/net/ethernet/broadcom/tg3.c:72: /kisskb/src/drivers/net/ethernet/broadcom/tg3.h:3203:41: note: while referencing 'napi' 3203 | struct tg3_napi napi[TG3_IRQ_MAX_VECS]; | ^~~~ /kisskb/src/drivers/net/ethernet/broadcom/tg3.c:17864:51: warning: array subscript 5 is above array bounds of 'struct tg3_napi[5]' [-Warray-bounds] 17864 | struct tg3_napi *tnapi = &tp->napi[i]; | ~~~~~~~~^~~ /kisskb/src/drivers/net/ethernet/broadcom/tg3.h:3203:41: note: while referencing 'napi' 3203 | struct tg3_napi napi[TG3_IRQ_MAX_VECS]; | ^~~~ In file included from /kisskb/src/include/linux/ip.h:16, from /kisskb/src/drivers/net/ethernet/sfc/ptp.c:33: In function '__skb_queue_before', inlined from '__skb_queue_tail' at /kisskb/src/include/linux/skbuff.h:2009:2, inlined from 'efx_ptp_process_events' at /kisskb/src/drivers/net/ethernet/sfc/ptp.c:1209:4, inlined from 'efx_ptp_worker' at /kisskb/src/drivers/net/ethernet/sfc/ptp.c:1384:2: /kisskb/src/include/linux/skbuff.h:1976:9: warning: array subscript 'struct sk_buff[0]' is partly outside array bounds of 'struct sk_buff_head[1]' [-Warray-bounds] 1976 | __skb_insert(newsk, next->prev, next, list); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/net/ethernet/sfc/ptp.c: In function 'efx_ptp_worker': /kisskb/src/drivers/net/ethernet/sfc/ptp.c:1373:29: note: object 'tempq' of size 24 1373 | struct sk_buff_head tempq; | ^~~~~ In function '__skb_queue_before', inlined from '__skb_queue_tail' at /kisskb/src/include/linux/skbuff.h:2009:2, inlined from 'efx_ptp_process_events' at /kisskb/src/drivers/net/ethernet/sfc/ptp.c:1213:4, inlined from 'efx_ptp_worker' at /kisskb/src/drivers/net/ethernet/sfc/ptp.c:1384:2: /kisskb/src/include/linux/skbuff.h:1976:9: warning: array subscript 'struct sk_buff[0]' is partly outside array bounds of 'struct sk_buff_head[1]' [-Warray-bounds] 1976 | __skb_insert(newsk, next->prev, next, list); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/net/ethernet/sfc/ptp.c: In function 'efx_ptp_worker': /kisskb/src/drivers/net/ethernet/sfc/ptp.c:1373:29: note: object 'tempq' of size 24 1373 | struct sk_buff_head tempq; | ^~~~~ In function '__skb_queue_before', inlined from '__skb_queue_tail' at /kisskb/src/include/linux/skbuff.h:2009:2, inlined from 'efx_ptp_process_events' at /kisskb/src/drivers/net/ethernet/sfc/ptp.c:1206:4, inlined from 'efx_ptp_worker' at /kisskb/src/drivers/net/ethernet/sfc/ptp.c:1384:2: /kisskb/src/include/linux/skbuff.h:1976:9: warning: array subscript 'struct sk_buff[0]' is partly outside array bounds of 'struct sk_buff_head[1]' [-Warray-bounds] 1976 | __skb_insert(newsk, next->prev, next, list); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/net/ethernet/sfc/ptp.c: In function 'efx_ptp_worker': /kisskb/src/drivers/net/ethernet/sfc/ptp.c:1373:29: note: object 'tempq' of size 24 1373 | struct sk_buff_head tempq; | ^~~~~ make: *** [Makefile:179: sub-make] Error 2 Command 'make -s -j 40 ARCH=powerpc O=/kisskb/build/mpe_skiroot_defconfig_powerpc-gcc12 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-12.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/mpe_skiroot_defconfig_powerpc-gcc12 # Build took: 0:01:04.413801