Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp4349520imd; Mon, 29 Oct 2018 23:56:18 -0700 (PDT) X-Google-Smtp-Source: AJdET5eHwEadt+1kofm1rkEDc9ckLAXAKZnOJUYa52suGXMYuN8pggqUqzggPpq8PwSBmIslQtW5 X-Received: by 2002:a63:9809:: with SMTP id q9mr388691pgd.109.1540882578677; Mon, 29 Oct 2018 23:56:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540882578; cv=none; d=google.com; s=arc-20160816; b=FveISx2emBU+40aiXi4/2P1YCHIc7BL0axrZZk2FM2PaAczX4kgT3MOyFWNxJJ3iW+ 0aKac2YrJSTpRmYPpMb7LZwwKxNVd+6CE7mqsQGORsLKYtnA3bseubn451lmffyf2asm o7CFkpf03SouFXCXk4NpOPOfSCzM71smN4J98s5sCMdPJT8d7/XN64W6P2ManEG/TJgs Cihrt6Uevjd+oFkLDsrul/REhW1e4qXVqRrn28L7k0yvwaAuyBnYckDrcuq9cpeesAcu UmkKkvD62a+YOegCn3foviK0N0+bHQuN7BuSEO6mnnhcallx9c9NSDFM92ugPjAfmhgR R+kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:subject:cc:to:from:date:message-id :mime-version:dkim-signature; bh=/cD1fwO2hli7g9nGagtj5uNLahU+D5bvAw7qUX1v08g=; b=HgalZUG2oHtJtS13PWFHV9O3/qnYhfTi+StOLDkf4l+ynJxWdN9jA+kEhtq8uw76Jq 8URLpky31PF1ZbWnz3r6RSLUP0egfKRyX5IjHmQmFWfqrp8unW2+LV5Q0lKRbuUBanbr MRg1kAV4jH7drBkXd1Y6dWGizdHneDKBgQDRAus6xHryzeBzLKhzN/vURh6XKIakvHsQ c9q1HHQKOR2sCxHEvvRZ3alIClhp19CiDbsh3KIo8xh6dQQ8wjx9/yN9RGitXH6UvDBD AUbY1CoBiVGYMpIN974W+uTTPmQG0r0jq2Cc/omXoTQQ0sx4MF6XuLsD0CwoGVStTi9t s6zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=nVKnSuEo; 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=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e133-v6si22139324pfh.289.2018.10.29.23.56.03; Mon, 29 Oct 2018 23:56:18 -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=@oracle.com header.s=corp-2018-07-02 header.b=nVKnSuEo; 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=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727240AbeJ3PrU (ORCPT + 99 others); Tue, 30 Oct 2018 11:47:20 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:49224 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726154AbeJ3PrT (ORCPT ); Tue, 30 Oct 2018 11:47:19 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w9U6s2EV110902 for ; Tue, 30 Oct 2018 06:55:04 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : to : cc : subject : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=/cD1fwO2hli7g9nGagtj5uNLahU+D5bvAw7qUX1v08g=; b=nVKnSuEoCun6xOMg2y072joWI49JFOAnm+ggeRQp0cQptDF0aDrUMWXWlaI/pH5+UES3 aRwn7kbejSqRs5s/JW32yiF/9VwEyg6HkO/+egrY6wYP51u8Adb/FZc4OEmyXqd2y48l U54KfeDSlnNwdu4rNB/aL7TQuCWbWmiOaSPRe6euW1q4Z0bAEP49kYjXkF+9CmDpBznX YxdsL6WVWdLiBvFMd/yfkrnDgJjr1akJokNEIwbksLXDabtncC6JtJFo0cpUgGef1uR2 zEA9tEYG1Ay/qZYLomJoHqNXoWRzX6e+HxMqQmGiHKYx28zvBaWW9QpjWwOz5diYpXCX ug== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2130.oracle.com with ESMTP id 2nduckxmbf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 30 Oct 2018 06:55:04 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w9U6t4pd017703 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 30 Oct 2018 06:55:04 GMT Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w9U6t3Cu008468 for ; Tue, 30 Oct 2018 06:55:03 GMT MIME-Version: 1.0 Message-ID: <834642d4-d92c-4502-8d74-66fc19885b43@default> Date: Mon, 29 Oct 2018 23:55:03 -0700 (PDT) From: Zhenzhong Duan To: Linux-Kernel Cc: Srinivas REDDY Eeda Subject: [PATCH 0/3] Enable retpoline only when compiler support X-Mailer: Zimbra on Oracle Beehive Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9061 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=813 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810300060 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org According to Peter Zijlstra's suggestion in https://lkml.org/lkml/2018/9/18= /1016, hard bind retpoline with compiler support and remove minimal stuff. Tested with both CONFIG_RETPOLIN_SUPPORT enabled and disabled. Zhenzhong Duan (3): retpolines: Only enable retpoline when compiler support it retpolines: Remove the minimal stuff of retpoline support kprobes/x86: Simplify indirect-jump check in retpoline case Documentation/admin-guide/kernel-parameters.txt | 2 +- arch/x86/Kconfig | 8 ++++---- arch/x86/Makefile | 5 +++-- arch/x86/entry/vdso/Makefile | 4 ++-- arch/x86/include/asm/nospec-branch.h | 12 ++++++------ arch/x86/kernel/cpu/bugs.c | 13 ++----------- arch/x86/kernel/kprobes/opt.c | 14 ++++++-------- arch/x86/kernel/vmlinux.lds.S | 2 +- arch/x86/lib/Makefile | 2 +- arch/x86/lib/retpoline.S | 2 ++ scripts/Makefile.build | 2 +- 11 files changed, 29 insertions(+), 37 deletions(-) --=20 1.8.3.1