Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp916719ybf; Fri, 28 Feb 2020 10:05:50 -0800 (PST) X-Google-Smtp-Source: APXvYqykMsyyM9PBr0KulcnowjfH6TluD4/osn/Fxm7ia+ND2XJb0gGUT6rVX+831LzGhKApZghs X-Received: by 2002:a9d:7590:: with SMTP id s16mr4051387otk.89.1582913150172; Fri, 28 Feb 2020 10:05:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582913150; cv=none; d=google.com; s=arc-20160816; b=eCV6yUwptn9co8nUAA1V92mXj9VzuRCvT4gwjR5K8KPzO9kSkIDPsUV21q+Dl0+zZ8 qCo2/ruR3CtFeTeJNsGvQtT/qyp5wMtzuXlZBTdTqxhTqOTUBblrrouMw7xc0tTH5ThV GfgxkFSULE8n5wnBcb7NajTKK3UwbWUb5CCHKOlcqqdd+xAknfZ9sSefGRwpEEqPKCRK xmEoHs7JmWbJLrf/ZbX1ULGj/NoOocrYr07GqPbq/Re7EKZb3p5pLTHhSfMlhZcR1lQZ RsbsFJF1vTG11ub+dENe7SwI7YgrAgkPR4skgUFtdTg4eA3+dN6Eda5YmM70N8vEwyRa DUPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=kmMnJF3joMD1N0D1a+Cxrbqr7B8XgupFBw+EszPRmsY=; b=AQw2uZ/GGTqBiiUKl9J6uwKtoDEXnCI4O8oci00pIedEOzAlD5egwjwIg8QJzb2Ne2 eXrDSWJ1q2m06qf0brs+7ZodU8fm5muY4U4EqBqHW55DPl19m43atTm+WM6IW+AZyHhA FGrFh48P7Hgxf68tFoq19E/ouLzwPKiwW3kp+NjfKABiQN2oIUZPQDo8KnKSgT6vTbTO xyyErAU/lR31UIdnnfuDSn8TfqFecQGSDi+HuNE15hpWku7jSztctPqV0bIZhAePRzeC PA77AUtjo6ZFGB1C1w0u5p1B/i1VfPOsn0+J//w0GkzeUYYIu7q+wToYBuGqRzzi7T2s r0KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jQc71ieb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n2si2090934otk.177.2020.02.28.10.05.37; Fri, 28 Feb 2020 10:05:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jQc71ieb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726901AbgB1SFU (ORCPT + 99 others); Fri, 28 Feb 2020 13:05:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:57148 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726277AbgB1SFU (ORCPT ); Fri, 28 Feb 2020 13:05:20 -0500 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 46B88246AC; Fri, 28 Feb 2020 18:05:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582913119; bh=z4ICRfhyOxiRQX3i97/zE8kLkSh+ENDPFY6BQJNtGjc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jQc71ieby3SbISld+4GPOZvV7VLQ4TaHeVnnd81/DwSqbVd3rV6M35QxfbJRzAUGQ MouGViQ137aYuVtjnS4MpY67R0umTHFNd04vC2SYa4G5zpPpj+inLNaEFELgDAfkMZ WffjGay52oi+5sKJ+6P/bg7wOXcffmyoFhSqY+XY= Date: Fri, 28 Feb 2020 13:05:18 -0500 From: Sasha Levin To: Greg Kroah-Hartman Cc: Pavel Machek , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Miles Chen , Thomas Gleixner Subject: Re: [PATCH 4.19 60/97] lib/stackdepot: Fix outdated comments Message-ID: <20200228180518.GA21491@sasha-vm> References: <20200227132214.553656188@linuxfoundation.org> <20200227132224.337663006@linuxfoundation.org> <20200228130532.GA2979@duo.ucw.cz> <20200228132455.GA3021902@kroah.com> <20200228133036.GB3021902@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20200228133036.GB3021902@kroah.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 28, 2020 at 02:30:36PM +0100, Greg Kroah-Hartman wrote: >On Fri, Feb 28, 2020 at 02:24:55PM +0100, Greg Kroah-Hartman wrote: >> On Fri, Feb 28, 2020 at 02:05:33PM +0100, Pavel Machek wrote: >> > Hi! >> > >> > > [ Upstream commit ee050dc83bc326ad5ef8ee93bca344819371e7a5 ] >> > > >> > > Replace "depot_save_stack" with "stack_depot_save" in code comments because >> > > depot_save_stack() was replaced in commit c0cfc337264c ("lib/stackdepot: >> > > Provide functions which operate on plain storage arrays") and removed in >> > > commit 56d8f079c51a ("lib/stackdepot: Remove obsolete functions") >> > >> > This is wrong. >> > >> > > +++ b/lib/stackdepot.c >> > > @@ -96,7 +96,7 @@ static bool init_stack_slab(void **prealloc) >> > > stack_slabs[depot_index + 1] = *prealloc; >> > > /* >> > > * This smp_store_release pairs with smp_load_acquire() from >> > > - * |next_slab_inited| above and in depot_save_stack(). >> > > + * |next_slab_inited| above and in stack_depot_save(). >> > > */ >> > > smp_store_release(&next_slab_inited, 1); >> > > } >> > >> > May have been outdated for mainline, but they are actually okay for >> > 4.19. >> >> Good catch, I'll go drop this from the stable queues (4.14, 4.9, and 4.19). > >Ah, nope, this patch is needed for the "real" patch here, 305e519ce48e >("lib/stackdepot.c: fix global out-of-bounds in stack_slabs") > >Hm, it's not that big of a deal, I'll go fix that up by hand... > >But that explains why it is included here. I replied on the "FAILED:" email explaining why I took it even though it's wrong: Technically the comment change is wrong as the commit it addresses is older, but no one should be coding against the stable tree, and doing it by changing 305e519ce48e would cause merge conflicts in the future. -- Thanks, Sasha