Linus Torvalds f3dd0c5337 bpf: add missing header file include
Commit 74e19ef0ff80 ("uaccess: Add speculation barrier to
copy_from_user()") built fine on x86-64 and arm64, and that's the extent
of my local build testing.

It turns out those got the <linux/nospec.h> include incidentally through
other header files (<linux/kvm_host.h> in particular), but that was not
true of other architectures, resulting in build errors

  kernel/bpf/core.c: In function ‘___bpf_prog_run’:
  kernel/bpf/core.c:1913:3: error: implicit declaration of function ‘barrier_nospec’

so just make sure to explicitly include the proper <linux/nospec.h>
header file to make everybody see it.

Fixes: 74e19ef0ff80 ("uaccess: Add speculation barrier to copy_from_user()")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Viresh Kumar <viresh.kumar@linaro.org>
Reported-by: Huacai Chen <chenhuacai@loongson.cn>
Tested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Tested-by: Dave Hansen <dave.hansen@linux.intel.com>
Acked-by: Alexei Starovoitov <alexei.starovoitov@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2023-02-22 09:52:32 -08:00
2023-02-21 18:24:12 -08:00
2023-02-21 18:24:12 -08:00
2023-02-21 18:24:12 -08:00
2023-02-21 18:24:12 -08:00
2023-02-21 18:24:12 -08:00
2023-02-21 18:24:12 -08:00
2023-02-21 18:24:12 -08:00
2023-02-20 14:27:21 -08:00
2023-02-21 18:24:12 -08:00
2023-02-21 18:24:12 -08:00
2023-02-21 18:24:12 -08:00
2023-02-20 10:40:42 -08:00
2023-02-21 18:24:12 -08:00
2023-02-21 18:24:12 -08:00
2023-01-23 11:56:07 -08:00
2022-12-30 17:22:14 +09:00
2023-02-02 11:35:33 -08:00
2023-02-21 18:24:12 -08:00
2023-02-20 10:40:42 -08: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.

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
Linux kernel stable tree
Readme 6.1 GiB
Languages
C 97.5%
Assembly 1%
Shell 0.6%
Python 0.3%
Makefile 0.3%