linux-google-nyan: switch to llvm
Signed-off-by: Robert Eckelmann <longnoserob@postmarketos.org> Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7273>
This commit is contained in:
parent
39c239831c
commit
4207cf89e9
4 changed files with 228 additions and 52 deletions
93
device/testing/linux-google-nyan/0006-typedefs.patch
Normal file
93
device/testing/linux-google-nyan/0006-typedefs.patch
Normal file
|
|
@ -0,0 +1,93 @@
|
|||
From: Nathan Chancellor <nathan@kernel.org>
|
||||
To: Kees Cook <kees@kernel.org>
|
||||
Cc: Andy Shevchenko <andy@kernel.org>,
|
||||
Nick Desaulniers <nick.desaulniers+lkml@gmail.com>,
|
||||
Bill Wendling <morbo@google.com>,
|
||||
Justin Stitt <justinstitt@google.com>,
|
||||
linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org,
|
||||
llvm@lists.linux.dev, stable@vger.kernel.org,
|
||||
Nathan Chancellor <nathan@kernel.org>
|
||||
Subject: [PATCH v3 1/2] include: Move typedefs in nls.h to their own header
|
||||
Date: Fri, 28 Mar 2025 12:26:31 -0700 [thread overview]
|
||||
Message-ID: <20250328-string-add-wcslen-for-llvm-opt-v3-1-a180b4c0c1c4@kernel.org> (raw)
|
||||
In-Reply-To: <20250328-string-add-wcslen-for-llvm-opt-v3-0-a180b4c0c1c4@kernel.org>
|
||||
|
||||
In order to allow commonly included headers such as string.h to access
|
||||
typedefs such as wchar_t without running into issues with the rest of
|
||||
the NLS library, refactor the typedefs out into their own header that
|
||||
can be included in a much safer manner.
|
||||
|
||||
Cc: stable@vger.kernel.org
|
||||
Reviewed-by: Andy Shevchenko <andy@kernel.org>
|
||||
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
|
||||
---
|
||||
include/linux/nls.h | 19 +------------------
|
||||
include/linux/nls_types.h | 26 ++++++++++++++++++++++++++
|
||||
2 files changed, 27 insertions(+), 18 deletions(-)
|
||||
|
||||
diff --git a/include/linux/nls.h b/include/linux/nls.h
|
||||
index e0bf8367b274..3d416d1f60b6 100644
|
||||
--- a/include/linux/nls.h
|
||||
+++ b/include/linux/nls.h
|
||||
@@ -3,24 +3,7 @@
|
||||
#define _LINUX_NLS_H
|
||||
|
||||
#include <linux/init.h>
|
||||
-
|
||||
-/* Unicode has changed over the years. Unicode code points no longer
|
||||
- * fit into 16 bits; as of Unicode 5 valid code points range from 0
|
||||
- * to 0x10ffff (17 planes, where each plane holds 65536 code points).
|
||||
- *
|
||||
- * The original decision to represent Unicode characters as 16-bit
|
||||
- * wchar_t values is now outdated. But plane 0 still includes the
|
||||
- * most commonly used characters, so we will retain it. The newer
|
||||
- * 32-bit unicode_t type can be used when it is necessary to
|
||||
- * represent the full Unicode character set.
|
||||
- */
|
||||
-
|
||||
-/* Plane-0 Unicode character */
|
||||
-typedef u16 wchar_t;
|
||||
-#define MAX_WCHAR_T 0xffff
|
||||
-
|
||||
-/* Arbitrary Unicode character */
|
||||
-typedef u32 unicode_t;
|
||||
+#include <linux/nls_types.h>
|
||||
|
||||
struct nls_table {
|
||||
const char *charset;
|
||||
diff --git a/include/linux/nls_types.h b/include/linux/nls_types.h
|
||||
new file mode 100644
|
||||
index 000000000000..9479df1016da
|
||||
--- /dev/null
|
||||
+++ b/include/linux/nls_types.h
|
||||
@@ -0,0 +1,26 @@
|
||||
+/* SPDX-License-Identifier: GPL-2.0 */
|
||||
+#ifndef _LINUX_NLS_TYPES_H
|
||||
+#define _LINUX_NLS_TYPES_H
|
||||
+
|
||||
+#include <linux/types.h>
|
||||
+
|
||||
+/*
|
||||
+ * Unicode has changed over the years. Unicode code points no longer
|
||||
+ * fit into 16 bits; as of Unicode 5 valid code points range from 0
|
||||
+ * to 0x10ffff (17 planes, where each plane holds 65536 code points).
|
||||
+ *
|
||||
+ * The original decision to represent Unicode characters as 16-bit
|
||||
+ * wchar_t values is now outdated. But plane 0 still includes the
|
||||
+ * most commonly used characters, so we will retain it. The newer
|
||||
+ * 32-bit unicode_t type can be used when it is necessary to
|
||||
+ * represent the full Unicode character set.
|
||||
+ */
|
||||
+
|
||||
+/* Plane-0 Unicode character */
|
||||
+typedef u16 wchar_t;
|
||||
+#define MAX_WCHAR_T 0xffff
|
||||
+
|
||||
+/* Arbitrary Unicode character */
|
||||
+typedef u32 unicode_t;
|
||||
+
|
||||
+#endif /* _LINUX_NLS_TYPES_H */
|
||||
|
||||
--
|
||||
2.49.0
|
||||
|
||||
89
device/testing/linux-google-nyan/0007-string.patch
Normal file
89
device/testing/linux-google-nyan/0007-string.patch
Normal file
|
|
@ -0,0 +1,89 @@
|
|||
From 61df817d1d1bfe54c751e0f135aa1cdf817de4ad Mon Sep 17 00:00:00 2001
|
||||
From: Nathan Chancellor <nathan@kernel.org>
|
||||
Date: Fri, 28 Mar 2025 12:26:32 -0700
|
||||
Subject: lib/string.c: Add wcslen()
|
||||
|
||||
A recent optimization change in LLVM [1] aims to transform certain loop
|
||||
idioms into calls to strlen() or wcslen(). This change transforms the
|
||||
first while loop in UniStrcat() into a call to wcslen(), breaking the
|
||||
build when UniStrcat() gets inlined into alloc_path_with_tree_prefix():
|
||||
|
||||
ld.lld: error: undefined symbol: wcslen
|
||||
>>> referenced by nls_ucs2_utils.h:54 (fs/smb/client/../../nls/nls_ucs2_utils.h:54)
|
||||
>>> vmlinux.o:(alloc_path_with_tree_prefix)
|
||||
>>> referenced by nls_ucs2_utils.h:54 (fs/smb/client/../../nls/nls_ucs2_utils.h:54)
|
||||
>>> vmlinux.o:(alloc_path_with_tree_prefix)
|
||||
|
||||
The kernel does not build with '-ffreestanding' (which would avoid this
|
||||
transformation) because it does want libcall optimizations in general
|
||||
and turning on '-ffreestanding' disables the majority of them. While
|
||||
'-fno-builtin-wcslen' would be more targeted at the problem, it does not
|
||||
work with LTO.
|
||||
|
||||
Add a basic wcslen() to avoid this linkage failure. While no
|
||||
architecture or FORTIFY_SOURCE overrides this, add it to string.c
|
||||
instead of string_helpers.c so that it is built with '-ffreestanding',
|
||||
otherwise the compiler might transform it into a call to itself.
|
||||
|
||||
Cc: stable@vger.kernel.org
|
||||
Link: https://github.com/llvm/llvm-project/commit/9694844d7e36fd5e01011ab56b64f27b867aa72d [1]
|
||||
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
|
||||
Link: https://lore.kernel.org/r/20250328-string-add-wcslen-for-llvm-opt-v3-2-a180b4c0c1c4@kernel.org
|
||||
Signed-off-by: Kees Cook <kees@kernel.org>
|
||||
---
|
||||
include/linux/string.h | 2 ++
|
||||
lib/string.c | 11 +++++++++++
|
||||
2 files changed, 13 insertions(+)
|
||||
|
||||
diff --git a/include/linux/string.h b/include/linux/string.h
|
||||
index 0403a4ca4c116a..b000f445a2c716 100644
|
||||
--- a/include/linux/string.h
|
||||
+++ b/include/linux/string.h
|
||||
@@ -10,6 +10,7 @@
|
||||
#include <linux/stddef.h> /* for NULL */
|
||||
#include <linux/err.h> /* for ERR_PTR() */
|
||||
#include <linux/errno.h> /* for E2BIG */
|
||||
+#include <linux/nls_types.h> /* for wchar_t */
|
||||
#include <linux/overflow.h> /* for check_mul_overflow() */
|
||||
#include <linux/stdarg.h>
|
||||
#include <uapi/linux/string.h>
|
||||
@@ -203,6 +204,7 @@ extern __kernel_size_t strlen(const char *);
|
||||
#ifndef __HAVE_ARCH_STRNLEN
|
||||
extern __kernel_size_t strnlen(const char *,__kernel_size_t);
|
||||
#endif
|
||||
+__kernel_size_t wcslen(const wchar_t *s);
|
||||
#ifndef __HAVE_ARCH_STRPBRK
|
||||
extern char * strpbrk(const char *,const char *);
|
||||
#endif
|
||||
diff --git a/lib/string.c b/lib/string.c
|
||||
index eb4486ed40d259..2c6f8c8f415913 100644
|
||||
--- a/lib/string.c
|
||||
+++ b/lib/string.c
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <linux/export.h>
|
||||
#include <linux/bug.h>
|
||||
#include <linux/errno.h>
|
||||
+#include <linux/nls_types.h>
|
||||
#include <linux/slab.h>
|
||||
|
||||
#include <asm/unaligned.h>
|
||||
@@ -429,6 +430,16 @@ size_t strnlen(const char *s, size_t count)
|
||||
EXPORT_SYMBOL(strnlen);
|
||||
#endif
|
||||
|
||||
+size_t wcslen(const wchar_t *s)
|
||||
+{
|
||||
+ const wchar_t *sc;
|
||||
+
|
||||
+ for (sc = s; *sc != '\0'; ++sc)
|
||||
+ /* nothing */;
|
||||
+ return sc - s;
|
||||
+}
|
||||
+EXPORT_SYMBOL(wcslen);
|
||||
+
|
||||
#ifndef __HAVE_ARCH_STRSPN
|
||||
/**
|
||||
* strspn - Calculate the length of the initial substring of @s which only contain letters in @accept
|
||||
--
|
||||
cgit 1.2.3-korg
|
||||
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
maintainer="WeirdTreeThing <bradyn127@protonmail.com>"
|
||||
pkgname=linux-google-nyan
|
||||
pkgver=6.6.17
|
||||
pkgrel=8
|
||||
pkgrel=9
|
||||
pkgdesc="Mainline kernel fork for Google Nyan Chromebooks"
|
||||
arch="armv7"
|
||||
_carch="arm"
|
||||
|
|
@ -15,13 +15,13 @@ options="!strip !check !tracedeps
|
|||
"
|
||||
makedepends="
|
||||
bison
|
||||
clang
|
||||
findutils
|
||||
flex
|
||||
lld
|
||||
llvm
|
||||
openssl-dev
|
||||
perl
|
||||
gmp-dev
|
||||
mpc1-dev
|
||||
mpfr-dev
|
||||
postmarketos-installkernel
|
||||
xz
|
||||
"
|
||||
|
|
@ -40,6 +40,8 @@ source="
|
|||
0003-Revert-spi-Reintroduce-spi_set_cs_timing.patch
|
||||
0004-Revert-drm-tegra-Implement-fbdev-emulation-as-in-ker.patch
|
||||
0005-Revert-drm-tegra-Initialize-fbdev-DRM-client.patch
|
||||
0006-typedefs.patch
|
||||
0007-string.patch
|
||||
"
|
||||
builddir="$srcdir/linux-${_kernver//_/-}"
|
||||
|
||||
|
|
@ -50,7 +52,7 @@ prepare() {
|
|||
|
||||
build() {
|
||||
unset LDFLAGS
|
||||
make ARCH="$_carch" CC="${CC:-gcc}" \
|
||||
make ARCH="$_carch" LLVM=1 \
|
||||
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
||||
}
|
||||
|
||||
|
|
@ -70,10 +72,12 @@ package() {
|
|||
|
||||
sha512sums="
|
||||
91a6ec0d1e371cad5703bc65016fd930a5da74ca4d862eecdab08846b455b42a6845531322af65d8805210d88dd74c327ca6de1166ed250aa546918e5412c470 linux-6.6.17.tar.xz
|
||||
18bb48c07971cae859bd51195dd1df01bcb703170e316329da2c1c8459d1ea730fb5e5125aba7a414315e9f095795567b1c2aa51a0ff66c36d213ee6abd02915 config-google-nyan.armv7
|
||||
38398141e8c5633d078650a0c13a8b8241e7e7d63acd6d0f2e25e598d110edb88c9468ee73172bd203784f4a86c7e14cb3a9acc9c3c7e7b7a2f4499aba1d2956 config-google-nyan.armv7
|
||||
4e46d412d6a342044ad348e19cb75b8b90d57fe345eaa341e1c960f73f0c1ef3dd09196eccc3c413e199ac366eb512770e96b60d6a3ad44ec80a930d732d0fd4 0001-ARM-dts-tegra-nyan-add-mmc-aliases.patch
|
||||
f62ce358aed7273320f0163fbaf7425b4800945ac3cdb6a57062b0087c5b2799131d0a48fa1580bff33a4ae33c1ee9ae2c5771887b8b460be2596c7605234a0f 0002-ARM-tegra-nyan-fix-mic-jack-detection.patch
|
||||
a43ecb9f410d2c3168ada6c4788174154627fe6568e9048def2b6ea827b0c7b676f148352e39f6985172bcb85b4d0f77376ec7f94ba33716671f99fe20923504 0003-Revert-spi-Reintroduce-spi_set_cs_timing.patch
|
||||
5bc98d414a3e02f62f3b3ccd32d6d27f8e6e0706efb4eef1496b616a47dda866411072a27da1eb713d249cf0c0934b519d0b68ac9b594b34edf49fc2e26945c8 0004-Revert-drm-tegra-Implement-fbdev-emulation-as-in-ker.patch
|
||||
010c9094706cbac87200dc940b52e8c8b2a53a44fed1b361e828d19f65ea98eda7b8840678349b9fba7ac72d15e2095ff8f674d2ffede7594f7b35d850635b58 0005-Revert-drm-tegra-Initialize-fbdev-DRM-client.patch
|
||||
23f52c1585952c229502ae1801fd5def70dc3d4021b6528dc6d1a4df7193206dbde2b216ceb2ffa275f33c0397f1fab87997d535d7d694ea974781ca0eddd710 0006-typedefs.patch
|
||||
acd52be16c46c66929df74e3b46db78845638f82c5204f46c2dfb7d3d46e287b781fb716f354d1273964056addf69a9140d2b2789920d18a504ef7cd2efbbb0f 0007-string.patch
|
||||
"
|
||||
|
|
|
|||
|
|
@ -2,17 +2,18 @@
|
|||
# Automatically generated file; DO NOT EDIT.
|
||||
# Linux/arm 6.6.17 Kernel Configuration
|
||||
#
|
||||
CONFIG_CC_VERSION_TEXT="armv7-alpine-linux-musleabihf-gcc (Alpine 14.3.0) 14.3.0"
|
||||
CONFIG_CC_IS_GCC=y
|
||||
CONFIG_GCC_VERSION=140300
|
||||
CONFIG_CLANG_VERSION=0
|
||||
CONFIG_AS_IS_GNU=y
|
||||
CONFIG_AS_VERSION=24400
|
||||
CONFIG_LD_IS_BFD=y
|
||||
CONFIG_LD_VERSION=24400
|
||||
CONFIG_LLD_VERSION=0
|
||||
CONFIG_CC_VERSION_TEXT="Alpine clang version 21.1.2"
|
||||
CONFIG_GCC_VERSION=0
|
||||
CONFIG_CC_IS_CLANG=y
|
||||
CONFIG_CLANG_VERSION=210102
|
||||
CONFIG_AS_IS_LLVM=y
|
||||
CONFIG_AS_VERSION=210102
|
||||
CONFIG_LD_VERSION=0
|
||||
CONFIG_LD_IS_LLD=y
|
||||
CONFIG_LLD_VERSION=210102
|
||||
CONFIG_CC_HAS_ASM_GOTO_OUTPUT=y
|
||||
CONFIG_CC_HAS_ASM_GOTO_TIED_OUTPUT=y
|
||||
CONFIG_TOOLS_SUPPORT_RELR=y
|
||||
CONFIG_CC_HAS_ASM_INLINE=y
|
||||
CONFIG_CC_HAS_NO_PROFILE_FN_ATTR=y
|
||||
CONFIG_PAHOLE_VERSION=0
|
||||
|
|
@ -153,9 +154,8 @@ CONFIG_UCLAMP_TASK=y
|
|||
CONFIG_UCLAMP_BUCKETS_COUNT=5
|
||||
# end of Scheduler features
|
||||
|
||||
CONFIG_CC_IMPLICIT_FALLTHROUGH="-Wimplicit-fallthrough=5"
|
||||
CONFIG_CC_IMPLICIT_FALLTHROUGH="-Wimplicit-fallthrough"
|
||||
CONFIG_GCC11_NO_ARRAY_BOUNDS=y
|
||||
CONFIG_CC_NO_ARRAY_BOUNDS=y
|
||||
CONFIG_CGROUPS=y
|
||||
CONFIG_PAGE_COUNTER=y
|
||||
# CONFIG_CGROUP_FAVOR_DYNMODS is not set
|
||||
|
|
@ -381,7 +381,6 @@ CONFIG_ARM_THUMBEE=y
|
|||
CONFIG_ARM_VIRT_EXT=y
|
||||
CONFIG_SWP_EMULATE=y
|
||||
CONFIG_CPU_LITTLE_ENDIAN=y
|
||||
# CONFIG_CPU_BIG_ENDIAN is not set
|
||||
# CONFIG_CPU_ICACHE_DISABLE is not set
|
||||
# CONFIG_CPU_ICACHE_MISMATCH_WORKAROUND is not set
|
||||
# CONFIG_CPU_BPREDICT_DISABLE is not set
|
||||
|
|
@ -478,8 +477,6 @@ CONFIG_ALIGNMENT_TRAP=y
|
|||
# CONFIG_PARAVIRT is not set
|
||||
# CONFIG_PARAVIRT_TIME_ACCOUNTING is not set
|
||||
# CONFIG_XEN is not set
|
||||
CONFIG_CC_HAVE_STACKPROTECTOR_TLS=y
|
||||
CONFIG_STACKPROTECTOR_PER_TASK=y
|
||||
# end of Kernel Features
|
||||
|
||||
#
|
||||
|
|
@ -693,8 +690,6 @@ CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
|
|||
# end of GCOV-based kernel profiling
|
||||
|
||||
CONFIG_HAVE_GCC_PLUGINS=y
|
||||
CONFIG_GCC_PLUGINS=y
|
||||
# CONFIG_GCC_PLUGIN_LATENT_ENTROPY is not set
|
||||
CONFIG_FUNCTION_ALIGNMENT=0
|
||||
# end of General architecture-dependent options
|
||||
|
||||
|
|
@ -825,7 +820,7 @@ CONFIG_ZSWAP_ZPOOL_DEFAULT_ZBUD=y
|
|||
CONFIG_ZSWAP_ZPOOL_DEFAULT="zbud"
|
||||
CONFIG_ZBUD=y
|
||||
CONFIG_Z3FOLD=y
|
||||
CONFIG_ZSMALLOC=y
|
||||
CONFIG_ZSMALLOC=m
|
||||
# CONFIG_ZSMALLOC_STAT is not set
|
||||
CONFIG_ZSMALLOC_CHAIN_SIZE=8
|
||||
|
||||
|
|
@ -937,7 +932,7 @@ CONFIG_IP_PNP_RARP=y
|
|||
# CONFIG_NET_IPGRE_DEMUX is not set
|
||||
CONFIG_NET_IP_TUNNEL=y
|
||||
# CONFIG_IP_MROUTE is not set
|
||||
# CONFIG_SYN_COOKIES is not set
|
||||
CONFIG_SYN_COOKIES=y
|
||||
# CONFIG_NET_IPVTI is not set
|
||||
CONFIG_NET_UDP_TUNNEL=m
|
||||
# CONFIG_NET_FOU is not set
|
||||
|
|
@ -1486,10 +1481,10 @@ CONFIG_MAC80211_LEDS=y
|
|||
# CONFIG_MAC80211_MESSAGE_TRACING is not set
|
||||
# CONFIG_MAC80211_DEBUG_MENU is not set
|
||||
CONFIG_MAC80211_STA_HASH_MAX_SIZE=0
|
||||
CONFIG_RFKILL=y
|
||||
CONFIG_RFKILL=m
|
||||
CONFIG_RFKILL_LEDS=y
|
||||
CONFIG_RFKILL_INPUT=y
|
||||
CONFIG_RFKILL_GPIO=y
|
||||
CONFIG_RFKILL_GPIO=m
|
||||
# CONFIG_NET_9P is not set
|
||||
# CONFIG_CAIF is not set
|
||||
# CONFIG_CEPH_LIB is not set
|
||||
|
|
@ -1942,7 +1937,7 @@ CONFIG_ZRAM_DEF_COMP="lzo-rle"
|
|||
# CONFIG_ZRAM_WRITEBACK is not set
|
||||
# CONFIG_ZRAM_MEMORY_TRACKING is not set
|
||||
# CONFIG_ZRAM_MULTI_COMP is not set
|
||||
CONFIG_BLK_DEV_LOOP=m
|
||||
CONFIG_BLK_DEV_LOOP=y
|
||||
CONFIG_BLK_DEV_LOOP_MIN_COUNT=8
|
||||
# CONFIG_BLK_DEV_DRBD is not set
|
||||
CONFIG_BLK_DEV_NBD=m
|
||||
|
|
@ -2700,7 +2695,7 @@ CONFIG_INPUT_VIVALDIFMAP=m
|
|||
#
|
||||
# CONFIG_INPUT_MOUSEDEV is not set
|
||||
CONFIG_INPUT_JOYDEV=m
|
||||
CONFIG_INPUT_EVDEV=y
|
||||
CONFIG_INPUT_EVDEV=m
|
||||
# CONFIG_INPUT_EVBUG is not set
|
||||
|
||||
#
|
||||
|
|
@ -2890,7 +2885,7 @@ CONFIG_INPUT_MISC=y
|
|||
# CONFIG_INPUT_YEALINK is not set
|
||||
# CONFIG_INPUT_CM109 is not set
|
||||
# CONFIG_INPUT_REGULATOR_HAPTIC is not set
|
||||
CONFIG_INPUT_UINPUT=m
|
||||
CONFIG_INPUT_UINPUT=y
|
||||
# CONFIG_INPUT_PCF8574 is not set
|
||||
# CONFIG_INPUT_PWM_BEEPER is not set
|
||||
# CONFIG_INPUT_PWM_VIBRA is not set
|
||||
|
|
@ -3022,7 +3017,7 @@ CONFIG_SERIAL_MCTRL_GPIO=y
|
|||
# CONFIG_SERIAL_NONSTANDARD is not set
|
||||
# CONFIG_N_GSM is not set
|
||||
# CONFIG_NOZOMI is not set
|
||||
CONFIG_NULL_TTY=y
|
||||
CONFIG_NULL_TTY=m
|
||||
CONFIG_HVC_DRIVER=y
|
||||
# CONFIG_HVC_DCC is not set
|
||||
# CONFIG_RPMSG_TTY is not set
|
||||
|
|
@ -5379,7 +5374,7 @@ CONFIG_HID=y
|
|||
CONFIG_HID_BATTERY_STRENGTH=y
|
||||
CONFIG_HIDRAW=y
|
||||
CONFIG_UHID=m
|
||||
CONFIG_HID_GENERIC=y
|
||||
CONFIG_HID_GENERIC=m
|
||||
|
||||
#
|
||||
# Special HID drivers
|
||||
|
|
@ -7208,14 +7203,14 @@ CONFIG_BUFFER_HEAD=y
|
|||
CONFIG_LEGACY_DIRECT_IO=y
|
||||
# CONFIG_EXT2_FS is not set
|
||||
# CONFIG_EXT3_FS is not set
|
||||
CONFIG_EXT4_FS=m
|
||||
CONFIG_EXT4_FS=y
|
||||
CONFIG_EXT4_USE_FOR_EXT2=y
|
||||
CONFIG_EXT4_FS_POSIX_ACL=y
|
||||
CONFIG_EXT4_FS_SECURITY=y
|
||||
# CONFIG_EXT4_DEBUG is not set
|
||||
CONFIG_JBD2=m
|
||||
CONFIG_JBD2=y
|
||||
# CONFIG_JBD2_DEBUG is not set
|
||||
CONFIG_FS_MBCACHE=m
|
||||
CONFIG_FS_MBCACHE=y
|
||||
# CONFIG_REISERFS_FS is not set
|
||||
# CONFIG_JFS_FS is not set
|
||||
CONFIG_XFS_FS=m
|
||||
|
|
@ -7229,7 +7224,7 @@ CONFIG_XFS_SUPPORT_ASCII_CI=y
|
|||
# CONFIG_XFS_DEBUG is not set
|
||||
# CONFIG_GFS2_FS is not set
|
||||
# CONFIG_OCFS2_FS is not set
|
||||
CONFIG_BTRFS_FS=m
|
||||
CONFIG_BTRFS_FS=y
|
||||
CONFIG_BTRFS_FS_POSIX_ACL=y
|
||||
# CONFIG_BTRFS_FS_CHECK_INTEGRITY is not set
|
||||
# CONFIG_BTRFS_FS_RUN_SANITY_TESTS is not set
|
||||
|
|
@ -7237,7 +7232,7 @@ CONFIG_BTRFS_FS_POSIX_ACL=y
|
|||
# CONFIG_BTRFS_ASSERT is not set
|
||||
# CONFIG_BTRFS_FS_REF_VERIFY is not set
|
||||
# CONFIG_NILFS2_FS is not set
|
||||
CONFIG_F2FS_FS=m
|
||||
CONFIG_F2FS_FS=y
|
||||
CONFIG_F2FS_STAT_FS=y
|
||||
CONFIG_F2FS_FS_XATTR=y
|
||||
CONFIG_F2FS_FS_POSIX_ACL=y
|
||||
|
|
@ -7538,8 +7533,6 @@ CONFIG_INIT_STACK_NONE=y
|
|||
# CONFIG_INIT_STACK_ALL_ZERO is not set
|
||||
# CONFIG_INIT_ON_ALLOC_DEFAULT_ON is not set
|
||||
# CONFIG_INIT_ON_FREE_DEFAULT_ON is not set
|
||||
CONFIG_CC_HAS_ZERO_CALL_USED_REGS=y
|
||||
# CONFIG_ZERO_CALL_USED_REGS is not set
|
||||
# end of Memory initialization
|
||||
|
||||
#
|
||||
|
|
@ -7549,13 +7542,13 @@ CONFIG_CC_HAS_ZERO_CALL_USED_REGS=y
|
|||
# CONFIG_BUG_ON_DATA_CORRUPTION is not set
|
||||
# end of Hardening of kernel data structures
|
||||
|
||||
CONFIG_CC_HAS_RANDSTRUCT=y
|
||||
CONFIG_RANDSTRUCT_NONE=y
|
||||
# CONFIG_RANDSTRUCT_FULL is not set
|
||||
# CONFIG_RANDSTRUCT_PERFORMANCE is not set
|
||||
# end of Kernel hardening options
|
||||
# end of Security options
|
||||
|
||||
CONFIG_XOR_BLOCKS=m
|
||||
CONFIG_XOR_BLOCKS=y
|
||||
CONFIG_ASYNC_CORE=m
|
||||
CONFIG_ASYNC_XOR=m
|
||||
CONFIG_CRYPTO=y
|
||||
|
|
@ -7664,7 +7657,7 @@ CONFIG_CRYPTO_ESSIV=y
|
|||
#
|
||||
# Hashes, digests, and MACs
|
||||
#
|
||||
CONFIG_CRYPTO_BLAKE2B=m
|
||||
CONFIG_CRYPTO_BLAKE2B=y
|
||||
CONFIG_CRYPTO_CMAC=m
|
||||
CONFIG_CRYPTO_GHASH=m
|
||||
CONFIG_CRYPTO_HMAC=y
|
||||
|
|
@ -7675,21 +7668,21 @@ CONFIG_CRYPTO_POLY1305=m
|
|||
# CONFIG_CRYPTO_RMD160 is not set
|
||||
CONFIG_CRYPTO_SHA1=y
|
||||
CONFIG_CRYPTO_SHA256=y
|
||||
CONFIG_CRYPTO_SHA512=m
|
||||
CONFIG_CRYPTO_SHA512=y
|
||||
CONFIG_CRYPTO_SHA3=m
|
||||
# CONFIG_CRYPTO_SM3_GENERIC is not set
|
||||
# CONFIG_CRYPTO_STREEBOG is not set
|
||||
# CONFIG_CRYPTO_VMAC is not set
|
||||
# CONFIG_CRYPTO_WP512 is not set
|
||||
# CONFIG_CRYPTO_XCBC is not set
|
||||
CONFIG_CRYPTO_XXHASH=m
|
||||
CONFIG_CRYPTO_XXHASH=y
|
||||
# end of Hashes, digests, and MACs
|
||||
|
||||
#
|
||||
# CRCs (cyclic redundancy checks)
|
||||
#
|
||||
CONFIG_CRYPTO_CRC32C=y
|
||||
CONFIG_CRYPTO_CRC32=m
|
||||
CONFIG_CRYPTO_CRC32=y
|
||||
CONFIG_CRYPTO_CRCT10DIF=y
|
||||
CONFIG_CRYPTO_CRC64_ROCKSOFT=y
|
||||
# end of CRCs (cyclic redundancy checks)
|
||||
|
|
@ -7702,7 +7695,7 @@ CONFIG_CRYPTO_LZO=y
|
|||
CONFIG_CRYPTO_842=m
|
||||
CONFIG_CRYPTO_LZ4=m
|
||||
CONFIG_CRYPTO_LZ4HC=m
|
||||
CONFIG_CRYPTO_ZSTD=m
|
||||
CONFIG_CRYPTO_ZSTD=y
|
||||
# end of Compression
|
||||
|
||||
#
|
||||
|
|
@ -7722,9 +7715,9 @@ CONFIG_CRYPTO_KDF800108_CTR=y
|
|||
#
|
||||
# Userspace interface
|
||||
#
|
||||
CONFIG_CRYPTO_USER_API=y
|
||||
CONFIG_CRYPTO_USER_API_HASH=y
|
||||
CONFIG_CRYPTO_USER_API_SKCIPHER=y
|
||||
CONFIG_CRYPTO_USER_API=m
|
||||
CONFIG_CRYPTO_USER_API_HASH=m
|
||||
CONFIG_CRYPTO_USER_API_SKCIPHER=m
|
||||
CONFIG_CRYPTO_USER_API_RNG=m
|
||||
# CONFIG_CRYPTO_USER_API_RNG_CAVP is not set
|
||||
CONFIG_CRYPTO_USER_API_AEAD=m
|
||||
|
|
@ -7795,7 +7788,7 @@ CONFIG_BINARY_PRINTF=y
|
|||
#
|
||||
# Library routines
|
||||
#
|
||||
CONFIG_RAID6_PQ=m
|
||||
CONFIG_RAID6_PQ=y
|
||||
CONFIG_RAID6_PQ_BENCHMARK=y
|
||||
CONFIG_LINEAR_RANGES=y
|
||||
# CONFIG_PACKING is not set
|
||||
|
|
@ -7979,9 +7972,7 @@ CONFIG_DEBUG_INFO_NONE=y
|
|||
# CONFIG_DEBUG_INFO_DWARF5 is not set
|
||||
CONFIG_FRAME_WARN=1024
|
||||
# CONFIG_STRIP_ASM_SYMS is not set
|
||||
# CONFIG_READABLE_ASM is not set
|
||||
# CONFIG_HEADERS_INSTALL is not set
|
||||
# CONFIG_DEBUG_SECTION_MISMATCH is not set
|
||||
CONFIG_SECTION_MISMATCH_WARN_ONLY=y
|
||||
# CONFIG_VMLINUX_MAP is not set
|
||||
# CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set
|
||||
|
|
@ -8002,7 +7993,6 @@ CONFIG_HAVE_ARCH_KGDB=y
|
|||
# CONFIG_KGDB is not set
|
||||
CONFIG_ARCH_HAS_UBSAN_SANITIZE_ALL=y
|
||||
# CONFIG_UBSAN is not set
|
||||
CONFIG_HAVE_KCSAN_COMPILER=y
|
||||
# end of Generic Kernel Debugging Instruments
|
||||
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue