-
- Downloads
btrfs: convert extent_map.refs from atomic_t to refcount_t
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by:Elena Reshetova <elena.reshetova@intel.com> Signed-off-by:
Hans Liljestrand <ishkamiel@gmail.com> Signed-off-by:
Kees Cook <keescook@chromium.org> Signed-off-by:
David Windsor <dwindsor@gmail.com> Signed-off-by:
David Sterba <dsterba@suse.com>
Showing
- fs/btrfs/extent_io.c 2 additions, 2 deletionsfs/btrfs/extent_io.c
- fs/btrfs/extent_map.c 5 additions, 5 deletionsfs/btrfs/extent_map.c
- fs/btrfs/extent_map.h 2 additions, 1 deletionfs/btrfs/extent_map.h
- fs/btrfs/tree-log.c 1 addition, 1 deletionfs/btrfs/tree-log.c
- fs/btrfs/volumes.c 1 addition, 1 deletionfs/btrfs/volumes.c
- include/trace/events/btrfs.h 1 addition, 1 deletioninclude/trace/events/btrfs.h
Loading
Please register or sign in to comment