<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-stable.git/drivers/staging/android, branch linux-2.6.32.y</title>
<subtitle>Linux kernel stable tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/'/>
<entry>
<title>Staging: android: binder: Fix crashes when sharing a binder file between processes</title>
<updated>2012-02-13T19:28:50+00:00</updated>
<author>
<name>Arve Hjønnevåg</name>
<email>arve@android.com</email>
</author>
<published>2012-02-01T23:29:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=992dc3393662b00527480b49b5076bdda0e86327'/>
<id>992dc3393662b00527480b49b5076bdda0e86327</id>
<content type='text'>
commit bd1eff9741af27378b241b347041c724bb28e857 upstream.

Opening the binder driver and sharing the file returned with
other processes (e.g. by calling fork) can crash the kernel.
Prevent these crashes with the following changes:
- Add a mutex to protect against two processes mmapping the
  same binder_proc.
- After locking mmap_sem, check that the vma we want to access
  (still) points to the same mm_struct.
- Use proc-&gt;tsk instead of current to get the files struct since
  this is where we get the rlimit from.

Signed-off-by: Arve Hjønnevåg &lt;arve@android.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit bd1eff9741af27378b241b347041c724bb28e857 upstream.

Opening the binder driver and sharing the file returned with
other processes (e.g. by calling fork) can crash the kernel.
Prevent these crashes with the following changes:
- Add a mutex to protect against two processes mmapping the
  same binder_proc.
- After locking mmap_sem, check that the vma we want to access
  (still) points to the same mm_struct.
- Use proc-&gt;tsk instead of current to get the files struct since
  this is where we get the rlimit from.

Signed-off-by: Arve Hjønnevåg &lt;arve@android.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>Staging: android: binder: Don't call dump_stack in binder_vma_open</title>
<updated>2012-02-13T19:28:50+00:00</updated>
<author>
<name>Arve Hjønnevåg</name>
<email>arve@android.com</email>
</author>
<published>2012-01-21T03:56:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=038044951a5b58411446428629594e67320549e5'/>
<id>038044951a5b58411446428629594e67320549e5</id>
<content type='text'>
commit 3c1b86f17068cf6476fb2d022b9c8b44dedea2e5 upstream.

If user-space partially unmaps the driver, binder_vma_open
would dump the kernel stack. This is not a kernel bug however
and will be treated as if the whole area was unmapped once
binder_vma_close gets called.

Signed-off-by: Arve Hjønnevåg &lt;arve@android.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 3c1b86f17068cf6476fb2d022b9c8b44dedea2e5 upstream.

If user-space partially unmaps the driver, binder_vma_open
would dump the kernel stack. This is not a kernel bug however
and will be treated as if the whole area was unmapped once
binder_vma_close gets called.

