Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4272146pxb; Mon, 8 Feb 2021 12:05:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJydWfDUSN+0yCkpTxezQP9Cw8D2ymTia9BzgCmsfkGdHQpg16rmwJwNA3bXPEcYn7eaCSAX X-Received: by 2002:a17:906:158c:: with SMTP id k12mr18964457ejd.119.1612814734095; Mon, 08 Feb 2021 12:05:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612814734; cv=none; d=google.com; s=arc-20160816; b=tGluGonnbDvFNWK7w5NEGL/NxP84lIZFRgmxRWJzBYnvpDXOCR1Ukm9RBvZyrtDDEJ GclrT3nGVs404m4d6hDv1P44uadCNrOFm1OsVeoweUxRRb26ggdtub5o8ZSIvzbuJXoi k0SCDbnlN/83orbBaYt73QsuvcSH4syA1M36UzE72PYWD2F/d4bmBzOUkD3GYaMwDPOt sA7HY2EaidCFaTmsazzuFLRaf3cW1z+UvTz7Ada5BNxaw63by/zR0QFUgGYRwoZOlt52 kSxrnj88segOBMCseArUA69ePdNy2MQVXm3YT3KPcOG+U4K+sLyCQbFs8GKb3ycWhR+E bTAQ== 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:date:dkim-signature; bh=qeF+mQeeKnzlVS28rZchr2a9Z1+kGh/ZuRWejrk4LHk=; b=RUhWcmiIZ/hTSTNULS3vd2iszKPKikEzJDcqb83tE2WuGtcNyXxUM/VLQhDB4zl/YH xXBjPbJpZkXi+CTTTfL2rwAEtTMClTV6BqzkKe11YuPS0Mx+QcxPS3qtRxvQFlRAMY1D KBGOptGRMpDryHiXHfYdvdDdlCT3SF6yjdrIMFr6kpoMlpq7dS7NPtlFdXV1yfWjrRnE 4gYqPkSGvI9cfw9rZHQcLSnIluMp8dCWDEZrC4RYp99j0CjxTnpbLvVCIVzv4c3mBUZR jL+csuM+W6PsBlvS8PPwd3cbnsCu2lfaDkuwXarEfvBpPmg6i29qiHt/QvvLEsfWsoTE rPFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=RyHFSrVq; 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=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id au26si11814355ejc.195.2021.02.08.12.05.09; Mon, 08 Feb 2021 12:05:34 -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=@alien8.de header.s=dkim header.b=RyHFSrVq; 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=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236535AbhBHUBv (ORCPT + 99 others); Mon, 8 Feb 2021 15:01:51 -0500 Received: from mail.skyhub.de ([5.9.137.197]:42148 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233251AbhBHSVA (ORCPT ); Mon, 8 Feb 2021 13:21:00 -0500 Received: from zn.tnic (p200300ec2f073f0023a6d1f14b392727.dip0.t-ipconnect.de [IPv6:2003:ec:2f07:3f00:23a6:d1f1:4b39:2727]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 7CAD61EC04D1; Mon, 8 Feb 2021 19:20:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1612808412; 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: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=qeF+mQeeKnzlVS28rZchr2a9Z1+kGh/ZuRWejrk4LHk=; b=RyHFSrVqG/V+VmsocywmZDdM4WcsK//kIh7Oaaiji5e3Gs2wJIJKSn8xv1kgJANIL1D8N1 ShAAXcxGx5SBiCN96gwGM5AFDdhXJJVn/0/Jgmv2e0kDuGVm9DLVbGfgiK4fA2MNrngX7Z aB9OHNbXk/TJCLE6MbJLJELNmqpiNHw= Date: Mon, 8 Feb 2021 19:20:09 +0100 From: Borislav Petkov To: "Yu, Yu-cheng" Cc: x86@kernel.org, "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, Arnd Bergmann , Andy Lutomirski , Balbir Singh , Cyrill Gorcunov , Dave Hansen , Eugene Syromiatnikov , Florian Weimer , "H.J. Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Peter Zijlstra , Randy Dunlap , "Ravi V. Shankar" , Vedvyas Shanbhogue , Dave Martin , Weijiang Yang , Pengfei Xu , Michael Kerrisk Subject: Re: [PATCH v19 06/25] x86/cet: Add control-protection fault handler Message-ID: <20210208182009.GE18227@zn.tnic> References: <20210203225547.32221-1-yu-cheng.yu@intel.com> <20210203225547.32221-7-yu-cheng.yu@intel.com> <20210205135927.GH17488@zn.tnic> <2d829cba-784e-635a-e0c5-a7b334fa9b40@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <2d829cba-784e-635a-e0c5-a7b334fa9b40@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 05, 2021 at 10:00:21AM -0800, Yu, Yu-cheng wrote: > The ratelimit here is only for #CP, and its rate is not counted together > with other types of faults. If a task gets here, it will exit. The only > condition the ratelimit will trigger is when multiple tasks hit #CP at once, > which is unlikely. Are you suggesting that we do not need the ratelimit > here? I'm trying to first find out why is it there. Is this something you've hit during testing and thought, oh well, this needs a ratelimit or was it added just because? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette