Messages in this thread | | | From | KOSAKI Motohiro <> | Subject | Re: Query about kdump_msg hook into crash_kexec() | Date | Fri, 4 Feb 2011 15:40:07 +0900 (JST) |
| |
> >Secondly now the question of whether kdump_msg() call should be before > >crash_kexec() or not because modules might want to do lots of unreliable > >things, I am now split on that. Especially because of the fact that if > >somebody wants it probably can use kprobe to hook into crash_kexec() > >or panic() or something like that to execute its code before everything > >else. > > If kprobe is the reason, then probably we can remove lots of other > kernel API's like kmsg dumper.
Really?
On enterprise, distro kernel has CONFIG_KPROBE=y. It has both pros and cons, pros) kprobe can provide alternative hooking way therefore kmsg dump is not must. cons) even if we remove kmsg dump, we can't get full kernel control. kprobe can inject unrealiable code. It's two sides of the same coin. But, many embedded don't have kprobe feature, therefore kprobe can't be alternative of kmsg dumper.
| |