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: <CALnjE+qx1L5p6CzFcd4nMTvWbxm-7_bz10wjbuUJdt12Q4Kqpg@mail.gmail.com>
Date:	Tue, 30 Jul 2013 15:17:21 -0700
From:	Pravin Shelar <pshelar@...ira.com>
To:	Stephen Hemminger <stephen@...workplumber.org>
Cc:	David Miller <davem@...emloft.net>,
	Thomas Richter <tmricht@...ux.vnet.ibm.com>,
	Mike Rapoport <mike.rapoport@...ellosystems.com>,
	netdev@...r.kernel.org
Subject: Re: [PATCH net-next] vxlan: fix rcu related warnings

On Tue, Jul 30, 2013 at 1:18 PM, Stephen Hemminger
<stephen@...workplumber.org> wrote:
> Vxlan remote list is protected by RCU but since first_remote
> returns a bare pointer, sparse complains.
> Split out the rcu and non-rcu access to the list.
>
> Ok to replace list_for_or_null with just list_entry_rcu because
> remotes list must be non-empty.
>
I am still getting following sparse waning.

  CHECK   drivers/net/vxlan.c
drivers/net/vxlan.c:181:16: warning: incorrect type in return
expression (different address spaces)
drivers/net/vxlan.c:181:16:    expected struct vxlan_rdst [noderef] <asn:4>*
drivers/net/vxlan.c:181:16:    got struct vxlan_rdst *<noident>
drivers/net/vxlan.c:748:59: warning: incorrect type in initializer
(different address spaces)
drivers/net/vxlan.c:748:59:    expected struct vxlan_rdst *rdst
drivers/net/vxlan.c:748:59:    got struct vxlan_rdst [noderef] <asn:4>*
drivers/net/vxlan.c:181:16: warning: incorrect type in return
expression (different address spaces)
drivers/net/vxlan.c:181:16:    expected struct vxlan_rdst [noderef] <asn:4>*
drivers/net/vxlan.c:181:16:    got struct vxlan_rdst *<noident>
drivers/net/vxlan.c:996:42: warning: dereference of noderef expression
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