Received: by 10.223.185.116 with SMTP id b49csp1301501wrg; Wed, 21 Feb 2018 16:13:30 -0800 (PST) X-Google-Smtp-Source: AH8x226ChsXBmaMFljeImt4Dvcffuy8kJE/Rx2IUnWlkxY9gChZKpcua0CXSmAysmXY1VBUNzlmH X-Received: by 10.98.71.3 with SMTP id u3mr4981204pfa.219.1519258410554; Wed, 21 Feb 2018 16:13:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519258410; cv=none; d=google.com; s=arc-20160816; b=BjRP5fCxYuO+jM0Bh3NlOxnOtNr9uvTzVq73oIeajtKJR6QZM1xiPn6Xvt/OMD8lb/ AUZSQR3/xqTcVmQf/l91YjDZLuk850Is4CXnL19Qgk8F89vxe+KuMfmmCLPxRJlSaZP4 4Efa3q/PPfS+HFY+ijQcCrdrYYB8tn+jvnId7BW/b698hfEkSSy5pwzaoEQu9aattM3p e8fDBIGv7HLDXUzS3QLereSpuf3/TLaGwEANJpO1Ksn+UIcwcnh6LXaU2Z0a/sY3pLIG e4TydUG5paB4ikHaquxfUV6f7gOsMhMbZYWuqyEKkcaO+uthPo+eACcKqAxZZMjrgy7j mvIA== 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:dkim-signature :arc-authentication-results; bh=LIqqfmZLToZvVj85MdDRoSONsfyhFTQ8iaMCoTLBk+M=; b=hE019SMACWrQasZ+N28FD9VtFm6KPOhh0q1HkaSPGqDrGLJ3LD/TYuq+BePJJPaY40 qJPVduqubPsO6WZBGK6pINYGqPLv7j2gUY1vw+Hxzol2RnfGJpulAfKWa+m7TjVxOP0s 2V3YdnzvD9Rr3URq9amZkkZrAENc3cnQ9US210IhM+yvrwt7iYuOJkXLv98AsbNFbVFp 5X3R/Fsgz6GDcj1uNNfgDg2zVLFnPRzG/dVq/FNXjFbRRmbZRKM//Z1G0JgITT/kUAY0 HhyMhznwh/3M36LuIv8UeOhglkhmSHS6oZORPYoa5MhjCEdd0c0/Iog6EV/QE4U19Qfk 24Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=KOEusPSy; dkim=fail header.i=@chromium.org header.s=google header.b=jr7G0jpg; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e13si451705pgq.476.2018.02.21.16.13.15; Wed, 21 Feb 2018 16:13:30 -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=@google.com header.s=20161025 header.b=KOEusPSy; dkim=fail header.i=@chromium.org header.s=google header.b=jr7G0jpg; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751411AbeBVAMf (ORCPT + 99 others); Wed, 21 Feb 2018 19:12:35 -0500 Received: from mail-ua0-f194.google.com ([209.85.217.194]:46625 "EHLO mail-ua0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751276AbeBVAMd (ORCPT ); Wed, 21 Feb 2018 19:12:33 -0500 Received: by mail-ua0-f194.google.com with SMTP id n48so2225265uae.13 for ; Wed, 21 Feb 2018 16:12:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=LIqqfmZLToZvVj85MdDRoSONsfyhFTQ8iaMCoTLBk+M=; b=KOEusPSyaf/i+paXLVUccPswLdrJFSZP+J5vP+Qogykj4AVii8v8zkBoP/6K9aUOhs 9gDE4ubsRmwik88csgUj2EGBQ5fmgTBtMJFsN4mV6LzAh+jaYHFXHqMT2g0lclDRA7qq mAkxwd2mNyeENnm9YxXMxJpiHwFkFkBGqAFIbudohLbLo11MQwEjB1jFq9baB8Sg57E7 xkDcIpxJEKrGKVJD5FtCv/MHKZ444uOrgmqXfpmqlGYd2aMdmttk2aj+HC3Ub48zD5SG NFgMTOSH7C6Ancp2thYA/D47ut8x7G24z+/xi+GlGUMOUhxvGXfTgXAM1Prmp6JKNN6u YRvQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=LIqqfmZLToZvVj85MdDRoSONsfyhFTQ8iaMCoTLBk+M=; b=jr7G0jpg5KBC20ajQm8rFmPo804o+iId1S2k/ypI3i2WZvZN5Nrhmtz1l+M4RW5ptK obqmvaI7rAO3Jddy6NsxXUG9I0tAPdcIQ1kkcEaugcZwSJhwB9v3q8WpABOFO9pg9x8f bGeiSt7yRPuTqjp+PhfiPWtO2kMr1GmFFh8d4= 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=LIqqfmZLToZvVj85MdDRoSONsfyhFTQ8iaMCoTLBk+M=; b=doSFGNZs29mm92aalAPIOiNu9TcqAGDPV2xtp2JvSWwF4LnCGcu6rA6G/NmrvFcNBX tSeFOY1H602m3fXfHy37v1jaaw/nc1N5Wi78fHmt1zPpqxSzKsfHx+5lAAMftht4+Fc4 5tCsTkCvMlPw2XWmxePP5IXHIKLGI3XUe9Fe/C9SKu+gf8Fwf0nwqCS7Gj0mffZfqy5P Yi3rhSZVoOgMiGtu6/t/JDoVKFRr51nSkTvodLZYElGSrUHqvVxJK24qgf4I+evrr3gT FHcxEtJ5isljL3gcuoM7j+pSfKoZZBYVYyN3uuwImo476psyDKeLl0MnJrlto8xmvPCD a/DQ== X-Gm-Message-State: APf1xPDVWGYvl7szTzzNdztWJNAHKf/8t7llAP0x6QsGEGR/l521DrLU 5tkIGJf6GmalZ3mjSID2P9qwGf6iP9bmAeHtcpOZcg== X-Received: by 10.159.38.51 with SMTP id 48mr4059605uag.193.1519258350696; Wed, 21 Feb 2018 16:12:30 -0800 (PST) MIME-Version: 1.0 Received: by 10.31.242.140 with HTTP; Wed, 21 Feb 2018 16:12:29 -0800 (PST) In-Reply-To: References: <6be06ce5-87e6-0d9d-55b9-6c70c3578ecf@maciej.szmigiero.name> From: Kees Cook Date: Wed, 21 Feb 2018 16:12:29 -0800 X-Google-Sender-Auth: 3ckkiz7SMS8Neh8YNX-CZEnbJI0 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: Linus Torvalds 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 3:24 PM, Linus Torvalds wrote: > 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. Hah, yeah, that would certainly solve it too. :) > I do hate including unnecessary stuff because it makes builds slower, > but kernel header files probably don't get much more core than > . It also has the benefit of not letting it "go wrong" in the first place. (And the separate fix for nfs isn't needed...) Do you want me to send the patch for this, or do you already have it prepared? The body-fields I had prepared for the nfs were: Reported-by: Patrick McLean Reported-by: Maciej S. Szmigiero Fixes: 3859a271a003 ("randstruct: Mark various structs for randomization") -Kees -- Kees Cook Pixel Security