From: kbuild test robot <lkp@intel.com>
To: Kyeongdon Kim <kyeongdon.kim@lge.com>
Cc: kbuild-all@01.org, aryabinin@virtuozzo.com,
catalin.marinas@arm.com, will.deacon@arm.com, glider@google.com,
dvyukov@google.com, Jason@zx2c4.com, robh@kernel.org,
ard.biesheuvel@linaro.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com,
linux-mm@kvack.org
Subject: Re: [PATCH] arm64: kasan: add interceptors for strcmp/strncmp functions
Date: Fri, 17 Aug 2018 18:40:53 +0800 [thread overview]
Message-ID: <201808171806.PDqNRLqs%fengguang.wu@intel.com> (raw)
In-Reply-To: <1534495075-82167-1-git-send-email-kyeongdon.kim@lge.com>
[-- Attachment #1: Type: text/plain, Size: 3884 bytes --]
Hi Kyeongdon,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on arm64/for-next/core]
[also build test ERROR on v4.18 next-20180817]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Kyeongdon-Kim/arm64-kasan-add-interceptors-for-strcmp-strncmp-functions/20180817-165304
base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 8.1.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=8.1.0 make.cross ARCH=xtensa
All errors (new ones prefixed by >>):
>> mm/kasan/kasan.c:308:5: error: redefinition of 'strcmp'
int strcmp(const char *cs, const char *ct)
^~~~~~
In file included from include/linux/string.h:20,
from include/linux/bitmap.h:9,
from include/linux/cpumask.h:12,
from include/linux/interrupt.h:8,
from mm/kasan/kasan.c:20:
arch/xtensa/include/asm/string.h:63:19: note: previous definition of 'strcmp' was here
static inline int strcmp(const char *__cs, const char *__ct)
^~~~~~
mm/kasan/kasan.c: In function 'strcmp':
mm/kasan/kasan.c:313:9: error: implicit declaration of function '__strcmp'; did you mean 'strcmp'? [-Werror=implicit-function-declaration]
return __strcmp(cs, ct);
^~~~~~~~
strcmp
mm/kasan/kasan.c: At top level:
>> mm/kasan/kasan.c:316:5: error: redefinition of 'strncmp'
int strncmp(const char *cs, const char *ct, size_t len)
^~~~~~~
In file included from include/linux/string.h:20,
from include/linux/bitmap.h:9,
from include/linux/cpumask.h:12,
from include/linux/interrupt.h:8,
from mm/kasan/kasan.c:20:
arch/xtensa/include/asm/string.h:85:19: note: previous definition of 'strncmp' was here
static inline int strncmp(const char *__cs, const char *__ct, size_t __n)
^~~~~~~
mm/kasan/kasan.c: In function 'strncmp':
mm/kasan/kasan.c:321:9: error: implicit declaration of function '__strncmp'; did you mean 'strncmp'? [-Werror=implicit-function-declaration]
return __strncmp(cs, ct, len);
^~~~~~~~~
strncmp
cc1: some warnings being treated as errors
vim +/strcmp +308 mm/kasan/kasan.c
298
299 #undef memcpy
300 void *memcpy(void *dest, const void *src, size_t len)
301 {
302 check_memory_region((unsigned long)src, len, false, _RET_IP_);
303 check_memory_region((unsigned long)dest, len, true, _RET_IP_);
304
305 return __memcpy(dest, src, len);
306 }
307 #undef strcmp
> 308 int strcmp(const char *cs, const char *ct)
309 {
310 check_memory_region((unsigned long)cs, 1, false, _RET_IP_);
311 check_memory_region((unsigned long)ct, 1, false, _RET_IP_);
312
> 313 return __strcmp(cs, ct);
314 }
315 #undef strncmp
> 316 int strncmp(const char *cs, const char *ct, size_t len)
317 {
318 check_memory_region((unsigned long)cs, len, false, _RET_IP_);
319 check_memory_region((unsigned long)ct, len, false, _RET_IP_);
320
321 return __strncmp(cs, ct, len);
322 }
323 void kasan_alloc_pages(struct page *page, unsigned int order)
324 {
325 if (likely(!PageHighMem(page)))
326 kasan_unpoison_shadow(page_address(page), PAGE_SIZE << order);
327 }
328
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 54028 bytes --]
prev parent reply other threads:[~2018-08-17 10:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-17 8:37 Kyeongdon Kim
2018-08-17 9:34 ` kbuild test robot
2018-08-17 10:40 ` kbuild test robot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201808171806.PDqNRLqs%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=Jason@zx2c4.com \
--cc=ard.biesheuvel@linaro.org \
--cc=aryabinin@virtuozzo.com \
--cc=catalin.marinas@arm.com \
--cc=dvyukov@google.com \
--cc=glider@google.com \
--cc=kasan-dev@googlegroups.com \
--cc=kbuild-all@01.org \
--cc=kyeongdon.kim@lge.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=robh@kernel.org \
--cc=will.deacon@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox