]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ntfs: support following Windows native symlink with relative paths
authorHyunchul Lee <hyc.lee@gmail.com>
Sun, 14 Jun 2026 23:49:53 +0000 (08:49 +0900)
committerNamjae Jeon <linkinjeon@kernel.org>
Mon, 15 Jun 2026 10:39:34 +0000 (19:39 +0900)
commit517cd625ad79b8bfa429092ad1536ee2dd477e68
tree4f4c739e7a7943c955452b696b6321cc804a0b9d
parent05a5ff86a7f12c861e3516d3dc4d092ce620742d
ntfs: support following Windows native symlink with relative paths

Make ntfs_make_symlink() parse native Windows symbolic link reparse
payloads when the SYMLINK_FLAG_RELATIVE bit is set.
Implement the following changes:
 * Add a dedicated on-disk layout definition for symbolic link reparse
   data.
 * validate the UTF-16 name ranges before decoding them.
 * convert the substitute name into the mount's NLS and normalize path
   separators.

Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
fs/ntfs/inode.c
fs/ntfs/layout.h
fs/ntfs/reparse.c