Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1361610imm; Thu, 23 Aug 2018 01:34:42 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxLLtef0bkJfkoY0E+S38geNxwF+orlIun/Mtgk9XbdWmUvFEsEcD5aAw9S8+WuqUmZFDTq X-Received: by 2002:a17:902:8301:: with SMTP id bd1-v6mr16154690plb.264.1535013282178; Thu, 23 Aug 2018 01:34:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535013282; cv=none; d=google.com; s=arc-20160816; b=j5cCJA2397uFYjsQpQeyRKLPNCtcJXaAowLMiuvjxDOAEtEWWfy1jowcC+bH6WgrAu 76RwvejZBQt9tcmv0tQdt+7kT3ZzEZk2PJyvcx9982Fe9EgjJxfL7cdjRo3Amykc3WUj qZr0Cbu5X46QS/XGJdNN30ozBej4mhWkI8qZ7KoBDbH1ERtI0qSSWVB4r81lVRtwVsBE qDmDfEir8jTMJZ/fyfjL4ve93u2G05pdFKXgyzusiQMaFjJcxYyVgu13pJZF2zlB9rTI IkSS9uo2qILb/CLQcK99p/foaShxbud5lVBIlDzUgEKByyayc0QgmUS5MZalrYePhxAo Li4A== 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=Bo3OsrIjyR/AXJ5T8kNtJnYGc9pmT7Uk1OoMBkQT1xs=; b=odNDpZuR4B9+RqIlFDULDTvk471IJ2bU6TJ0EgBCTwCjJ7ZeCeGgVyQflJAQBDe0t+ oJ7yWx0pA6b5ej8ST/9NFRVXAKtSGXh85KjBGIHiP89/KdftOT7c/9hlG+ICtM4vD58n cbr2tHgfo0IY3XS468kl3pnI1zQvWRvdJXy4I6hZgFNruCrJCm8BZhfuKRSTGnotSUkn TDrSQPfeYrqHUGMEk6gzoVwnG7cPVTaacF88IFZKUHEDNzFqeyYMhDCFx2Z+5RYax0+Z uEUNn9aZPAI7mOu8otyhagqsn5sltSsdNuijPRYAFwu9o0zGk9mFimKVSB9jri/NEDb4 Nc6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=CGrWC+us; 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=pass (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 k1-v6si3887372pgh.65.2018.08.23.01.34.27; Thu, 23 Aug 2018 01:34:42 -0700 (PDT) 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=pass header.i=@chromium.org header.s=google header.b=CGrWC+us; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731705AbeHWMBM (ORCPT + 99 others); Thu, 23 Aug 2018 08:01:12 -0400 Received: from mail-yb0-f195.google.com ([209.85.213.195]:37379 "EHLO mail-yb0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729644AbeHWMBL (ORCPT ); Thu, 23 Aug 2018 08:01:11 -0400 Received: by mail-yb0-f195.google.com with SMTP id f145-v6so1720131ybg.4 for ; Thu, 23 Aug 2018 01:32:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Bo3OsrIjyR/AXJ5T8kNtJnYGc9pmT7Uk1OoMBkQT1xs=; b=CGrWC+usv0+6d+w7VdzO+x8xA791Up7gzDTcfolflNlWUyCD1L+ZMK/E5NZvTyKPmr uy5b/FFUiCyN1RLK07L1dK/JHcyJem7p5k6eofiTmOW+BZKja5n8fSftoac/pQErsLws ZDG+R9+zpStpebncgA/0+fwkrgiEEbd0eeEiQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Bo3OsrIjyR/AXJ5T8kNtJnYGc9pmT7Uk1OoMBkQT1xs=; b=FSp9AH2W3X31A5HHvMLNEXmXhkBpYcGq7GWHWryVkbEp1JSd2rFXbqwhilNeaQdHh+ jPpy3R59eJjCXVNja3xDz/SdFb1g6u2myizgF0ocEsv2Gm8hVCaABOkI1K3pvF+CZ6nB 6M36/S5eZoKkCD+A0V8xyAKnn1n9DWdOxOoeFPvPgnK1Y3Y6zz4xgXY4rK4MfcIuywf0 PXQbf5XN8PrtU3TIPCP4nGeC8Ciy2aieWEQ1Yxkpnxl8jhdm6moPDAYqS0yAsqihAFPy doVj0mfc/qchK042dLtuNbXnQsoiUxoO7WRHfPWvmaCT1wvQjY0BZqz6NiwktxFTqU5l nUwA== X-Gm-Message-State: AOUpUlEN/asRumjhM5999Jdf9LrZq4w06T6gHVESFfP9PzyDAA1oVGki xVGbfeYh98K+ngLKpjNDquOsoVqzBx0= X-Received: by 2002:a25:e482:: with SMTP id b124-v6mr30759991ybh.127.1535013157290; Thu, 23 Aug 2018 01:32:37 -0700 (PDT) Received: from mail-yw1-f51.google.com (mail-yw1-f51.google.com. [209.85.161.51]) by smtp.gmail.com with ESMTPSA id z125-v6sm4147003ywg.57.2018.08.23.01.32.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Aug 2018 01:32:35 -0700 (PDT) Received: by mail-yw1-f51.google.com with SMTP id j131-v6so1657816ywc.13 for ; Thu, 23 Aug 2018 01:32:35 -0700 (PDT) X-Received: by 2002:a81:4418:: with SMTP id r24-v6mr2093958ywa.407.1535013154920; Thu, 23 Aug 2018 01:32:34 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:2c11:0:0:0:0:0 with HTTP; Thu, 23 Aug 2018 01:32:34 -0700 (PDT) In-Reply-To: References: <20180822233724.110454-1-ndesaulniers@google.com> <20180823002508.GA822@nautica> From: Kees Cook Date: Thu, 23 Aug 2018 01:32:34 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] include/linux/compiler*.h: make compiler-*.h mutually exclusive To: Linus Torvalds Cc: Dominique Martinet , Nick Desaulniers , Joe Perches , Jonathan Corbet , Masahiro Yamada , Arnd Bergmann , David Woodhouse , Linux Kernel Mailing List , Thomas Gleixner , Will Deacon , Geert Uytterhoeven , Ingo Molnar , Andrew Morton , Daniel Borkmann , Peter Anvin 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, Aug 22, 2018 at 6:02 PM, Linus Torvalds wrote: > On Wed, Aug 22, 2018 at 5:25 PM Dominique Martinet > wrote: >> >> Overall looks good to me, just pointing at the same error I wrote in my >> other mail here -- I saw that by the time I was done writing this this >> patch got taken but that alone will probably warrant a follow-up :/ > > I've fixed that manually, but when I tried to test it I just hit the > > arch/x86/Makefile:179: *** Compiler lacks asm-goto support.. Stop. > > error. > > Do you have some experimental clang build with asm goto support? What > version? Or is it just that you're building ARM, not x86? FWIW, when I do Clang test builds lately[1], I've been using: make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- CC=clang (Note this requires a cross-compiled binutils installed in the PATH with as aarch64-linux-gnu-*, which is where Debian and Ubuntu put them.) -Kees [1] for today's defconfig build to finish, I had to: ./scripts/config -d CONFIG_ARM64_LSE_ATOMICS (I think my binutils are old) and comment out the BUILD_BUG_ON() in net/core/filter.c from 2dbb9b9e6df67 (which looks like it needs some attention since gcc has no problem with this) -- Kees Cook Pixel Security