Signed-off-by: Arve Hjønnevåg &lt;arve@android.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>Staging: android: mark subsystem as broken</title>
<updated>2009-10-30T21:47:44+00:00</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@suse.de</email>
</author>
<published>2009-10-26T23:03:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=2cdf99ce2b9418c9d7c5f907195cfac421375520'/>
<id>2cdf99ce2b9418c9d7c5f907195cfac421375520</id>
<content type='text'>
It's causing lots of build errors, so just mark it as broken.  It is
scheduled to be removed in 2.6.33 anyway.

Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It's causing lots of build errors, so just mark it as broken.  It is
scheduled to be removed in 2.6.33 anyway.

Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>staging: Make some structures static</title>
<updated>2009-09-15T19:02:24+00:00</updated>
<author>
<name>Julia Lawall</name>
<email>julia@diku.dk</email>
</author>
<published>2009-08-14T20:10:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=a5ca2dfc4ebd33e18f981f562833c39efdc2585c'/>
<id>a5ca2dfc4ebd33e18f981f562833c39efdc2585c</id>
<content type='text'>
This was done using a semantic patch (http://coccinelle.lip6.fr/) that
checks that the declaration is not inside a function definition, that the
defined variable is not exported using EXPORTED_SYMBOL, etc, and that the
defined variable does not occur in any other file.  If these conditions
hold, static is added before the declaration.

Signed-off-by: Julia Lawall &lt;julia@diku.dk&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;


</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This was done using a semantic patch (http://coccinelle.lip6.fr/) that
checks that the declaration is not inside a function definition, that the
defined variable is not exported using EXPORTED_SYMBOL, etc, and that the
defined variable does not occur in any other file.  If these conditions
hold, static is added before the declaration.

Signed-off-by: Julia Lawall &lt;julia@diku.dk&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Staging: android: lowmemorykiller: fix module param errors</title>
<updated>2009-09-15T19:01:26+00:00</updated>
<author>
<name>Randy Dunlap</name>
<email>randy.dunlap@oracle.com</email>
</author>
<published>2009-07-31T18:10:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=0984e56a65a29ad0700c5abf657327e73929ea1f'/>
<id>0984e56a65a29ad0700c5abf657327e73929ea1f</id>
<content type='text'>
Move module_params to near the end of the source file so that
their references are already known/defined.  Fixes build errors:

drivers/staging/android/lowmemorykiller.c: In function '__check_cost':
drivers/staging/android/lowmemorykiller.c:60: error: 'lowmem_shrinker' undeclared (first use in this function)
drivers/staging/android/lowmemorykiller.c: At top level:
drivers/staging/android/lowmemorykiller.c:60: error: 'lowmem_shrinker' undeclared here (not in a function)
drivers/staging/android/lowmemorykiller.c:60: warning: type defaults to 'int' in declaration of 'type name'

Signed-off-by: Randy Dunlap &lt;randy.dunlap@oracle.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Move module_params to near the end of the source file so that
their references are already known/defined.  Fixes build errors:

drivers/staging/android/lowmemorykiller.c: In function '__check_cost':
drivers/staging/android/lowmemorykiller.c:60: error: 'lowmem_shrinker' undeclared (first use in this function)
drivers/staging/android/lowmemorykiller.c: At top level:
drivers/staging/android/lowmemorykiller.c:60: error: 'lowmem_shrinker' undeclared here (not in a function)
drivers/staging/android/lowmemorykiller.c:60: warning: type defaults to 'int' in declaration of 'type name'

Signed-off-by: Randy Dunlap &lt;randy.dunlap@oracle.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>Staging: android: binder: partial checkpatch cleanup</title>
<updated>2009-09-15T19:01:26+00:00</updated>
<author>
<name>Daniel Walker</name>
<email>dwalker@fifo99.com</email>
</author>
<published>2009-07-05T16:32:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=10626434f473a7b4b0a21f427b301d3dd0db65a8'/>
<id>10626434f473a7b4b0a21f427b301d3dd0db65a8</id>
<content type='text'>
Clean up 3 or so checkpatch errors from one of my prior patches.

Signed-off-by: Daniel Walker &lt;dwalker@fifo99.com&gt;
Cc: Arve Hjønnevåg &lt;arve@android.com&gt;
Cc: Brian Swetland &lt;swetland@google.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Clean up 3 or so checkpatch errors from one of my prior patches.

Signed-off-by: Daniel Walker &lt;dwalker@fifo99.com&gt;
Cc: Arve Hjønnevåg &lt;arve@android.com&gt;
Cc: Brian Swetland &lt;swetland@google.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>Staging: android: lowmemorykiller: delete the decription file</title>
<updated>2009-09-15T19:01:26+00:00</updated>
<author>
<name>Daniel Walker</name>
<email>dwalker@fifo99.com</email>
</author>
<published>2009-07-05T16:32:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=272bb3d8759448b2017aee149d226d7bf2d2bbb7'/>
<id>272bb3d8759448b2017aee149d226d7bf2d2bbb7</id>
<content type='text'>
Move the lowmemorykiller.txt into the actual source file which is really the
correct place for it, and delete lowmemorykiller.txt.

Signed-off-by: Daniel Walker &lt;dwalker@fifo99.com&gt;
Cc: Arve Hjønnevåg &lt;arve@android.com&gt;
Cc: Brian Swetland &lt;swetland@google.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Move the lowmemorykiller.txt into the actual source file which is really the
correct place for it, and delete lowmemorykiller.txt.

Signed-off-by: Daniel Walker &lt;dwalker@fifo99.com&gt;
Cc: Arve Hjønnevåg &lt;arve@android.com&gt;
Cc: Brian Swetland &lt;swetland@google.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>Staging: android: lowmemorykiller: remove a predefine</title>
<updated>2009-09-15T19:01:26+00:00</updated>
<author>
<name>Daniel Walker</name>
<email>dwalker@fifo99.com</email>
</author>
<published>2009-07-05T16:32:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=edd540ea92954f896bfb7ee0ebf5dfdde6e6cb41'/>
<id>edd540ea92954f896bfb7ee0ebf5dfdde6e6cb41</id>
<content type='text'>
I moved the struct shrinker down so that the predefine isn't needed.

Signed-off-by: Daniel Walker &lt;dwalker@fifo99.com&gt;
Cc: Arve Hjønnevåg &lt;arve@android.com&gt;
Cc: Brian Swetland &lt;swetland@google.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I moved the struct shrinker down so that the predefine isn't needed.

Signed-off-by: Daniel Walker &lt;dwalker@fifo99.com&gt;
Cc: Arve Hjønnevåg &lt;arve@android.com&gt;
Cc: Brian Swetland &lt;swetland@google.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>Staging: android: binder: cleanup some long lines</title>
<updated>2009-09-15T19:01:26+00:00</updated>
<author>
<name>Daniel Walker</name>
<email>dwalker@fifo99.com</email>
</author>
<published>2009-07-05T16:32:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=707636ff4bd4057b8fb9c1e6cc68885014623b17'/>
<id>707636ff4bd4057b8fb9c1e6cc68885014623b17</id>
<content type='text'>
This file has a lot of long line problems due to the massive indent issues
that exist. This just cleans up some of the really really long ones.

Signed-off-by: Daniel Walker &lt;dwalker@fifo99.com&gt;
Cc: Arve Hjønnevåg &lt;arve@android.com&gt;
Cc: Brian Swetland &lt;swetland@google.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This file has a lot of long line problems due to the massive indent issues
that exist. This just cleans up some of the really really long ones.

Signed-off-by: Daniel Walker &lt;dwalker@fifo99.com&gt;
Cc: Arve Hjønnevåg &lt;arve@android.com&gt;
Cc: Brian Swetland &lt;swetland@google.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>staging: android: binder: clean up for all the stat statments</title>
<updated>2009-09-15T19:01:25+00:00</updated>
<author>
<name>Daniel Walker</name>
<email>dwalker@fifo99.com</email>
</author>
<published>2009-06-12T18:51:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=8683b987285e4542dd79192054ee4591b8cc7700'/>
<id>8683b987285e4542dd79192054ee4591b8cc7700</id>
<content type='text'>
An initial cleanup of all the binder_stat statements. The binder
command and return stats still need some assistance tho.

Signed-off-by: Daniel Walker &lt;dwalker@fifo99.com&gt;
Cc: Brian Swetland &lt;swetland@google.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
An initial cleanup of all the binder_stat statements. The binder
command and return stats still need some assistance tho.

Signed-off-by: Daniel Walker &lt;dwalker@fifo99.com&gt;
Cc: Brian Swetland &lt;swetland@google.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
</feed>
