diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2024-03-20 16:42:47 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2024-03-20 16:42:47 -0700 |
commit | 23956900041d968f9ad0f30db6dede4daccd7aa9 (patch) | |
tree | 9ca4462c988f61d979d5d5bbb246586e74fa8e79 /fs/smb/server/smb2pdu.h | |
parent | Merge tag 'trace-tools-v6.9' of git://git.kernel.org/pub/scm/linux/kernel/git... (diff) | |
parent | ksmbd: remove module version (diff) | |
download | linux-23956900041d968f9ad0f30db6dede4daccd7aa9.tar.gz linux-23956900041d968f9ad0f30db6dede4daccd7aa9.tar.bz2 linux-23956900041d968f9ad0f30db6dede4daccd7aa9.zip |
Merge tag 'v6.9-rc-smb3-server-fixes' of git://git.samba.org/ksmbd
Pull smb server updates from Steve French:
- add support for durable file handles (an important data integrity
feature)
- fixes for potential out of bounds issues
- fix possible null dereference in close
- getattr fixes
- trivial typo fix and minor cleanup
* tag 'v6.9-rc-smb3-server-fixes' of git://git.samba.org/ksmbd:
ksmbd: remove module version
ksmbd: fix potencial out-of-bounds when buffer offset is invalid
ksmbd: fix slab-out-of-bounds in smb_strndup_from_utf16()
ksmbd: Fix spelling mistake "connction" -> "connection"
ksmbd: fix possible null-deref in smb_lazy_parent_lease_break_close
ksmbd: add support for durable handles v1/v2
ksmbd: mark SMB2_SESSION_EXPIRED to session when destroying previous session
ksmbd: retrieve number of blocks using vfs_getattr in set_file_allocation_info
ksmbd: replace generic_fillattr with vfs_getattr
Diffstat (limited to 'fs/smb/server/smb2pdu.h')
-rw-r--r-- | fs/smb/server/smb2pdu.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/fs/smb/server/smb2pdu.h b/fs/smb/server/smb2pdu.h index d12cfd3b0927..bd1d2a0e9203 100644 --- a/fs/smb/server/smb2pdu.h +++ b/fs/smb/server/smb2pdu.h @@ -72,6 +72,18 @@ struct create_durable_req_v2 { __u8 CreateGuid[16]; } __packed; +struct create_durable_reconn_req { + struct create_context ccontext; + __u8 Name[8]; + union { + __u8 Reserved[16]; + struct { + __u64 PersistentFileId; + __u64 VolatileFileId; + } Fid; + } Data; +} __packed; + struct create_durable_reconn_v2_req { struct create_context ccontext; __u8 Name[8]; @@ -98,6 +110,9 @@ struct create_durable_rsp { } Data; } __packed; +/* See MS-SMB2 2.2.13.2.11 */ +/* Flags */ +#define SMB2_DHANDLE_FLAG_PERSISTENT 0x00000002 struct create_durable_v2_rsp { struct create_context ccontext; __u8 Name[8]; |