[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202109150409.WuS6Qtb3-lkp@intel.com>
Date: Wed, 15 Sep 2021 04:20:16 +0800
From: kernel test robot <lkp@...el.com>
To: Rafael David Tinoco <rafaeldtinoco@...il.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Andrii Nakryiko <andrii@...nel.org>
Subject: [bpf-next:master 1/1] libbpf.c:9012:37: error: '%s' directive output
may be truncated writing up to 127 bytes into a region of size between 62
and 189
tree: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
head: 467b3225553a7945a896efabffb0b24871561ce3
commit: 467b3225553a7945a896efabffb0b24871561ce3 [1/1] libbpf: Introduce legacy kprobe events support
config: x86_64-rhel-8.3-kselftests (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git/commit/?id=467b3225553a7945a896efabffb0b24871561ce3
git remote add bpf-next https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git
git fetch --no-tags bpf-next master
git checkout 467b3225553a7945a896efabffb0b24871561ce3
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
libbpf.c: In function 'poke_kprobe_events':
>> libbpf.c:9012:37: error: '%s' directive output may be truncated writing up to 127 bytes into a region of size between 62 and 189 [-Werror=format-truncation=]
9012 | snprintf(cmd, sizeof(cmd), "%c:%s %s",
| ^~
libbpf.c:9012:3: note: 'snprintf' output between 4 and 258 bytes into a destination of size 192
9012 | snprintf(cmd, sizeof(cmd), "%c:%s %s",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9013 | retprobe ? 'r' : 'p',
| ~~~~~~~~~~~~~~~~~~~~~
9014 | probename,
| ~~~~~~~~~~
9015 | offset ? probefunc : name);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[5]: *** [tools/build/Makefile.build:96: tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf.o] Error 1
make[4]: *** [Makefile:161: tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf-in.o] Error 2
make[3]: *** [Makefile:45: tools/bpf/resolve_btfids//libbpf/libbpf.a] Error 2
make[2]: *** [Makefile:72: bpf/resolve_btfids] Error 2
make[1]: *** [Makefile:1374: tools/bpf/resolve_btfids] Error 2
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:219: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
libbpf.c: In function 'poke_kprobe_events':
>> libbpf.c:9012:37: error: '%s' directive output may be truncated writing up to 127 bytes into a region of size between 62 and 189 [-Werror=format-truncation=]
9012 | snprintf(cmd, sizeof(cmd), "%c:%s %s",
| ^~
libbpf.c:9012:3: note: 'snprintf' output between 4 and 258 bytes into a destination of size 192
9012 | snprintf(cmd, sizeof(cmd), "%c:%s %s",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9013 | retprobe ? 'r' : 'p',
| ~~~~~~~~~~~~~~~~~~~~~
9014 | probename,
| ~~~~~~~~~~
9015 | offset ? probefunc : name);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[5]: *** [tools/build/Makefile.build:96: tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf.o] Error 1
make[4]: *** [Makefile:161: tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf-in.o] Error 2
make[3]: *** [Makefile:45: tools/bpf/resolve_btfids//libbpf/libbpf.a] Error 2
make[2]: *** [Makefile:72: bpf/resolve_btfids] Error 2
make[1]: *** [Makefile:1374: tools/bpf/resolve_btfids] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:219: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (42013 bytes)
Powered by blists - more mailing lists