Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2260151pxb; Mon, 11 Jan 2021 05:25:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJwFhvCc+vZp/HQYmc3iDuJNh5jrfRdR3SxzbdonDTeBkfzaJPdeFweN2svUk3siOgvFQw9N X-Received: by 2002:a17:906:3fc1:: with SMTP id k1mr6026482ejj.58.1610371535826; Mon, 11 Jan 2021 05:25:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610371535; cv=none; d=google.com; s=arc-20160816; b=0p1Meuv+8Sk4c4QlcbSCZlezKTdVsl/oRLSwFymLPl9eebuT0QGOTutR7S0ibd4QU0 1ROmQWzXoAW+hS42tneNlD59/xx6iDu9H/BHZVto9ShA5RU3ky0DShYjzBG8jdPx7Ffp dS2oqQNOxaPrVcR0KpbLoNPP0Bt9i8lSb2E/FPtnDTsb32yhluhL/h8yhLpGkWKztnnQ Pr7B5UV0dL7uI8nId/auU+h6sjpRsenwBIwlWxI0juflbW5EvSBSdlkrmp+JAzLlBE1P tC17QjoKQw+CK5aeBci/SBvGGqwjJPeNYkX4M5QwSc3TIyhpzhzVHdJ395WOcPDzpd7A sKfQ== 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=OukIJXX+wCkbbwQ2gj28zxRM9SiKogjR9yCkxlv/Wxo=; b=FNprSrJup/kLgza4eLE//axbL4nd9ha5EAKd3ONiknxCe+whEMEL+XR7dxxIJmXgAj zdJVS0jAJxcIXM7MXoctkRwBsxAVUi1ZYsabaCQ0CQ85x4DVMOMw60JOHT+LTN/g80Md kMCUIQAGSkdmPov9H00IatMgLKialbdWRGPdS3GNVbVq9FFOxS4N4rFmnN+ShGva/XpG zzUXyFCyolmZe0j2t0tTW20+ybH55tAI7AisnitEul1nHeCbmY0/0r9llh8juNeVRNaH mYPjY7u+5cM1FPDvcrJUMoaKRYj2D/nSRAmaq4RyeOrvBd2+bOXGspNtc/jCLl+Noo7B 7rRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=H59TAZEu; 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 h24si7018156ejk.426.2021.01.11.05.25.11; Mon, 11 Jan 2021 05:25:35 -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=H59TAZEu; 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 S1730778AbhAKNL6 (ORCPT + 99 others); Mon, 11 Jan 2021 08:11:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:58174 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731303AbhAKNLA (ORCPT ); Mon, 11 Jan 2021 08:11:00 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id AA9F3229CA; Mon, 11 Jan 2021 13:10:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610370620; bh=Pnfm3O090tdqEk/5y0vw8aghyeCrZ2nPkZItlV8v2oQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H59TAZEu5TqpJAq9sP3gnQr9nEFnDo58cTrAV+5mBPvGmQg+WKcfkctBESgvRvwFo el+WKMaOsKyWDTm9H8qaU/B4Zf/6aXmeY6Ow2qiJWh1jz5yCZ0xYDxlp7jg/M1j2Ni 37arOCU5ZkHa2lfZjYPq8p7kLus2MSJVTYV2+KH8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, John Wang , Jakub Kicinski Subject: [PATCH 5.4 24/92] net/ncsi: Use real net-device for response handler Date: Mon, 11 Jan 2021 14:01:28 +0100 Message-Id: <20210111130040.309674134@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210111130039.165470698@linuxfoundation.org> References: <20210111130039.165470698@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 @@ -1114,7 +1114,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;