From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7D142A0C41 for ; Tue, 23 Nov 2021 20:10:27 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5AE464003C; Tue, 23 Nov 2021 20:10:27 +0100 (CET) Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) by mails.dpdk.org (Postfix) with ESMTP id 940254003C for ; Tue, 23 Nov 2021 20:10:25 +0100 (CET) Received: by mail-pf1-f177.google.com with SMTP id 8so228879pfo.4 for ; Tue, 23 Nov 2021 11:10:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=w+nX1+WsdyuxSFJ1ePcpll0uCSzQId2gNKwFgLkB0tA=; b=bQWpbytgY95aQC+XMx4kwHMsfkSCDzMC1elMLUIUDw9c3w1//pY2FyTEVhKMtzQm4Z Az5Yj4i6lpUtlz9nE9rNprVJ7Cp09FhOTHiu1CUvTQ2s5Y+Jv9UXYp3b1TyzkqWI7TdI aD4NFfMeHV4+QYSjl3O4E704dQC6BOJDfsj4V7gmV32/Ku68AcobfenanrFWXQ41PSf2 yB+BnwKlrC/HXXrVqn+XFKlaSMI/8FHim5WHI41/xjS65NRihAOeQFmUE+Ha6tj9ySBv UhdG2a4qoHFHxYp/Mavw3OsgamZHmFVD97kriqfiBk7lMg6PYfZ0SRJqvhYrgSth5XoJ X03g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=w+nX1+WsdyuxSFJ1ePcpll0uCSzQId2gNKwFgLkB0tA=; b=g5rwsCn62KgLZoANBHA860H61n96DeT1pNSPVpFAVJElzNcclxcSVPQFAr+xET/Ivl rn3jtnqy+fWQlVvkUKAJeAqJM/uYDwlNTIKJqbc1T5i4nik9OQd8AOcuxFmrFWq2S3FB UushD6jXKJmeFhLzZ7H+7EJisrsuLSEosNQDFuuy+aBD7Fqkclq8P+RgtWTz900WbhsZ rv+YE9syJb0us5VBL4CcinTu7a2QzRs4lmQNAR6jRpY/JVfKM9MtQizyy/d95dORosWB qbG5uu+JMb9qvxFZVZYex4uM4gL+xn+6/Oskyb6hNfVAf14xG+1ltZsXVNY9/0W9rG/s OUyg== X-Gm-Message-State: AOAM533SZZC/RQcOrCORBqyNtuwyYzNfe3UCQoVMe1SnNHPWYUbsvqgl 1IOrwWa/eHR7WF+TgcMwfqtFtg== X-Google-Smtp-Source: ABdhPJwKwgOnqKjChBSD8W+lX3wQeJvm3HE/+Cxrj5es+EcAekfvndl5LrvsUHKptE6iglYsHCCGrA== X-Received: by 2002:a05:6a00:1a04:b0:4a6:4384:2e5f with SMTP id g4-20020a056a001a0400b004a643842e5fmr4301710pfv.36.1637694624433; Tue, 23 Nov 2021 11:10:24 -0800 (PST) Received: from hermes.local (204-195-33-123.wavecable.com. [204.195.33.123]) by smtp.gmail.com with ESMTPSA id ot7sm2108011pjb.21.2021.11.23.11.10.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 11:10:24 -0800 (PST) Date: Tue, 23 Nov 2021 11:10:21 -0800 From: Stephen Hemminger To: Ferruh Yigit Cc: Thomas Monjalon , David Marchand , Elad Nachman , , , Igor Ryzhov , Eric Christian Subject: Re: [PATCH] kni: restrict bifurcated device support Message-ID: <20211123111021.08763407@hermes.local> In-Reply-To: <0914b58e-de54-50ef-7e48-febf9688eb09@intel.com> References: <20211008235830.127167-1-ferruh.yigit@intel.com> <20211008190335.1fdc8f4a@hermes.local> <20211123082218.11b894b0@hermes.local> <0914b58e-de54-50ef-7e48-febf9688eb09@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org On Tue, 23 Nov 2021 16:51:27 +0000 Ferruh Yigit wrote: > >>> > >>> diff --git a/kernel/linux/kni/kni_net.c b/kernel/linux/kni/kni_net.c > >>> index 611719b5ee27..d47fc6133cbe 100644 > >>> --- a/kernel/linux/kni/kni_net.c > >>> +++ b/kernel/linux/kni/kni_net.c > >>> @@ -838,6 +838,14 @@ kni_net_init(struct net_device *dev) > >>> dev->header_ops = &kni_net_header_ops; > >>> dev->ethtool_ops = &kni_net_ethtool_ops; > >>> dev->watchdog_timeo = WD_TIMEOUT; > >>> + > >>> + /* > >>> + * KNI is unsafe since it requires calling userspace to do > >>> + * control operations. And the overall quality according to > >>> + * kernel standards is the same as devices in staging. > >>> + */ > >>> + add_taint(TAINT_CRAP, LOCKDEP_STILL_OK); > >>> + netdev_warn(dev, "Adding kernel taint for KNI because it is not safe\n"); > >> > >> I am for discussing above separate from this patch, since this patch > >> restores the behavior that exist since KNI module exists. > > > > Any user of KNI will already get tainted because KNI is out of tree driver. > > > > I mean the note and explicit 'add_taint()' you mentioned above, can we separate > it from this bug fix. I changed my mind, the existing taint that happens from out of tree is enough. Especially since KNI is now deprecated.