Details
-
Bug
-
Resolution: Duplicate
-
Medium
-
None
-
None
-
None
-
3
-
9223372036854775807
Description
CC [M] .../lustre/lov/lov_dev.o
In file included from ./include/linux/string.h:253,
from ./include/linux/bitmap.h:11,
from ./include/linux/cpumask.h:12,
from ./include/linux/smp.h:13,
from ./include/linux/lockdep.h:14,
from ./include/linux/mutex.h:17,
from ./include/linux/kernfs.h:12,
from ./include/linux/sysfs.h:16,
from ./include/linux/kobject.h:20,
from .../lustre/include/obd_class.h:19,
from .../lustre/lov/lov_dev.c:21:
In function ‘strncpy’,
inlined from ‘obd_uuid2str’ at .../lustre/include/uapi/linux/lustre/lustre_user.h:1422:3,
inlined from ‘lov_add_mdc_target’ at .../lustre/lov/lov_dev.c:489:4:
./include/linux/fortify-string.h:53:33: error: ‘__builtin_strncpy’ offset 0 is out of the bounds [0, 0] [-Werror=array-bounds]
53 | #define __underlying_strncpy __builtin_strncpy
| ^
./include/linux/fortify-string.h:122:16: note: in expansion of macro ‘__underlying_strncpy’
122 | return __underlying_strncpy(p, q, size);
| ^~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[6]: *** [scripts/Makefile.build:321: .../lustre/lov/lov_dev.o] Error 1
make[5]: *** [scripts/Makefile.build:607: .../lustre/lov] Error 2
make[4]: *** [scripts/Makefile.build:607: .../lustre] Error 2
Attachments
Issue Links
- duplicates
-
LU-18994 Null pointer deerference in lov_add_mgc_target
-
- Resolved
-