Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2196886pxb; Thu, 3 Feb 2022 01:11:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJyT6viqU5adGm1Y64kvzsH7gZaUcxv+tq+5WfElgwyh0R9sH963GijxfuaZ/wmsfRo6epll X-Received: by 2002:a17:90b:38c9:: with SMTP id nn9mr12685695pjb.47.1643879501988; Thu, 03 Feb 2022 01:11:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643879501; cv=none; d=google.com; s=arc-20160816; b=0F+f7XpmSEjXRpl3/0JSkKhgqcjNheCUJ2KWqn33yCukPMfUuFHj8R1nXHiSCGWwjG 3+xBFytnNMgD/ZKkwixDvG50ILJXk1UDcY3zYgYW4/JvBhoWM6B5IMwvt53QA3Eja1// 7IslnE8QXLYTPQnDh5SBhT89V31bbzvzv5diykCa+WFwWjGubX31XbakMF8CPnT4Lphk 3AlUI1IlUzPty/kq+o95btf9lGV0raTydcOtL8wVSzkpAo+560BwE1/5pe3dkiZ1ThzJ uKR4h9WpzsZfYgY4mJ++ey4AUhZws6/+goomFEXy8x/cPG8pDpSgQ1my7NQ98JQBmsV5 MfOA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7hhoLoWB3167Tcuipi+iS27fLceC5aGFP5z6JEU1BUo=; b=C1Fi4pqnsR9rrCol92CViEMo0/tC/xLsFJEncR/YQxBg4rbj1CYWHRHxCBNBsrIEHC fva3w1IdxcLbIhgZa2WCr4ZOUfDU6Y4KBpde7y3OHkBb31r8dMo3VhJoUTXmnpIOJ5Sm hTh89DyHRX6SLP67MtahZwpya+OjgFQUx2TZYz+bWOTCVXCQRfJN14QaB0Iz0GrKEd8c +B7koVHHq186aN2WSj3UyGWZF92n7V7w36CdQO8MKHI/sqh3ExNLzO0JkkaEq4EQpCLk kKHsqvMl+94m4zHpwJUOwLac/79x4onBTZPgMtunSSJTsamTCR1a5Ky9X4IUBfigf1mc LeAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZvIQWR7c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h3si23474764plf.203.2022.02.03.01.11.30; Thu, 03 Feb 2022 01:11:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZvIQWR7c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S236729AbiBAKh7 (ORCPT + 99 others); Tue, 1 Feb 2022 05:37:59 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:35874 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236659AbiBAKh6 (ORCPT ); Tue, 1 Feb 2022 05:37:58 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6A3BCB82D3C; Tue, 1 Feb 2022 10:37:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C638C340EB; Tue, 1 Feb 2022 10:37:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643711876; bh=nKxNaUeQErOIc7FxwwtPqOK2b0nKk8hQDKK4nb9Z714=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZvIQWR7cyO8y5+xGyW2wrbS0C2HzJRb+Q1BSyYuaI7fhltrKGYAR6AkQetgsDfMfe OO0G0t8CMsIKs1fsqHn61UEn26xSQyvWz7STa6QsmHl2tS8ulqQvo5Y8DleQ5bUd8E pyI2hLpyxgAz2iTlM2pnTxwk54RCeNNSovqEuvyY= Date: Tue, 1 Feb 2022 11:37:53 +0100 From: Greg Kroah-Hartman To: Colin Foster Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Toke =?iso-8859-1?Q?H=F8iland-J=F8rgensen?= , Jesper Dangaard Brouer , "David S. Miller" , Sasha Levin Subject: Re: [PATCH 5.10 089/100] net: cpsw: Properly initialise struct page_pool_params Message-ID: References: <20220131105220.424085452@linuxfoundation.org> <20220131105223.452077670@linuxfoundation.org> <20220131201909.GA16820@COLIN-DESKTOP1.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220131201909.GA16820@COLIN-DESKTOP1.localdomain> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 31, 2022 at 12:19:09PM -0800, Colin Foster wrote: > On Mon, Jan 31, 2022 at 11:56:50AM +0100, Greg Kroah-Hartman wrote: > > From: Toke H?iland-J?rgensen > > > > [ Upstream commit c63003e3d99761afb280add3b30de1cf30fa522b ] > > > > The cpsw driver didn't properly initialise the struct page_pool_params > > before calling page_pool_create(), which leads to crashes after the struct > > has been expanded with new parameters. > > > > The second Fixes tag below is where the buggy code was introduced, but > > because the code was moved around this patch will only apply on top of the > > commit in the first Fixes tag. > > > > Fixes: c5013ac1dd0e ("net: ethernet: ti: cpsw: move set of common functions in cpsw_priv") > > Fixes: 9ed4050c0d75 ("net: ethernet: ti: cpsw: add XDP support") > > In 5.4 every parameter is individually initialized, so there really > isn't a "bug" necessarily. Only at commit e68bc75691cc does it actually > start not initializing every parameter. > > https://elixir.bootlin.com/linux/v5.4.175/source/drivers/net/ethernet/ti/cpsw.c#L558 > > I'm not familiar with the process of backporting fixes to stable yet. Is > there any benefit in this cleanup for 5.4 or is it fine to leave it? Let's be safe and leave it. thanks, greg k-h