diff options
| author | 2026-09-14 01:26:37 +0200 | |
|---|---|---|
| committer | 2026-10-21 08:55:17 +0900 | |
| commit | d3ef5ae55a16d4b31859e7feadbb50a0cd38dfcc (patch) | |
| tree | 850157a04617f47e3291875da5750ad3e67a0317 /scripts/Makefile.thinlto | |
| parent | ksmbd: look up stream size by exact xattr name (diff) | |
ksmbd: fix AFP_AfpInfo header fields in synthesized xattr
smb2_set_stream_name_xattr() synthesizes a 60-byte AFP_AfpInfo xattr
when a client opens a nonexistent one on a Time Machine share, so the
probe is answered instead of failing with -EBADF. Its header does not
match what clients write: ksmbd uses 0x00051607 and 0x00020000 for the
first two fields and leaves the third zero.
The user.DosStream.AFP_AfpInfo:$DATA xattr a macOS client writes
begins:
00000000: 4146 5000 0000 0100 0000 0000 0000 0080 AFP.............
Write those sixteen bytes: the signature, the version at offset 4 and
the backup time at offset 12. The 60-byte length is already correct and
the rest stays zeroed: a zero type and creator lets the client use the
file extension for icon and type detection.
Fixes: eaff8e924f60 ("ksmbd: synthesize empty AFP_AfpInfo xattr on first probe")
Signed-off-by: Gael Blivet <gael.blivet@gmail.com>
Assisted-by: Claude:claude-opus-5
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
