diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-10-25 02:56:47 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:08:45 +0200 |
commit | 13dcd4abcd8d4e177f4f75ea3f5c8838a8a8c3c3 (patch) | |
tree | 10225ec9e40dec10e87c9344257b29840a93278b /fs/bcachefs/reflink.h | |
parent | bcachefs: Improve some error messages (diff) | |
download | linux-13dcd4abcd8d4e177f4f75ea3f5c8838a8a8c3c3.tar.xz linux-13dcd4abcd8d4e177f4f75ea3f5c8838a8a8c3c3.zip |
bcachefs: Fix rare use after free in read path
If the bkey_on_stack_reassemble() call in __bch2_read_indirect_extent()
reallocates the buffer, k in bch2_read - which we pointed at the
bkey_on_stack buffer - will now point to a stale buffer. Whoops.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/reflink.h')
0 files changed, 0 insertions, 0 deletions