aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorMasami Hiramatsu <[email protected]>2019-06-03 22:04:42 +0900
committerSteven Rostedt (VMware) <[email protected]>2019-07-16 15:13:45 -0400
commit65fc965c708c90b8c8b2cea980db0618333dd7fe (patch)
tree38b64d0ea1a67e1bde1328cf938e9d0070e62f5e /net/lapb/lapb_subr.c
parentf0553dcb9778c343641d3a41f1db01be02e7551b (diff)
kprobes: Fix to init kprobes in subsys_initcall
Since arm64 kernel initializes breakpoint trap vector in arch_initcall(), initializing kprobe (and run smoke test) in postcore_initcall() causes a kernel panic. To fix this issue, move the kprobe initialization in subsys_initcall() (which is called right afer the arch_initcall). In-kernel kprobe users (ftrace and bpf) are using fs_initcall() which is called after subsys_initcall(), so this shouldn't cause more problem. Link: http://lkml.kernel.org/r/155956708268.12228.10363800793132214198.stgit@devnote2 Link: http://lkml.kernel.org/r/[email protected] Reported-by: Anders Roxell <[email protected]> Fixes: b5f8b32c93b2 ("kprobes: Initialize kprobes at postcore_initcall") Tested-by: Anders Roxell <[email protected]> Tested-by: Mark Rutland <[email protected]> Signed-off-by: Masami Hiramatsu <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions