From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752277AbcG2EUh (ORCPT ); Fri, 29 Jul 2016 00:20:37 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:41192 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750839AbcG2EUc (ORCPT ); Fri, 29 Jul 2016 00:20:32 -0400 Date: Thu, 28 Jul 2016 21:20:31 -0700 (PDT) Message-Id: <20160728.212031.549387302791502368.davem@davemloft.net> To: john.stultz@linaro.org Cc: mateusz.bajorski@nokia.com, dsa@cumulusnetworks.com, linux-kernel@vger.kernel.org, guodong.xu@linaro.org, dimitrysh@google.com Subject: Re: [Regression?] fib_rules: Added NLM_F_EXCL support to fib_nl_newrule breaks Android userspace From: David Miller In-Reply-To: References: X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 28 Jul 2016 21:20:31 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: John Stultz Date: Thu, 28 Jul 2016 21:18:16 -0700 > After moving my HiKey tree to pre-v4.8-rc, I noticed when using > Android that I was getting routing errors after toggling networking on > and off (or entering suspend). Wifi associated, but I got some > rounting errors in the logcat the connection manager wouldn't detect a > valid network. > > Not being able to figure out exactly what was going wrong from the > userspace side, I bisected (manually rebasing a 70 patch stack each > step :P) it down and it seems that the commit: 153380ec4b9b > ("fib_rules: Added NLM_F_EXCL support to fib_nl_newrule") is causing > the problem. > > Reverting that patch seems to make things work again. > > I'm no networking guru, but I'm happy to help debug this further if > folks can walk me through it a bit. It simply sounds like Android's userspace is specifying NLM_F_EXCL when it shouldn't be during FIB rule netlink operations.