Received: by 10.223.185.116 with SMTP id b49csp1266236wrg; Wed, 21 Feb 2018 15:26:16 -0800 (PST) X-Google-Smtp-Source: AH8x225NDEjfUhTwm1/hzZFOrdZ6h6NRsK+BglBJDfg1k0I2/kyuntfr7Pd2CfhAFBKD7alq8gqq X-Received: by 10.99.155.1 with SMTP id r1mr4093333pgd.422.1519255576825; Wed, 21 Feb 2018 15:26:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519255576; cv=none; d=google.com; s=arc-20160816; b=KwBJlWB2TG/zOEZjilB04jIZcgpvFrU3vfYJjQiBFI8mUi8ss2MGJivzm3Z8hRe4kb U2jBfWAtL9MsBCo5/ST6ZpRfrRueRlgfjC/mIzAtBgkzaV5Q9y7pAO1l9+eou5Sq2clT Y8K/V4Be+AUAwzREa1ywBMxHE+G/R75qPXLhhliwWpXVBq0Egb6wjjg0QpJHKXKa52e4 nSY86HL6Sc5gkxNZVJn6tGyM2hNB54H8Shrq/5Cv0mZyl6R7dQCkm9jPSPvHII84T6u7 k9uHrekG5ntpomH1iWLNCUj1pjK5p5rJ9Pxwykz1oB7fVroefcnIMAQYrSor9C+6T9JZ n08Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=xt/QNjbn3FM2KIZamwCl6Of0+KVL6Rg38h7I8uED/Yk=; b=uRqtOlfnJsMJzBZuxWMj6wzvIdbWHLVhCQNhYTJufmVKOgEOKTT1EsVqZOzYO+8LQS duWQfhHVzP/Co06KYZt6NTK6t1MLl3JW9HFdoHBN/wfNdIhLjvmtzbtkZnfHEuTC8nlC URKMcXd/fMfcg76AOfBFFzVWMvVrg+ZQu/M2JLyoLhkTrJ9lzsw2El8GwISJx/m6ttky CtxO0Bb2O3iHkWbxaY7Dts+n/adm49IvQ0YcjThkIe85SXSldkMaq62JiHMfelTyXdnE iB29vPaVYJsW7bi0fhZs5ZxpgoeYs4kOmlt6oDpWUzw/9Yt1IEvEmV1h5ASTA+HfjQk0 5cyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=sKhv23yJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g17-v6si12723777plo.357.2018.02.21.15.26.02; Wed, 21 Feb 2018 15:26:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=sKhv23yJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751406AbeBUXYi (ORCPT + 99 others); Wed, 21 Feb 2018 18:24:38 -0500 Received: from mail-io0-f195.google.com ([209.85.223.195]:43249 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751104AbeBUXYg (ORCPT ); Wed, 21 Feb 2018 18:24:36 -0500 Received: by mail-io0-f195.google.com with SMTP id l12so3970565ioc.10; Wed, 21 Feb 2018 15:24:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=xt/QNjbn3FM2KIZamwCl6Of0+KVL6Rg38h7I8uED/Yk=; b=sKhv23yJAJjVR649dY/DvKZWewjlBE0UnBsC3ehcBzSWecqhqc34DVw7WKriCcjlFk t/n/Xu5ZMag1g8mPiA8E/1y156xVZJYxCFbgTkY2f0kYZsdSHJOmkCN0XzzqpO8RGXSY 0Pqnm7SOjvZ0zEqpTKHlY5FSRp/dQQv8RDpPV5Kr9XuImCDK1ckDLqvfYOxtSHPW7xEA eM41Ku03X58Bc+fvmgXgJ4QMwb2EDzmVzey/ToKvb/nDZ4bD2lsK2ZCFfJQpvzuo1Rfa 4J1XG7gw2vYgr6MeFZ6srkMNbXCJLPP7zjHHdBDUUZ3dvaf6siM5cJEQsjXAHnXFutw9 fVdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=xt/QNjbn3FM2KIZamwCl6Of0+KVL6Rg38h7I8uED/Yk=; b=m63EEXgkqPHfVFdER7LU/5oTfzw9ARPFYZkQztvdXnL/xhNg7PX5Zz7WRF6Eli+okT tbIWYuYEm51YWUBSaoHhSAsLtFEVDAKSUAPNmsXdQA2yRnsaCULuZ8wKJ4vs2SFuzslj MhIAj0hxCsDRXAx9PJfIkT9hNoCO/w16jwbC2suj26tx9a9PowMdM4a4k8u4OBHKFHPa I2T02rFOWX8oZT2NzPIUCm9uU9Jawiq9tc1J/45OL3s57tVZhUmi9W+9Kf/wXNu/5tYm mtF9wL+9bqy0APp2U2Tj3wTfQcGB5HjbWVBWFgmkxjDVPi/sqjP37jB20ZD3NS3ypcQR q1tw== X-Gm-Message-State: APf1xPC9X1AElaoQ0HZVGCp3laBqfvW5rXBCFYnGOMlzQoQsWoDILD2I 3CVYc/NsOA1p1SpPUEGpLJxw7TotzsvH4YUVfAXSdqel X-Received: by 10.107.12.213 with SMTP id 82mr6341360iom.48.1519255476093; Wed, 21 Feb 2018 15:24:36 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.135.221 with HTTP; Wed, 21 Feb 2018 15:24:35 -0800 (PST) In-Reply-To: References: <6be06ce5-87e6-0d9d-55b9-6c70c3578ecf@maciej.szmigiero.name> From: Linus Torvalds Date: Wed, 21 Feb 2018 15:24:35 -0800 X-Google-Sender-Auth: JROn-6c4Q6G7KBAnFKw6kBqFC4M Message-ID: Subject: Re: RANDSTRUCT structs need linux/compiler_types.h (Was: [nfsd4] potentially hardware breaking regression in 4.14-rc and 4.13.11) To: Kees Cook Cc: "Maciej S. Szmigiero" , Patrick McLean , Emese Revfy , Al Viro , Bruce Fields , "Darrick J. Wong" , Linux Kernel Mailing List , Linux NFS Mailing List , Thorsten Leemhuis , "kernel-hardening@lists.openwall.com" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 21, 2018 at 2:52 PM, Kees Cook wrote: > > I'll play with Linus's suggestion and see what we get. It may be just as well to just include from and be done with it. If you look at that hacky script I documented in commit 23c35f48f5fb ("pinctrl: remove include file from ") and run it in a fully built kernel tree, you'll see that that header is included from pretty much every single file anyway. At least for me, for an allmodconfig build, the top headers are 23322 arch/x86/include/uapi/asm/types.h 23322 include/asm-generic/int-ll64.h 23322 include/linux/types.h 23322 include/uapi/asm-generic/int-ll64.h 23322 include/uapi/asm-generic/types.h 23322 include/uapi/linux/types.h 23323 arch/x86/include/uapi/asm/bitsperlong.h 23323 include/asm-generic/bitsperlong.h 23323 include/uapi/asm-generic/bitsperlong.h 23326 include/linux/stringify.h 23390 include/linux/compiler_types.h and considering that I have 25949 object files in that tree, it really means that just about every compile ended up including that file anyway (yeah, the "orc_types.h" header ends up being mentioned twice for most files, so it looks even more hot, but that's not real data). I do hate including unnecessary stuff because it makes builds slower, but kernel header files probably don't get much more core than . Linus