Re: [RFC][PATCH v4 26/69] sanitize handling of nd->last_type, kill LAST_BIND

From: Al Viro
Date: Sun Mar 15 2020 - 10:37:11 EST


On Sun, Mar 15, 2020 at 06:29:05PM +0800, Hillf Danton wrote:

> > And make link_path_walk() _always_ assign ->last_type - in the only
> > case when the value at the entry might survive to the return that value
> > is always LAST_ROOT, inherited from path_init(). Move that assignment
> > from path_init() into the beginning of link_path_walk(), to consolidate
> > the things.
> >
> If you agree that the move is not a huge change, drop it for the sake of
> init in order to close the time window of a random last_type.

What time window of a random last_type and what does "drop for the sake of
init" mean? Confused...