Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2951911imm; Thu, 24 May 2018 19:46:03 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo2xw8+PN1wQOWnJoIak6ETQHnVZgroWHZJ2Pgvts+6dyU35LW6/fJ84aruyz6FAPy3dyLp X-Received: by 2002:a65:498e:: with SMTP id r14-v6mr487485pgs.78.1527216363183; Thu, 24 May 2018 19:46:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527216363; cv=none; d=google.com; s=arc-20160816; b=jytirJfrpYoxNzhPQiilVL2ocS8bYU41x0ce5BoNaxg4g+Iw3wIwKDwKOwKSI+sFnm 0JZX1pMc3Ldt+MDxsjMX30ZBnCV+eScu9PpV+G6sjLMtdYgphWEr3OthytU81yW/mLq1 esTI5FyVLFRiDjf1f4wsmwGCF6/veifAqJsv4omiHOQMFE9lcydoYLieqVk7qJh1moSE j7tf6/wd7Edc/KY/reVJi8jzfjDolFxZS7Ybl+tCHe4kQnxKC3JsJSORJ6YT8Njx9iAv 691JDDVfNRBraDlL1NA13FieKtTq+VrB8oY4S4LzVDjMvIO1jCyny4s6NVDrzc77JW2a X9wQ== 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=F1+OCn+KeCM5WnutRSiw7tXDnInAmXNRq8A6f6Lu/jQ=; b=CfRIn+WVDC6myvOXm158F3KP77ESE/DL9y4b3ZUshIBHL9TyjtzRbwPggRRWM4LwTH uorH84ZjJ1kO+jvrRLo0NzllbJ0phk8NMoAIU4qd42R7fDJ2UGLdKqaGM+iBzzeVy1Cv yzT6j0F1bSWYHoELRG8EZgq/P7h2g+OS7b980ARfzD4WtI1nXFaHa0XU7vMCHPwwXc2B 8aOKqgZ6RmdLUCk5DTfA9D7WSQg0hTJQLDGBuT/8AOjvRZFcCMqFhz9+zZBtpzROd35C e6SvGdEIUb6mSu/A2tYKXAsyLP1d9Zq33RjJJ6xaFw6eSjYJL6nb8S+YPjkYC2w+0Fe7 f2ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=K2eD5vOC; 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 t196-v6si11644887pgc.648.2018.05.24.19.45.48; Thu, 24 May 2018 19:46:03 -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=K2eD5vOC; 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 S969901AbeEXWbT (ORCPT + 99 others); Thu, 24 May 2018 18:31:19 -0400 Received: from mail-pf0-f179.google.com ([209.85.192.179]:44914 "EHLO mail-pf0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966192AbeEXWbS (ORCPT ); Thu, 24 May 2018 18:31:18 -0400 Received: by mail-pf0-f179.google.com with SMTP id q22-v6so1564757pff.11 for ; Thu, 24 May 2018 15:31:18 -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=F1+OCn+KeCM5WnutRSiw7tXDnInAmXNRq8A6f6Lu/jQ=; b=K2eD5vOC7gFkRadvAVKxmkT1Z89y6uvL7a2v2fdru8IDwge3jkbKCJOjiqF8ysfefR YwpXjpUMunmJrmzox9kU6QFeLJh8tZYHT4Ipt/veFwnJVepM4BCp1l3y6//U3eS6aliL o74lU4RAnDtHOJdXfZHSJ1CH2lmNETSc329CsrLvhfuKY2G7pBCDaJqUubgrXl+4bmlY 4CQ7NPD+M1uJW2F29JWk/4LevaTzvYq4pvQmRbAsoK8Wikpj78YYquIbFnMXe6DKkjB0 C2oDwRVtYkLHMsbxAtJdcPykFRvf3X/TCtTaSYpTEl6Ch1zmLhZvl6QiutESFSq6BTQt +Rag== 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=F1+OCn+KeCM5WnutRSiw7tXDnInAmXNRq8A6f6Lu/jQ=; b=VY8UBFL2xZaiauacNUDwa/Y1YIf8jdbZZolqHoMzzM2Z0WoYXFa4V970fmmNuQyhf5 szhsWhOWUnJV3C2w3knD4nYVlkNW4tFW6w/+xxbrapOPKoUWcORj5MNCwTrYPM+ey3F6 yYgig1nOEr3K0JGb9KedLFWBDiLEEfQB2sEO/q1aDp0d6uE7tWxv2ly2881Xlm9c4K5Q meDqkd2Lw55IU2B3py5f1yyumnivE/x/+FIZWZr3DoWeIGhUmcdW916aLPJXkbVjvTS7 JCQyPy/VxRStlLSrtpkeabzGeiP255v4s5d52Fwnse/c8Cqzx3WR9MQwPga4jBotqGbw w/mQ== X-Gm-Message-State: ALKqPwcGGt0mmwyeGB+SXXxjZDXIqQnhemOkaKe7+9e7i3nzOA5NKs2G xTf049p1iYli4zFVNsmAUVymc3lV173YIq+f3ZjbQw== X-Received: by 2002:a63:ab45:: with SMTP id k5-v6mr7312762pgp.192.1527201077418; Thu, 24 May 2018 15:31:17 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Nick Desaulniers Date: Thu, 24 May 2018 15:31:05 -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 , Kees Cook 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 3:05 PM H. Peter Anvin wrote: > COMPILER AR: "=rm" should NEVER generate worse code than "=r". That is > unequivocally a compiler bug. Filed: https://bugs.llvm.org/show_bug.cgi?id=37583 > >> You are claiming it doesn't buy us anything, but you are only looking at > > the paravirt case which is kind of "special" (in the short bus kind of way), > > > > That's fair. Is another possible solution to have paravirt maybe not use > > native_save_fl() then, but its own non-static-inline-without-m-constraint > > implementation? > KERNEL AR: change native_save_fl() to an extern inline with an assembly > out-of-line implementation, to satisfy the paravirt requirement that no > GPRs other than %rax are clobbered. i'm happy to add that, do you have a recommendation if it should go in an existing .S file or a new one (and if so where/what shall I call it?). -- Thanks, ~Nick Desaulniers