summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2026-08-11 15:31:49 +0930
committerDavid Sterba <dsterba@suse.com>2026-09-02 22:19:30 +0200
commit0c1032c8c3e9dc8b9a9fa5f6ef23966e236466ed (patch)
tree6a1f1bc3b274330112787dbd549a5520f86c1e38 /scripts/Makefile.thinlto
parent2acb9f3d1cc8f65dc81ed55e238cbf8e5b60bff7 (diff)
downloadlinux-stable-0c1032c8c3e9dc8b9a9fa5f6ef23966e236466ed.tar.gz
linux-stable-0c1032c8c3e9dc8b9a9fa5f6ef23966e236466ed.zip
btrfs: tests: do not touch page cache if root/inode allocation failed
Inside test_find_delalloc() of extent-io-tests.c, if we fail to allocate a dummy root or the test inode, we go to out label to clean up. But at that stage, @inode is still NULL and we will call process_page_range() to access the page cache of the inode, this will cause NULL pointer dereference. This is a very minor bug, as it only affects selftests which are not compiled in by default for most distros, and very hard to trigger. Fix it by adding a new out_root_info label to handle root and inode allocation failure. This is a pre-existing bug reported by Sashiko while reviewing another patch. Link: https://sashiko.dev/#/patchset/cover.1786095309.git.wqu%40suse.com Reviewed-by: Boris Burkov <boris@bur.io> Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions