<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/fs/cifs/cifsencrypt.c, branch v2.6.32.7</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>[CIFS] Memory leak in ntlmv2 hash calculation</title>
<updated>2009-09-01T17:02:24+00:00</updated>
<author>
<name>Alexander Strakh</name>
<email>strakh@ispras.ru</email>
</author>
<published>2009-09-01T17:02:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=1b3859bc9e20d764316346665fc93ecea2d2b176'/>
<id>1b3859bc9e20d764316346665fc93ecea2d2b176</id>
<content type='text'>
 in function calc_ntlmv2_hash memory is not released.
1. If in the line 333 we successfully allocate memory and assign it to
pctxt variable:
       pctxt = kmalloc(sizeof(struct HMACMD5Context), GFP_KERNEL);
then we go to line 376 and exit wihout releasing memory pointed to by pctxt
variable.

Add a memory  releasing for pctxt variable before exit from function
calc_ntlmv2_hash.

Signed-off-by: Alexander Strakh &lt;strakh@ispras.ru&gt;
Signed-off-by: Steve French &lt;sfrench@us.ibm.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
 in function calc_ntlmv2_hash memory is not released.
1. If in the line 333 we successfully allocate memory and assign it to
pctxt variable:
       pctxt = kmalloc(sizeof(struct HMACMD5Context), GFP_KERNEL);
then we go to line 376 and exit wihout releasing memory pointed to by pctxt
variable.

Add a memory  releasing for pctxt variable before exit from function
calc_ntlmv2_hash.

Signed-off-by: Alexander Strakh &lt;strakh@ispras.ru&gt;
Signed-off-by: Steve French &lt;sfrench@us.ibm.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[CIFS] Rename md5 functions to avoid collision with new rt modules</title>
<updated>2009-01-29T03:32:12+00:00</updated>
<author>
<name>Steve French</name>
<email>sfrench@us.ibm.com</email>
</author>
<published>2009-01-12T21:03:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=6a7f8d36c00ab7adef5fb633f7805c91e8c1e139'/>
<id>6a7f8d36c00ab7adef5fb633f7805c91e8c1e139</id>
<content type='text'>
When rt modules were added they (each) included their own md5
with names which collided with the existing names of cifs's md5 functions.

Renaming cifs's md5 modules so we don't collide with them.

&gt; Stephen Rothwell wrote:
&gt; When CIFS is built-in (=y) and staging/rt28[67]0 =y, there are multiple
&gt; definitions of:
&gt;
&gt; build-r8250.out:(.text+0x1d8ad0): multiple definition of `MD5Init'
&gt; build-r8250.out:(.text+0x1dbb30): multiple definition of `MD5Update'
&gt; build-r8250.out:(.text+0x1db9b0): multiple definition of `MD5Final'
&gt;
&gt; all of which need to have more unique identifiers for their global
&gt; symbols (e.g., rt28_md5_init, cifs_md5_init, foo, blah, bar).
&gt;

CC: Greg K-H &lt;gregkh@suse.de&gt;
Signed-off-by: Steve French &lt;sfrench@us.ibm.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When rt modules were added they (each) included their own md5
with names which collided with the existing names of cifs's md5 functions.

Renaming cifs's md5 modules so we don't collide with them.

&gt; Stephen Rothwell wrote:
&gt; When CIFS is built-in (=y) and staging/rt28[67]0 =y, there are multiple
&gt; definitions of:
&gt;
&gt; build-r8250.out:(.text+0x1d8ad0): multiple definition of `MD5Init'
&gt; build-r8250.out:(.text+0x1dbb30): multiple definition of `MD5Update'
&gt; build-r8250.out:(.text+0x1db9b0): multiple definition of `MD5Final'
&gt;
&gt; all of which need to have more unique identifiers for their global
&gt; symbols (e.g., rt28_md5_init, cifs_md5_init, foo, blah, bar).
&gt;

