From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966881AbdACX4z (ORCPT ); Tue, 3 Jan 2017 18:56:55 -0500 Received: from mail-yw0-f194.google.com ([209.85.161.194]:33525 "EHLO mail-yw0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966873AbdACX4l (ORCPT ); Tue, 3 Jan 2017 18:56:41 -0500 MIME-Version: 1.0 In-Reply-To: References: <20161217010045.GA140343@beast> <1482254995.1984.20.camel@perches.com> From: Bruce Korb Date: Tue, 3 Jan 2017 15:55:59 -0800 Message-ID: Subject: Re: Designated initializers, struct randomization and addressing? To: Kees Cook Cc: Joe Perches , LKML , Julia Lawall , Dan Carpenter , Oleg Drokin , Andreas Dilger , James Simmons , Greg Kroah-Hartman , "John L. Hammond" , Emoly Liu , Vitaly Fertman , Bruno Faccini , devel@driverdev.osuosl.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As a tangential party, I am a bit curious: does the randomization plugin result in a compact structure? I ask because I know many/most programmers don't bother with it and so doing so ought to make the data more compact. On Tue, Jan 3, 2017 at 3:47 PM, Kees Cook wrote: >> how is the code to be verified so that >> any use of things like offsetof and any >> address/indexing is not impacted?