<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/staging/p9auth, branch master</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=master</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2010-03-04T00:42:33Z</updated>
<entry>
<title>Staging: p9auth: remove driver from tree</title>
<updated>2010-03-04T00:42:33Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@suse.de</email>
</author>
<published>2009-12-23T00:35:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=2d629030ca649bd4a7356befedbe7bbefa840b21'/>
<id>urn:sha1:2d629030ca649bd4a7356befedbe7bbefa840b21</id>
<content type='text'>
No one seems to be maintaining this anymore, and it is not on any
track to be merged to mainline.

Cc: Ashwin Ganti &lt;ashwin.ganti@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>Staging: p9auth: adding __init/__exit macros</title>
<updated>2009-12-11T20:23:04Z</updated>
<author>
<name>Peter Huewe</name>
<email>peterhuewe@gmx.de</email>
</author>
<published>2009-09-28T23:49:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=24e4688632c8ae95760cb917ee5f42348fa22cbf'/>
<id>urn:sha1:24e4688632c8ae95760cb917ee5f42348fa22cbf</id>
<content type='text'>
Trivial patch which adds the __init/__exit macros to the module_init/
module_exit functions of drivers/staging/p9auth/p9auth.c


Signed-off-by: Peter Huewe &lt;peterhuewe@gmx.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>Staging: p9auth: a few fixes</title>
<updated>2009-10-09T20:47:24Z</updated>
<author>
<name>Serge E. Hallyn</name>
<email>serue@us.ibm.com</email>
</author>
<published>2009-09-16T21:27:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a8ba8bffbe1f3f8b3450d294b9e68d299b158209'/>
<id>urn:sha1:a8ba8bffbe1f3f8b3450d294b9e68d299b158209</id>
<content type='text'>
1. The memory into which we copy 'u1@u2' needs space for u1, @,
	u2, and a final \0 which strcat copies in.
2. Strsep changes the value of its first argument.  So use a
	temporary variable to pass to it, so we pass the original
	value to kfree!
3. Allocate an extra char to user_buf, because we need a trailing \0
	since we later kstrdup it.

I am about to send out an LTP testcase for this driver, but
in addition the correctness of the hashing can be verified as
follows:

 #include &lt;stdio.h&gt;
 #include &lt;stdlib.h&gt;
 #include &lt;unistd.h&gt;

int main(int argc, char *argv[])
{
        char in[41], out[20];
        unsigned int v;
        int i, ret;

        ret = read(STDIN_FILENO, in, 40);
        if (ret != 40)
                exit(1);
        in[40] = '\0';
        for (i = 0; i &lt; 20; i++) {
                sscanf(&amp;in[2*i], "%02x", &amp;v);
                out[i] = v;
        }
        write(STDOUT_FILENO, out, 20);
}

as root, to test userid 501 switching to uid 0, choosing
'random' string 'ab':

echo -n "501@0" &gt; plain
openssl sha1  -hmac 'ab' plain |awk '{ print $2 '} &gt; dgst
./unhex &lt; dgst &gt; dgst.u
mknod /dev/caphash 504 0
mknod /dev/capuse 504 1
chmod ugo+w /dev/capuse
cat dgst.u &gt; /dev/caphash

as uid 501,
echo "501@0@ab" &gt; /dev/capuse
id -u  # should now show 0.

Signed-off-by: Serge E. Hallyn &lt;serue@us.ibm.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>staging: p9auth: prevent some oopses and memory leaks</title>
<updated>2009-06-19T18:00:54Z</updated>
<author>
<name>Serge E. Hallyn</name>
<email>serue@us.ibm.com</email>
</author>
<published>2009-05-20T15:15:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=f82ebea5c8ef9ed9378fc6402051a4860a805397'/>
<id>urn:sha1:f82ebea5c8ef9ed9378fc6402051a4860a805397</id>
<content type='text'>
Before all testcases, do:
	mknod /dev/caphash c 253 0
	mknod /dev/capuse c 253 1

This patch does the following:

1. caphash write of &gt; CAP_NODE_SIZE bytes overruns node_ptr-&gt;data
	(test: cat /etc/mime.types &gt; /dev/caphash)
2. make sure we don't dereference a NULL cap_devices[0].head
	(test: cat serge@root@abab &gt; /dev/capuse)
3. don't let strlen dereference a NULL target_user etc
	(test: echo ab &gt; /dev/capuse)
