sapling/eden
Katie Mancini 2bf7198b74 fix stale inode unload crash
Summary:
In forgetStaleInodes we are checking for unlinked unloaded inodes and
de-referencing them. The dereferencing is happening inline with where we
are iterating through unloaded inodes.

This is causing us to invalidate an iterator that we are using. Which causes
a use after free.

let's collect the inode number of inodes to de-reference and de-reference them
after we finish iterating.

Reviewed By: xavierd

Differential Revision: D34315130

fbshipit-source-id: b390959bd26edf1545e900f0e5f72fc1885efa3a
2022-02-18 09:23:08 -08:00
..
fs fix stale inode unload crash 2022-02-18 09:23:08 -08:00
hg-server Convert type comments for eden 2022-02-10 08:48:35 -08:00
integration Add annotations to eden 2022-02-14 12:17:43 -08:00
locale
mononoke mononoke_api: use lazyshared for context shared futures 2022-02-18 07:06:21 -08:00
scm Symlinks work outside repo root 2022-02-18 04:08:21 -08:00
test_support Add annotations to eden 2022-02-14 12:17:43 -08:00
test-data test-data: remove snapshot 20190313 2022-02-04 13:50:48 -08:00
.gitignore
.mononoke_test_file test push 2022-01-06 05:57:35 -08:00
Eden.project.toml