lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 31 Mar 2021 00:22:24 +0800
From:   kernel test robot <lkp@...el.com>
To:     glittao@...il.com, cl@...ux.com, penberg@...nel.org,
        rientjes@...gle.com, iamjoonsoo.kim@....com,
        akpm@...ux-foundation.org, vbabka@...e.cz
Cc:     kbuild-all@...ts.01.org, clang-built-linux@...glegroups.com,
        linux-kernel@...r.kernel.org, linux-mm@...ck.org,
        Oliver Glitta <glittao@...il.com>
Subject: Re: [PATCH v2 1/2] kunit: add a KUnit test for SLUB debugging
 functionality

Hi,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v5.12-rc5]
[cannot apply to hnaz-linux-mm/master next-20210330]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/glittao-gmail-com/kunit-add-a-KUnit-test-for-SLUB-debugging-functionality/20210330-200635
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 1e43c377a79f9189fea8f2711b399d4e8b4e609b
config: x86_64-randconfig-r022-20210330 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 482283042f795ecc27838a3b2f76b5494991401c)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://github.com/0day-ci/linux/commit/98f544695d3d3b4676d7ff7bd7c964c9d39172d2
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review glittao-gmail-com/kunit-add-a-KUnit-test-for-SLUB-debugging-functionality/20210330-200635
        git checkout 98f544695d3d3b4676d7ff7bd7c964c9d39172d2
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

>> mm/slub.c:744:17: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
           if (!(s->flags && SLAB_SILENT_ERRORS)) {
                          ^  ~~~~~~~~~~~~~~~~~~
   mm/slub.c:744:17: note: use '&' for a bitwise operation
           if (!(s->flags && SLAB_SILENT_ERRORS)) {
                          ^~
                          &
   mm/slub.c:744:17: note: remove constant to silence this warning
           if (!(s->flags && SLAB_SILENT_ERRORS)) {
                         ~^~~~~~~~~~~~~~~~~~~~~
   mm/slub.c:759:17: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
           if (!(s->flags && SLAB_SILENT_ERRORS)) {
                          ^  ~~~~~~~~~~~~~~~~~~
   mm/slub.c:759:17: note: use '&' for a bitwise operation
           if (!(s->flags && SLAB_SILENT_ERRORS)) {
                          ^~
                          &
   mm/slub.c:759:17: note: remove constant to silence this warning
           if (!(s->flags && SLAB_SILENT_ERRORS)) {
                         ~^~~~~~~~~~~~~~~~~~~~~
   mm/slub.c:807:17: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
           if (!(s->flags && SLAB_SILENT_ERRORS)) {
                          ^  ~~~~~~~~~~~~~~~~~~
   mm/slub.c:807:17: note: use '&' for a bitwise operation
           if (!(s->flags && SLAB_SILENT_ERRORS)) {
                          ^~
                          &
   mm/slub.c:807:17: note: remove constant to silence this warning
           if (!(s->flags && SLAB_SILENT_ERRORS)) {
                         ~^~~~~~~~~~~~~~~~~~~~~
   mm/slub.c:1536:21: warning: unused function 'kmalloc_large_node_hook' [-Wunused-function]
   static inline void *kmalloc_large_node_hook(void *ptr, size_t size, gfp_t flags)
                       ^
   4 warnings generated.


vim +744 mm/slub.c

   740	
   741	void object_err(struct kmem_cache *s, struct page *page,
   742				u8 *object, char *reason)
   743	{
 > 744		if (!(s->flags && SLAB_SILENT_ERRORS)) {
   745			slab_bug(s, "%s", reason);
   746			print_trailer(s, page, object);
   747		}
   748	}
   749	

---
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" (31773 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