No description
Find a file
Martynas Pumputis 3084058a72 bpf, selftests: fix handling of sparse CPU allocations
[ Upstream commit 1bb54c4071 ]

Previously, bpf_num_possible_cpus() had a bug when calculating a
number of possible CPUs in the case of sparse CPU allocations, as
it was considering only the first range or element of
/sys/devices/system/cpu/possible.

E.g. in the case of "0,2-3" (CPU 1 is not available), the function
returned 1 instead of 3.

This patch fixes the function by making it parse all CPU ranges and
elements.

Signed-off-by: Martynas Pumputis <m@lambda.lt>
Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-03-13 14:03:20 -07:00
arch DTS: CI20: Fix bugs in ci20's device tree. 2019-03-13 14:03:20 -07:00
block
certs
crypto
Documentation
drivers net: stmmac: Disable EEE mode earlier in XMIT callback 2019-03-13 14:03:20 -07:00
firmware
fs autofs: fix error return in autofs_fill_super() 2019-03-13 14:03:19 -07:00
include irqchip/gic-v3-its: Fix ITT_entry_size accessor 2019-03-13 14:03:20 -07:00
init
ipc
kernel relay: check return of create_buf_file() properly 2019-03-13 14:03:20 -07:00
lib lib/test_kmod.c: potential double free in error handling 2019-03-13 14:03:18 -07:00
mm mm, memory_hotplug: test_pages_in_a_zone do not pass the end of zone 2019-03-13 14:03:18 -07:00
net bpf: sock recvbuff must be limited by rmem_max in bpf_setsockopt() 2019-03-13 14:03:20 -07:00
samples
scripts
security apparmor: Fix aa_label_build() error handling for failed merges 2019-03-13 14:03:16 -07:00
sound ASoC: imx-audmux: change snprintf to scnprintf for possible overflow 2019-03-05 17:57:59 +01:00
tools bpf, selftests: fix handling of sparse CPU allocations 2019-03-13 14:03:20 -07:00
usr
virt
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile Linux 4.14.105 2019-03-05 17:58:03 +01:00
README

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

This file was moved to Documentation/admin-guide/README.rst

Please notice that there are several guides for kernel developers and users.
These guides can be rendered in a number of formats, like HTML and PDF.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.

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.