CC: Greg K-H &lt;gregkh@suse.de&gt;
Signed-off-by: Steve French &lt;sfrench@us.ibm.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>cifs: have calc_lanman_hash take more granular args</title>
<updated>2008-12-26T02:29:11+00:00</updated>
<author>
<name>Jeff Layton</name>
<email>jlayton@redhat.com</email>
</author>
<published>2008-12-06T01:41:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=4e53a3fb98d3d5c2941d2e7199dab317a9d4ead3'/>
<id>4e53a3fb98d3d5c2941d2e7199dab317a9d4ead3</id>
<content type='text'>
cifs: have calc_lanman_hash take more granular args

We need to use this routine to encrypt passwords associated with the
tcon too. Don't assume that the password will be attached to the
smb_session.

Also, make some of the values in the lower encryption functions
const since they aren't changed.

Signed-off-by: Jeff Layton &lt;jlayton@redhat.com&gt;
Signed-off-by: Steve French &lt;sfrench@us.ibm.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
cifs: have calc_lanman_hash take more granular args

We need to use this routine to encrypt passwords associated with the
tcon too. Don't assume that the password will be attached to the
smb_session.

Also, make some of the values in the lower encryption functions
const since they aren't changed.

Signed-off-by: Jeff Layton &lt;jlayton@redhat.com&gt;
Signed-off-by: Steve French &lt;sfrench@us.ibm.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[CIFS] Fix plaintext authentication</title>
<updated>2008-08-27T21:30:22+00:00</updated>
<author>
<name>Steve French</name>
<email>sfrench@us.ibm.com</email>
</author>
<published>2008-08-27T21:30:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=bcc55c6664a90146149ba0fd93052adc94287b9f'/>
<id>bcc55c6664a90146149ba0fd93052adc94287b9f</id>
<content type='text'>
The last eight bytes of the password field were not cleared when doing lanman plaintext password authentication. This patch fixes that.

I tested it with Samba by setting password
encryption to no in the server's smb.conf.  Other servers also can be
configured to force plaintext authentication.    Note that plaintexti
authentication requires setting /proc/fs/cifs/SecurityFlags to 0x30030
on the client (enabling both LANMAN and also plaintext password support).
Also note that LANMAN support (and thus plaintext password support) requires
CONFIG_CIFS_WEAK_PW_HASH to be enabled in menuconfig.

CC: Jeff Layton &lt;jlayton@redhat.com&gt;
CC: Stable Kernel &lt;stable@vger.kernel.org&gt;
Signed-off-by: Steve French &lt;sfrench@us.ibm.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The last eight bytes of the password field were not cleared when doing lanman plaintext password authentication. This patch fixes that.

I tested it with Samba by setting password
encryption to no in the server's smb.conf.  Other servers also can be
configured to force plaintext authentication.    Note that plaintexti
authentication requires setting /proc/fs/cifs/SecurityFlags to 0x30030
on the client (enabling both LANMAN and also plaintext password support).
Also note that LANMAN support (and thus plaintext password support) requires
CONFIG_CIFS_WEAK_PW_HASH to be enabled in menuconfig.

