[PATCH 4/5] x86/mm/ftrace: Do not bug in early boot on irqs_disabled in cpu_flush_range()

2017-05-26 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" With function tracing starting in early bootup and having its trampoline pages being read only, a bug triggered with the following: kernel BUG at arch/x86/mm/pageattr.c:189! invalid opcode: [#1] SMP Modules linked in: CPU: 0 PID: 0 Comm:

[PATCH 4/5] x86/mm/ftrace: Do not bug in early boot on irqs_disabled in cpu_flush_range()

2017-05-26 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" With function tracing starting in early bootup and having its trampoline pages being read only, a bug triggered with the following: kernel BUG at arch/x86/mm/pageattr.c:189! invalid opcode: [#1] SMP Modules linked in: CPU: 0 PID: 0 Comm: swapper Not tainted