Linux kernel modifications for the Kernel Hacking exam
Find a file
Florian Fainelli 6c58cf40e3 tools/thermal: Fix possible path truncations
A build with -D_FORTIFY_SOURCE=2 enabled will produce the following warnings:

sysfs.c:63:30: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size between 0 and 255 [-Wformat-truncation=]
  snprintf(filepath, 256, "%s/%s", path, filename);
                              ^~
Bump up the buffer to PATH_MAX which is the limit and account for all of
the possible NUL and separators that could lead to exceeding the
allocated buffer sizes.

Fixes: 94f69966fa ("tools/thermal: Introduce tmon, a tool for thermal subsystem")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2022-08-03 19:28:46 +02:00
arch ARM: boardfile deprecation for 6.0 2022-08-02 08:35:17 -07:00
block
certs certs: make system keyring depend on x509 parser 2022-07-24 12:53:55 -07:00
crypto
Documentation Thermal control updates for 5.20-rc1 2022-08-02 11:27:53 -07:00
drivers Thermal control updates for 5.20-rc1 2022-08-02 11:27:53 -07:00
fs fs.idmapped.overlay.acl.v5.20 2022-08-01 09:10:07 -07:00
include Thermal control updates for 5.20-rc1 2022-08-02 11:27:53 -07:00
init
ipc
kernel Power management updates for 5.20-rc1 2022-08-02 11:17:00 -07:00
lib
LICENSES
mm slab updates for 5.20/6.0 2022-08-01 11:46:58 -07:00
net net: ping6: Fix memleak in ipv6_renew_options(). 2022-07-28 10:42:08 -07:00
samples
scripts - Fix stack protector builds when cross compiling with Clang 2022-08-01 10:14:19 -07:00
security - Add the ability to pass early an RNG seed to the kernel from the boot 2022-08-01 10:17:19 -07:00
sound
tools tools/thermal: Fix possible path truncations 2022-08-03 19:28:46 +02:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap ARM: SoC fixes for 5.19, part 4 2022-07-27 09:43:07 -07:00
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS Thermal control updates for 5.20-rc1 2022-08-02 11:27:53 -07:00
Makefile Linux 5.19 2022-07-31 14:03:01 -07:00
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.