mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
0adcd7cfd0a15e6184a4a7703c3c8eaba297dfa7
Writing large values to remove_uid_range can cause an overflow & system hang. To prevent this, read in the start and end of the range using kstrtouint to ensure the full range can fit in a uid_t, and use a u64 for our loop counters to avoid overflow when the range ends at UINT_MAX. Test: "echo '9223372036854775807-9223372036854775807' > \ /proc/uid_cputime/remove_uid_range" now returns error instead of hanging Bug: 139902843 Signed-off-by: Connor O'Brien <connoro@google.com> Change-Id: I30138f95a1c56366a79eec27bbc476c9ea5773ae
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
Languages
C
97.7%
Assembly
1.6%
Makefile
0.3%
Perl
0.1%