<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/cifs/cifs_debug.c, branch linux-4.4.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.4.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.4.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2018-11-21T08:27:35Z</updated>
<entry>
<title>smb3: allow stats which track session and share reconnects to be reset</title>
<updated>2018-11-21T08:27:35Z</updated>
<author>
<name>Steve French</name>
</author>
<published>2018-09-16T04:04:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=39d6c4cdcf67e3b7f91822d138b7d7f870c295be'/>
<id>urn:sha1:39d6c4cdcf67e3b7f91822d138b7d7f870c295be</id>
<content type='text'>
commit 2c887635cd6ab3af619dc2be94e5bf8f2e172b78 upstream.

Currently, "echo 0 &gt; /proc/fs/cifs/Stats" resets all of the stats
except the session and share reconnect counts.  Fix it to
reset those as well.

CC: Stable &lt;stable@vger.kernel.org&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
Reviewed-by: Aurelien Aptel &lt;aaptel@suse.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>smb3: fix reset of bytes read and written stats</title>
<updated>2018-09-15T07:40:39Z</updated>
<author>
<name>Steve French</name>
</author>
<published>2018-08-01T05:56:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d6773f4061ceb8a4dbc655c386b2531b2db44b04'/>
<id>urn:sha1:d6773f4061ceb8a4dbc655c386b2531b2db44b04</id>
<content type='text'>
[ Upstream commit c281bc0c7412308c7ec0888904f7c99353da4796 ]

echo 0 &gt; /proc/fs/cifs/Stats is supposed to reset the stats
but there were four (see example below) that were not reset
(bytes read and witten, total vfs ops and max ops
at one time).

...
0 session 0 share reconnects
Total vfs operations: 100 maximum at one time: 2

1) \\localhost\test
SMBs: 0
Bytes read: 502092  Bytes written: 31457286
TreeConnects: 0 total 0 failed
TreeDisconnects: 0 total 0 failed
...

This patch fixes cifs_stats_proc_write to properly reset
those four.

Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
Reviewed-by: Aurelien Aptel &lt;aaptel@suse.com&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@microsoft.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>cifs: add missing debug entries for kconfig options</title>
<updated>2018-09-05T07:18:37Z</updated>
<author>
<name>Steve French</name>
</author>
<published>2018-06-28T23:46:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=58d141a9ad8668b267362b1d17296c9cfa053a01'/>
<id>urn:sha1:58d141a9ad8668b267362b1d17296c9cfa053a01</id>
<content type='text'>
commit 950132afd59385caf6e2b84e5235d069fa10681d upstream.

/proc/fs/cifs/DebugData displays the features (Kconfig options)
used to build cifs.ko but it was missing some, and needed comma
separator.  These can be useful in debugging certain problems
so we know which optional features were enabled in the user's build.
Also clarify them, by making them more closely match the
corresponding CONFIG_CIFS_* parm.

Old format:
Features: dfs fscache posix spnego xattr acl

New format:
Features: DFS,FSCACHE,SMB_DIRECT,STATS,DEBUG2,ALLOW_INSECURE_LEGACY,CIFS_POSIX,UPCALL(SPNEGO),XATTR,ACL

Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
Reviewed-by: Ronnie Sahlberg &lt;lsahlber@redhat.com&gt;
Reviewed-by: Pavel Shilovsky &lt;pshilov@microsoft.com&gt;
Reviewed-by: Paulo Alcantara &lt;palcantara@suse.de&gt;
CC: Stable &lt;stable@vger.kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>Display number of credits available</title>
<updated>2016-10-28T07:01:32Z</updated>
<author>
<name>Steve French</name>
</author>
<published>2016-09-20T03:06:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9517a23765513f5d186d9e1eabef9cd4a3eb277c'/>
<id>urn:sha1:9517a23765513f5d186d9e1eabef9cd4a3eb277c</id>
<content type='text'>
commit 9742805d6b1bfb45d7f267648c34fb5bcd347397 upstream.

In debugging smb3, it is useful to display the number
of credits available, so we can see when the server has not granted
sufficient operations for the client to make progress, or alternatively
the client has requested too many credits (as we saw in a recent bug)
so we can compare with the number of credits the server thinks
we have.

Add a /proc/fs/cifs/DebugData line to display the client view
on how many credits are available.

Signed-off-by: Steve French &lt;steve.french@primarydata.com&gt;
Reported-by: Germano Percossi &lt;germano.percossi@citrix.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>lib: update single-char callers of strtobool()</title>
<updated>2016-10-28T07:01:30Z</updated>
<author>
<name>Kees Cook</name>
</author>
<published>2016-03-17T21:22:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7367f9deceadab778cea65448e880ebb295fe995'/>
<id>urn:sha1:7367f9deceadab778cea65448e880ebb295fe995</id>
<content type='text'>
commit 1404297ebf76fd91a41de215fc8c94c2619e5fdb upstream.

Some callers of strtobool() were passing a pointer to unterminated
strings.  In preparation of adding multi-character processing to
kstrtobool(), update the callers to not pass single-character pointers,
and switch to using the new kstrtobool_from_user() helper where
possible.

