Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1013304pxb; Thu, 25 Feb 2021 23:35:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJy54HdxZQVKbrqtTw+tlkgqdcIgaLLA7VmVpm7f0I0xR+a/BFnz+Ud07WniRaLKnUnK2Lx4 X-Received: by 2002:a17:906:1712:: with SMTP id c18mr1849372eje.417.1614324952052; Thu, 25 Feb 2021 23:35:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614324952; cv=none; d=google.com; s=arc-20160816; b=ny4+BqTagWbU7FcoIuj0bGntMkOtZi7vwQ9VxJ8C1EpC5xmhA7nlcw5JY9OHx5PUAr a/2eybhe5+S+H2eNkvJ4vtPpvsP9UgZnfdbgKYhRTwllQMEWhSmQBgz6POYgziGO/jdd WtQcIYflbUvkpPjwGCWGWOHuiepeYUJZhtpOCK9+yjDuR3TkyNRJvu2TBfm9Lk1Eehiv p9K8zYUhNo2tg8eH7T33X+PtS/bWx3vvZ7Bd6CJsQb1K+WMCyLmSyktTiVoPrlbwAsDe se5B6UZ+cgXtckXvxYpgG5WMi6v225n4QvpNmvGxdDuAd2PjZqhcI2jf+KiDtom+OAsW 4QhQ== 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=P5PHiJdNJvSaVog57JoWS6h3CMhJEkJY/txRDKuNLho=; b=pumBa1julJNK8TCC7BAB0xoMu8suQU+qTUyDYMTH/COHLwOQdJ3G0mR3g8VR6Xo9bT l7XYGbS/R/8uIYMvgjkM6DswCqe0UCo+IResYkq79rt4RL1nYD4ktTvHLIZoAPV5CMAB LSkuxmlLwRxg52BiNLJO7TnitrZAlzrM3ni0nqetx8MyNweG5gj+iqTWxnp/tqL3I4i8 zQHoiJYmZwhXsCya5oQMNeTnLLZmA8YIBlC7/E521wq0c/0w39mu0UEFqCDcSzvGsOCS y9FF67AoC2nkD8rdbDAtiyNnwO4eSMMzTIvwVNKv2/U4mXoMmANLFlAS7JhVnok/O1Sx LYJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="kyTVO/5z"; 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 dn6si2214012edb.210.2021.02.25.23.35.29; Thu, 25 Feb 2021 23:35:52 -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="kyTVO/5z"; 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 S230081AbhBZHcY (ORCPT + 99 others); Fri, 26 Feb 2021 02:32:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:43518 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229590AbhBZHcX (ORCPT ); Fri, 26 Feb 2021 02:32:23 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3766A64ED3; Fri, 26 Feb 2021 07:31:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614324702; bh=ND2aNeSDF+CdZU//MneX68fHcP77aarQea98G/sjog8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kyTVO/5zoV3mCcbKZbeXmldvDRSAWZfPiUe27bW63bx306jI3XR4sLsfLkzbdwxIX dShMl/9mAMELUcii6lq8l3MgeKRu5uZjzVAqUurR0Mz2a8GpaNMH6U2CvFQSaq4AoV hTeDK0LeCDH5mt+3MWxHjJtPd1gWo9nS+mh/+2sQ= Date: Fri, 26 Feb 2021 08:31:39 +0100 From: Greg KH To: Sumit Garg Cc: Daniel Thompson , kgdb-bugreport@lists.sourceforge.net, Andrew Morton , Masami Hiramatsu , Steven Rostedt , Jason Wessel , Douglas Anderson , Peter Zijlstra , stefan.saecherl@fau.de, qy15sije@cip.cs.fau.de, Linux Kernel Mailing List , stable Subject: Re: [PATCH] kgdb: Fix to kill breakpoints on initmem after boot Message-ID: References: <20210224081652.587785-1-sumit.garg@linaro.org> <20210225155607.634snzzq3w62kpkn@maple.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 26, 2021 at 12:32:07PM +0530, Sumit Garg wrote: > + stable ML > > On Thu, 25 Feb 2021 at 21:26, Daniel Thompson > wrote: > > > > On Wed, Feb 24, 2021 at 01:46:52PM +0530, Sumit Garg wrote: > > > Currently breakpoints in kernel .init.text section are not handled > > > correctly while allowing to remove them even after corresponding pages > > > have been freed. > > > > > > Fix it via killing .init.text section breakpoints just prior to initmem > > > pages being freed. > > > > > > Suggested-by: Doug Anderson > > > Signed-off-by: Sumit Garg > > > > I saw Andrew has picked this one up. That's ok for me: > > Acked-by: Daniel Thompson > > > > I already enriched kgdbtest to cover this (and they pass) so I guess > > this is also: > > Tested-by: Daniel Thompson > > > > Thanks Daniel. > > > BTW this is not Cc:ed to stable and I do wonder if it crosses the > > threshold to be considered a fix rather than a feature. Normally I > > consider adding safety rails for kgdb to be a new feature but, in this > > case, the problem would easily ensnare an inexperienced developer who is > > doing nothing more than debugging their own driver (assuming they > > correctly marked their probe function as .init) so I think this weighs > > in favour of being a fix. > > > > Makes sense, Cc:ed stable. This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly.