From: Milton Miller <hidden> Date: 2008-07-10 21:40:26
Hi Rusty, Ingo.
Rusty's patch [PATCH 3/3] stop_machine: use cpu mask rather than magic numbers
didn't find kernel/trace/ftrace.c in -next, causing an immediate almost NULL
pointer dereference in ftrace_dynamic_init.
Signed-off-by: Milton Miller <redacted>
From: Rusty Russell <hidden> Date: 2008-07-11 06:43:44
On Friday 11 July 2008 07:07:57 Milton Miller wrote:
Hi Rusty, Ingo.
Rusty's patch [PATCH 3/3] stop_machine: use cpu mask rather than magic
numbers didn't find kernel/trace/ftrace.c in -next, causing an immediate
almost NULL pointer dereference in ftrace_dynamic_init.
Yes, I'm switching the patches around, so it does the transition correctly.
Introduces a new stop_machine() fn with the new interface and deprecates the
old stop_machine_run(). We can remove stop_machine_run() after everyone is
switched.
Thanks,
Rusty.
Hi Rusty, Ingo.
Rusty's patch [PATCH 3/3] stop_machine: use cpu mask rather than magic
numbers didn't find kernel/trace/ftrace.c in -next, causing an
immediate almost NULL pointer dereference in ftrace_dynamic_init.
Rusty - what's going on here? Please do not change APIs like that, which
cause code to crash. Either do a compatible API change, or change it
over in a way that causes clear build failures, not crashes.
Ingo
Hi Rusty, Ingo.
Rusty's patch [PATCH 3/3] stop_machine: use cpu mask rather than magic
numbers didn't find kernel/trace/ftrace.c in -next, causing an
immediate almost NULL pointer dereference in ftrace_dynamic_init.
Rusty - what's going on here? Please do not change APIs like that,
which cause code to crash. Either do a compatible API change, or
change it over in a way that causes clear build failures, not crashes.
ah, i see it from Rusty's other reply that there's going to be another
version of this. Good :-)
Ingo
From: Rusty Russell <hidden> Date: 2008-07-11 12:34:24
On Friday 11 July 2008 17:46:03 Ingo Molnar wrote:
* Milton Miller [off-list ref] wrote:
quoted
Hi Rusty, Ingo.
Rusty's patch [PATCH 3/3] stop_machine: use cpu mask rather than magic
numbers didn't find kernel/trace/ftrace.c in -next, causing an
immediate almost NULL pointer dereference in ftrace_dynamic_init.
Rusty - what's going on here? Please do not change APIs like that, which
cause code to crash. Either do a compatible API change, or change it
over in a way that causes clear build failures, not crashes.
To be fair, I did. Unfortunately GCC only warns about passing an int to a
pointer arg, and boom.
But compatible is even better. Given the number of stop_machine_run users I
thought it unlikely that a new one would be introduced during the change. I
was wrong, so I'll do it the Right Way.
Cheers,
Rusty.