Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4293985pxb; Mon, 8 Feb 2021 12:40:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJzlpDDYKiiAiZZqRyMozPSXnjJqTZy1bLZq2QdOFW6nUueYicxYudHk9ZSeTOIHHw6AC6y0 X-Received: by 2002:a17:906:3006:: with SMTP id 6mr9449558ejz.448.1612816845629; Mon, 08 Feb 2021 12:40:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612816845; cv=none; d=google.com; s=arc-20160816; b=aGzaWrDs1mheuPO4LF2pvAmTB6Ch66bbITaOwf9rQBhgQn0j3GJ0ijeSoaNaJCpFmI 9KtK0hvA9eQBgCQXRJABPxmLTk97gA8dX2gE0eE30yhDLBhR+lm7RnU+7lJOYFcm8B5A tsVbv6iZ5b/5pQ6+Tu34lJDOnBpeQZHWjO+VeGwq2m6tWKAY4uS+/DOkZxu4xpAERhRF zjDic5zc1t1s2pMPHm3KJirgb2xHtL9Wz/tI1Hsx4WMRY8J49BEEc/Uig0l5dJg3YgFA uB1cHkCMT18fiXllbfu2KiITjB1SQlQhVqlSXX27QloubR6Bn5aYZ3OBOHzdcXXftg/8 pW2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=vPHoi6PuUfKeoKxaQhDsQig9EEPGT7qesypPA01iVWA=; b=k8QOrIEmkrJPk0wANZQl6bumAevVtpuWsy0Xw9twh4sqzUaSNuqqmut0igDmWL6WiB yMKudrr7Z5A5vDuKi8XJyCcJ+dXx7QsZCn493aTJu93yqnbqFAV4Js5xGOoqdzi4I7ih ppTFsgM8uxW/PgH34qNZvVMPwVkNjpImt1eLhegESRh+gOSiUe4D4nGz45Jo+XG0iSBr b1g3q+w/3S8/bvA11F4nGYZGwR8e3PnyYbZkYTU9JYcijNjGwQi2ljxXB6es7xfezaQW mmfMTa421aoj8joVotSDTiOnTv9x3ClEl3CpFIAbV2rDfWVw9U/ZTlE3orjgKDbz5Mhe V/6Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g13si6172886ejx.443.2021.02.08.12.40.19; Mon, 08 Feb 2021 12:40:45 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235296AbhBHUik (ORCPT + 99 others); Mon, 8 Feb 2021 15:38:40 -0500 Received: from mga02.intel.com ([134.134.136.20]:47138 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232482AbhBHTYG (ORCPT ); Mon, 8 Feb 2021 14:24:06 -0500 IronPort-SDR: mugynaee8hkJ81+tKn1UPz3M5Ib0ZFXm2QY3/9PVI8Po0LQ05POnKzFTH+r+WVkdfrLR3DLrmG 1ReXHy/cePBA== X-IronPort-AV: E=McAfee;i="6000,8403,9889"; a="168890238" X-IronPort-AV: E=Sophos;i="5.81,163,1610438400"; d="scan'208";a="168890238" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2021 11:23:23 -0800 IronPort-SDR: hQ7EzHLh1XjKnGXhPuD/XToDkgJwmpEbNG7R0HZcj22PJbDNwj7jCGyg5PpGndMk2uHcpLhv2w rrglSOj3nHFg== X-IronPort-AV: E=Sophos;i="5.81,163,1610438400"; d="scan'208";a="377921602" Received: from yyu32-mobl1.amr.corp.intel.com (HELO [10.251.11.33]) ([10.251.11.33]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2021 11:23:19 -0800 Subject: Re: [PATCH v19 06/25] x86/cet: Add control-protection fault handler To: Borislav Petkov 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 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> <20210208182009.GE18227@zn.tnic> <690bc3b9-2890-e68d-5e4b-cda5c21b496b@intel.com> <20210208185341.GF18227@zn.tnic> From: "Yu, Yu-cheng" Message-ID: <0e0c9e9d-aee1-ad1e-6c63-21b58a52163f@intel.com> Date: Mon, 8 Feb 2021 11:23:18 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <20210208185341.GF18227@zn.tnic> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/8/2021 10:53 AM, Borislav Petkov wrote: > On Mon, Feb 08, 2021 at 10:50:07AM -0800, Yu, Yu-cheng wrote: >> I have not run into the situation. Initially it was there because other >> faults have it. > > Which other faults? exc_general_protection() and do_trap() both call show_signal(), which then calls printk_ratelimit(). > >> When you asked, I went through it and put out my reasoning. > > What does that mean? > I went through my patch and check if ratelimit is necessary, and then describe the finding. >> I think it still makes sense to keep it. > > Because you have a hunch or you actually have an objective reason why? > For example, if a shell script, in a loop re-starts an app when it exits, and the app is causing control-protection fault. The log messages should be rate limited.