<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/smb/common, branch linux-6.10.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.10.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.10.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2024-07-04T04:21:41Z</updated>
<entry>
<title>ksmbd: return FILE_DEVICE_DISK instead of super magic</title>
<updated>2024-07-04T04:21:41Z</updated>
<author>
<name>Namjae Jeon</name>
</author>
<published>2024-06-23T23:39:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=25a6e135569b3901452e4863c94560df7c11c492'/>
<id>urn:sha1:25a6e135569b3901452e4863c94560df7c11c492</id>
<content type='text'>
MS-SMB2 specification describes setting -&gt;DeviceType to FILE_DEVICE_DISK
or FILE_DEVICE_CD_ROM. Set FILE_DEVICE_DISK instead of super magic in
FS_DEVICE_INFORMATION. And Set FILE_READ_ONLY_DEVICE for read-only share.

Signed-off-by: Namjae Jeon &lt;linkinjeon@kernel.org&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
</content>
</entry>
<entry>
<title>fs: smb: common: add missing MODULE_DESCRIPTION() macros</title>
<updated>2024-05-27T05:44:23Z</updated>
<author>
<name>Jeff Johnson</name>
</author>
<published>2024-05-26T16:52:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9ee267a29309233b9ef8f58ee61e0b1c9b5879e8'/>
<id>urn:sha1:9ee267a29309233b9ef8f58ee61e0b1c9b5879e8</id>
<content type='text'>
Fix the 'make W=1' warnings:
WARNING: modpost: missing MODULE_DESCRIPTION() in fs/smb/common/cifs_arc4.o
WARNING: modpost: missing MODULE_DESCRIPTION() in fs/smb/common/cifs_md4.o

Signed-off-by: Jeff Johnson &lt;quic_jjohnson@quicinc.com&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
</content>
</entry>
<entry>
<title>smb: smb2pdu.h: Avoid -Wflex-array-member-not-at-end warnings</title>
<updated>2024-05-13T21:46:56Z</updated>
<author>
<name>Gustavo A. R. Silva</name>
</author>
<published>2024-04-11T15:35:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9f9bef9bc5c68a6ca9bbffcd29cd188167c29ae1'/>
<id>urn:sha1:9f9bef9bc5c68a6ca9bbffcd29cd188167c29ae1</id>
<content type='text'>
-Wflex-array-member-not-at-end is coming in GCC-14, and we are getting
ready to enable it globally.

So, in order to avoid ending up with a flexible-array member in the
middle of multiple other structs, we use the `__struct_group()` helper
to separate the flexible array from the rest of the members in the
flexible structure, and use the tagged `struct create_context_hdr`
instead of `struct create_context`.

So, with these changes, fix 51 of the following warnings[1]:

fs/smb/client/../common/smb2pdu.h:1225:31: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end]

Link: https://gist.github.com/GustavoARSilva/772526a39be3dd4db39e71497f0a9893 [1]
Link: https://github.com/KSPP/linux/issues/202
Signed-off-by: Gustavo A. R. Silva &lt;gustavoars@kernel.org&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
</content>
</entry>
<entry>
<title>ksmbd: common: use struct_group_attr instead of struct_group for network_open_info</title>
<updated>2024-04-20T01:48:47Z</updated>
<author>
<name>Namjae Jeon</name>
</author>
<published>2024-04-19T14:46:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0268a7cc7fdc47d90b6c18859de7718d5059f6f1'/>
<id>urn:sha1:0268a7cc7fdc47d90b6c18859de7718d5059f6f1</id>
<content type='text'>
4byte padding cause the connection issue with the applications of MacOS.
smb2_close response size increases by 4 bytes by padding, And the smb
client of MacOS check it and stop the connection. This patch use
struct_group_attr instead of struct_group for network_open_info to use
 __packed to avoid padding.

Fixes: 0015eb6e1238 ("smb: client, common: fix fortify warnings")
Cc: stable@vger.kernel.org
Signed-off-by: Namjae Jeon &lt;linkinjeon@kernel.org&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
</content>
</entry>
<entry>
<title>smb311: additional compression flag defined in updated protocol spec</title>
<updated>2024-03-20T16:49:44Z</updated>
<author>
<name>Steve French</name>
</author>
<published>2024-03-19T22:00:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e56bc745fa1de77abc2ad8debc4b1b83e0426c49'/>
<id>urn:sha1:e56bc745fa1de77abc2ad8debc4b1b83e0426c49</id>
<content type='text'>
Added new compression flag that was recently documented, in
addition fix some typos and clarify the sid_attr_data struct
definition.

