Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2069819rdb; Mon, 9 Oct 2023 11:25:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGP7s8R5yyuaFardHQ1BZA0Gy1hPyL3tiebvs5+L/6l0vAekAx+0KysFnxTi7YiksOnmQX1 X-Received: by 2002:a05:6808:2897:b0:3af:d1d6:8a59 with SMTP id eu23-20020a056808289700b003afd1d68a59mr9215996oib.38.1696875905154; Mon, 09 Oct 2023 11:25:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696875905; cv=none; d=google.com; s=arc-20160816; b=FWAStyUjBjpQ5FeAglE7Gz5y3gvogJmiyWEKQDe9qOjOVEJV0ax5de8BR0MWq9HizY MAIJ2BsvGAd5pssDZatv4Lgb6DCq0bRTpFJsheKwocgrCMJRAT0IyD0BzS4SGPdHhXtb QG088l/QJY1WcL32eCB8TP/dnz6Dd1doSnOWwvo+udoo7zpjRL0zPgimed2hot06QFa0 Z+OpDx3gLeQW1duuPyKnTVbo/5JeE7o0010jRRPox67YtLQGXT7YMkGExXCqZ4UpyhZn WLIpodbPNws3IoTBjlR/aN2TEyxtxP+mp/M2ru5GgeaLkZIh6N5EuGS+ZzW6WYDAgvmf eKfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=SXrkYqSHKLkxgAYylGbobPAfvWGbW5cqmsymch4oQ2g=; fh=Bn/9Mo5/BzufVLkdEI5kNdVJbfobrWrRvCU+4sMqwYg=; b=vAQrj8vLs8IaDEHy5pUSs8fnodwhk7qdf53kEmG0A3xgC2XR/vDNP0U6JddYDO6bRw e88Br3c3Rf9lW1jCQMv322q+4whoeXN+itopwPv5yBJCB61jNPTreO1DDkpGXaC0a/OY xlp9SSARY5YiIdvjdOBbp5pYn24BVwYqX851K5Bn4/JaZwAmOkUfOPaIgS2+pklYEBpX gNn/3KY5w2iqMYDhBqRR8qF7ku4TpwB8R2keT0AghMaHjQFA/XASAzGeoOzTrV3V9Pb1 Xwou144Ozh9jsS/bkTS3bwDC5eEKvbzRWLdTfujw1y3VI+1+IVp7BsA8TDqY+oGWx6x0 zgUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="PfdZFu/C"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id y7-20020a636407000000b00580e32f7793si10192488pgb.151.2023.10.09.11.25.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 11:25:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="PfdZFu/C"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 0681A80427A0; Mon, 9 Oct 2023 11:25:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377548AbjJISYu (ORCPT + 99 others); Mon, 9 Oct 2023 14:24:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377556AbjJISYt (ORCPT ); Mon, 9 Oct 2023 14:24:49 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B431CF; Mon, 9 Oct 2023 11:24:47 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 664CFC433C7; Mon, 9 Oct 2023 18:24:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1696875886; bh=cA9zXUwr+O+u3uWbzx70nCVbti4LuB6boGArEX9Q3RE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PfdZFu/C8JNmrQsIt2qj2kRI6/McNSt9ay3mBcvJ13bYFFeccg4Q3M4PboH9ScOex OQoBhu3ZusKUR9gmWPg+zAStrb1QaLECSuBBTwhOnc1cmB7Z4xT1envBojnMRAmGMo B9DpauW6CF61E7KVJ+BI+xIOHfvA1yH9zN/wMuPc= Date: Mon, 9 Oct 2023 20:24:43 +0200 From: Greg Kroah-Hartman To: Boris Ostrovsky Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org, torvalds@linux-foundation.org, stable@vger.kernel.org, lwn@lwn.net, jslaby@suse.cz Subject: Re: Linux 4.14.324 Message-ID: <2023100914-flaccid-staining-19c9@gregkh> References: <2023083037-conceded-candle-b9e8@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 09 Oct 2023 11:25:02 -0700 (PDT) X-Spam-Level: ** On Mon, Oct 09, 2023 at 11:36:35AM -0400, Boris Ostrovsky wrote: > On Wed, Aug 30, 2023 at 05:02:37PM +0200, Greg Kroah-Hartman wrote: > > I'm announcing the release of the 4.14.324 kernel. > > > > All users of the 4.14 kernel series must upgrade. > > > > The updated 4.14.y git tree can be found at: > > git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.14.y > > and can be browsed at the normal kernel.org git web browser: > > https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary > > > ... > > > > Ido Schimmel (1): > > rtnetlink: Reject negative ifindexes in RTM_NEWLINK > > > The above commit (69197b2 rtnetlink: Reject negative ifindexes in RTM_NEWLINK) > appears to has been applied icorrectly, causing some regressions (like attaching > a VF to a running guest). The change needs to be made in rtnl_newlink(), not > rtnl_setlink(). > > I didn't check all other branches but at least 5.4 looks OK. > > I believe 69197b2 needs to be reverted and instead this applied: > > diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c > index a76f3024..f4b98f7 100644 > --- a/net/core/rtnetlink.c > +++ b/net/core/rtnetlink.c > @@ -2547,9 +2547,12 @@ static int rtnl_newlink(struct sk_buff *skb, struct nlmsghdr *nlh, > ifname[0] = '\0'; > > ifm = nlmsg_data(nlh); > - if (ifm->ifi_index > 0) > + if (ifm->ifi_index > 0) { > dev = __dev_get_by_index(net, ifm->ifi_index); > - else { > + } else if (ifm->ifi_index < 0) { > + NL_SET_ERR_MSG(extack, "ifindex can't be negative"); > + return -EINVAL; > + } else { > if (ifname[0]) > dev = __dev_get_by_name(net, ifname); > else > > Ick, good catch! 4.19 also looks wrong, let me go revert the original and then use this version again instead, many thanks for this! greg k-h