summaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2025-01-17 09:09:34 +1030
committerDavid Sterba <dsterba@suse.com>2025-05-02 13:20:26 +0200
commit8fb1dcbbcc1ffe6ed7cf3f0f96d2737491dd1fbf (patch)
tree6604d3bbd8a1b1f2b75333f21da3770ffe7eed9d /net/lapb/lapb_timer.c
parentf95d186255b319c48a365d47b69bd997fecb674e (diff)
downloadlinux-8fb1dcbbcc1ffe6ed7cf3f0f96d2737491dd1fbf.tar.gz
linux-8fb1dcbbcc1ffe6ed7cf3f0f96d2737491dd1fbf.tar.bz2
linux-8fb1dcbbcc1ffe6ed7cf3f0f96d2737491dd1fbf.zip
Revert "btrfs: canonicalize the device path before adding it"
This reverts commit 7e06de7c83a746e58d4701e013182af133395188. Commit 7e06de7c83a7 ("btrfs: canonicalize the device path before adding it") tries to make btrfs to use "/dev/mapper/*" name first, then any filename inside "/dev/" as the device path. This is mostly fine when there is only the root namespace involved, but when multiple namespace are involved, things can easily go wrong for the d_path() usage. As d_path() returns a file path that is namespace dependent, the resulted string may not make any sense in another namespace. Furthermore, the "/dev/" prefix checks itself is not reliable, one can still make a valid initramfs without devtmpfs, and fill all needed device nodes manually. Overall the userspace has all its might to pass whatever device path for mount, and we are not going to win the war trying to cover every corner case. So just revert that commit, and do no extra d_path() based file path sanity check. CC: stable@vger.kernel.org # 6.12+ Link: https://lore.kernel.org/linux-fsdevel/20250115185608.GA2223535@zen.localdomain/ Reviewed-by: Boris Burkov <boris@bur.io> Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions