[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <401RHG6psmz9sVP@ozlabs.org>
Date: Wed, 14 Mar 2018 20:28:33 +1100 (AEDT)
From: Michael Ellerman <patch-notifications@...erman.id.au>
To: Vaibhav Jain <vaibhav@...ux.vnet.ibm.com>,
Balbir Singh <bsingharora@...il.com>
Cc: Vaibhav Jain <vaibhav@...ux.vnet.ibm.com>,
Frederic Barrat <fbarrat@...ux.vnet.ibm.com>,
linux-kernel@...r.kernel.org, Paul Mackerras <paulus@...ba.org>,
Nicholas Piggin <npiggin@...il.com>,
Douglas Miller <dougmill@...ux.vnet.ibm.com>,
linuxppc-dev@...ts.ozlabs.org
Subject: Re: xmon: Clear all breakpoints when xmon is disabled via debugfs
On Sun, 2018-03-04 at 17:31:32 UTC, Vaibhav Jain wrote:
> Presently when xmon is disabled by debugfs any existing
> instruction/data-access breakpoints set are not disabled. This may
> lead to kernel oops when those breakpoints are hit as the necessary
> debugger hooks aren't installed.
>
> Hence this patch introduces a new function named clear_all_bpt()
> which is called when xmon is disabled via debugfs. The function will
> unpatch/clear all the trap and ciabr/dab based breakpoints.
>
> Signed-off-by: Vaibhav Jain <vaibhav@...ux.vnet.ibm.com>
> Reviewed-by: Balbir Singh <bsingharora@...il.com>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/1ff3b404019adf9d605224e1dce067
cheers
Powered by blists - more mailing lists