Re: checker suggestion

From: Dawson Engler (engler@csl.Stanford.EDU)
Date: Sat Jun 09 2001 - 21:04:28 EST


> Struct padding is a problem. Really, there shouldn't be any
> implicit padding. This causes:
>
> 1. security leaks when such structs are copied to userspace
> (the implicit padding is uninitialized, and so may contain
> a chunk of somebody's private key or password)
>
> 2. bloat, when struct members could be reordered to eliminate
> the need for padding

(1) is a great point. One of the first extensions in our first system
automatically reordered structure fields to minimize padding (your second
point), but we'd totally missed the security point.

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



This archive was generated by hypermail 2b29 : Fri Jun 15 2001 - 21:00:11 EST