Re: [discuss] [OOPS] powernow on smp dual core amd64

From: Andi Kleen
Date: Fri Jun 10 2005 - 15:03:09 EST


On Fri, Jun 10, 2005 at 02:48:58PM -0500, Langsdorf, Mark wrote:
> It looks like the crash is caused by an invalid
> pointer dereference in
> query_current_values_with_pending_wait(), which
> implies that powernowk8_get() was called with an
> invalid CPU number.
>
> Andi, what will happen if you do
> set_cpus_allowed(current, cpumask_of_cpu(cpu)) when
> cpu isn't in the range of online CPUs? There's

It just returns with -EINVAL.

Also it really shouldnt happen.

> supposed to be a check to prevent an invalid
> pointer access from happening but it's failing for
> some reason.
-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/