All of lore.kernel.org
 help / color / mirror / Atom feed
* [chrome-os:chromeos-5.4 15/93] include/linux/string.h:294:30: error: '__builtin_strncpy' specified bound 24 equals destination size
@ 2020-07-11  6:12 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-07-11  6:12 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 5153 bytes --]

tree:   https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head:   fbd5b376aef3491b453cfdefd1faa1f2f5ccc240
commit: d7438be1154b21bdd4472a1cfd86395334764b89 [15/93] UPSTREAM: drm/i915/gem: Don't leak non-persistent requests on changing engines
config: i386-randconfig-r035-20200710 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce (this is a W=1 build):
        git checkout d7438be1154b21bdd4472a1cfd86395334764b89
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from arch/x86/include/asm/page_32.h:35,
                    from arch/x86/include/asm/page.h:14,
                    from arch/x86/include/asm/thread_info.h:12,
                    from include/linux/thread_info.h:38,
                    from arch/x86/include/asm/preempt.h:7,
                    from include/linux/preempt.h:78,
                    from include/linux/spinlock.h:51,
                    from include/linux/mmzone.h:8,
                    from include/linux/gfp.h:6,
                    from include/linux/slab.h:15,
                    from include/linux/io-mapping.h:10,
                    from drivers/gpu/drm/i915/gt/intel_gtt.h:19,
                    from drivers/gpu/drm/i915/gt/gen6_ppgtt.h:9,
                    from drivers/gpu/drm/i915/gem/i915_gem_context.c:72:
   In function 'strncpy',
       inlined from 'mock_context' at drivers/gpu/drm/i915/gem/selftests/mock_context.c:40:3:
>> include/linux/string.h:294:30: error: '__builtin_strncpy' specified bound 24 equals destination size [-Werror=stringop-truncation]
     294 | #define __underlying_strncpy __builtin_strncpy
         |                              ^
   include/linux/string.h:304:9: note: in expansion of macro '__underlying_strncpy'
     304 |  return __underlying_strncpy(p, q, size);
         |         ^~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors

vim +/__builtin_strncpy +294 include/linux/string.h

b008ae4cc74d3a Daniel Axtens 2020-06-03  272  
b008ae4cc74d3a Daniel Axtens 2020-06-03  273  #ifdef CONFIG_KASAN
b008ae4cc74d3a Daniel Axtens 2020-06-03  274  extern void *__underlying_memchr(const void *p, int c, __kernel_size_t size) __RENAME(memchr);
b008ae4cc74d3a Daniel Axtens 2020-06-03  275  extern int __underlying_memcmp(const void *p, const void *q, __kernel_size_t size) __RENAME(memcmp);
b008ae4cc74d3a Daniel Axtens 2020-06-03  276  extern void *__underlying_memcpy(void *p, const void *q, __kernel_size_t size) __RENAME(memcpy);
b008ae4cc74d3a Daniel Axtens 2020-06-03  277  extern void *__underlying_memmove(void *p, const void *q, __kernel_size_t size) __RENAME(memmove);
b008ae4cc74d3a Daniel Axtens 2020-06-03  278  extern void *__underlying_memset(void *p, int c, __kernel_size_t size) __RENAME(memset);
b008ae4cc74d3a Daniel Axtens 2020-06-03  279  extern char *__underlying_strcat(char *p, const char *q) __RENAME(strcat);
b008ae4cc74d3a Daniel Axtens 2020-06-03  280  extern char *__underlying_strcpy(char *p, const char *q) __RENAME(strcpy);
b008ae4cc74d3a Daniel Axtens 2020-06-03  281  extern __kernel_size_t __underlying_strlen(const char *p) __RENAME(strlen);
b008ae4cc74d3a Daniel Axtens 2020-06-03  282  extern char *__underlying_strncat(char *p, const char *q, __kernel_size_t count) __RENAME(strncat);
b008ae4cc74d3a Daniel Axtens 2020-06-03  283  extern char *__underlying_strncpy(char *p, const char *q, __kernel_size_t size) __RENAME(strncpy);
b008ae4cc74d3a Daniel Axtens 2020-06-03  284  #else
b008ae4cc74d3a Daniel Axtens 2020-06-03  285  #define __underlying_memchr	__builtin_memchr
b008ae4cc74d3a Daniel Axtens 2020-06-03  286  #define __underlying_memcmp	__builtin_memcmp
b008ae4cc74d3a Daniel Axtens 2020-06-03  287  #define __underlying_memcpy	__builtin_memcpy
b008ae4cc74d3a Daniel Axtens 2020-06-03  288  #define __underlying_memmove	__builtin_memmove
b008ae4cc74d3a Daniel Axtens 2020-06-03  289  #define __underlying_memset	__builtin_memset
b008ae4cc74d3a Daniel Axtens 2020-06-03  290  #define __underlying_strcat	__builtin_strcat
b008ae4cc74d3a Daniel Axtens 2020-06-03  291  #define __underlying_strcpy	__builtin_strcpy
b008ae4cc74d3a Daniel Axtens 2020-06-03  292  #define __underlying_strlen	__builtin_strlen
b008ae4cc74d3a Daniel Axtens 2020-06-03  293  #define __underlying_strncat	__builtin_strncat
b008ae4cc74d3a Daniel Axtens 2020-06-03 @294  #define __underlying_strncpy	__builtin_strncpy
b008ae4cc74d3a Daniel Axtens 2020-06-03  295  #endif
b008ae4cc74d3a Daniel Axtens 2020-06-03  296  

:::::: The code at line 294 was first introduced by commit
:::::: b008ae4cc74d3ab43074099746f6c32d353e01aa string.h: fix incompatibility between FORTIFY_SOURCE and KASAN

:::::: TO: Daniel Axtens <dja@axtens.net>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 37933 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-11  6:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-11  6:12 [chrome-os:chromeos-5.4 15/93] include/linux/string.h:294:30: error: '__builtin_strncpy' specified bound 24 equals destination size kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.