Re: 3.13: BUG: unable to handle kernel paging request at 00000000b4343e88

From: H. Peter Anvin
Date: Wed Feb 05 2014 - 12:36:29 EST


On 02/05/2014 09:00 AM, Peter Oberparleiter wrote:
>
> Could you give this patch a try? It is a variation of the approach
> proposed in the discussion mentioned earlier and fixes the problem
> on my system.
>

I would rather suggest that we explicitly disable gcov etc. from these
kinds of small, magic primitives. Honestly, you're just trying to put a
bandaid on a gaping wound.

The real thing here is that hweight.c is not a normal C file, and we
shouldn't treat is as such. It is a constrained environment, and trying
to tack crap like gcov to it is bound to lose, simply because gcov
doesn't know the rules it has to play by.

Even with the below change, if gcov clobbers, say, %rdx we're still screwed.

-hpa

--
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/