Reviewed-by: Bharath SM &lt;bharathsm@microsoft.com&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
</content>
</entry>
<entry>
<title>smb311: correct incorrect offset field in compression header</title>
<updated>2024-03-20T16:49:44Z</updated>
<author>
<name>Steve French</name>
</author>
<published>2024-03-19T20:59:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=68c5818a27afcb5cdddab041b82e9d47c996cb6a'/>
<id>urn:sha1:68c5818a27afcb5cdddab041b82e9d47c996cb6a</id>
<content type='text'>
The offset field in the compression header is 32 bits not 16.

Reviewed-by: Bharath SM &lt;bharathsm@microsoft.com&gt;
Reported-by: Enzo Matsumiya &lt;ematsumiya@suse.de&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
</content>
</entry>
<entry>
<title>smb: common: simplify compression headers</title>
<updated>2024-03-11T00:52:42Z</updated>
<author>
<name>Enzo Matsumiya</name>
</author>
<published>2024-03-08T22:00:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=24337b60e88219816f84d633369299660e8e8cce'/>
<id>urn:sha1:24337b60e88219816f84d633369299660e8e8cce</id>
<content type='text'>
Unify compression headers (chained and unchained) into a single struct
so we can use it for the initial compression transform header
interchangeably.

Also make the OriginalPayloadSize field to be always visible in the
compression payload header, and have callers subtract its size when not
needed.

Rename the related structs to match the naming convetion used in the
other SMB2 structs.

Signed-off-by: Enzo Matsumiya &lt;ematsumiya@suse.de&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
</content>
</entry>
<entry>
<title>smb: common: fix fields sizes in compression_pattern_payload_v1</title>
<updated>2024-03-11T00:52:42Z</updated>
<author>
<name>Enzo Matsumiya</name>
</author>
<published>2024-03-08T21:34:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f49af462875a0922167cf301cf126cd04009070e'/>
<id>urn:sha1:f49af462875a0922167cf301cf126cd04009070e</id>
<content type='text'>
See protocol documentation in MS-SMB2 section 2.2.42.2.2

Signed-off-by: Enzo Matsumiya &lt;ematsumiya@suse.de&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
</content>
</entry>
<entry>
<title>smb: client: add support for WSL reparse points</title>
<updated>2024-03-11T00:33:58Z</updated>
<author>
<name>Paulo Alcantara</name>
</author>
<published>2024-01-26T22:26:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5a4b09ecf8e8ad26ea03a37e52e310fe13f15b49'/>
<id>urn:sha1:5a4b09ecf8e8ad26ea03a37e52e310fe13f15b49</id>
<content type='text'>
Add support for creating special files via WSL reparse points when
using 'reparse=wsl' mount option.  They're faster than NFS reparse
points because they don't require extra roundtrips to figure out what
-&gt;d_type a specific dirent is as such information is already stored in
query dir responses and then making getdents() calls faster.

Signed-off-by: Paulo Alcantara &lt;pc@manguebit.com&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
</content>
</entry>
<entry>
<title>ksmbd: fix wrong name of SMB2_CREATE_ALLOCATION_SIZE</title>
<updated>2023-12-08T16:11:33Z</updated>
<author>
<name>Namjae Jeon</name>
</author>
<published>2023-12-05T23:23:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=13736654481198e519059d4a2e2e3b20fa9fdb3e'/>
<id>urn:sha1:13736654481198e519059d4a2e2e3b20fa9fdb3e</id>
<content type='text'>
MS confirm that "AISi" name of SMB2_CREATE_ALLOCATION_SIZE in MS-SMB2
specification is a typo. cifs/ksmbd have been using this wrong name from
MS-SMB2. It should be "AlSi". Also It will cause problem when running
smb2.create.open test in smbtorture against ksmbd.

Cc: stable@vger.kernel.org
Fixes: 12197a7fdda9 ("Clarify SMB2/SMB3 create context and add missing ones")
Signed-off-by: Namjae Jeon &lt;linkinjeon@kernel.org&gt;
Reviewed-by: Paulo Alcantara (SUSE) &lt;pc@manguebit.com&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
</content>
</entry>
</feed>
