From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out30-130.freemail.mail.aliyun.com (out30-130.freemail.mail.aliyun.com [115.124.30.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 52E7A2BF3F4 for ; Wed, 24 Jun 2026 11:12:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782299549; cv=none; b=Xv3A0psrKUNWv/Lac12B8Le8sZjmIrhzLXJmSUEI+I0Flx6DQXDcK2FtUIzeaHvQJEKScQCVvbim/aMomgUNVHgHhmJc+OkyQcXFUmUg5qnHKj0m4R6tEk9KuNhdVCym0e+rmBEOhwSe/uc1infmooNRkr1UzdY6mYIa+IIug4I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782299549; c=relaxed/simple; bh=Cdnz9JC7vrQDqpBksoA1FOIDrnvspcOgB3rgQKSBeoM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=N/AbqUvjpCa8tOmXql6HTgfvhwUA9/Ce0mIcadP8qJI2vKzCCH6fOO1iaX3aSQxBTi1gQetb7hV7Ld8IgcRAPjIZcDB/UuNPY1Eq08kCmeeqiNZWPA+QQ373/Q5g9y7ap8q4dpts3yPmYUR3+ypDWvclmV8rLzqvPGPx95YAMU0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=LgYQMnP2; arc=none smtp.client-ip=115.124.30.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="LgYQMnP2" DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1782299537; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type; bh=smducqFMVHyBKYOoTEI3y3UCWxxjKXtvz/VJqVHFGlU=; b=LgYQMnP2jPA2cCjPuF10C+GII1DnxXCzmNFibpoVOHO9I0yznW3wduCQFljCY/CYTyKnvFlsNl1RTgBs/J+M5zneznlmoUNJs/H0HTGTHhSeuGQOJa1l9H3nNSq2nUASJXlVdsrwhYcGiA+NCy07115wQ/5t7xg5pdm7+8BpwyY= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R881e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033045133197;MF=feng.tang@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0X5Y-ClX_1782299536; Received: from localhost(mailfrom:feng.tang@linux.alibaba.com fp:SMTPD_---0X5Y-ClX_1782299536 cluster:ay36) by smtp.aliyun-inc.com; Wed, 24 Jun 2026 19:12:16 +0800 Date: Wed, 24 Jun 2026 19:12:15 +0800 From: Feng Tang To: Thomas Gleixner Cc: "David Hildenbrand (Arm)" , Andrew Morton , Petr Mladek , Steven Rostedt , paulmck@kernel.org, Douglas Anderson , Peter Zijlstra , Vlastimil Babka , linux-kernel@vger.kernel.org, Ard Biesheuvel Subject: Re: [PATCH v1] kernel: add a simple timer based software watchpoint Message-ID: References: <20260622081430.37557-1-feng.tang@linux.alibaba.com> <0c39c459-306f-49f5-b08e-e7b9b27b6352@kernel.org> <87a4skl36t.ffs@fw13> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87a4skl36t.ffs@fw13> Hi Thomas, Thanks for reviewing this! On Wed, Jun 24, 2026 at 11:04:26AM +0200, Thomas Gleixner wrote: > On Tue, Jun 23 2026 at 16:26, Feng Tang wrote: > > On Mon, Jun 22, 2026 at 04:13:37PM +0200, David Hildenbrand (Arm) wrote: > > As discussed in RFC patch review, this debug feature is similar to > > soft/hard lockup detector and task-hung detector, should I make the control > > How is this very specialized ad hoc debug magic in any way similar to > generally useful and just working debug mechanism like the lockup or > hung detector? Those are just turned on, do not need a boatload of > command line parameters and are generally useful. That's right. They are very useful and easy to use, as a big part of my time is dealing with all kinds of lockup/task-hung bugs :) > Your debug magic is a workaround for a disfunctional hardware debugger, > which means it's going to be used by three people twice a year if at > all. Seriously? The HW debugger is a Lautebach TRACE32 one, and may not be disfunctional, as it works well for watchpoint virtual address and other daily job. My own guess is that it can only see virtual address and doesn't have the ability to do the virtual to physical address translation instantly to watch a _physical_ address. So I guess, not able to watchpoint a physical address may be common for HW debuggers (I could be very wrong). As in https://lore.kernel.org/lkml/ajkuf08Cj0Se4P_0@U-2FWC9VHC-2323.local/, we also used this method to solve one issue that BIOS runtime service corrupting ACPI_ENABLE register issue. Then I tried to recall some old memory corruption issues I've met before, and think about if there is some that could be captured by this method, one example was a static global array overflow issue, which corrupted some other global variables which was next to it in kernel bss segment. But yes, as you pointed out, the frequency is low (all of the 3 happened in the past 6 months) for myself. And my wild guess is there could be other developers that meet similar issues :) Thanks, Feng > Thanks, > > tglx > >