<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/cifs/inode.c, branch linux-5.9.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.9.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.9.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-11-05T10:51:28Z</updated>
<entry>
<title>cifs: handle -EINTR in cifs_setattr</title>
<updated>2020-11-05T10:51:28Z</updated>
<author>
<name>Ronnie Sahlberg</name>
</author>
<published>2020-10-08T23:32:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9e9f33d227d6f17e239e3c26b59730a11fb2be8f'/>
<id>urn:sha1:9e9f33d227d6f17e239e3c26b59730a11fb2be8f</id>
<content type='text'>
[ Upstream commit c6cc4c5a72505a0ecefc9b413f16bec512f38078 ]

RHBZ: 1848178

Some calls that set attributes, like utimensat(), are not supposed to return
-EINTR and thus do not have handlers for this in glibc which causes us
to leak -EINTR to the applications which are also unprepared to handle it.

For example tar will break if utimensat() return -EINTR and abort unpacking
the archive. Other applications may break too.

To handle this we add checks, and retry, for -EINTR in cifs_setattr()

Signed-off-by: Ronnie Sahlberg &lt;lsahlber@redhat.com&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>cifs: fix DFS mount with cifsacl/modefromsid</title>
<updated>2020-09-07T04:59:53Z</updated>
<author>
<name>Ronnie Sahlberg</name>
</author>
<published>2020-09-03T00:02:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=01ec372cef1e5afa4ab843bbaf88a6fcb64dc14c'/>
<id>urn:sha1:01ec372cef1e5afa4ab843bbaf88a6fcb64dc14c</id>
<content type='text'>
RHBZ: 1871246

If during cifs_lookup()/get_inode_info() we encounter a DFS link
and we use the cifsacl or modefromsid mount options we must suppress
any -EREMOTE errors that triggers or else we will not be able to follow
the DFS link and automount the target.

This fixes an issue with modefromsid/cifsacl where these mountoptions
would break DFS and we would no longer be able to access the share.

Signed-off-by: Ronnie Sahlberg &lt;lsahlber@redhat.com&gt;
Reviewed-by: Paulo Alcantara (SUSE) &lt;pc@cjr.nz&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
</content>
</entry>
<entry>
<title>cifs: remove unused variable 'server'</title>
<updated>2020-08-02T23:00:25Z</updated>
<author>
<name>Wei Yongjun</name>
</author>
<published>2020-07-07T11:27:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=66a4bbc327e740c65b19a471fb9911f7f4b876fb'/>
<id>urn:sha1:66a4bbc327e740c65b19a471fb9911f7f4b876fb</id>
<content type='text'>
Fix build warning by removing unused variable 'server':

fs/cifs/inode.c:1089:26: warning:
 variable server set but not used [-Wunused-but-set-variable]
 1089 |  struct TCP_Server_Info *server;
      |                          ^~~~~~

Signed-off-by: Wei Yongjun &lt;weiyongjun1@huawei.com&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
Reviewed-by: Aurelien Aptel &lt;aaptel@suse.com&gt;
</content>
</entry>
<entry>
<title>Revert "cifs: Fix the target file was deleted when rename failed."</title>
<updated>2020-07-23T20:44:11Z</updated>
<author>
<name>Steve French</name>
</author>
<published>2020-07-23T19:41:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0e6705182d4e1b77248a93470d6d7b3013d59b30'/>
<id>urn:sha1:0e6705182d4e1b77248a93470d6d7b3013d59b30</id>
<content type='text'>
This reverts commit 9ffad9263b467efd8f8dc7ae1941a0a655a2bab2.

Upon additional testing with older servers, it was found that
the original commit introduced a regression when using the old SMB1
dialect and rsyncing over an existing file.

The patch will need to be respun to address this, likely including
a larger refactoring of the SMB1 and SMB3 rename code paths to make
it less confusing and also to address some additional rename error
cases that SMB3 may be able to workaround.

Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
Reported-by: Patrick Fernie &lt;patrick.fernie@gmail.com&gt;
CC: Stable &lt;stable@vger.kernel.org&gt;
Acked-by: Ronnie Sahlberg &lt;lsahlber@redhat.com&gt;
Acked-by: Pavel Shilovsky &lt;pshilov@microsoft.com&gt;
Acked-by: Zhang Xiaoxu &lt;zhangxiaoxu5@huawei.com&gt;
</content>
</entry>
<entry>
<title>cifs: Fix the target file was deleted when rename failed.</title>
<updated>2020-07-02T00:41:56Z</updated>
<author>
<name>Zhang Xiaoxu</name>
</author>
<published>2020-06-29T01:06:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9ffad9263b467efd8f8dc7ae1941a0a655a2bab2'/>
<id>urn:sha1:9ffad9263b467efd8f8dc7ae1941a0a655a2bab2</id>
<content type='text'>
When xfstest generic/035, we found the target file was deleted
if the rename return -EACESS.

In cifs_rename2, we unlink the positive target dentry if rename
failed with EACESS or EEXIST, even if the target dentry is positived
before rename. Then the existing file was deleted.

We should just delete the target file which created during the
rename.