4. Don't leak a bunch of memory in cap_write().  Note that
   technically node_ptr is not needed for the capuse write case.
   As a result I have a much more extensive patch splitting up
   cap_write(), but I thought a smaller patch that is easier to test
   and verify would be a better start.  To test:
	cnt=0
	while [ 1 ]; do
		echo /etc/mime.types &gt; /dev/capuse
		if [ $((cnt%25)) -eq 0 ]; then
			head -2 /proc/meminfo
		fi
		cnt=$((cnt+1))
		sleep 0.3
	done
   Without this patch, it MemFree steadily drops.  With the patch,
   it does not.

I have *not* tested this driver (with or without these patches)
with factotum or anything - only using the tests described above.

Signed-off-by: Serge E. Hallyn &lt;serue@us.ibm.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;


</content>
</entry>
<entry>
<title>Staging: p9auth: clean up #includes</title>
<updated>2009-04-03T21:54:24Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@suse.de</email>
</author>
<published>2009-02-25T04:37:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=2418a628ff9d1cfc4fecd9899f915326ff6e7b96'/>
<id>urn:sha1:2418a628ff9d1cfc4fecd9899f915326ff6e7b96</id>
<content type='text'>
Not all of these files needed to be included, clean up the list.

Cc: Ashwin Ganti &lt;ashwin.ganti@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>Staging: p9auth: use kzalloc</title>
<updated>2009-04-03T21:54:24Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@suse.de</email>
</author>
<published>2009-02-25T04:31:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=6d0d63bd7a9c0a6373c7759cb55580b806269dae'/>
<id>urn:sha1:6d0d63bd7a9c0a6373c7759cb55580b806269dae</id>
<content type='text'>
It's nicer than doing kmalloc/memset.

Also check the return value of all allocations, one was previously not
being checked properly.

Cc: Ashwin Ganti &lt;ashwin.ganti@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>Staging: p9auth: fix up sparse warnings</title>
<updated>2009-04-03T21:54:23Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@suse.de</email>
</author>
<published>2009-02-25T04:25:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=0f386e2b4c6109164e82277513a9570fc9ec644c'/>
<id>urn:sha1:0f386e2b4c6109164e82277513a9570fc9ec644c</id>
<content type='text'>
Everything needs to be static, as sparse complains and you don't want to
polute the global kernel symbol namespace.  So mark everything as such
and move one function around to prevent a forward declaration from being
needed.

Cc: Ashwin Ganti &lt;ashwin.ganti@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>Staging: p9auth: fix up codingstyle issues</title>
<updated>2009-04-03T21:54:23Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@suse.de</email>
</author>
<published>2009-02-25T04:21:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=77dc1139f4a125d46e03fdbb3ac8ab8737ab67d6'/>
<id>urn:sha1:77dc1139f4a125d46e03fdbb3ac8ab8737ab67d6</id>
<content type='text'>
This fixes up a number of scripts/codingstyle.pl warnings and errors

Cc: Ashwin Ganti &lt;ashwin.ganti@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>Staging: p9auth: remove unneeded header file</title>
<updated>2009-04-03T21:54:23Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@suse.de</email>
</author>
<published>2009-02-25T04:11:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=4bf0438332d5173836fdc2d6471fec526d0a14a8'/>
<id>urn:sha1:4bf0438332d5173836fdc2d6471fec526d0a14a8</id>
<content type='text'>
The p9auth.h file is not needed, move the stuff into p9auth.c file and
delete it.

Cc: Ashwin Ganti &lt;ashwin.ganti@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>Staging: p9auth: fix dependency/build error</title>
<updated>2009-04-03T21:54:23Z</updated>
<author>
<name>Randy Dunlap</name>
<email>randy.dunlap@oracle.com</email>
</author>
<published>2009-03-10T18:59:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=9752ef46c6d32b7ccf10b874f00e433844db2b1a'/>
<id>urn:sha1:9752ef46c6d32b7ccf10b874f00e433844db2b1a</id>
<content type='text'>
Fix p9auth dependency/build failure.  It needs to depend on
CRYPTO.

p9auth.c:(.text+0x107297): undefined reference to `crypto_alloc_base'
p9auth.c:(.text+0x1073d4): undefined reference to `crypto_destroy_tfm'

Signed-off-by: Randy Dunlap &lt;randy.dunlap@oracle.com&gt;
Cc: Ashwin Ganti &lt;ashwin.ganti@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
</feed>