Signed-off-by: Kees Cook &lt;keescook@chromium.org&gt;
Cc: Amitkumar Karwar &lt;akarwar@marvell.com&gt;
Cc: Nishant Sarmukadam &lt;nishants@marvell.com&gt;
Cc: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Cc: Steve French &lt;sfrench@samba.org&gt;
Cc: Andy Shevchenko &lt;andy.shevchenko@gmail.com&gt;
Cc: Daniel Borkmann &lt;daniel@iogearbox.net&gt;
Cc: Heiko Carstens &lt;heiko.carstens@de.ibm.com&gt;
Cc: Joe Perches &lt;joe@perches.com&gt;
Cc: Kees Cook &lt;keescook@chromium.org&gt;
Cc: Martin Schwidefsky &lt;schwidefsky@de.ibm.com&gt;
Cc: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Cc: Rasmus Villemoes &lt;linux@rasmusvillemoes.dk&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
[removed mwifiex driver change as it was correct and not needed for 4.4.y]
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>cifs: Ratelimit kernel log messages</title>
<updated>2016-02-25T20:01:17Z</updated>
<author>
<name>Jamie Bainbridge</name>
</author>
<published>2015-11-07T12:13:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=88413fceab844abec9e8007aaeec35c4bfc3f3fc'/>
<id>urn:sha1:88413fceab844abec9e8007aaeec35c4bfc3f3fc</id>
<content type='text'>
commit ec7147a99e33a9e4abad6fc6e1b40d15df045d53 upstream.

Under some conditions, CIFS can repeatedly call the cifs_dbg() logging
wrapper. If done rapidly enough, the console framebuffer can softlockup
or "rcu_sched self-detected stall". Apply the built-in log ratelimiters
to prevent such hangs.

Signed-off-by: Jamie Bainbridge &lt;jamie.bainbridge@gmail.com&gt;
Signed-off-by: Steve French &lt;smfrench@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>cifs: fix MUST SecurityFlags filtering</title>
<updated>2015-01-27T01:38:26Z</updated>
<author>
<name>Niklas Cassel</name>
</author>
<published>2015-01-22T13:16:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7a1ceba071709d11271ebd921310b5a18404dd33'/>
<id>urn:sha1:7a1ceba071709d11271ebd921310b5a18404dd33</id>
<content type='text'>
If CONFIG_CIFS_WEAK_PW_HASH is not set, CIFSSEC_MUST_LANMAN
and CIFSSEC_MUST_PLNTXT is defined as 0.

When setting new SecurityFlags without any MUST flags,
your flags would be overwritten with CIFSSEC_MUST_LANMAN (0).

Signed-off-by: Niklas Cassel &lt;niklass@axis.com&gt;
Signed-off-by: Steve French &lt;steve.french@primarydata.com&gt;
</content>
</entry>
<entry>
<title>cifs: convert printk(LEVEL...) to pr_&lt;level&gt;</title>
<updated>2014-12-08T04:48:07Z</updated>
<author>
<name>Andy Shevchenko</name>
</author>
<published>2014-08-27T13:49:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0b456f04bcdf5b1151136adaada158bfc26f1be7'/>
<id>urn:sha1:0b456f04bcdf5b1151136adaada158bfc26f1be7</id>
<content type='text'>
The useful macros embed message level in the name. Thus, it cleans up the code
a bit. In cases when it was plain printk() the conversion was done to info
level.

Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Signed-off-by: Steve French &lt;steve.french@primarydata.com&gt;
</content>
</entry>
<entry>
<title>cifs: convert to print_hex_dump() instead of custom implementation</title>
<updated>2014-12-08T04:48:01Z</updated>
<author>
<name>Andy Shevchenko</name>
</author>
<published>2014-08-27T13:49:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=55d83e0dbb3ed91e05b11ef32afb30acfbf8ba45'/>
<id>urn:sha1:55d83e0dbb3ed91e05b11ef32afb30acfbf8ba45</id>
<content type='text'>
This patch converts custom dumper to use native print_hex_dump() instead. The
cifs_dump_mem() will have an offsets per each line which differs it from the
original code.

In the dump_smb() we may use native print_hex_dump() as well. It will show
slightly different output in ASCII part when character is unprintable,
otherwise it keeps same structure.

Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Signed-off-by: Steve French &lt;steve.french@primarydata.com&gt;
</content>
</entry>
<entry>
<title>cifs: call strtobool instead of custom implementation</title>
<updated>2014-12-08T04:47:58Z</updated>
<author>
<name>Andy Shevchenko</name>
</author>
<published>2014-08-27T13:49:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=28e2aed244b1b81e45b105d90ffb82384665dfb7'/>
<id>urn:sha1:28e2aed244b1b81e45b105d90ffb82384665dfb7</id>
<content type='text'>
Meanwhile it cleans up the code, the behaviour is slightly changed. In case of
providing non-boolean value it will fails with corresponding error. In the
original code the attempt of an update was just ignored in such case.

Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Acked-by: Jeff Layton &lt;jlayton@poochiereds.net&gt;
Reviewed-by: Alexander Bokovoy &lt;ab@samba.org&gt;
Signed-off-by: Steve French &lt;steve.french@primarydata.com&gt;
</content>
</entry>
</feed>
