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]
Message-ID: <202007230807.y1gfvekv%lkp@intel.com>
Date:   Thu, 23 Jul 2020 08:22:43 +0800
From:   kernel test robot <lkp@...el.com>
To:     KP Singh <kpsingh@...omium.org>, linux-kernel@...r.kernel.org,
        bpf@...r.kernel.org, linux-security-module@...r.kernel.org
Cc:     kbuild-all@...ts.01.org, Alexei Starovoitov <ast@...nel.org>,
        Daniel Borkmann <daniel@...earbox.net>,
        Martin KaFai Lau <kafai@...com>,
        Paul Turner <pjt@...gle.com>, Jann Horn <jannh@...gle.com>,
        Florent Revest <revest@...omium.org>
Subject: Re: [PATCH bpf-next v5 5/7] bpf: Implement bpf_local_storage for
 inodes

Hi KP,

I love your patch! Perhaps something to improve:

[auto build test WARNING on bpf-next/master]

url:    https://github.com/0day-ci/linux/commits/KP-Singh/Generalizing-bpf_local_storage/20200723-011814
base:   https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
config: sparc-allmodconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.0
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
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc 

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 >>):

   kernel/bpf/bpf_inode_storage.c: In function 'unlink_inode_storage':
>> kernel/bpf/bpf_inode_storage.c:34:32: warning: variable 'smap' set but not used [-Wunused-but-set-variable]
      34 |  struct bpf_local_storage_map *smap;
         |                                ^~~~

vim +/smap +34 kernel/bpf/bpf_inode_storage.c

    29	
    30	static bool unlink_inode_storage(struct bpf_local_storage *local_storage,
    31					 struct bpf_local_storage_elem *selem,
    32					 bool uncharge_omem)
    33	{
  > 34		struct bpf_local_storage_map *smap;
    35		struct bpf_storage_blob *bsb;
    36		bool free_local_storage;
    37		struct inode *inode;
    38	
    39		inode = local_storage->owner;
    40		bsb = bpf_inode(inode);
    41		if (!bsb)
    42			return false;
    43	
    44		smap = rcu_dereference(SDATA(selem)->smap);
    45		/* All uncharging on sk->sk_omem_alloc must be done first.
    46		 * sk may be freed once the last selem is unlinked from sk_storage.
    47		 */
    48	
    49		free_local_storage = hlist_is_singular_node(&selem->snode,
    50							    &local_storage->list);
    51	
    52		if (free_local_storage) {
    53			/* After this RCU_INIT, sk may be freed and cannot be used */
    54			RCU_INIT_POINTER(bsb->storage, NULL);
    55			local_storage->owner = NULL;
    56		}
    57	
    58		return free_local_storage;
    59	

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