# Re: \[PATCH v19 06/25\] x86/cet: Add control-protection fault handler

- From: Yu, Yu-cheng \<hidden\>
- Date: 2021-02-08 20:17:54 
- List: linux-arch
- Page: https://ratatoskr.run/linux-arch/2021/02/6263331
- Thread: https://ratatoskr.run/linux-doc/2021/02/6257763/t.md

```text
On 2/8/2021 10:20 AM, Borislav Petkov wrote:
> 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?
>

I have not run into the situation.  Initially it was there because other faults have it.  When you asked, I went through it and put out my reasoning.  I think it still makes sense to keep it.

--
Yu-cheng
```
