2021-09-07 06:02:06

by Sachin Sant

[permalink] [raw]
Subject: [next-20210907][powerpc] Build failure drivers/net/ethernet/intel/ixgbe

Today’s next [commit b2bb710d34d5] 5.14.0-next-20210907 fails
to build on my Power server due to following error:

CC [M] drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.o
CC [M] drivers/net/ethernet/intel/ixgbe/ixgbe_lib.o
In file included from ./include/linux/irq.h:21,
from ./arch/powerpc/include/asm/hardirq.h:6,
from ./include/linux/hardirq.h:11,
from ./include/linux/interrupt.h:11,
from ./include/linux/pci.h:38,
from drivers/net/ethernet/intel/ixgbe/ixgbe.h:9,
from drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c:4:
In function 'kmalloc_node',
inlined from 'kzalloc_node.constprop' at ./include/linux/slab.h:743:9,
inlined from 'ixgbe_alloc_q_vector' at drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c:855:13:
./include/linux/slab.h:618:9: error: argument 1 value '18446744073709551615' exceeds maximum object size 9223372036854775807 [-Werror=alloc-size-larger-than=]
return __kmalloc_node(size, flags, node);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/slab.h: In function 'ixgbe_alloc_q_vector':
./include/linux/slab.h:455:7: note: in a call to allocation function '__kmalloc_node' declared here
void *__kmalloc_node(size_t size, gfp_t flags, int node) __assume_slab_alignment __malloc;
^~~~~~~~~~~~~~
cc1: all warnings being treated as errors

If I revert following commit the error goes away.
commit b93f40525742db7b8d4df7c28ad8e9a084d92e49
slab: add __alloc_size attributes for better bounds checking

.config attached.
GCC version is 8.4.1 20200928 (Red Hat 8.4.1-1)

Thanks
-Sachin


Attachments:
next-20210907-config.txt (183.30 kB)