[PATCH v3 bpf-next 1/5] namei: Introduce new helper function path_walk_parent()

Tingmao Wang m at maowtm.org
Tue Jun 10 22:34:59 UTC 2025


On 6/10/25 23:26, Tingmao Wang wrote:
> [...]
> 
> A quick suggestion although I haven't tested anything - maybe we should do
> a special case check for IS_ROOT inside the
>     if (unlikely(path->dentry == path->mnt->mnt_root))
> ? Before "path_put(path);", if IS_ROOT(p.dentry) then we just path_get(p)
                                                                     ^^^ sorry I meant put
> and return false.



More information about the Linux-security-module-archive mailing list