Received: by 10.223.176.5 with SMTP id f5csp584528wra; Wed, 7 Feb 2018 04:18:57 -0800 (PST) X-Google-Smtp-Source: AH8x224kZkqkte6w+9em2LnUjALh6JTzWhr33uJmFcXvYfpH3UinlU1RMZqBYc2EBdt7q0GaZPGZ X-Received: by 10.99.150.2 with SMTP id c2mr4888836pge.424.1518005937139; Wed, 07 Feb 2018 04:18:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518005937; cv=none; d=google.com; s=arc-20160816; b=zdOQijMR+NMFRxAh+vssJU9XVXiRxN+VWP1EF6chgbC1ojxoSzHm+uBd7mmLi4UEbe mrTdYnG6fZEx6j/Y3sVTW7eiHyLfcclP+tc0MNpBvsrmVOLXnO/2yG90yWFkOHDP9PmB V4BIIHDyMNtVpcqN5p3Us/QQ8b1D4ge/q9+PHKDhfe5UjjY7O/cigAXit6fWVphMeopA Yb/b8N4eE/I8J9CMY4UAaDDGjSQddz7BtX2T3SLd2Wu7sfte8ERaCz7z6R7Ejq3hkrtj mePmMZS1uP2GHUSaQJ8Eqx410WymyCysWV0M7SfJpSZ29chyaIJiMHvSe2oq3h8l/sFx bLOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:references:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=weWvObb4EgwV6cVCrduuvqCL8CUwwGVZ1O3yqCUr+PA=; b=CUtW/sRutK6bxKOPUSprywEpJDp71473SVb1Z9L0EEf0sYh/Sxo60/h9/KRnfWAh34 WW/4NbPSqRskD+Rvd3oB6a2G2WhrzV+3xhymN846fr2s0lpnuVFjGURsv6aoNl8SuNQW dr38LO+HNrlViksQAUU/8xMQOMAMXPXKXQbzEdB4BN8u1rDbxbB6VXdI4a+IQzOyRVwm 7CxhJoTxLZp8vH1VzxA9sRA/nXetq15x9tOrb4Ek/aF6Lapqk2PBfVxr3k9sKkGNt3NE KltzQgY7VfCpwWN2zMC4uX7st1LD2+ajwhiIc57G7//tKimkJOzSQ4DT85UKZQWJY57k wGIw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n26si862622pge.266.2018.02.07.04.18.43; Wed, 07 Feb 2018 04:18:57 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753970AbeBGMRa convert rfc822-to-8bit (ORCPT + 99 others); Wed, 7 Feb 2018 07:17:30 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:39026 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753478AbeBGMR2 (ORCPT ); Wed, 7 Feb 2018 07:17:28 -0500 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w17CEwsS033031 for ; Wed, 7 Feb 2018 07:17:28 -0500 Received: from e06smtp13.uk.ibm.com (e06smtp13.uk.ibm.com [195.75.94.109]) by mx0b-001b2d01.pphosted.com with ESMTP id 2fyya8p230-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 07 Feb 2018 07:17:27 -0500 Received: from localhost by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 7 Feb 2018 12:17:25 -0000 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp13.uk.ibm.com (192.168.101.143) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 7 Feb 2018 12:17:22 -0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w17CHLZ346596132; Wed, 7 Feb 2018 12:17:21 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DD2C652045; Wed, 7 Feb 2018 11:09:29 +0000 (GMT) Received: from mschwideX1 (unknown [9.152.212.220]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id 47FEF5204C; Wed, 7 Feb 2018 11:09:29 +0000 (GMT) Date: Wed, 7 Feb 2018 13:17:19 +0100 From: Martin Schwidefsky To: David Woodhouse , Linus Torvalds Cc: Pavel Machek , linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, Heiko Carstens , Christian Borntraeger , Cornelia Huck , David Hildenbrand , Greg Kroah-Hartman , Jon Masters , Marcus Meissner , Jiri Kosina , Dominik Brodowski , Alan Cox Subject: Re: [PATCH 6/6] s390: introduce execute-trampolines for branches In-Reply-To: <1518005275.3677.112.camel@infradead.org> References: <1517986811-27819-1-git-send-email-schwidefsky@de.ibm.com> <1517986811-27819-7-git-send-email-schwidefsky@de.ibm.com> <20180207100726.GB31392@amd> <1518005275.3677.112.camel@infradead.org> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-TM-AS-GCONF: 00 x-cbid: 18020712-0012-0000-0000-000005AC4A7C X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18020712-0013-0000-0000-00001928018C Message-Id: <20180207131719.4aeb316e@mschwideX1> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-07_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1802070154 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 07 Feb 2018 12:07:55 +0000 David Woodhouse wrote: > On Wed, 2018-02-07 at 11:07 +0100, Pavel Machek wrote: > > This is really unfortunate naming of kernel option. > > > > spectre_v2=off sounds like we are turning the "bug" off, but i somehow > > suspect you are turning the bug _workaround_ off. > > That's consistent with what we have on x86. > > > > +ifdef CONFIG_EXPOLINE > > > +  ifeq ($(call cc-option-yn,$(CC_FLAGS_MARCH) -mindirect-branch=thunk),y) > > > +    CC_FLAGS_EXPOLINE := -mindirect-branch=thunk > > > +    CC_FLAGS_EXPOLINE += -mfunction-return=thunk > > > +    CC_FLAGS_EXPOLINE += -mindirect-branch-table > > > +    export CC_FLAGS_EXPOLINE > > > +    cflags-y += $(CC_FLAGS_EXPOLINE) > > > +  else > > > +    $(warning "Your gcc lacks the -mindirect-branch= option") > > > +  endif > > > +endif > > That isn't, though. Linus asked us to drop the $(warning) part. > > ... and then spent a week building with a non-retpoline compiler and > not noticing, so he might have changed his mind ;) I found the warning to have some value, it helps for the case where my fingers are faster than my brain and I type "make" instead of "smake" which uses the alternative compiler with the required support. @Linus: do you want a warning or prefer not to have one ? -- blue skies, Martin. "Reality continues to ruin my life." - Calvin.