]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: send: handle path ref underflow in header iterate_inode_ref()
authorDavid Sterba <dsterba@suse.com>
Tue, 6 Feb 2024 21:47:13 +0000 (22:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Apr 2024 11:07:32 +0000 (13:07 +0200)
commitc1363ed8867b81ea169fba2ccc14af96a85ed183
tree4a77658bd668b5cb8ed93e89bcd01022c9ec6ca2
parent30237d6764febd52d6c0494aa398e3b94ad3958d
btrfs: send: handle path ref underflow in header iterate_inode_ref()

[ Upstream commit 3c6ee34c6f9cd12802326da26631232a61743501 ]

Change BUG_ON to proper error handling if building the path buffer
fails. The pointers are not printed so we don't accidentally leak kernel
addresses.

Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/btrfs/send.c