All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH 4/4] net: improve the user pointer check in init_user_sockptr
Date: Wed, 29 Jul 2020 00:10:58 +0800	[thread overview]
Message-ID: <202007290047.iVHJIFCN%lkp@intel.com> (raw)
In-Reply-To: <20200728063643.396100-5-hch@lst.de>

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

Hi Christoph,

I love your patch! Perhaps something to improve:

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

url:    https://github.com/0day-ci/linux/commits/Christoph-Hellwig/sockptr_t-fixes/20200728-144019
base:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 5e619d73e6797ed9f2554a1bf996d52d8c91ca50
config: i386-randconfig-s031-20200728 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.2-94-geb6779f6-dirty
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386 

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


sparse warnings: (new ones prefixed by >>)

>> net/ipv4/bpfilter/sockopt.c:68:56: sparse: sparse: dereference of noderef expression
>> net/ipv4/bpfilter/sockopt.c:68:56: sparse: sparse: dereference of noderef expression

vim +68 net/ipv4/bpfilter/sockopt.c

    59	
    60	int bpfilter_ip_get_sockopt(struct sock *sk, int optname,
    61				    char __user *user_optval, int __user *optlen)
    62	{
    63		sockptr_t optval;
    64		int err, len;
    65	
    66		if (get_user(len, optlen))
    67			return -EFAULT;
  > 68		err = init_user_sockptr(&optval, user_optval, *optlen);
    69		if (err)
    70			return err;
    71		return bpfilter_mbox_request(sk, optname, optval, len, false);
    72	}
    73	

---
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: 27256 bytes --]

  parent reply	other threads:[~2020-07-28 16:10 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-28  6:36 [PATCH 0/4 net-next] sockptr_t fixes Christoph Hellwig
2020-07-28  6:36 ` [PATCH 1/4] netfilter: arp_tables: restore a SPDX identifier Christoph Hellwig
2020-07-28  6:36 ` [PATCH 2/4] net: make sockptr_is_null strict aliasing safe Christoph Hellwig
2020-07-28  6:36 ` [PATCH 3/4] net: remove sockptr_advance Christoph Hellwig
2020-07-28  6:36 ` [PATCH 4/4] net: improve the user pointer check in init_user_sockptr Christoph Hellwig
2020-07-28 15:47   ` Jakub Kicinski
2020-07-28 15:51     ` Christoph Hellwig
2020-07-28 18:53       ` Jakub Kicinski
2020-07-28 15:52     ` David Laight
2020-07-28 16:10   ` kernel test robot [this message]
2020-07-28 20:01   ` David Miller
2020-07-29  6:04     ` Christoph Hellwig
2020-07-28 16:38 [PATCH 0/4 net-next] sockptr_t fixes v2 Christoph Hellwig
2020-07-28 16:38 ` [PATCH 4/4] net: improve the user pointer check in init_user_sockptr Christoph Hellwig
2020-07-29  8:22   ` David Laight

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=202007290047.iVHJIFCN%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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 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.