[PATCH 1/8] mm: Add ptep_try_install() for lockless empty-slot installs

Tejun Heo tj at kernel.org
Mon May 18 12:53:34 PDT 2026


Hello,

On Mon, May 18, 2026 at 10:06:29AM +0200, David Hildenbrand (Arm) wrote:
> On 5/17/26 23:12, Tejun Heo wrote:
> > +static inline bool ptep_try_install(pte_t *ptep, pte_t new_pte)
> > +{
> > +	return false;
> > +}
> > +#endif
> 
> Ehm, what?
> 
> This is a very, very, very bad generic idea/interface.
> 
> On which ptes is this supposed to be used? User ptes or kernel ptes?
> 
> Surely we don't want this on user ptes.

Yeah, this is only for the BPF arena PTEs which are already managed in their
own way. I'd be happy to place / gate it however appropriate.

Thanks.

-- 
tejun



More information about the linux-arm-kernel mailing list