<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/cifs/dir.c, branch linux-3.14.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.14.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.14.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2016-08-20T09:53:20Z</updated>
<entry>
<title>cifs: Check for existing directory when opening file with O_CREAT</title>
<updated>2016-08-20T09:53:20Z</updated>
<author>
<name>Sachin Prabhu</name>
</author>
<published>2016-07-07T20:28:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=30d6d4f221b089022a33e274b31c68840a5f4310'/>
<id>urn:sha1:30d6d4f221b089022a33e274b31c68840a5f4310</id>
<content type='text'>
commit 8d9535b6efd86e6c07da59f97e68f44efb7fe080 upstream.

When opening a file with O_CREAT flag, check to see if the file opened
is an existing directory.

This prevents the directory from being opened which subsequently causes
a crash when the close function for directories cifs_closedir() is called
which frees up the file-&gt;private_data memory while the file is still
listed on the open file list for the tcon.

Signed-off-by: Sachin Prabhu &lt;sprabhu@redhat.com&gt;
Signed-off-by: Steve French &lt;smfrench@gmail.com&gt;
Reported-by: Xiaoli Feng &lt;xifeng@redhat.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>[CIFS] Fix cifsacl mounts over smb2 to not call cifs</title>
<updated>2014-02-10T20:08:16Z</updated>
<author>
<name>Steve French</name>
</author>
<published>2014-02-10T20:08:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=42eacf9e57b65ffa768af72cb7fc86cc6f6af042'/>
<id>urn:sha1:42eacf9e57b65ffa768af72cb7fc86cc6f6af042</id>
<content type='text'>
When mounting with smb2/smb3 (e.g. vers=2.1) and cifsacl mount option,
it was trying to get the mode by querying the acl over the cifs
rather than smb2 protocol.  This patch makes that protocol
independent and makes cifsacl smb2 mounts return a more intuitive
operation not supported error (until we add a worker function
for smb2_get_acl).

Note that a previous patch fixed getxattr/setxattr for the CIFSACL xattr
which would unconditionally call cifs_get_acl and cifs_set_acl (even when
mounted smb2). I made those protocol independent last week (new protocol
version operations "get_acl" and "set_acl" but did not add an
smb2_get_acl and smb2_set_acl yet so those now simply return EOPNOTSUPP
which at least is better than sending cifs requests on smb2 mount)

The previous patches did not fix the one remaining case though ie
mounting with "cifsacl" when getting mode from acl would unconditionally
end up calling "cifs_get_acl_from_fid" even for smb2 - so made that protocol
independent but to make that protocol independent had to make sure that the callers
were passing the protocol independent handle structure (cifs_fid) instead
of cifs specific _u16 network file handle (ie cifs_fid instead of cifs_fid-&gt;fid)

Now mount with smb2 and cifsacl mount options will return EOPNOTSUP (instead
of timing out) and a future patch will add smb2 operations (e.g. get_smb2_acl)
to enable this.

Signed-off-by: Steve French &lt;smfrench@gmail.com&gt;
</content>
</entry>
<entry>
<title>CIFS: Cleanup cifs open codepath</title>
<updated>2014-01-20T15:52:13Z</updated>
<author>
<name>Pavel Shilovsky</name>
</author>
<published>2014-01-16T11:53:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d81b8a40e2ece0a9ab57b1fe1798e291e75bf8fc'/>
<id>urn:sha1:d81b8a40e2ece0a9ab57b1fe1798e291e75bf8fc</id>
<content type='text'>
Rename CIFSSMBOpen to CIFS_open and make it take
cifs_open_parms structure as a parm.

Signed-off-by: Pavel Shilovsky &lt;piastry@etersoft.ru&gt;
Signed-off-by: Steve French &lt;smfrench@gmail.com&gt;
</content>
</entry>
<entry>
<title>CIFS: Cleanup cifs_mknod</title>
<updated>2014-01-20T15:52:05Z</updated>
<author>
<name>Pavel Shilovsky</name>
</author>
<published>2014-01-16T11:53:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=dd12067156b442801a7d636de354efe1d4dc467c'/>
<id>urn:sha1:dd12067156b442801a7d636de354efe1d4dc467c</id>
<content type='text'>
Rename camel case variable and fix comment style.

Signed-off-by: Pavel Shilovsky &lt;piastry@etersoft.ru&gt;
Signed-off-by: Steve French &lt;smfrench@gmail.com&gt;
</content>
</entry>
<entry>
<title>cifs: set FILE_CREATED</title>
<updated>2013-12-27T21:14:45Z</updated>
<author>
<name>Shirish Pargaonkar</name>
</author>
<published>2013-12-11T22:29:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f1e3268126a35b9d3cb8bf67487fcc6cd13991d8'/>
<id>urn:sha1:f1e3268126a35b9d3cb8bf67487fcc6cd13991d8</id>
<content type='text'>
Set FILE_CREATED on O_CREAT|O_EXCL.

