https://github.com/torvalds/linux
Revision d54ce6158e354f5358a547b96299ecd7f3725393 authored by Sumit Garg on 26 February 2021, 01:22:38 UTC, committed by Linus Torvalds on 26 February 2021, 17:41:05 UTC
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.

Doug: "HW breakpoints aren't handled by this patch but it's probably
not such a big deal".

Link: https://lkml.kernel.org/r/20210224081652.587785-1-sumit.garg@linaro.org
Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
Suggested-by: Doug Anderson <dianders@chromium.org>
Acked-by: Doug Anderson <dianders@chromium.org>
Acked-by: Daniel Thompson <daniel.thompson@linaro.org>
Tested-by: Daniel Thompson <daniel.thompson@linaro.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Steven Rostedt (VMware) <rostedt@goodmis.org>
Cc: Jason Wessel <jason.wessel@windriver.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent db7fbf4
Raw File
Tip revision: d54ce6158e354f5358a547b96299ecd7f3725393 authored by Sumit Garg on 26 February 2021, 01:22:38 UTC
kgdb: fix to kill breakpoints on initmem after boot
Tip revision: d54ce61
.cocciconfig
[spatch]
	options = --timeout 200
	options = --use-gitgrep
back to top