Go to file
Wenlin Kang e50e96a017 ext4: fix -Wstringop-truncation warnings
The strncpy() function may create a unterminated string,
use strscpy_pad() instead.

This fixes the following warning:

fs/ext4/super.c: In function '__save_error_info':
fs/ext4/super.c:349:2: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
  strncpy(es->s_last_error_func, func, sizeof(es->s_last_error_func));
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs/ext4/super.c:353:3: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
   strncpy(es->s_first_error_func, func,
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    sizeof(es->s_first_error_func));
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-11-19 10:17:14 -05:00
arch Merge tag 'v5.2.60' into v5.2/standard/base 2020-09-21 17:02:29 -04:00
block block: Set same_page to false in __bio_try_merge_page if ret is false 2020-09-17 17:26:21 -04:00
certs treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 36 2019-05-24 17:27:11 +02:00
crypto crypto: algif_aead - fix uninitialized ctx->init 2020-09-17 17:26:22 -04:00
Documentation Merge tag 'v5.2.60' into v5.2/standard/base 2020-09-21 17:02:29 -04:00
drivers Merge tag 'v5.2.60' into v5.2/standard/base 2020-09-21 17:02:29 -04:00
fs ext4: fix -Wstringop-truncation warnings 2020-11-19 10:17:14 -05:00
include Merge tag 'v5.2.60' into v5.2/standard/base 2020-09-21 17:02:29 -04:00
init Merge tag 'v5.2.44' into v5.2/standard/base 2020-06-11 09:17:03 -04:00
ipc ipc/util.c: sysvipc_find_ipc() incorrectly updates position index 2020-06-04 16:28:45 -04:00
kernel kdb: Eliminate strncpy() warnings by replacing with strscpy() 2020-11-19 10:17:12 -05:00
lib test_kmod: avoid potential double free in trigger_config_run_type() 2020-09-17 17:26:14 -04:00
LICENSES LICENSES: Rename other to deprecated 2019-05-03 06:34:32 -06:00
mm Merge tag 'v5.2.60' into v5.2/standard/base 2020-09-21 17:02:29 -04:00
net tipc: fix -Wstringop-truncation warnings 2020-11-19 10:17:13 -05:00
samples bpf: Fix fds_example SIGSEGV error 2020-09-04 10:33:20 -04:00
scripts Merge tag 'v5.2.59' into v5.2/standard/base 2020-09-07 22:24:50 -04:00
security Merge tag 'v5.2.59' into v5.2/standard/base 2020-09-07 22:24:50 -04:00
sound ALSA: hda/realtek - Improved routing for Thinkpad X1 7th/8th Gen 2020-09-17 17:26:21 -04:00
tools Merge tag 'v5.2.60' into v5.2/standard/base 2020-09-21 17:02:29 -04:00
usr Merge tag 'v5.2.42' into v5.2/standard/base 2020-06-05 14:37:12 -04:00
virt KVM: arm64: Don't inherit exec permission across page-table levels 2020-08-21 14:47:54 -04:00
.clang-format Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2019-04-17 11:26:25 -07:00
.cocciconfig scripts: add Linux .cocciconfig for coccinelle 2016-07-22 12:13:39 +02:00
.get_maintainer.ignore Opt out of scripts/get_maintainer.pl 2019-05-16 10:53:40 -07:00
.gitattributes .gitattributes: set git diff driver for C source code files 2016-10-07 18:46:30 -07:00
.gitignore .gitignore: exclude .get_maintainer.ignore and .gitattributes 2019-05-18 11:49:54 +09:00
.mailmap MAINTAINERS: Update my email address 2019-06-18 14:37:27 +01:00
COPYING COPYING: use the new text with points to the license files 2018-03-23 12:41:45 -06:00
CREDITS MAINTAINERS: Farewell Martin Schwidefsky 2019-05-31 10:14:11 +02:00
Kbuild Kbuild updates for v5.1 2019-03-10 17:48:21 -07:00
Kconfig kconfig: move the "Executable file formats" menu to fs/Kconfig.binfmt 2018-08-02 08:06:55 +09:00
MAINTAINERS Merge tag 'v5.2.47' into v5.2/standard/base 2020-07-12 15:00:24 -04:00
Makefile Merge tag 'v5.2.60' into v5.2/standard/base 2020-09-21 17:02:29 -04:00
README Drop all 00-INDEX files from Documentation/ 2018-09-09 15:08:58 -06: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.