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: <20150516.172214.820543928532454603.davem@davemloft.net>
Date:	Sat, 16 May 2015 17:22:14 -0400 (EDT)
From:	David Miller <davem@...emloft.net>
To:	khlebnikov@...dex-team.ru
Cc:	netdev@...r.kernel.org, maheshb@...gle.com, jbenc@...hat.com,
	hannes@...essinduktion.org
Subject: Re: [PATCH 1/3] ipv6: make inet6addr_chain blocking and always
 call with rtnl locked

From: Konstantin Khlebnikov <khlebnikov@...dex-team.ru>
Date: Thu, 14 May 2015 16:56:18 +0300

> Unlike to inetaddr_chain inet6addr_chain is atomic and called from bh
> context without rtnl when ipv6 receives router advertisement packet.
> 
> Several drivers don't know about that: ipvlan thinks that it has rtnl
> here, ocrdma locks mutex inside callback. Probably there is more.
> 
> This patch makes it blocking and calls from first stage of DAD work.
> Looks like this is completely safe and rtnl already locked here.
> 
> Signed-off-by: Konstantin Khlebnikov <khlebnikov@...dex-team.ru>

I don't see how you can make the inet6addr_chain blocking when it is
invoked from software interrupt context.

You also cannot try to defer these operations to a workqueue or
similar to get into a blockable context, because various ipv6
testsuites depend upon the addressing state change happening
when we process the packet that triggers that change.

Instead, I think you have to make the users of inet6addr_chain
aware of the context in which they execute.

Thanks.
--
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