Re: [for-linus][PATCH 1/3] eventfs: Have the inodes all for files and directories all be the same

From: Linus Torvalds
Date: Mon Jan 22 2024 - 13:24:23 EST


On Mon, 22 Jan 2024 at 09:37, Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> Yeah, limiting it to directories will at least somewhat help the
> address leaking.

Actually, why not juist add an inode number to your data structures,
at least for directories? And just do a static increment on it as they
get registered?

That avoids the whole issue with possibly leaking kernel address data.

Linus