<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/nfsd/export.c, branch linux-3.16.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.16.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.16.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2014-05-30T21:32:25Z</updated>
<entry>
<title>NFSD: Error out when getting more than one fsloc/secinfo/uuid</title>
<updated>2014-05-30T21:32:25Z</updated>
<author>
<name>Kinglong Mee</name>
</author>
<published>2014-05-24T03:19:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=be69da8052af38a9d72ed32fb765fd4446e4091c'/>
<id>urn:sha1:be69da8052af38a9d72ed32fb765fd4446e4091c</id>
<content type='text'>
Signed-off-by: Kinglong Mee &lt;kinglongmee@gmail.com&gt;
Signed-off-by: J. Bruce Fields &lt;bfields@redhat.com&gt;
</content>
</entry>
<entry>
<title>NFSD: Using type of uint32_t for ex_nflavors instead of int</title>
<updated>2014-05-30T21:32:24Z</updated>
<author>
<name>Kinglong Mee</name>
</author>
<published>2014-05-24T03:26:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1f53146da9cb2c941a3928320a6824d3b035455f'/>
<id>urn:sha1:1f53146da9cb2c941a3928320a6824d3b035455f</id>
<content type='text'>
ex_nflavors can't be negative number, just defined by uint32_t.

Signed-off-by: Kinglong Mee &lt;kinglongmee@gmail.com&gt;
Signed-off-by: J. Bruce Fields &lt;bfields@redhat.com&gt;
</content>
</entry>
<entry>
<title>NFSD: Add missing comment of "expiry" in expkey_parse()</title>
<updated>2014-05-30T21:32:24Z</updated>
<author>
<name>Kinglong Mee</name>
</author>
<published>2014-05-23T12:56:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f0db79d54b6c9f612fb2ef4f71ca8340edaf89f1'/>
<id>urn:sha1:f0db79d54b6c9f612fb2ef4f71ca8340edaf89f1</id>
<content type='text'>
Signed-off-by: Kinglong Mee &lt;kinglongmee@gmail.com&gt;
Signed-off-by: J. Bruce Fields &lt;bfields@redhat.com&gt;
</content>
</entry>
<entry>
<title>NFSD: Remove typedef of svc_client and svc_export in export.c</title>
<updated>2014-05-30T21:32:23Z</updated>
<author>
<name>Kinglong Mee</name>
</author>
<published>2014-05-23T12:55:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e6d615f7428bb9a202f7fab563e917e89169d349'/>
<id>urn:sha1:e6d615f7428bb9a202f7fab563e917e89169d349</id>
<content type='text'>
No need for a typedef wrapper for svc_export or svc_client, remove them.