CC: Jeff Layton &lt;jlayton@redhat.com&gt;
CC: Stable Kernel &lt;stable@vger.kernel.org&gt;
Signed-off-by: Steve French &lt;sfrench@us.ibm.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[CIFS] Fix warnings from checkpatch</title>
<updated>2008-07-24T15:56:05+00:00</updated>
<author>
<name>Shirish Pargaonkar</name>
<email>shirishp@gmail.com</email>
</author>
<published>2008-07-24T15:56:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=ef571cadd516e7ffcdeac6bb8054e5908fcccfcf'/>
<id>ef571cadd516e7ffcdeac6bb8054e5908fcccfcf</id>
<content type='text'>
Signed-off-by: Steve French &lt;sfrench@us.ibm.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Steve French &lt;sfrench@us.ibm.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[CIFS] Fix walking out end of cifs dacl</title>
<updated>2007-11-05T21:46:10+00:00</updated>
<author>
<name>Steve French</name>
<email>sfrench@us.ibm.com</email>
</author>
<published>2007-11-05T21:46:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=63d2583f5a1a0b72fea3f2171f23f0ca8fa556ec'/>
<id>63d2583f5a1a0b72fea3f2171f23f0ca8fa556ec</id>
<content type='text'>
Acked-by: Shirish Pargaonkar &lt;shirishp@us.ibm.com&gt;
Signed-off-by: Steve French &lt;sfrench@us.ibm.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Acked-by: Shirish Pargaonkar &lt;shirishp@us.ibm.com&gt;
Signed-off-by: Steve French &lt;sfrench@us.ibm.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[CIFS] allow cifs_calc_signature2 to deal with a zero length iovec</title>
<updated>2007-11-03T04:34:04+00:00</updated>
<author>
<name>Jeff Layton</name>
<email>jlayton@redhat.com</email>
</author>
<published>2007-11-03T04:34:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=745542e210b3b15751ea9d511321924ac36b85db'/>
<id>745542e210b3b15751ea9d511321924ac36b85db</id>
<content type='text'>
Currently, cifs_calc_signature2 errors out if it gets a zero-length
iovec. Fix it to silently continue in that case.

Signed-off-by: Jeff Layton &lt;jlayton@redhat.com&gt;
Signed-off-by: Steve French &lt;sfrench@us.ibm.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently, cifs_calc_signature2 errors out if it gets a zero-length
iovec. Fix it to silently continue in that case.

Signed-off-by: Jeff Layton &lt;jlayton@redhat.com&gt;
Signed-off-by: Steve French &lt;sfrench@us.ibm.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[CIFS] Fix endian conversion problem in posix mkdir</title>
<updated>2007-10-14T17:58:43+00:00</updated>
<author>
<name>Cyril Gorcunov</name>
<email>gorcunov@gmail.com</email>
</author>
<published>2007-10-14T17:58:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=8f2376adfb57d95973b64ecdf016937f436b9bf0'/>
<id>8f2376adfb57d95973b64ecdf016937f436b9bf0</id>
<content type='text'>
Signed-off-by: Cyrill Gorcunov &lt;gorcunov@gmail.com&gt;
Signed-off-by: Steve French &lt;sfrench@us.ibm.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Cyrill Gorcunov &lt;gorcunov@gmail.com&gt;
Signed-off-by: Steve French &lt;sfrench@us.ibm.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[CIFS] More whitespace/formatting fixes (noticed by checkpatch)</title>
<updated>2007-07-17T17:34:02+00:00</updated>
<author>
<name>Steve French</name>
<email>sfrench@us.ibm.com</email>
</author>
<published>2007-07-17T17:34:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=63135e088a604b955746c51964c195c8d3ebac11'/>
<id>63135e088a604b955746c51964c195c8d3ebac11</id>
<content type='text'>
Signed-off-by: Steve French &lt;sfrench@us.ibm.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Steve French &lt;sfrench@us.ibm.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[CIFS] whitespace/formatting fixes</title>
<updated>2007-07-13T00:33:32+00:00</updated>
<author>
<name>Steve French</name>
<email>sfrench@us.ibm.com</email>
</author>
<published>2007-07-13T00:33:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=50c2f75388727018c3c357454a247072915a9e3f'/>
<id>50c2f75388727018c3c357454a247072915a9e3f</id>
<content type='text'>
This should be the last big batch of whitespace/formatting fixes.
checkpatch warnings for the cifs directory are down about 90% and
many of the remaining ones are harder to remove or make the code
harder to read.

Signed-off-by: Steve French &lt;sfrench@us.ibm.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This should be the last big batch of whitespace/formatting fixes.
checkpatch warnings for the cifs directory are down about 90% and
many of the remaining ones are harder to remove or make the code
harder to read.

Signed-off-by: Steve French &lt;sfrench@us.ibm.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
