This precise case of oops, was one that could be bitten by more than one
out_of_line_bug in the same function, copy_page_range. I found the
problem by re-reading the source code, certainly not by looking at the C
line where the out_of_line_bug was.
> There are only ten or fifteen out_of_line_bug()s. We just happened
> to hit one here. They were added by a process of peering at the
> kernel image and asking "why does the same string appear 120 times?".
The string duplication is ugly, but dropping the bug line is even
uglier. For embedded systems there was just a "turn off the strings"
compile time switch, for embedded systems the other strings matters as
well.
> Yeah, it's all a bit sad. It's a workaround for a toolchain shortcoming,
> and it does save 100 to 200 kbytes. If I'd been smarter I'd have
> passed __LINE__ into out_of_line_bug(). It's only the string which
> is a problem.
that would been much better indeed, the probability of a line collision
in a non obvious place is very low and a push on the stack before
calling the extern function won't grow the size of the kernel image
significantly.
> There is a sneaky new featurette, btw. We sometimes see BUG
> reports where the reporter failed to report the file-and-line.
> But it's still available in the oops record:
>
> Code: 0f 0b c2 05 d8 36 92 f0 83 c4 14 5b 5e 5f 5d c3 8d 76 00 8d
> ^^^^^
Cute, I'll sure make use of this featurette in the future :). (offtopic
with the out-of-line bug though, it still doesn't help there)
Andrea
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/