Reported-by: Hulk Robot &lt;hulkci@huawei.com&gt;
Signed-off-by: Zhang Xiaoxu &lt;zhangxiaoxu5@huawei.com&gt;
Cc: stable@vger.kernel.org
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
Reviewed-by: Aurelien Aptel &lt;aaptel@suse.com&gt;
</content>
</entry>
<entry>
<title>cifs: update ctime and mtime during truncate</title>
<updated>2020-06-24T00:06:27Z</updated>
<author>
<name>Zhang Xiaoxu</name>
</author>
<published>2020-06-20T02:51:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5618303d8516f8ac5ecfe53ee8e8bc9a40eaf066'/>
<id>urn:sha1:5618303d8516f8ac5ecfe53ee8e8bc9a40eaf066</id>
<content type='text'>
As the man description of the truncate, if the size changed,
then the st_ctime and st_mtime fields should be updated. But
in cifs, we doesn't do it.

It lead the xfstests generic/313 failed.

So, add the ATTR_MTIME|ATTR_CTIME flags on attrs when change
the file size

Reported-by: Hulk Robot &lt;hulkci@huawei.com&gt;
Signed-off-by: Zhang Xiaoxu &lt;zhangxiaoxu5@huawei.com&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
</content>
</entry>
<entry>
<title>smb3: Add debug message for new file creation with idsfromsid mount option</title>
<updated>2020-06-12T21:31:06Z</updated>
<author>
<name>Steve French</name>
</author>
<published>2020-06-12T19:49:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a7a519a4926214ba4161bc30109f4a8d69defb8d'/>
<id>urn:sha1:a7a519a4926214ba4161bc30109f4a8d69defb8d</id>
<content type='text'>
Pavel noticed that a debug message (disabled by default) in creating the security
descriptor context could be useful for new file creation owner fields
(as we already have for the mode) when using mount parm idsfromsid.

[38120.392272] CIFS: FYI: owner S-1-5-88-1-0, group S-1-5-88-2-0
[38125.792637] CIFS: FYI: owner S-1-5-88-1-1000, group S-1-5-88-2-1000

Also cleans up a typo in a comment

Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
Reviewed-by: Pavel Shilovsky &lt;pshilov@microsoft.com&gt;
</content>
</entry>
<entry>
<title>smb311: add support for using info level for posix extensions query</title>
<updated>2020-06-12T13:54:12Z</updated>
<author>
<name>Steve French</name>
</author>
<published>2020-06-12T03:43:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d313852d7ad044476df7f640801aac17080e0521'/>
<id>urn:sha1:d313852d7ad044476df7f640801aac17080e0521</id>
<content type='text'>
Adds calls to the newer info level for query info using SMB3.1.1 posix extensions.
The remaining two places that call the older query info (non-SMB3.1.1 POSIX)
require passing in the fid and can be updated in a later patch.

Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
Reviewed-by: Aurelien Aptel &lt;aaptel@suse.com&gt;
</content>
</entry>
<entry>
<title>SMB311: Add support for query info using posix extensions (level 100)</title>
<updated>2020-06-12T11:20:38Z</updated>
<author>
<name>Steve French</name>
</author>
<published>2020-06-12T00:25:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6a5f6592a0b606eac3147f786c958f1696c337f3'/>
<id>urn:sha1:6a5f6592a0b606eac3147f786c958f1696c337f3</id>
<content type='text'>
Adds support for better query info on dentry revalidation (using
the SMB3.1.1 POSIX extensions level 100).  Followon patch will
add support for translating the UID/GID from the SID and also
will add support for using the posix query info on lookup.

Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
Reviewed-by: Ronnie Sahlberg &lt;lsahlber@redhat.com&gt;
Reviewed-by: Aurelien Aptel &lt;aaptel@suse.com&gt;
</content>
</entry>
<entry>
<title>Merge tag '5.8-rc-smb3-fixes-part-1' of git://git.samba.org/sfrench/cifs-2.6</title>
<updated>2020-06-05T23:40:53Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2020-06-05T23:40:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3803d5e4d3ce2600ffddc16a1999798bc719042d'/>
<id>urn:sha1:3803d5e4d3ce2600ffddc16a1999798bc719042d</id>
<content type='text'>
Pull cifs updates from Steve French:
 "22 changesets, 2 for stable.

  Includes big performance improvement for large i/o when using
  multichannel, also includes DFS fixes"

* tag '5.8-rc-smb3-fixes-part-1' of git://git.samba.org/sfrench/cifs-2.6: (22 commits)
  cifs: update internal module version number
  cifs: multichannel: try to rebind when reconnecting a channel
  cifs: multichannel: use pointer for binding channel
  smb3: remove static checker warning
  cifs: multichannel: move channel selection above transport layer
  cifs: multichannel: always zero struct cifs_io_parms
  cifs: dump Security Type info in DebugData
  smb3: fix incorrect number of credits when ioctl MaxOutputResponse &gt; 64K
  smb3: default to minimum of two channels when multichannel specified
  cifs: multichannel: move channel selection in function
  cifs: fix minor typos in comments and log messages
  smb3: minor update to compression header definitions
  cifs: minor fix to two debug messages
  cifs: Standardize logging output
  smb3: Add new parm "nodelete"
  cifs: move some variables off the stack in smb2_ioctl_query_info
  cifs: reduce stack use in smb2_compound_op
  cifs: get rid of unused parameter in reconn_setup_dfs_targets()
  cifs: handle hostnames that resolve to same ip in failover
  cifs: set up next DFS target before generic_ip_connect()
  ...
</content>
</entry>
</feed>