cifs code didn't change during commit 116cc0225381415b96551f725455d067f63a76a0

Kernel bugzilla 66251

Signed-off-by: Shirish Pargaonkar &lt;spargaonkar@suse.com&gt;
Acked-by: Jeff Layton &lt;jlayton@redhat.com&gt;
CC: Stable &lt;stable@kernel.org&gt;
Signed-off-by: Steve French &lt;smfrench@gmail.com&gt;
</content>
</entry>
<entry>
<title>cifs: don't spam the logs on unexpected lookup errors</title>
<updated>2013-11-11T22:34:53Z</updated>
<author>
<name>Jeff Layton</name>
</author>
<published>2013-11-07T20:03:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a8582159edb47a60dd1e5df5a21890f225270f62'/>
<id>urn:sha1:a8582159edb47a60dd1e5df5a21890f225270f62</id>
<content type='text'>
Andrey reported that he was seeing cifs.ko spam the logs with messages
like this:

    CIFS VFS: Unexpected lookup error -26

He was listing the root directory of a server and hitting an error when
trying to QUERY_PATH_INFO against hiberfil.sys and pagefile.sys. The
right fix would be to switch the lookup code over to using FIND_FIRST,
but until then we really don't need to report this at a level of
KERN_ERR. Convert this message over to FYI level.

Reported-by: "Andrey Shernyukov" &lt;andreysh@nioch.nsc.ru&gt;
Signed-off-by: Jeff Layton &lt;jlayton@redhat.com&gt;
Signed-off-by: Steve French &lt;smfrench@gmail.com&gt;
</content>
</entry>
<entry>
<title>cifs: fix filp leak in cifs_atomic_open()</title>
<updated>2013-09-16T23:17:24Z</updated>
<author>
<name>Miklos Szeredi</name>
</author>
<published>2013-09-16T12:51:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=dfb1d61b0e9f9e2c542e9adc8d970689f4114ff6'/>
<id>urn:sha1:dfb1d61b0e9f9e2c542e9adc8d970689f4114ff6</id>
<content type='text'>
If an error occurs after having called finish_open() then fput() needs to
be called on the already opened file.

Signed-off-by: Miklos Szeredi &lt;mszeredi@suse.cz&gt;
Cc: Steve French &lt;sfrench@samba.org&gt;
Cc: stable@vger.kernel.org
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>cifs: convert case-insensitive dentry ops to use new case conversion routines</title>
<updated>2013-09-08T19:38:08Z</updated>
<author>
<name>Jeff Layton</name>
</author>
<published>2013-09-05T12:38:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ec71e0e15937ae3d0d8342b564c63649b23afa3a'/>
<id>urn:sha1:ec71e0e15937ae3d0d8342b564c63649b23afa3a</id>
<content type='text'>
Have the case-insensitive d_compare and d_hash routines convert each
character in the filenames to wchar_t's and then use the new
cifs_toupper routine to convert those into uppercase.

With this scheme we should more closely emulate the case conversion that
the servers will do.

Reported-and-Tested-by: Jan-Marek Glogowski &lt;glogow@fbihome.de&gt;
Signed-off-by: Jeff Layton &lt;jlayton@redhat.com&gt;
Signed-off-by: Steve French &lt;smfrench@gmail.com&gt;
</content>
</entry>
<entry>
<title>CIFS: Reconnect durable handles for SMB2</title>
<updated>2013-07-10T18:08:40Z</updated>
<author>
<name>Pavel Shilovsky</name>
</author>
<published>2013-07-09T14:40:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9cbc0b7339b0542a1d13922d2745a2636ce44853'/>
<id>urn:sha1:9cbc0b7339b0542a1d13922d2745a2636ce44853</id>
<content type='text'>
On reconnects, we need to reopen file and then obtain all byte-range
locks held by the client. SMB2 protocol provides feature to make
this process atomic by reconnecting to the same file handle
with all it's byte-range locks. This patch adds this capability
for SMB2 shares.

Signed-off-by: Pavel Shilovsky &lt;pshilovsky@samba.org&gt;
Signed-off-by: Steven French &lt;steven@steven-GA-970A-DS3.(none)&gt;
</content>
</entry>
<entry>
<title>CIFS: Introduce cifs_open_parms struct</title>
<updated>2013-07-10T18:08:40Z</updated>
<author>
<name>Pavel Shilovsky</name>
</author>
<published>2013-07-05T08:00:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=226730b4d8adae393dc07092655cdd29d2a2ff07'/>
<id>urn:sha1:226730b4d8adae393dc07092655cdd29d2a2ff07</id>
<content type='text'>
and pass it to the open() call.

Signed-off-by: Pavel Shilovsky &lt;pshilovsky@samba.org&gt;
Signed-off-by: Steven French &lt;steven@steven-GA-970A-DS3.(none)&gt;
</content>
</entry>
</feed>
