Received: by 10.213.65.68 with SMTP id h4csp543318imn; Tue, 20 Mar 2018 09:13:37 -0700 (PDT) X-Google-Smtp-Source: AG47ELtDJK5hkOM6UhpEPNLUlg4+rk61lSnD5xRNjcMTdhYpkwzkqX3eIDnMO2T4DpwB6Wt+45zK X-Received: by 2002:a17:902:6c4f:: with SMTP id h15-v6mr1995035pln.33.1521562417503; Tue, 20 Mar 2018 09:13:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521562417; cv=none; d=google.com; s=arc-20160816; b=w1ImaZXl/MMMPjTRFUyRa2O+Ros84lXfZQgLYERZjuRLyXra9p+8fIAeaHFMgAHsyE 8RosJ5NJzyqxCHfX9+g0wx42DBb2RtHl/5BAF6fb9cyH4BYD6jPHotGj9wAoEEq4SIZK 4TqJkSkMUGmcllxeGA5wOg4pxnEYXZU1gQx+qhuFuKWJ2D9iU1sjftstoC/ivPO0hIec cXfD22ieHLG0SOV3idBmMNcVXN6CFTQv1zGlmW/U5jw1Il6kzFbAntp5+gRRLSThEagb i10l0ngzjYM82gA5ELGgv67cpzEn6rVGDBLXJogg2l0sIxkQJoKT8TxoUTZ9f4leuDdy NhCw== 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=i0KseT8lHhgmpq63uLYtT/zyJQiBO6ip5ddNV7RQDcw=; b=RlQWsukW+AQ5XqpSlWYzrjK5RiElng3Nh/S2Sz6On3YyMlI/IZ5XZ62Xa8BKxBZk7I CDdrmZgK+t9pLBGs8gt7Hi9GLsmo9l7AFW5xUh807EFkL6I80nI1jNWjU10hcf5DWeVW 1YpZwLoRjqeYHg4XB9jAIWrXOAET7qpjAc614yGl3YIH0UtVXd77klJ++991mfUvVRvO WfxIhS3IbZQHTfOpjcGzuo1SikT86O54nTW8LQ2786tnqOAWfcElGA/qSdpZyO2QJGV9 U0HBHh1wtsjnb3X92XYcRU2mF0pPAgLO2jGIU66WLQwauNlN6dTzdDo+PeN8PxfXpEuS Jpng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=WyQLtYXH; 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 e16-v6si1756552pli.337.2018.03.20.09.13.23; Tue, 20 Mar 2018 09:13:37 -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=WyQLtYXH; 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 S1751905AbeCTQMC (ORCPT + 99 others); Tue, 20 Mar 2018 12:12:02 -0400 Received: from aserp2130.oracle.com ([141.146.126.79]:56760 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751866AbeCTQMA (ORCPT ); Tue, 20 Mar 2018 12:12:00 -0400 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w2KG5QSe142868; Tue, 20 Mar 2018 16:11: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=i0KseT8lHhgmpq63uLYtT/zyJQiBO6ip5ddNV7RQDcw=; b=WyQLtYXHZRUgsVMMWue3JFyZmp6Arw8nRikPxLe88KnceYK//arAdSefZzkRmT4ijD43 i3TsgZExGFTouNQ3EAVuwXCfg1nVu+0GHTAWOnOljCR7Ucylk0XjBel5RRysaTc209Tr tAl3iASA9kNs3NOmm3B4qIWM7hu2TH9aMZq/uQkIVvk4NbmvBoWRjzEQWZtbO/YRUSgh tfplA4ockK9GP9zzCOBU7ufwHiNQ+ZeyLimKlC3zDbeK1OXhs3r15ap7bXeKWpTyRmBL dBmzKGXE60KpEeSoNxQeQdYI+ja47lQwrBxM4ia/lfAXNoyLSZDF48wPr4c9q+s5NCOQ Zw== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp2130.oracle.com with ESMTP id 2gu5gy819u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 20 Mar 2018 16:11:56 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w2KGBsG9026293 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 20 Mar 2018 16:11:55 GMT Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w2KGBsSh004092; Tue, 20 Mar 2018 16:11:54 GMT Received: from [10.0.2.223] (/213.57.127.2) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 20 Mar 2018 09:11:54 -0700 Message-ID: <5AB132C5.5010806@ORACLE.COM> Date: Tue, 20 Mar 2018 18:11:49 +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: David Miller CC: 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: <1520953642-8145-1-git-send-email-liran.alon@oracle.com> <20180320.104759.796804827689233281.davem@davemloft.net> <5AB12A0E.2060704@ORACLE.COM> <20180320.120036.1999626754164343704.davem@davemloft.net> In-Reply-To: <20180320.120036.1999626754164343704.davem@davemloft.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8837 signatures=668693 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 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 18:00, David Miller wrote: > From: Liran Alon > Date: Tue, 20 Mar 2018 17:34:38 +0200 > >> I personally don't understand why we should maintain >> backwards-comparability to this behaviour. > > The reason is because not breaking things is a cornerstone of Linux > kernel development. > >> This feature is not documented to user-mode and I don't see why it >> is legit for the user to rely on it. > > Whether it is documented or not is irrelevant. A lot of our > interfaces and behaviors are not documented or poorly documented > at best. > >> In addition, even if we do want to maintain backwards-comparability to >> this behaviour, I think it is enough to have an opt-in flag in >> /proc/sys/net/core/ that when set to 1 will activate the fix in >> dev_forward_skb() provided by this patch. That would also be a very >> simple change to the patch provided here. > > Making it opt-in makes it more palatable, that's for sure. > 1. Do we want to make a flag for every bug that is user-space visible? I think there is place for consideration on a per-case basis. I still don't see how a user can utilize this behaviour. He is basically loosing information (skb->mark) without this patch. 2. Having said that, I don't mind changing patch to maintain backwards compatibility here. However, there was also a discussion here on where the flag should sit. I think that a global /proc/sys/net/core/ flag should be enough. Do you agree it's sufficient for now? Thanks, -Liran