diff options
| author | Miklos Szeredi <[email protected]> | 2023-10-25 14:01:59 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2023-11-18 13:56:16 +0000 |
| commit | 98d2b43081972abeb5bb5a087bc3e3197531c46e (patch) | |
| tree | b56d8e448127d642c39b6fad6f14a5166666d3f1 /lib/timerqueue.c | |
| parent | Linux 6.7-rc1 (diff) | |
| download | kernel-98d2b43081972abeb5bb5a087bc3e3197531c46e.tar.gz kernel-98d2b43081972abeb5bb5a087bc3e3197531c46e.zip | |
add unique mount ID
If a mount is released then its mnt_id can immediately be reused. This is
bad news for user interfaces that want to uniquely identify a mount.
Implementing a unique mount ID is trivial (use a 64bit counter).
Unfortunately userspace assumes 32bit size and would overflow after the
counter reaches 2^32.
Introduce a new 64bit ID alongside the old one. Initialize the counter to
2^32, this guarantees that the old and new IDs are never mixed up.
Signed-off-by: Miklos Szeredi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Ian Kent <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'lib/timerqueue.c')
0 files changed, 0 insertions, 0 deletions
