No description
  • C 98.2%
  • Assembly 1%
  • Makefile 0.3%
  • Shell 0.2%
  • Python 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
David S. Miller 8a534f8fb0 Merge branch 'idr-fix-overflow-cases-on-32-bit-CPU'
Cong Wang says:

====================
idr: fix overflow cases on 32-bit CPU

idr_get_next_ul() is problematic by design, it can't handle
the following overflow case well on 32-bit CPU:

u32 id = UINT_MAX;
idr_alloc_u32(&id);
while (idr_get_next_ul(&id) != NULL)
 id++;

when 'id' overflows and becomes 0 after UINT_MAX, the loop
goes infinite.

Fix this by eliminating external users of idr_get_next_ul()
and migrating them to idr_for_each_entry_continue_ul(). And
add an additional parameter for these iteration macros to detect
overflow properly.

Please merge this through networking tree, as all the users
are in networking subsystem.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>
2019-07-01 19:15:46 -07:00
arch ARM: SoC fixes 2019-06-28 08:37:04 +08:00
block
certs
crypto
Documentation Documentation/networking: fix default_ttl typo in mpls-sysctl 2019-07-01 10:41:33 -07:00
drivers idr: introduce idr_for_each_entry_continue_ul() 2019-07-01 19:15:46 -07:00
fs for-linus-20190627 2019-06-28 08:41:18 +08:00
include idr: introduce idr_for_each_entry_continue_ul() 2019-07-01 19:15:46 -07:00
init
ipc
kernel copy_process(): don't use ksys_close() on cleanups 2019-06-27 12:24:03 +02:00
lib
LICENSES
mm
net idr: introduce idr_for_each_entry_continue_ul() 2019-07-01 19:15:46 -07:00
samples
scripts
security
sound
tools selftests: add a test case for cls_lower handle overflow 2019-07-01 19:15:46 -07:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS ARM: SoC fixes 2019-06-28 08:37:04 +08:00
Makefile
README

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.

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.