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: <20140714.161726.579481406574025687.davem@davemloft.net>
Date:	Mon, 14 Jul 2014 16:17:26 -0700 (PDT)
From:	David Miller <davem@...emloft.net>
To:	pshelar@...ira.com
Cc:	netdev@...r.kernel.org, alexw@...ira.com
Subject: Re: [PATCH 01/11] openvswitch: Allow each vport to have an array
 of 'port_id's.

From: Pravin Shelar <pshelar@...ira.com>
Date: Mon, 14 Jul 2014 15:28:23 -0700

> On Mon, Jul 14, 2014 at 3:13 PM, David Miller <davem@...emloft.net> wrote:
>> From: Pravin B Shelar <pshelar@...ira.com>
>> Date: Sun, 13 Jul 2014 17:12:54 -0700
>>
>>>  void ovs_vport_free(struct vport *vport)
>>>  {
>>> +     kfree((struct vport_portids __force *)vport->upcall_portids);
>>
>> This cast is ugly and never correct for this situation, you need to
>> use rcu_dereference().
> 
> This function is called either from RCU callback or error path, So it is fine.
> I do not use rcu_dereference() since rcu_read lock is not held. To
> avoid rcu sparse checker warning the typecast is done.

You need to find a cleaner way to express this, it's too ugly.
--
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