Received: by 10.213.65.68 with SMTP id h4csp742149imn; Tue, 20 Mar 2018 14:15:58 -0700 (PDT) X-Google-Smtp-Source: AG47ELtHzylVCf39BQ24m5eM39im4fewK8WmkUH6mxeCYv/fBzLYfE+Ma7fM65grdn3+Dhj8E6jF X-Received: by 2002:a17:902:5993:: with SMTP id p19-v6mr17716850pli.347.1521580557971; Tue, 20 Mar 2018 14:15:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521580557; cv=none; d=google.com; s=arc-20160816; b=RXBTAyneRptwqdA3Qan8JOMMzcGQde9y8RoX15RUTXNne6GzUQ4HvgWIM1fy33X4Fp bXzbrRL65XAKM3XUhb6bLHjgTNBvPdx1dFlPjlc5hJmDFmTz8T3KeoI/CExO/yakdkE2 Z+lJ20wr7WuDc1AybV69hjhxOdOeBa4RH7Gwdft7sRf3v4fPr0uDgDDDYB57WcqE7LTz F8DrVaJfdI86SG01GMq/iZmX7mH10kNhGMRB2wR2rYmkXb9/IAlq0UAQ6NjoLTl0NHH6 vdauwZ8WygTJspXPtFnrCL5OTSNWLU2wk4AuTB+Jt/ghIPNLclfcWPnVu0s146bwGgKW cqPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :references:subject:cc:to:mime-version:user-agent:from:date :message-id:dkim-signature:arc-authentication-results; bh=fBFaH2C5gdO/JofC6ANR6yVCB7VP4J6b+HMRcbrtM3U=; b=dssfbtpFk8i0/1XUs1ww33Rvy4s1lWtVJ4YdkytzYZtAsCfzCQ9+mxHkMctPolQkO7 Zufp1OxrdHRDCsmuK8kXf6QHuYFL8ldZHyBgU4jg4RI7+0KkchxMqVEKpYEUCn53HCmo BhJr9ZKIesezVs8snteT4hzrDwWVPKPM19tMxEFqo3iLnDW5HCTSqk+jGdagf32Pbyk+ FYBZxsXnlVFY5XAp5Yjujs+F8+NemQSsUw6/zx9I03tyQJOQb3xK0ehpozWiwl8hYN7W ztK4wt02PyWho22EoVuISz9ZxW/O8yyOJLjXhcM+qb76Dnhpvpoai6zIJNKOND0lKYL3 tTFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=vppp8A/l; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b94-v6si2314306pli.389.2018.03.20.14.15.38; Tue, 20 Mar 2018 14:15:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=vppp8A/l; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751515AbeCTVNG (ORCPT + 99 others); Tue, 20 Mar 2018 17:13:06 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:47330 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751004AbeCTVNB (ORCPT ); Tue, 20 Mar 2018 17:13:01 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w2KL7oTp036609; Tue, 20 Mar 2018 21:12:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : from : mime-version : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=fBFaH2C5gdO/JofC6ANR6yVCB7VP4J6b+HMRcbrtM3U=; b=vppp8A/lxDUTP/9xfehXJ8LBgReaN+H5Wzlbn94dkeUqD4rgwaz5NUsb0Ox3NozDRotz si77JDD1LgiILvc0khFJZesSRwOzCJ2s+KsC39Y0Ir20TZ6YnIIpbDfpfxiIbBoKx9n7 spvxgBtpyypB/SSFNY9X5rEroQOv8AU1UQWS2mRMcjY9tdNW4dhsJqBoqOBxlWCTyzc9 feGVrp+Sg1LdCNA5uZIHSAYQzFIGD6DsaPce3VN/Dsd4TfcEjnh671JfLXJxRd8c9PI7 Ui47nUdLpalNwb8eSWxcYip0eiAZbnlrQCQOC1QGaZ2oLJucFfKyxPCdIgkJI8nPiTd7 3A== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2120.oracle.com with ESMTP id 2gu9xjg0rf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 20 Mar 2018 21:12:56 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w2KLCtZl024089 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 20 Mar 2018 21:12:55 GMT Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w2KLCtDw023765; Tue, 20 Mar 2018 21:12:55 GMT Received: from [192.168.14.75] (/109.66.44.151) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 20 Mar 2018 14:12:55 -0700 Message-ID: <5AB17953.5000609@ORACLE.COM> Date: Tue, 20 Mar 2018 23:12:51 +0200 From: Liran Alon User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: valdis.kletnieks@vt.edu CC: David Miller , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, idan.brown@ORACLE.COM, yuval.shaia@ORACLE.COM Subject: Re: [PATCH] net: dev_forward_skb(): Scrub packet's per-netns info only when crossing netns References: <5AB12A0E.2060704@ORACLE.COM> <20180320.120036.1999626754164343704.davem@davemloft.net> <5AB132C5.5010806@ORACLE.COM> <20180320.123401.2138083793709750726.davem@davemloft.net> <5AB13953.3000606@ORACLE.COM> <55538.1521571867@turing-police.cc.vt.edu> In-Reply-To: <55538.1521571867@turing-police.cc.vt.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8838 signatures=668695 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=745 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803200127 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20/03/18 20:51, valdis.kletnieks@vt.edu wrote: > On Tue, 20 Mar 2018 18:39:47 +0200, Liran Alon said: >> What is your opinion in regards if it's OK to put the flag enabling this >> "fix" in /proc/sys/net/core? Do you think it's sufficient? > > Umm.. *which* /proc/sys/net/core? These could differ for things that > are in different namespaces. Or are you proposing one systemwide > global value (which also gets "interesting" if it's writable inside a > container and changes the behavior a different container sees...) > I'm indeed proposing an opt-in system-wide global value. I think it is the simplest approach to fix the issue at hand here while maintaining backwards-compatibility. I'm open to suggestions to where that system-wide global value should be. It must be a system-wide global value if we are not going with the per-netdev flag approach as this system-wide global flag should control how a skb is travelled between different netns. So it doesn't belong to any one single netns.