Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2291329pxb; Mon, 11 Jan 2021 06:11:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJwlxCR4J2N5LyjfItbhll2tVg98tkWD/xRfesePPhMvBDWoHyLFQgYt/snJA8om4wriOVri X-Received: by 2002:a05:6402:41:: with SMTP id f1mr13915895edu.286.1610374301593; Mon, 11 Jan 2021 06:11:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610374301; cv=none; d=google.com; s=arc-20160816; b=a8C21AqHaZ4tz5oxXyQMYxpBfqyjuHiaT5EGhPkxDzLa7VwkkEwja74u33BV7Ftk8i fdvkMFCTkG92vP3M1NYYxD/9Kk15oZpjNyYrbcPx26KDSocEE84Xth6M/7tSfbQRf/sy KqrK+OLvB247W3M7BJYPxqSPGjjbc4bFC3E9kLU4bk2BF1XX/DafSHEr0asGlgDOYF5X TU2vpoqcRUErtlzzNPbebXkmTok9BBT7ls3gVQSYf71GrBRll9xVeJuFltXImlA9jRjg MW7AVmQ3TgmY3IZ/TjS4XLgt8nf46f6pW8sOgboxaXY7h/sbSdu4EEp5EM6HQHc4Sbj3 2Zqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=rrLqgKWPOPu59PadBh3tBi+BgAekvJiS6c62V98EguI=; b=isdr97jq73EooeyozJ8iwgxPrYmGbjUoZZ79myF1pSiTTaHJy7U73W6OXSIZQ3z21F R/uFFZL0R0CZDrC3ehWVfKhXV5yomha5uSExUvhmm1GMndB9D6zCKDXhX+wn6WwPec1l xPToFiikQ8z6vochMtHBDtrjmvBTAS1dZn1c6gq7A7Swcvc4rOLEJXvKBsx9Pg9uIgK+ D3A6QdzcSNSjEtKWvQ4cE8YeAXAvjCXoT+gu+k9gGz9PZqp72uHAaFmapTxbQve8TRZG CKuciZC5kh6AOGxg8YMr81ORO7mHmj2xY7WAYu3ylAN9Tj+Xso57T/thZx3A5TwClBSb Q96g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=adVpJJv2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v4si7494941edi.191.2021.01.11.06.11.17; Mon, 11 Jan 2021 06:11:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=adVpJJv2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388488AbhAKOIC (ORCPT + 99 others); Mon, 11 Jan 2021 09:08:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:50168 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727893AbhAKNDk (ORCPT ); Mon, 11 Jan 2021 08:03:40 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 096EF22527; Mon, 11 Jan 2021 13:03:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610370196; bh=CbRBZEV03v0zoXlpOxSlcfP7s7m7WeNWW0BWIbTmxkA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=adVpJJv2Rl/dAAnfxviWpBmxWrWv3+VsYJlGpxR3+4Z+aBWudJAllE7OKHtAZXazB 9w9qZdmFFpBhh7m6Lo08jKVx2Y/+xEf1JIfKPjDi+0oohv0O7inEmInUd6vOSPq3X8 +/cY5k6ZGLAtT5cFjXgUfjrkze1pmzWyoiGDxcjM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, John Wang , Jakub Kicinski Subject: [PATCH 4.9 08/45] net/ncsi: Use real net-device for response handler Date: Mon, 11 Jan 2021 14:00:46 +0100 Message-Id: <20210111130034.067930829@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210111130033.676306636@linuxfoundation.org> References: <20210111130033.676306636@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: John Wang [ Upstream commit 427c940558560bff2583d07fc119a21094675982 ] When aggregating ncsi interfaces and dedicated interfaces to bond interfaces, the ncsi response handler will use the wrong net device to find ncsi_dev, so that the ncsi interface will not work properly. Here, we use the original net device to fix it. Fixes: 138635cc27c9 ("net/ncsi: NCSI response packet handler") Signed-off-by: John Wang Link: https://lore.kernel.org/r/20201223055523.2069-1-wangzhiqiang.bj@bytedance.com Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- net/ncsi/ncsi-rsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/ncsi/ncsi-rsp.c +++ b/net/ncsi/ncsi-rsp.c @@ -975,7 +975,7 @@ int ncsi_rcv_rsp(struct sk_buff *skb, st int payload, i, ret; /* Find the NCSI device */ - nd = ncsi_find_dev(dev); + nd = ncsi_find_dev(orig_dev); ndp = nd ? TO_NCSI_DEV_PRIV(nd) : NULL; if (!ndp) return -ENODEV;