Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp93524pxj; Thu, 10 Jun 2021 15:53:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrcyzkKp8KCcsswdJPTNDVEP/vFCox8WdULu9KySoBdiY+DCYQUA3cMyPtjCqeTIVy8gMV X-Received: by 2002:a17:906:2c52:: with SMTP id f18mr703854ejh.258.1623365625899; Thu, 10 Jun 2021 15:53:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623365625; cv=none; d=google.com; s=arc-20160816; b=WKoBUHw0cYjJH3SaYoQbdEda1r548GYY+iT+7kdwaVxMqW0CvAZfZkK9kM8gaDQJkQ wTFTDC9bU3ZLp9NQm11ULmK88pzNe4QeQtCIXcFFxkZ+/a1E98ZU15jasTUfve7AosLO rfkHXXDyI0Fdf6VjDl9McIrpbb04KzrMut1HP/HxG7BxZ4LROG2baGdlB8L6UTsN4LV9 IPHtyh3aplReESfKrPL9gQjFsu2X6AD7q7ETtpQIW/3ZiN+U08TR4ChWka4pgQiezvKD 5arGPaofB8R81J18vUDEKbN5nfpBrA3OszXkBGUrXK1KpNB7e7Z4Or5dW9WHUCEIq3Sl Feww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TTOaAxPx+KNeyOTb/ftn1c9HznM9ERRdfrs59iyNihw=; b=gaWZVA3Labu28uCx8IarLAflyGeTytmqQT6DRNZWZpW2/IJnYTb5/bMssdr1nF5OZG MPBtO9w+XlYLzUlr9f9CO+bmtKrH9AX1VEbeEfKKwuFXjQ9rm0cPIgH9DtLTUQtK5+OX oyjoVJs0mx41UAOPBrNDnpJvYWWEayqffGy9GjXsTqVY6B4zLnVIZfWDfB9HvtF0Uq3g 0GUDMIecsu95Ura0BXTRqrYvHPztlEehXkUbGg3gHqzLicQPxKQ0qezipc9VDQ5yehny u3ZWCGSbrBMvQ6zQHLcIRDhifwCcOrh/199DomiXw52if4er/IRXXcd8QIKQ7HTxgNv+ YcPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=YhdFmwb4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id s18si3725112eji.655.2021.06.10.15.53.22; Thu, 10 Jun 2021 15:53:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=YhdFmwb4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230269AbhFJWxO (ORCPT + 99 others); Thu, 10 Jun 2021 18:53:14 -0400 Received: from mail-pg1-f175.google.com ([209.85.215.175]:36595 "EHLO mail-pg1-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230001AbhFJWxO (ORCPT ); Thu, 10 Jun 2021 18:53:14 -0400 Received: by mail-pg1-f175.google.com with SMTP id 27so923341pgy.3 for ; Thu, 10 Jun 2021 15:51:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TTOaAxPx+KNeyOTb/ftn1c9HznM9ERRdfrs59iyNihw=; b=YhdFmwb4puv4MA8YLF36AWg/CQbI+88jk4/IY3wIJTDe2H/+qI1glbQs0v0KJyPWVA QVZZjEy/1bBwVObIPGNGpfTUu1A+5Dq/xP2S2qcXjzsW9ONXSS7Y3xZOQJZw6sbyl9EY yL8/cgMqaIyIQqPSCCYmbZlAzSDui4w+sBW04= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TTOaAxPx+KNeyOTb/ftn1c9HznM9ERRdfrs59iyNihw=; b=ZRvrH/CT2zPHzQ+AKHi9waFJVphXW6RhdfSPGvESDxzPuvgbVmnY+kdf5TO5NEOcUu BZtW0Ig51tsjjMgr4Ajq3i7KrHtTCZBkt4AE1Jcqrd3hnEti0XhSqjSwhBkz3qw607ub 1XrtsDWYtIM+5MYVasnNMRqhnqvjfm9+ciJ6IWSc6smE+kedvGVmyfhs4CiOIyMZeio9 S1I6fq6Djny5rqilkEogDI8xPBe2fjkgW7HZOOEmTLY7cNq3EnPj9bARa7seEdiyUVQ3 KChVOcGlXwwEvtUIBmpu9UJJUqC77i4vqboABEDBDjaQm5AvZ7QgPPxvVFGvcr2Os3Xe ESHw== X-Gm-Message-State: AOAM530UNRt0DWJPqH5GTP27sUuIXyb6cPqz8tt8trYjkudoc9KYr3Av pE8MmJk9jyWVgvwYGEJffvghFQ== X-Received: by 2002:a63:801:: with SMTP id 1mr641823pgi.146.1623365401428; Thu, 10 Jun 2021 15:50:01 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id i16sm3270017pji.30.2021.06.10.15.50.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Jun 2021 15:50:00 -0700 (PDT) From: Kees Cook To: Nathan Chancellor , "ndesaulniers@google.com" , "linux-kernel@vger.kernel.org" , "tglx@linutronix.de" , Tor Vic , "mingo@redhat.com" Cc: Kees Cook , "x86@kernel.org" , "clang-built-linux@googlegroups.com" Subject: Re: [PATCH v2 1/1] x86/Makefile: make -stack-alignment conditional on LLD < 13.0.0 Date: Thu, 10 Jun 2021 15:49:47 -0700 Message-Id: <162336538453.1311648.12615336165738957417.b4-ty@chromium.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 10 Jun 2021 20:58:06 +0000, Tor Vic wrote: > Since LLVM commit 3787ee4, the '-stack-alignment' flag has been dropped > [1], leading to the following error message when building a LTO kernel > with Clang-13 and LLD-13: > > ld.lld: error: -plugin-opt=-: ld.lld: Unknown command line argument > '-stack-alignment=8'. Try 'ld.lld --help' > ld.lld: Did you mean '--stackrealign=8'? > > [...] Applied to for-next/clang/features, thanks! [1/1] x86/Makefile: make -stack-alignment conditional on LLD < 13.0.0 https://git.kernel.org/kees/c/e6c00f0b33ad -- Kees Cook