On 18 October 2017 at 08:15, Christoph Hellwig <hch@xxxxxxxxxxxxx> wrote: > On Mon, Oct 16, 2017 at 10:37:34PM +0100, Sami Kerola wrote: >> This ensures value is blanked. It is possible compiler optimization removed >> earlier uuid_clear() calls as unnecessary if value was not used after clear. > > Can you explain the logic behind this a bit more? If no one uses the > uuid later it doesn't matter if we cleared it or not. When value is not used compiler might deside to remove such clearning altogether. To me uuid_clear() is promise that the value disappears, and that is what the function should do. Who knows, maybe someone uses uuids to something sensitive that must be cleared not to leak secrets. In that sort of context one really hopes promise of clearing is kept. -- Sami Kerola http://www.iki.fi/kerolasa/ -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html