Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752203AbdIMULy (ORCPT ); Wed, 13 Sep 2017 16:11:54 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:54526 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751920AbdIMULs (ORCPT ); Wed, 13 Sep 2017 16:11:48 -0400 From: Josef Bacik To: Chuck Ebbert CC: Laura Abbott , "David S. Miller" , Alexey Kuznetsov , "Hideaki YOSHIFUJI" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Cole Robinson Subject: Re: 319554f284dd ("inet: don't use sk_v6_rcv_saddr directly") causes bind port regression Thread-Topic: 319554f284dd ("inet: don't use sk_v6_rcv_saddr directly") causes bind port regression Thread-Index: AQHTLBeHTmXbYNNlokyw2o+Z43qCfKKxnfiAgAFYTgD//6eWgIAAnFEAgAAGhGg= Date: Wed, 13 Sep 2017 20:11:09 +0000 Message-ID: References: <1a8ef376-387e-e0fc-7362-e1fd2c2c45d3@redhat.com> <588f3795-931e-7779-4ec7-5fe7d4437927@redhat.com> ,<20170913154750.100881c0@gmail.com> In-Reply-To: <20170913154750.100881c0@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2600:387:8:f::8f] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR15MB1722;20:r4BKI61IEGLiaQexP2AWrMr0oCeWQdWIrIzqx8y2lJwQtbxx+m2LTzDhgnuS9YnSqrgvdt+qDwkWovDTTNQo92YpVQEslLDbQQuPbshRW+cuObraljqsbr/GBm8l6oeWe/6oulRs7f3NeGVmSLaHBC9Athpa/DVt23djINuzOUM= x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: 719b608a-fcd9-4801-8662-08d4fae392d4 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:DM5PR15MB1722; x-ms-traffictypediagnostic: DM5PR15MB1722: x-exchange-antispam-report-test: UriScan:(67672495146484); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123562025)(20161123558100)(20161123564025)(20161123555025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DM5PR15MB1722;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DM5PR15MB1722; x-forefront-prvs: 042957ACD7 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(376002)(346002)(377454003)(189002)(51914003)(24454002)(199003)(6246003)(93886005)(39060400002)(54906002)(53936002)(6512007)(3660700001)(2906002)(86362001)(110136004)(6916009)(5660300001)(82746002)(3280700002)(2950100002)(25786009)(99286003)(316002)(81156014)(81166006)(45080400002)(478600001)(8936002)(101416001)(8676002)(76176999)(36756003)(4326008)(50986999)(7736002)(6116002)(68736007)(189998001)(305945005)(2900100001)(54356999)(33656002)(229853002)(97736004)(6506006)(77096006)(6486002)(102836003)(53546010)(106356001)(6436002)(14454004)(105586002)(83716003);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR15MB1722;H:DM5PR15MB1914.namprd15.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Sep 2017 20:11:09.3535 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR15MB1722 X-OriginatorOrg: fb.com X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-09-13_06:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id v8DKC1Jr028062 Content-Length: 1652 Lines: 46 > On Sep 13, 2017, at 12:46 PM, Chuck Ebbert wrote: > > On Wed, 13 Sep 2017 17:28:25 +0000 > Josef Bacik wrote: > >> Sorry I thought I had made this other fix, can you apply this on top >> of the other one and try that? I have more things to try if this >> doesn’t work, sorry you are playing go between, but I want to make >> sure I know _which_ fix actually fixes the problem, and then clean up >> in followup patches. Thanks, >> >> Josef >> >> On 9/13/17, 8:45 AM, "Laura Abbott" wrote: >> >> On 09/12/2017 04:12 PM, Josef Bacik wrote: >>> First I’m super sorry for the top post, I’m at plumbers and I >>> forgot to upload my muttrc to my new cloud instance, so I’m screwed >>> using outlook. >>> >>> I have a completely untested, uncompiled patch that I think will >>> fix the problem, would you mind giving it a go? Thanks, >>> >>> Josef >> >> Thanks for the quick turnaround. Unfortunately, the problem is still >> reproducible according to the reporter. >> >> Thanks, >> Laura > > I am confused by the patch that originally caused this: > > if (sk->sk_family == AF_INET6) > return ipv6_rcv_saddr_equal(&sk->sk_v6_rcv_saddr, > - &sk2->sk_v6_rcv_saddr, > + inet6_rcv_saddr(sk2), > sk->sk_rcv_saddr, > sk2->sk_rcv_saddr, > > Shouldn't the first argument also be changed to use inet6_rcv_saddr()? No we know sk is IPv6 so it's alright to use directly. Thanks, Josef