Messages in this thread |  | | From | Dawson Engler <> | | Subject | Re: checker suggestion | | Date | Sat, 9 Jun 2001 19:04:28 -0700 (PDT) |
| |
> 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/
|  |