# Re: \[PATCH 6/8\] x86: Provide API for local kernel TLB flushing

- From: Kees Cook \<hidden\>
- Date: 2020-06-16 18:37:54 
- List: linux-api
- Page: https://ratatoskr.run/linux-api/2020/06/6001518
- Thread: https://ratatoskr.run/linux-security-module/2020/06/6000290/t.md

```text
On Tue, Jun 16, 2020 at 09:59:29AM -0700, Andy Lutomirski wrote:
> On Tue, Jun 16, 2020 at 12:49 AM Kees Cook [ref] wrote:
> >
> > The seccomp constant action bitmap filter evaluation routine depends
> > on being able to quickly clear the PTE "accessed" bit for a temporary
> > allocation. Provide access to the existing CPU-local kernel memory TLB
> > flushing routines.
> 
> Can you write a better justification?  Also, unless I'm just

Er, dunno? That's the entire reason this series needs it.

> incompetent this morning, I can't find anyone calling this in the
> series.

It's in patch 4, seccomp_update_bitmap():
https://lore.kernel.org/lkml/20200616074934.1600036-5-keescook@chromium.org/

-- 
Kees Cook
```