Signed-off-by: Kinglong Mee &lt;kinglongmee@gmail.com&gt;
Signed-off-by: J. Bruce Fields &lt;bfields@redhat.com&gt;
</content>
</entry>
<entry>
<title>NFSD: Cleanup unneeded including net/ipv6.h</title>
<updated>2014-05-30T21:32:22Z</updated>
<author>
<name>Kinglong Mee</name>
</author>
<published>2014-05-23T12:54:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a30ae94c0797f9de47626eecc43359989447d7a3'/>
<id>urn:sha1:a30ae94c0797f9de47626eecc43359989447d7a3</id>
<content type='text'>
Commit 49b28684fdba ("nfsd: Remove deprecated nfsctl system call and
related code") removed the only use of ipv6_addr_set_v4mapped(), so
net/ipv6.h is unneeded now.

Signed-off-by: Kinglong Mee &lt;kinglongmee@gmail.com&gt;
Signed-off-by: J. Bruce Fields &lt;bfields@redhat.com&gt;
</content>
</entry>
<entry>
<title>NFSD: Adds macro EX_UUID_LEN for exports uuid's length</title>
<updated>2014-05-30T21:32:19Z</updated>
<author>
<name>Kinglong Mee</name>
</author>
<published>2014-05-23T12:00:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=94eb36892d727145794b80dceffc435d1d68edbb'/>
<id>urn:sha1:94eb36892d727145794b80dceffc435d1d68edbb</id>
<content type='text'>
Signed-off-by: Kinglong Mee &lt;kinglongmee@gmail.com&gt;
Signed-off-by: J. Bruce Fields &lt;bfields@redhat.com&gt;
</content>
</entry>
<entry>
<title>NFSD: Helper function for parsing uuid</title>
<updated>2014-05-30T21:32:19Z</updated>
<author>
<name>Kinglong Mee</name>
</author>
<published>2014-05-23T11:59:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0d63790c365852a6ce2913632b933633343ae479'/>
<id>urn:sha1:0d63790c365852a6ce2913632b933633343ae479</id>
<content type='text'>
Signed-off-by: Kinglong Mee &lt;kinglongmee@gmail.com&gt;
Signed-off-by: J. Bruce Fields &lt;bfields@redhat.com&gt;
</content>
</entry>
<entry>
<title>NFS4: Avoid NULL reference or double free in nfsd4_fslocs_free()</title>
<updated>2014-05-30T21:32:18Z</updated>
<author>
<name>Kinglong Mee</name>
</author>
<published>2014-05-23T11:57:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a1f05514b016aeaed638dbf677f443af7e7bde4f'/>
<id>urn:sha1:a1f05514b016aeaed638dbf677f443af7e7bde4f</id>
<content type='text'>
If fsloc_parse() failed at kzalloc(), fs/nfsd/export.c
 411
 412         fsloc-&gt;locations = kzalloc(fsloc-&gt;locations_count
 413                         * sizeof(struct nfsd4_fs_location), GFP_KERNEL);
 414         if (!fsloc-&gt;locations)
 415                 return -ENOMEM;

svc_export_parse() will call nfsd4_fslocs_free() with fsloc-&gt;locations = NULL,
so that, "kfree(fsloc-&gt;locations[i].path);" will cause a crash.

If fsloc_parse() failed after that, fsloc_parse() will call nfsd4_fslocs_free(),
and svc_export_parse() will call it again, so that, a double free is caused.

This patch checks the fsloc-&gt;locations, and set to NULL after it be freed.

Signed-off-by: Kinglong Mee &lt;kinglongmee@gmail.com&gt;
Signed-off-by: J. Bruce Fields &lt;bfields@redhat.com&gt;
</content>
</entry>
<entry>
<title>nfsd: -EINVAL on invalid anonuid/gid instead of silent failure</title>
<updated>2013-10-29T21:46:14Z</updated>
<author>
<name>J. Bruce Fields</name>
</author>
<published>2013-09-13T21:50:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6f6cc3205c5f10129b8a10cdf8abf85d9db48a60'/>
<id>urn:sha1:6f6cc3205c5f10129b8a10cdf8abf85d9db48a60</id>
<content type='text'>
If we're going to refuse to accept these it would be polite of us to at
least say so....

This introduces a slight complication since we need to grandfather in
exportfs's ill-advised use of -1 uid and gid on its test_export.

If it turns out there are other users passing down -1 we may need to
do something else.

Best might be to drop the checks entirely, but I'm not sure if other
parts of the kernel might assume that a task can't run as uid or gid -1.

Cc: "Eric W. Biederman" &lt;ebiederm@xmission.com&gt;
Signed-off-by: J. Bruce Fields &lt;bfields@redhat.com&gt;
</content>
</entry>
<entry>
<title>nfsd: return better errors to exportfs</title>
<updated>2013-10-29T21:45:30Z</updated>
<author>
<name>J. Bruce Fields</name>
</author>
<published>2013-09-13T15:08:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=427d6c6646d868fbd3094e7e2e1644d480cd9204'/>
<id>urn:sha1:427d6c6646d868fbd3094e7e2e1644d480cd9204</id>
<content type='text'>
Someone noticed exportfs happily accepted exports that would later be
rejected when mountd tried to give them to the kernel.  Fix this.

This is a regression from 4c1e1b34d5c800ad3ac9a7e2805b0bea70ad2278
"nfsd: Store ex_anon_uid and ex_anon_gid as kuids and kgids".

Cc: "Eric W. Biederman" &lt;ebiederm@xmission.com&gt;
Cc: stable@vger.kernel.org
Reported-by: Yin.JianHong &lt;jiyin@redhat.com&gt;
Signed-off-by: J. Bruce Fields &lt;bfields@redhat.com&gt;
</content>
</entry>
</feed>
