Skip to contentSkip to conversation

2.6 must-fix list - kernel error reporting

RFC PATCH Andi Kleen 1 participant 1 message Jul 8, 2003 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

Andi Kleen

author
#2 lore raw
Quoted 4 lines · Andrew Morton

The layout of `struct kern_log_entry' may be problematic. Think of the situation where a 64-bit kernel constructs one of these and sends it up to 32-bit userspace. Will the structure layout be the same under the 32-bit compiler as under the 64-bit one?

No it won't. Best is to order the fields by size (arrays ordered by their subtype). This should always give compatible alignment.

-Andi