diff options
| author | Alan Huang <mmpgouride@gmail.com> | 2025-06-13 22:54:59 +0800 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-06-15 22:11:55 -0400 |
| commit | 9b54efe66c9b44e7446e8a81a058c014cd43661d (patch) | |
| tree | 9758575a268a49bd7637a62b874353586530211f /fs/bcachefs/btree_trans_commit.c | |
| parent | bcachefs: Don't allocate new memory when mempool is exhausted (diff) | |
| download | linux-9b54efe66c9b44e7446e8a81a058c014cd43661d.tar.gz linux-9b54efe66c9b44e7446e8a81a058c014cd43661d.zip | |
bcachefs: Fix alloc_req use after free
Now the alloc_req is allocated from the bump allocator, if there is
reallocation, the memory of alloc_req would be frees, fix by delaying the
reallocation to transaction restart, it has to restart anyway.
Reported-by: syzbot+2887a13a5c387e616a68@syzkaller.appspotmail.com
Signed-off-by: Alan Huang <mmpgouride@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_trans_commit.c')
0 files changed, 0 insertions, 0 deletions
