Christian Brauner 7654fff18f UPSTREAM: binderfs: respect limit on binder control creation
We currently adhere to the reserved devices limit when creating new
binderfs devices in binderfs instances not located in the inital ipc
namespace. But it is still possible to rob the host instances of their 4
reserved devices by creating the maximum allowed number of devices in a
single binderfs instance located in a non-initial ipc namespace and then
mounting 4 separate binderfs instances in non-initial ipc namespaces. That
happens because the limit is currently not respected for the creation of
the initial binder-control device node. Block this nonsense by performing
the same check in binderfs_binder_ctl_create() that we perform in
binderfs_binder_device_create().

Fixes: 36bdf3cae0 ("binderfs: reserve devices for initial mount")
Signed-off-by: Christian Brauner <christian@brauner.io>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Bug: 136497735
(cherry picked from commit da8ddba566)
Change-Id: I7e170260ce79fc23a034ce75450d58ff39a7b902
Signed-off-by: Hridya Valsaraju <hridya@google.com>
2019-12-08 21:45:24 -08:00
2019-12-05 12:02:49 +01:00
2019-12-01 09:53:43 +01:00
2019-12-05 12:02:49 +01:00
2019-12-05 12:02:49 +01:00
2019-12-05 12:02:49 +01:00
2019-08-06 20:08:18 +02:00
2019-12-05 12:02:49 +01:00
2019-12-05 12:02:49 +01:00
2019-12-05 12:02:49 +01:00
2019-12-05 12:02:49 +01:00
2019-12-05 12:02:49 +01:00
2019-12-05 12:02:49 +01:00
2019-12-05 12:02:49 +01:00
2019-12-05 12:02:49 +01:00
2019-10-17 15:33:07 -07:00
2019-12-05 12:02:49 +01:00

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
Description
No description provided
Readme 7.9 GiB
Languages
C 97.7%
Assembly 1.6%
Makefile 0.3%
Perl 0.1%