Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4036831pxb; Tue, 26 Jan 2021 10:40:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJx8P6/ALfC072WF3VheNtTjvYKVQD+TvWeYc7PSijsYXAKCGVpnZTh1+tyAg8UA9v7uPWq9 X-Received: by 2002:a17:906:758:: with SMTP id z24mr4267628ejb.3.1611686423705; Tue, 26 Jan 2021 10:40:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611686423; cv=none; d=google.com; s=arc-20160816; b=mCAmtbiURSDOToPx9kZZ0Yr+cq07d4fwVNS45m0CLbKh9SYjXXiue6kxFZsmB8cJbf rURqdA3ZwRxgct3qdapOu/d6i3hizRfkeLE8kB5PHnBTNpiNoT5W2biTOTnq7HUo74vd i5ZI+/upnU5ucIaGU/DJYgqqVjyJjNvUUcda/3DbwW6y0lT7nZaGewnkiZzp9dHNfM0U SXLxV2+6EpCKcOJCtD5Y76fOyWJu/fgjFR0adpSiJaiUJowqtzVoNxlp5NIq5VN/Uv4H tL13n4XNBortsFGZdw800+SPBx8GQHQcTfJqnXwwxBnMB1z/N6JLuoYF7df1Xv5/vQ38 Zw4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature :dkim-signature:date; bh=ZkPU/hX7e8KAUGBs+8Xq5YFkeqG2HTJf4MGRstA6AwQ=; b=UxDIA4gNjaTxP1gP6XlME6Gpi49/LiuCZYB+HPBFdiqxCjTR1Il9xgGXyRqz/KvKjF 1sDWM9psL0ruSEt5eIZp0afPkXxiKC5oBWcuVw4dbiWF9ihfn/BWqrzdMfc+YVSdFHnG kVO+sHsCo+FP3EADoRTCuWb25Yl+/fgJWzJIWyPestF9DScAy/Ij0T+qA0YrGVRjMHw6 A3FTWDJre8gxdLES85E+RFCVy8/4HOQKG9xL2ycPf8zC4tDEGrCp2FbaRrjP1xNGCRPj 8Lt8wsIuwH0a1rkjgpGPe30bC6SAeTQtCma5gv+PxzVuOq2RBc/7tFqiMAgtpLdrDnX1 LytA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=LOTtMY+p; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g14si7401383ejb.602.2021.01.26.10.39.57; Tue, 26 Jan 2021 10:40:23 -0800 (PST) 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=@linutronix.de header.s=2020 header.b=LOTtMY+p; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405432AbhAZLn6 (ORCPT + 99 others); Tue, 26 Jan 2021 06:43:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404858AbhAZLIC (ORCPT ); Tue, 26 Jan 2021 06:08:02 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3C9DC061573 for ; Tue, 26 Jan 2021 03:07:21 -0800 (PST) Date: Tue, 26 Jan 2021 12:07:16 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1611659236; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ZkPU/hX7e8KAUGBs+8Xq5YFkeqG2HTJf4MGRstA6AwQ=; b=LOTtMY+pdaRCJZdqDkCezplZ9/BMaIWcDNsxGxhj94CLTHbHuUp3HyswBpFH1FN2MJPdGi 61MfuHrBzJf4yQOm+6nby3m8VAi3BBb1McepZQ1M1kkxRj9xxV+oFZxbsqEguT589nNF5u XEvPVHmeQhCkPc6kzDoRCz1OxEwURtUepaHKDSzkbjJU32Jly8o3SgmhyYvSYqv4zrQa4/ HSHgOT9BAJAgIoxq24O9f+0Z6JKjyzcggoXd2+YRVoWgytVQHXApbMk2QvQ8Eq8mRhYwo0 n3dE3tFzcxB9O5I8+DWu2H5WMX2wqOVdGnFa1i9pqNtHplQYto2YkptDjJtv2Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1611659236; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ZkPU/hX7e8KAUGBs+8Xq5YFkeqG2HTJf4MGRstA6AwQ=; b=a70BsVVvtj11dHf5ptAh7cMCsdzynscjtdvw5MMb3ErI/Q3ljLaTONjD5UE6pu2PSjcgLp mKYFa1Ua4HbpadCA== From: Sebastian Andrzej Siewior To: Russell King - ARM Linux admin Cc: Lecopzer Chen , akpm@linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, marc.zyngier@arm.com, peterx@redhat.com, rppt@kernel.org, walken@google.com, yj.chiang@mediatek.com, tglx@linutronix.de Subject: Re: [PATCH] ARM: mm: harden branch predictor before opening interrupts during fault Message-ID: <20210126110716.wv4igts76n3kg3ch@linutronix.de> References: <20201203092738.11866-1-lecopzer.chen@mediatek.com> <20210126091708.3461-1-lecopzer.chen@mediatek.com> <20210126105932.GG1551@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210126105932.GG1551@shell.armlinux.org.uk> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-01-26 10:59:32 [+0000], Russell King - ARM Linux admin wrote: > On Tue, Jan 26, 2021 at 05:17:08PM +0800, Lecopzer Chen wrote: > > Hi all, > > > > I don't see any fix for this issue now(maybe I missed it..?), > > could we fix this if there is better solution? > > This issue exists almost two years. > > I don't think anyone provided an acceptable patch. > > The first patch moved the hardening out of the translation/section > fault handling. Since the kernel is mapped with sections, these > are above TASK_SIZE, and the whole point of the branch prediction > hardening is to prevent the prediction in the kernel being exploited, > missing the hardening effectively makes the mitigation useless. > > The discussion in February 2019 never concluded from what I can see. My memory is that I never got a reply which I understood. Let me try again this week with the information above. Sebastian