Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2946083imm; Thu, 24 May 2018 19:38:32 -0700 (PDT) X-Google-Smtp-Source: AB8JxZomtQYvEMhdVPXJgN5AuRPS7BVhQpp51FXB64I68luBFSD3roFSslKh0H65docGfQwCOpvu X-Received: by 2002:a63:6f05:: with SMTP id k5-v6mr489970pgc.62.1527215912535; Thu, 24 May 2018 19:38:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527215912; cv=none; d=google.com; s=arc-20160816; b=zrfrlCRim8wOSw4wD+a3hRQ/DGf4/piYb5KBsW/NhQ1ExkEEg3VDRvEHJhfZi26iCW 19uRnmOC9u+inBMXyuX1TTQg/NaAFj+883F03iLuYghlW/ploBAfdvZ35VphglQnnNle iyaVygeMeFB/xoKJFl3Jw8EhSqslZ02zJ0I5cXUstX0/bvkymLoazSMuFQBO/KdbaMPZ 6t/bopQQKy48BAPzN7LYEIHnK7Dc2lAS2kkbpD3ZAKQ0z5BnPOfxb//KMaocxCjmbZum VwzE3eVslMHbmxo4U+tg3/hychs+U4W8xVZ44hi+knTNsq2DqCzxO77ejRu1PhpfrQ+1 kiGQ== 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 :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=JlTLupPwuvlufP2ftQQSe+Cmij1/Dyj1o+zFhsUaSGE=; b=zjfUpgAduK8a0nMa5oDP5blgQ24vFvctj/yiEP4oMBJaSogz+ify+el0rYR4zTUMCX 2b8/MUCPqJCKaxad8678rqL3i38u8WPGjOfFrCYbmK2SzNg06+3MEOd6LUbAVdt74D5s gR6Umh8sCbCYwoKMwsCL98ikEvMdAkk8ypRWEjNOVyIF7kbCAB077FISlnxP6c47WQ7u E4HlLW/HPqrTJvruBmytnxhZ7N8KGIfv6pATxzpWqw9nIlgx1UY3HNvb9BnL8Z7D/Rhd LqWnfkbPfbbZB3/hi6YnjwigTjKzo2GyVM+AnB1bIYjbPrZ4t1gKYTcQBQr0IyJgLhq+ srNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=QFCBzYpa; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h131-v6si21575990pfc.206.2018.05.24.19.38.18; Thu, 24 May 2018 19:38:32 -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=@google.com header.s=20161025 header.b=QFCBzYpa; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1032536AbeEXSYo (ORCPT + 99 others); Thu, 24 May 2018 14:24:44 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:35784 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030470AbeEXSYk (ORCPT ); Thu, 24 May 2018 14:24:40 -0400 Received: by mail-pl0-f67.google.com with SMTP id i5-v6so1559583plt.2 for ; Thu, 24 May 2018 11:24:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JlTLupPwuvlufP2ftQQSe+Cmij1/Dyj1o+zFhsUaSGE=; b=QFCBzYpaRiH3gte+LU+MJTx9UC0nscA/mgq9HgEFXKUVcuIUrRdrHyTUt0NxZphq2e FfPOz3uG+bbRPO4bkMed0J+qCwrNSSWWwTB/W0QDEawufnpfsRH8fDNjRJopRaHi5Hmc 3Lbp6xV11z/gUtrLnubT9GO1xtWQZC38d2f7hDj9uq7rcVWXgMbBPu3EHJFoJGIPVe17 yKahsyXdcYwQXuN0dbH9cihXO7deD3lU/HMuETnHKCDr9k+0vvBCKUwbnyPboO+Pksc1 3fY3aR2cM4zUJXpZh6bY83yldP12EKiakFABym85xXYytFCZ7q7XyYQrdfvGhvRCJo+3 stzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JlTLupPwuvlufP2ftQQSe+Cmij1/Dyj1o+zFhsUaSGE=; b=C8rnA67pTA1Qn6Adbikazgqe8GVczj/5IhbKb0tBbeldJ/Jc7DFIGb7TaAUaxrPMFx pV+e0Rq412m0yFheNSLARXRvshyDVNOtgp33xiAphHPAC/XXS/uIE5jxuad1/dLyeHMj p6+x9SGyQUyxp28huHguQo+CbZxODzOL+kRQ34a5OirhTRjnm0UxRwKXF8x8zPYPvWaj iT7RVkJlGl62nE49l2zeMV9zPPm1a8GmUIPpm0muZMROptQFULNZIbN/Nr5/wLBYURxp wg+K6+3Zj/LYrJGOwltjBnuCuiLb5l1BGFRrr1Jo9VtLfydYYS1uqkDvRwQ9FNUq8e73 077Q== X-Gm-Message-State: ALKqPwfprN1FzR1+bBwgPSP5xgUk/5RqJFeoTb0VsmOAgn7a78XK1XKh yCQPFxNghLm3VwMGJklM9xElgQcn3xzpAkLPfFC8hg== X-Received: by 2002:a17:902:a60e:: with SMTP id u14-v6mr7802514plq.233.1527186279246; Thu, 24 May 2018 11:24:39 -0700 (PDT) MIME-Version: 1.0 References: <57C635C3-716C-4FC3-90C7-E394AA7242BA@zytor.com> In-Reply-To: <57C635C3-716C-4FC3-90C7-E394AA7242BA@zytor.com> From: Nick Desaulniers Date: Thu, 24 May 2018 11:24:28 -0700 Message-ID: Subject: Re: [clang] stack protector and f1f029c7bf To: hpa@zytor.com Cc: Alistair Strachan , Manoj Gupta , Matthias Kaehlcke , Greg Hackmann , sedat.dilek@gmail.com, tstellar@redhat.com, LKML 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 Thu, May 24, 2018 at 11:20 AM wrote: > A stack canary on an *inlined* function? That's bound to break things elsewhere too sooner or later. But it's *not* inlined by GCC or Clang. While the function is marked `static inline`, it's not in arch/x86/kernel/paravirt.o due to: arch/x86/kernel/paravirt.c:326 325 __visible struct pv_irq_ops pv_irq_ops = { 326 .save_fl = __PV_IS_CALLEE_SAVE(native_save_fl), see comparison of disassembly attached in: https://bugs.llvm.org/attachment.cgi?id=20338 -- Thanks, ~Nick Desaulniers