diff options
| author | Filipe Manana <[email protected]> | 2024-10-02 14:02:56 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2024-10-09 11:23:51 +0000 |
| commit | fe4cd7ed128fe82ab9fe4f9fc8a73d4467699787 (patch) | |
| tree | 1553cbd94f8dc9591ebd237e8b7fca12408b4fd8 /net/ipv4/tcp_output.c | |
| parent | btrfs: fix missing error handling when adding delayed ref with qgroups enabled (diff) | |
| download | kernel-fe4cd7ed128fe82ab9fe4f9fc8a73d4467699787.tar.gz kernel-fe4cd7ed128fe82ab9fe4f9fc8a73d4467699787.zip | |
btrfs: zoned: fix missing RCU locking in error message when loading zone info
At btrfs_load_zone_info() we have an error path that is dereferencing
the name of a device which is a RCU string but we are not holding a RCU
read lock, which is incorrect.
Fix this by using btrfs_err_in_rcu() instead of btrfs_err().
The problem is there since commit 08e11a3db098 ("btrfs: zoned: load zone's
allocation offset"), back then at btrfs_load_block_group_zone_info() but
then later on that code was factored out into the helper
btrfs_load_zone_info() by commit 09a46725cc84 ("btrfs: zoned: factor out
per-zone logic from btrfs_load_block_group_zone_info").
Fixes: 08e11a3db098 ("btrfs: zoned: load zone's allocation offset")
Reviewed-by: Johannes Thumshirn <[email protected]>
Reviewed-by: Qu Wenruo <[email protected]>
Reviewed-by: Naohiro Aota <[email protected]>
Signed-off-by: Filipe Manana <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions
