5 files changed, 75 insertions(+), 402 deletions(-)
D 0110-give-rdrand-some-credit.patch
M APKBUILD
M config
D raid6.patch
D socket.patch
D 0110-give-rdrand-some-credit.patch => 0110-give-rdrand-some-credit.patch +0 -30
@@ 1,30 0,0 @@
-From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
-From: Arjan van de Ven <arjan@linux.intel.com>
-Date: Fri, 29 Jul 2016 19:10:52 +0000
-Subject: [PATCH] give rdrand some credit
-
-try to credit rdrand/rdseed with some entropy
-
-In VMs but even modern hardware, we're super starved for entropy, and while we can
-and do wear a tin foil hat, it's very hard to argue that
-rdrand and rdtsc add zero entropy.
----
- drivers/char/random.c | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/drivers/char/random.c b/drivers/char/random.c
-index 605969ed0f96..1cab72339cba 100644
---- a/drivers/char/random.c
-+++ b/drivers/char/random.c
-@@ -1757,6 +1757,8 @@ static void __init init_std_data(struct entropy_store *r)
- if (!arch_get_random_seed_long(&rv) &&
- !arch_get_random_long(&rv))
- rv = random_get_entropy();
-+ else
-+ credit_entropy_bits(r, 1);
- mix_pool_bytes(r, &rv, sizeof(rv));
- }
- mix_pool_bytes(r, utsname(), sizeof(*(utsname())));
---
-https://clearlinux.org
-
M APKBUILD => APKBUILD +4 -10
@@ 1,6 1,6 @@
# Maintainer: xdavidwu <xdavidwuph@gmail.com>
pkgname=linux-xdavidwu-xps
-pkgver=5.16.16
+pkgver=5.17
pkgrel=0
pkgdesc="Linux kernel customized for xps"
url="https://www.kernel.org/"
@@ 24,7 24,6 @@ source="https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-${pkgver}.tar.xz
0106-intel_idle-tweak-cpuidle-cstates.patch
0108-smpboot-reuse-timer-calibration.patch
0109-initialize-ata-before-graphics.patch
- 0110-give-rdrand-some-credit.patch
0111-ipv4-tcp-allow-the-memory-tuning-for-tcp-to-go-a-lit.patch
0112-init-wait-for-partition-and-retry-scan.patch
0115-enable-stateless-firmware-loading.patch
@@ 38,9 37,7 @@ source="https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-${pkgver}.tar.xz
0123-print-CPU-that-faults.patch
0127-nvme-workaround.patch
0128-don-t-report-an-error-if-PowerClamp-run-on-other-CPU.patch
- percpu-minsize.patch
- raid6.patch
- socket.patch"
+ percpu-minsize.patch"
builddir="$srcdir/linux-${pkgver}"
build() {
@@ 63,8 60,8 @@ package() {
}
sha512sums="
-a922b950fd3803b922be40c826554359f44f9eea8bc44be89c1db1e7173fb7726601373fdf37256eab85a644eccc774fdbcec407c7154c233117e0331f028ef8 linux-5.16.16.tar.xz
-8b07c03d605882444d684b24d4db8bb477bf7f7baf1bb4eac1b0d8e09c3415cf9fcf8c9a5f8fa7c5bb9de9faf5b55dedcc74387b7488c7b2966c6087a8cf7745 config
+89f0a7ca69d20a539d4b612a7028a30a5e98b402e4b6b88516f14237e5da4b626d7929eab8b40fccc90766e8f3bae87e9858a19077ffad20d8204acf18794f5b linux-5.17.tar.xz
+b5a68f9d5e4335283c93fe4daddb10f48bdd5fbca6245e4010ca031094dbca3b0af978adc33932023d420428d01f954b94ec8218cdc3a73b324dafb047107333 config
cb786c1fa30ab88020988929cfb71bac9164154bfe67f977654f14315d913e3c6dfa7c99c89b02ee7663d5c0817e22d4cc5c57288b7fa6c46333b0cac8acc618 fast_skylake.patch
c0c5d023cac625dfe3086b37b5abb4be8981db301a468e93d495c08b7650debbf47b7a24c39293731951315658164e36783e5a46fb26fc51ed6fc72e3716307c openwrt-402-ath_regd_optional.patch
7a26ba37bd384da0f32c0b2f545357f010c2287601e9b5d6e3cfe7109f5eb21c9de221ba0d15df0fa190ca40062bc556ec98366dd40c1232992c2a6320dda3a1 0101-i8042-decrease-debug-message-level-to-info.patch
@@ 75,7 72,6 @@ f36030e3c00dc00e7b403750de9d2632a87e826feae62f439bf0a57132209610a9401c18c4247d0c
2a97f3260f9bf6b1a9ae185d974c9537eb2c38045ef0fd3e7fb607b6815bf8fd6d9580c8517340e65b1845fd8eead20f32bbfb970f92f00a3eac7fd517325cc8 0106-intel_idle-tweak-cpuidle-cstates.patch
38a66f7899c0e28ec2a67b8d925a32e5a16de70bf3810dd95f3c4a43b641dc66aa96246584bffdaf4f1f3e22c29ddffff37909607cb020b890c5897957bb556c 0108-smpboot-reuse-timer-calibration.patch
7f25e7904061ba13daae95145a065a805a8b2b4d99166496f85f1d03d935560ecc089aca123009e1f34aa439c2e818ebc167dd4d8270749987815644860ff088 0109-initialize-ata-before-graphics.patch
-931684c61eb68c1db790b07749b63706bb8bf142222ef5093dda7754d6b924aed3f02d2b589cdf7c4ac4e2e9d5a0932f20b7a87ae67cef38590cf0f28abf5ce5 0110-give-rdrand-some-credit.patch
ec91de73d4f3fd7fce685687db789b2ece90e21007795ca6ccd3f5f5fa1accae9a3399f03bee016294fa98f17c04416815b5f4f2197aed396c05d01da02e0575 0111-ipv4-tcp-allow-the-memory-tuning-for-tcp-to-go-a-lit.patch
24bbbe7f2ac4d24efd4eda13d72931380ed7d02ffc4fef5b6fd5bb7f6870e22b434f840bd5e6129eaa7cae78b949a231c9e2f9f131263fdafc7e0c65b2393aab 0112-init-wait-for-partition-and-retry-scan.patch
3c22016715407c353d2f9b92b27a59e7d19e2b10a0a6752729566a847da5b05a938daaa60c3ff04367746381b6b362d0bdd3d9d37ea86664345c8a198af75fca 0115-enable-stateless-firmware-loading.patch
@@ 90,6 86,4 @@ f0c56377b2b6677de9bdc8a56db8485272951fb2d5ef1c76fb65e5bbaffb49cebd1caf1283d5bfd4
81a45dd801e88647e8ff69e089e9bbe3f37496bc0e558914958c67b44b3d29ce00cdb2bba54219708eb6882b1eb43355dec8ea6d1e5dd26470dc52551cdba97e 0127-nvme-workaround.patch
44b88ef3e60355e8f40f2d2ad9dea8522695f505bdeab425f3ff49b9bc5234a1bfc630b1ee0264845acc7f747cf53963620682d1953bf2352ce0776a291d3840 0128-don-t-report-an-error-if-PowerClamp-run-on-other-CPU.patch
0143197a66a61c6b12c556a6c6d06671528bde1731a8a101c54411c9981df00d869a49c3769dfa8ad513409e35b38562686c185b1201a566f364f525b1f2ee77 percpu-minsize.patch
-f0ca097bc177ba78f77a02f36ff1226790f9c241a33c38a88d3efad37e5c03a0ce9ca66e97c3d7b49633f0cbabec66364e3e50459a4f1b38d11a1db0219d6669 raid6.patch
-14201e2c771eb7fb728fd508099b75ed65948a6e6f8cc3ee80937f95046853cb71a8d04d8f6398cffce2cce53f77ba5fe9e510ee57e3eb6985f524a05f5ab9c9 socket.patch
"
M config => config +71 -35
@@ 1,6 1,6 @@
#
# Automatically generated file; DO NOT EDIT.
-# Linux/x86 5.16.0 Kernel Configuration
+# Linux/x86 5.17.0 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (Alpine 11.2.1_git20220219) 11.2.1 20220219"
CONFIG_CC_IS_GCC=y
@@ 154,6 154,7 @@ CONFIG_RCU_STALL_COMMON=y
CONFIG_RCU_NEED_SEGCBLIST=y
# end of RCU Subsystem
+CONFIG_BUILD_BIN2C=y
# CONFIG_IKCONFIG is not set
# CONFIG_IKHEADERS is not set
CONFIG_LOG_BUF_SHIFT=17
@@ 297,9 298,6 @@ CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_ARCH_HAS_CPU_RELAX=y
CONFIG_ARCH_HAS_FILTER_PGPROT=y
-CONFIG_HAVE_SETUP_PER_CPU_AREA=y
-CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y
-CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y
CONFIG_ARCH_HIBERNATION_POSSIBLE=y
CONFIG_ARCH_NR_GPIO=1024
CONFIG_ARCH_SUSPEND_POSSIBLE=y
@@ 319,6 317,8 @@ CONFIG_X86_FEATURE_NAMES=y
# CONFIG_X86_MPPARSE is not set
# CONFIG_GOLDFISH is not set
# CONFIG_RETPOLINE is not set
+CONFIG_CC_HAS_SLS=y
+# CONFIG_SLS is not set
# CONFIG_X86_CPU_RESCTRL is not set
# CONFIG_X86_EXTENDED_PLATFORM is not set
# CONFIG_X86_INTEL_LPSS is not set
@@ 405,6 405,7 @@ CONFIG_ARCH_RANDOM=y
# CONFIG_X86_INTEL_TSX_MODE_OFF is not set
CONFIG_X86_INTEL_TSX_MODE_ON=y
# CONFIG_X86_INTEL_TSX_MODE_AUTO is not set
+# CONFIG_X86_SGX is not set
CONFIG_EFI=y
CONFIG_EFI_STUB=y
# CONFIG_EFI_MIXED is not set
@@ 415,6 416,9 @@ CONFIG_HZ_100=y
CONFIG_HZ=100
CONFIG_SCHED_HRTICK=y
CONFIG_KEXEC=y
+CONFIG_KEXEC_FILE=y
+CONFIG_ARCH_HAS_KEXEC_PURGATORY=y
+# CONFIG_KEXEC_SIG is not set
# CONFIG_CRASH_DUMP is not set
CONFIG_PHYSICAL_START=0x1000000
CONFIG_RELOCATABLE=y
@@ 498,6 502,7 @@ CONFIG_HAVE_ACPI_APEI_NMI=y
# CONFIG_ACPI_APEI is not set
# CONFIG_ACPI_DPTF is not set
# CONFIG_ACPI_CONFIGFS is not set
+# CONFIG_ACPI_PFRUT is not set
# CONFIG_PMIC_OPREGION is not set
CONFIG_X86_PM_TIMER=y
# CONFIG_ACPI_PRMT is not set
@@ 524,6 529,7 @@ CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y
#
CONFIG_X86_INTEL_PSTATE=y
# CONFIG_X86_PCC_CPUFREQ is not set
+# CONFIG_X86_AMD_PSTATE is not set
# CONFIG_X86_ACPI_CPUFREQ is not set
# CONFIG_X86_SPEEDSTEP_CENTRINO is not set
# CONFIG_X86_P4_CLOCKMOD is not set
@@ 659,6 665,7 @@ CONFIG_HAVE_ARCH_MMAP_RND_COMPAT_BITS=y
CONFIG_ARCH_MMAP_RND_COMPAT_BITS=8
CONFIG_HAVE_ARCH_COMPAT_MMAP_BASES=y
CONFIG_PAGE_SIZE_LESS_THAN_64KB=y
+CONFIG_PAGE_SIZE_LESS_THAN_256KB=y
CONFIG_HAVE_STACK_VALIDATION=y
CONFIG_HAVE_RELIABLE_STACKTRACE=y
CONFIG_OLD_SIGSUSPEND3=y
@@ 681,6 688,7 @@ CONFIG_HAVE_STATIC_CALL_INLINE=y
CONFIG_HAVE_PREEMPT_DYNAMIC=y
CONFIG_ARCH_WANT_LD_ORPHAN_WARN=y
CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
+CONFIG_ARCH_SUPPORTS_PAGE_TABLE_CHECK=y
CONFIG_ARCH_HAS_ELFCORE_COMPAT=y
CONFIG_ARCH_HAS_PARANOID_L1D_FLUSH=y
CONFIG_DYNAMIC_SIGFRAME=y
@@ 821,9 829,11 @@ CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y
# CONFIG_TRANSPARENT_HUGEPAGE_MADVISE is not set
CONFIG_ARCH_WANTS_THP_SWAP=y
CONFIG_THP_SWAP=y
-# CONFIG_CLEANCACHE is not set
-# CONFIG_FRONTSWAP is not set
+CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y
+CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y
+CONFIG_HAVE_SETUP_PER_CPU_AREA=y
# CONFIG_CMA is not set
+# CONFIG_ZSWAP is not set
# CONFIG_ZPOOL is not set
CONFIG_ZSMALLOC=m
# CONFIG_ZSMALLOC_STAT is not set
@@ 841,6 851,7 @@ CONFIG_VMAP_PFN=y
# CONFIG_READ_ONLY_THP_FOR_FS is not set
CONFIG_ARCH_HAS_PTE_SPECIAL=y
CONFIG_SECRETMEM=y
+# CONFIG_ANON_VMA_NAME is not set
#
# Data Access Monitoring
@@ 1290,6 1301,7 @@ CONFIG_HOTPLUG_PCI_ACPI=y
# CONFIG_UEVENT_HELPER is not set
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
+CONFIG_DEVTMPFS_SAFE=y
CONFIG_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y
@@ 1400,7 1412,6 @@ CONFIG_BLK_DEV_LOOP_MIN_COUNT=0
# CONFIG_CDROM_PKTCDVD is not set
# CONFIG_ATA_OVER_ETH is not set
# CONFIG_BLK_DEV_RBD is not set
-# CONFIG_BLK_DEV_RSXX is not set
#
# NVME Support
@@ 1602,6 1613,7 @@ CONFIG_TIGON3=m
# CONFIG_NET_VENDOR_DEC is not set
# CONFIG_NET_VENDOR_DLINK is not set
# CONFIG_NET_VENDOR_EMULEX is not set
+# CONFIG_NET_VENDOR_ENGLEDER is not set
# CONFIG_NET_VENDOR_EZCHIP is not set
# CONFIG_NET_VENDOR_GOOGLE is not set
# CONFIG_NET_VENDOR_HUAWEI is not set
@@ 1643,6 1655,7 @@ CONFIG_TIGON3=m
# CONFIG_NET_VENDOR_SYNOPSYS is not set
# CONFIG_NET_VENDOR_TEHUTI is not set
# CONFIG_NET_VENDOR_TI is not set
+# CONFIG_NET_VENDOR_VERTEXCOM is not set
# CONFIG_NET_VENDOR_VIA is not set
# CONFIG_NET_VENDOR_WIZNET is not set
# CONFIG_NET_VENDOR_XILINX is not set
@@ 1708,7 1721,6 @@ CONFIG_MDIO_DEVRES=m
# CONFIG_MDIO_BITBANG is not set
# CONFIG_MDIO_BCM_UNIMAC is not set
# CONFIG_MDIO_MVUSB is not set
-# CONFIG_MDIO_MSCC_MIIM is not set
# CONFIG_MDIO_THUNDER is not set
#
@@ 1778,7 1790,6 @@ CONFIG_WLAN=y
# CONFIG_WLAN_VENDOR_ADMTEK is not set
CONFIG_ATH_COMMON=m
CONFIG_WLAN_VENDOR_ATH=y
-CONFIG_ATH_USER_REGD=y
# CONFIG_ATH_DEBUG is not set
# CONFIG_ATH5K is not set
# CONFIG_ATH5K_PCI is not set
@@ 2175,6 2186,7 @@ CONFIG_POWER_SUPPLY_HWMON=y
# CONFIG_CHARGER_MAX8903 is not set
# CONFIG_CHARGER_LP8727 is not set
# CONFIG_CHARGER_LTC4162L is not set
+# CONFIG_CHARGER_MAX77976 is not set
# CONFIG_CHARGER_BQ2415X is not set
# CONFIG_BATTERY_GAUGE_LTC2941 is not set
# CONFIG_BATTERY_GOLDFISH is not set
@@ 2277,12 2289,12 @@ CONFIG_SENSORS_CORETEMP=m
# CONFIG_SENSORS_LM95245 is not set
# CONFIG_SENSORS_PC87360 is not set
# CONFIG_SENSORS_PC87427 is not set
-# CONFIG_SENSORS_NTC_THERMISTOR is not set
# CONFIG_SENSORS_NCT6683 is not set
# CONFIG_SENSORS_NCT6775 is not set
# CONFIG_SENSORS_NCT7802 is not set
# CONFIG_SENSORS_NPCM7XX is not set
# CONFIG_SENSORS_NZXT_KRAKEN2 is not set
+# CONFIG_SENSORS_NZXT_SMART2 is not set
# CONFIG_SENSORS_PCF8591 is not set
# CONFIG_PMBUS is not set
# CONFIG_SENSORS_SBTSI is not set
@@ 2306,6 2318,7 @@ CONFIG_SENSORS_CORETEMP=m
# CONFIG_SENSORS_AMC6821 is not set
# CONFIG_SENSORS_INA209 is not set
# CONFIG_SENSORS_INA2XX is not set
+# CONFIG_SENSORS_INA238 is not set
# CONFIG_SENSORS_INA3221 is not set
# CONFIG_SENSORS_TC74 is not set
# CONFIG_SENSORS_THMC50 is not set
@@ 2335,6 2348,8 @@ CONFIG_SENSORS_CORETEMP=m
#
# CONFIG_SENSORS_ACPI_POWER is not set
# CONFIG_SENSORS_ATK0110 is not set
+# CONFIG_SENSORS_ASUS_WMI is not set
+# CONFIG_SENSORS_ASUS_WMI_EC is not set
CONFIG_THERMAL=y
# CONFIG_THERMAL_NETLINK is not set
# CONFIG_THERMAL_STATISTICS is not set
@@ 2397,7 2412,6 @@ CONFIG_MFD_INTEL_LPSS=m
# CONFIG_MFD_INTEL_LPSS_ACPI is not set
CONFIG_MFD_INTEL_LPSS_PCI=m
# CONFIG_MFD_INTEL_PMC_BXT is not set
-# CONFIG_MFD_INTEL_PMT is not set
# CONFIG_MFD_IQS62X is not set
# CONFIG_MFD_JANZ_CMODIO is not set
# CONFIG_MFD_KEMPLD is not set
@@ 2634,6 2648,7 @@ CONFIG_VIDEOBUF2_VMALLOC=m
# CONFIG_VIDEO_OV6650 is not set
# CONFIG_VIDEO_OV5670 is not set
# CONFIG_VIDEO_OV5675 is not set
+# CONFIG_VIDEO_OV5693 is not set
# CONFIG_VIDEO_OV5695 is not set
# CONFIG_VIDEO_OV7251 is not set
# CONFIG_VIDEO_OV772X is not set
@@ 2800,6 2815,7 @@ CONFIG_DRM_PANEL_BRIDGE=y
# CONFIG_DRM_GUD is not set
# CONFIG_DRM_LEGACY is not set
CONFIG_DRM_PANEL_ORIENTATION_QUIRKS=y
+CONFIG_DRM_NOMODESET=y
#
# Frame buffer Devices
@@ 2892,6 2908,7 @@ CONFIG_DUMMY_CONSOLE=y
CONFIG_DUMMY_CONSOLE_COLUMNS=80
CONFIG_DUMMY_CONSOLE_ROWS=25
CONFIG_FRAMEBUFFER_CONSOLE=y
+# CONFIG_FRAMEBUFFER_CONSOLE_LEGACY_ACCELERATION is not set
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
# CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set
CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER=y
@@ 3091,6 3108,7 @@ CONFIG_HID_GENERIC=m
# CONFIG_HID_LCPOWER is not set
# CONFIG_HID_LED is not set
# CONFIG_HID_LENOVO is not set
+# CONFIG_HID_LETSKETCH is not set
# CONFIG_HID_LOGITECH is not set
# CONFIG_HID_MAGICMOUSE is not set
# CONFIG_HID_MALTRON is not set
@@ 3465,6 3483,10 @@ CONFIG_LEDS_TRIGGERS=y
# CONFIG_LEDS_TRIGGER_PATTERN is not set
CONFIG_LEDS_TRIGGER_AUDIO=m
# CONFIG_LEDS_TRIGGER_TTY is not set
+
+#
+# Simple LED drivers
+#
# CONFIG_ACCESSIBILITY is not set
# CONFIG_INFINIBAND is not set
CONFIG_EDAC_ATOMIC_SCRUB=y
@@ 3600,6 3622,7 @@ CONFIG_ACPI_WMI=m
# CONFIG_NVIDIA_WMI_EC_BACKLIGHT is not set
# CONFIG_XIAOMI_WMI is not set
# CONFIG_GIGABYTE_WMI is not set
+# CONFIG_YOGABOOK_WMI is not set
# CONFIG_ACERHDF is not set
# CONFIG_ACER_WIRELESS is not set
# CONFIG_ACER_WMI is not set
@@ 3655,6 3678,7 @@ CONFIG_INTEL_PMC_CORE=m
# CONFIG_INTEL_RST is not set
# CONFIG_INTEL_SMARTCONNECT is not set
# CONFIG_INTEL_UNCORE_FREQ_CONTROL is not set
+# CONFIG_INTEL_VSEC is not set
# CONFIG_MSI_LAPTOP is not set
# CONFIG_MSI_WMI is not set
# CONFIG_SAMSUNG_LAPTOP is not set
@@ 3675,6 3699,7 @@ CONFIG_FW_ATTR_CLASS=m
# CONFIG_INTEL_IPS is not set
# CONFIG_INTEL_SCU_PCI is not set
# CONFIG_INTEL_SCU_PLATFORM is not set
+# CONFIG_SIEMENS_SIMATIC_IPC is not set
CONFIG_PMC_ATOM=y
# CONFIG_CHROME_PLATFORMS is not set
# CONFIG_MELLANOX_PLATFORM is not set
@@ 4032,6 4057,7 @@ CONFIG_CC_HAS_ZERO_CALL_USED_REGS=y
# end of Kernel hardening options
# end of Security options
+CONFIG_XOR_BLOCKS=m
CONFIG_CRYPTO=y
#
@@ 4139,7 4165,7 @@ CONFIG_CRYPTO_SHA1=m
CONFIG_CRYPTO_SHA1_SSSE3=m
CONFIG_CRYPTO_SHA256_SSSE3=m
CONFIG_CRYPTO_SHA512_SSSE3=m
-CONFIG_CRYPTO_SHA256=m
+CONFIG_CRYPTO_SHA256=y
CONFIG_CRYPTO_SHA512=m
# CONFIG_CRYPTO_SHA3 is not set
# CONFIG_CRYPTO_SM3 is not set
@@ 4205,6 4231,7 @@ CONFIG_CRYPTO_DRBG_HMAC=y
# CONFIG_CRYPTO_DRBG_CTR is not set
CONFIG_CRYPTO_DRBG=m
CONFIG_CRYPTO_JITTERENTROPY=m
+CONFIG_CRYPTO_KDF800108_CTR=y
CONFIG_CRYPTO_USER_API=m
CONFIG_CRYPTO_USER_API_HASH=m
CONFIG_CRYPTO_USER_API_SKCIPHER=m
@@ 4212,28 4239,6 @@ CONFIG_CRYPTO_USER_API_SKCIPHER=m
# CONFIG_CRYPTO_USER_API_AEAD is not set
CONFIG_CRYPTO_USER_API_ENABLE_OBSOLETE=y
CONFIG_CRYPTO_HASH_INFO=y
-
-#
-# Crypto library routines
-#
-CONFIG_CRYPTO_LIB_AES=m
-CONFIG_CRYPTO_LIB_ARC4=m
-CONFIG_CRYPTO_ARCH_HAVE_LIB_BLAKE2S=m
-CONFIG_CRYPTO_LIB_BLAKE2S_GENERIC=m
-CONFIG_CRYPTO_LIB_BLAKE2S=m
-CONFIG_CRYPTO_ARCH_HAVE_LIB_CHACHA=m
-CONFIG_CRYPTO_LIB_CHACHA_GENERIC=m
-CONFIG_CRYPTO_LIB_CHACHA=m
-CONFIG_CRYPTO_ARCH_HAVE_LIB_CURVE25519=m
-CONFIG_CRYPTO_LIB_CURVE25519_GENERIC=m
-CONFIG_CRYPTO_LIB_CURVE25519=m
-CONFIG_CRYPTO_LIB_DES=m
-CONFIG_CRYPTO_LIB_POLY1305_RSIZE=11
-CONFIG_CRYPTO_ARCH_HAVE_LIB_POLY1305=m
-CONFIG_CRYPTO_LIB_POLY1305_GENERIC=m
-CONFIG_CRYPTO_LIB_POLY1305=m
-CONFIG_CRYPTO_LIB_CHACHA20POLY1305=m
-CONFIG_CRYPTO_LIB_SHA256=m
# CONFIG_CRYPTO_HW is not set
CONFIG_ASYMMETRIC_KEY_TYPE=y
CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE=y
@@ 4263,7 4268,6 @@ CONFIG_BITREVERSE=y
CONFIG_GENERIC_STRNCPY_FROM_USER=y
CONFIG_GENERIC_STRNLEN_USER=y
CONFIG_GENERIC_NET_UTILS=y
-CONFIG_GENERIC_FIND_FIRST_BIT=y
# CONFIG_CORDIC is not set
# CONFIG_PRIME_NUMBERS is not set
CONFIG_RATIONAL=y
@@ 4272,6 4276,29 @@ CONFIG_GENERIC_IOMAP=y
CONFIG_ARCH_USE_CMPXCHG_LOCKREF=y
CONFIG_ARCH_HAS_FAST_MULTIPLIER=y
CONFIG_ARCH_USE_SYM_ANNOTATIONS=y
+
+#
+# Crypto library routines
+#
+CONFIG_CRYPTO_LIB_AES=m
+CONFIG_CRYPTO_LIB_ARC4=m
+CONFIG_CRYPTO_ARCH_HAVE_LIB_BLAKE2S=y
+CONFIG_CRYPTO_LIB_BLAKE2S_GENERIC=y
+CONFIG_CRYPTO_ARCH_HAVE_LIB_CHACHA=m
+CONFIG_CRYPTO_LIB_CHACHA_GENERIC=m
+CONFIG_CRYPTO_LIB_CHACHA=m
+CONFIG_CRYPTO_ARCH_HAVE_LIB_CURVE25519=m
+CONFIG_CRYPTO_LIB_CURVE25519_GENERIC=m
+CONFIG_CRYPTO_LIB_CURVE25519=m
+CONFIG_CRYPTO_LIB_DES=m
+CONFIG_CRYPTO_LIB_POLY1305_RSIZE=11
+CONFIG_CRYPTO_ARCH_HAVE_LIB_POLY1305=m
+CONFIG_CRYPTO_LIB_POLY1305_GENERIC=m
+CONFIG_CRYPTO_LIB_POLY1305=m
+CONFIG_CRYPTO_LIB_CHACHA20POLY1305=m
+CONFIG_CRYPTO_LIB_SHA256=y
+# end of Crypto library routines
+
CONFIG_CRC_CCITT=m
CONFIG_CRC16=y
# CONFIG_CRC_T10DIF is not set
@@ 4402,11 4429,19 @@ CONFIG_DEBUG_KERNEL=y
# CONFIG_DEBUG_MISC is not set
#
+# Networking Debugging
+#
+# CONFIG_NET_DEV_REFCNT_TRACKER is not set
+# CONFIG_NET_NS_REFCNT_TRACKER is not set
+# end of Networking Debugging
+
+#
# Memory Debugging
#
# CONFIG_PAGE_EXTENSION is not set
# CONFIG_DEBUG_PAGEALLOC is not set
# CONFIG_PAGE_OWNER is not set
+# CONFIG_PAGE_TABLE_CHECK is not set
# CONFIG_PAGE_POISONING is not set
# CONFIG_DEBUG_PAGE_REF is not set
# CONFIG_DEBUG_RODATA_TEST is not set
@@ 4527,6 4562,7 @@ CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
CONFIG_HAVE_FENTRY=y
CONFIG_HAVE_OBJTOOL_MCOUNT=y
CONFIG_HAVE_C_RECORDMCOUNT=y
+CONFIG_HAVE_BUILDTIME_MCOUNT_SORT=y
CONFIG_TRACE_CLOCK=y
CONFIG_RING_BUFFER=y
CONFIG_EVENT_TRACING=y
D raid6.patch => raid6.patch +0 -26
@@ 1,26 0,0 @@
---- linux-5.14.7/lib/raid6/algos.c~ 2021-09-22 10:39:33.000000000 +0000
-+++ linux-5.14.7/lib/raid6/algos.c 2021-09-27 17:36:50.117114553 +0000
-@@ -128,8 +128,10 @@
-
- for (best = NULL, algo = raid6_recov_algos; *algo; algo++)
- if (!best || (*algo)->priority > best->priority)
-- if (!(*algo)->valid || (*algo)->valid())
-+ if (!(*algo)->valid || (*algo)->valid()) {
- best = *algo;
-+ break;
-+ }
-
- if (best) {
- raid6_2data_recov = best->data2;
-@@ -198,8 +200,10 @@
- }
- preempt_enable();
-
-- if (best == *algo)
-+ if (best == *algo) {
- bestxorperf = perf;
-+ break;
-+ }
-
- pr_info("raid6: %-8s xor() %5ld MB/s\n", (*algo)->name,
- (perf * HZ * (disks-2)) >>
D socket.patch => socket.patch +0 -301
@@ 1,301 0,0 @@
-From 3df684c1a3d08a4f649689053a3d527b3b5fda9e Mon Sep 17 00:00:00 2001
-From: Eric Dumazet <edumazet@google.com>
-Date: Mon, 15 Nov 2021 11:02:45 -0800
-Subject: tcp: avoid indirect calls to sock_rfree
-
-TCP uses sk_eat_skb() when skbs can be removed from receive queue.
-However, the call to skb_orphan() from __kfree_skb() incurs
-an indirect call so sock_rfee(), which is more expensive than
-a direct call, especially for CONFIG_RETPOLINE=y.
-
-Add tcp_eat_recv_skb() function to make the call before
-__kfree_skb().
-
-Signed-off-by: Eric Dumazet <edumazet@google.com>
-Signed-off-by: David S. Miller <davem@davemloft.net>
----
- net/ipv4/tcp.c | 20 +++++++++++++++-----
- 1 file changed, 15 insertions(+), 5 deletions(-)
-
-diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
-index 9175e0d729f5e..4e7011672aa9a 100644
---- a/net/ipv4/tcp.c
-+++ b/net/ipv4/tcp.c
-@@ -1580,6 +1580,16 @@ void tcp_cleanup_rbuf(struct sock *sk, int copied)
- tcp_send_ack(sk);
- }
-
-+static void tcp_eat_recv_skb(struct sock *sk, struct sk_buff *skb)
-+{
-+ if (likely(skb->destructor == sock_rfree)) {
-+ sock_rfree(skb);
-+ skb->destructor = NULL;
-+ skb->sk = NULL;
-+ }
-+ sk_eat_skb(sk, skb);
-+}
-+
- static struct sk_buff *tcp_recv_skb(struct sock *sk, u32 seq, u32 *off)
- {
- struct sk_buff *skb;
-@@ -1599,7 +1609,7 @@ static struct sk_buff *tcp_recv_skb(struct sock *sk, u32 seq, u32 *off)
- * splitted a fat GRO packet, while we released socket lock
- * in skb_splice_bits()
- */
-- sk_eat_skb(sk, skb);
-+ tcp_eat_recv_skb(sk, skb);
- }
- return NULL;
- }
-@@ -1665,11 +1675,11 @@ int tcp_read_sock(struct sock *sk, read_descriptor_t *desc,
- continue;
- }
- if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN) {
-- sk_eat_skb(sk, skb);
-+ tcp_eat_recv_skb(sk, skb);
- ++seq;
- break;
- }
-- sk_eat_skb(sk, skb);
-+ tcp_eat_recv_skb(sk, skb);
- if (!desc->count)
- break;
- WRITE_ONCE(tp->copied_seq, seq);
-@@ -2481,14 +2491,14 @@ skip_copy:
- if (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN)
- goto found_fin_ok;
- if (!(flags & MSG_PEEK))
-- sk_eat_skb(sk, skb);
-+ tcp_eat_recv_skb(sk, skb);
- continue;
-
- found_fin_ok:
- /* Process the FIN. */
- WRITE_ONCE(*seq, *seq + 1);
- if (!(flags & MSG_PEEK))
-- sk_eat_skb(sk, skb);
-+ tcp_eat_recv_skb(sk, skb);
- break;
- } while (len > 0);
-
---
-cgit 1.2.3-1.el7
-
-From f35f821935d8df76f9c92e2431a225bdff938169 Mon Sep 17 00:00:00 2001
-From: Eric Dumazet <edumazet@google.com>
-Date: Mon, 15 Nov 2021 11:02:46 -0800
-Subject: tcp: defer skb freeing after socket lock is released
-
-tcp recvmsg() (or rx zerocopy) spends a fair amount of time
-freeing skbs after their payload has been consumed.
-
-A typical ~64KB GRO packet has to release ~45 page
-references, eventually going to page allocator
-for each of them.
-
-Currently, this freeing is performed while socket lock
-is held, meaning that there is a high chance that
-BH handler has to queue incoming packets to tcp socket backlog.
-
-This can cause additional latencies, because the user
-thread has to process the backlog at release_sock() time,
-and while doing so, additional frames can be added
-by BH handler.
-
-This patch adds logic to defer these frees after socket
-lock is released, or directly from BH handler if possible.
-
-Being able to free these skbs from BH handler helps a lot,
-because this avoids the usual alloc/free assymetry,
-when BH handler and user thread do not run on same cpu or
-NUMA node.
-
-One cpu can now be fully utilized for the kernel->user copy,
-and another cpu is handling BH processing and skb/page
-allocs/frees (assuming RFS is not forcing use of a single CPU)
-
-Tested:
- 100Gbit NIC
- Max throughput for one TCP_STREAM flow, over 10 runs
-
-MTU : 1500
-Before: 55 Gbit
-After: 66 Gbit
-
-MTU : 4096+(headers)
-Before: 82 Gbit
-After: 95 Gbit
-
-Signed-off-by: Eric Dumazet <edumazet@google.com>
-Signed-off-by: David S. Miller <davem@davemloft.net>
----
- include/linux/skbuff.h | 2 ++
- include/net/sock.h | 3 +++
- include/net/tcp.h | 10 ++++++++++
- net/ipv4/tcp.c | 27 +++++++++++++++++++++++++--
- net/ipv4/tcp_ipv4.c | 1 +
- net/ipv6/tcp_ipv6.c | 1 +
- 6 files changed, 42 insertions(+), 2 deletions(-)
-
-diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
-index 686a666d073d5..b8b806512e161 100644
---- a/include/linux/skbuff.h
-+++ b/include/linux/skbuff.h
-@@ -36,6 +36,7 @@
- #include <linux/splice.h>
- #include <linux/in6.h>
- #include <linux/if_packet.h>
-+#include <linux/llist.h>
- #include <net/flow.h>
- #include <net/page_pool.h>
- #if IS_ENABLED(CONFIG_NF_CONNTRACK)
-@@ -743,6 +744,7 @@ struct sk_buff {
- };
- struct rb_node rbnode; /* used in netem, ip4 defrag, and tcp stack */
- struct list_head list;
-+ struct llist_node ll_node;
- };
-
- union {
-diff --git a/include/net/sock.h b/include/net/sock.h
-index 2d40fe4c7718e..2578d1f455a7a 100644
---- a/include/net/sock.h
-+++ b/include/net/sock.h
-@@ -63,6 +63,7 @@
- #include <linux/indirect_call_wrapper.h>
- #include <linux/atomic.h>
- #include <linux/refcount.h>
-+#include <linux/llist.h>
- #include <net/dst.h>
- #include <net/checksum.h>
- #include <net/tcp_states.h>
-@@ -408,6 +409,8 @@ struct sock {
- struct sk_buff *head;
- struct sk_buff *tail;
- } sk_backlog;
-+ struct llist_head defer_list;
-+
- #define sk_rmem_alloc sk_backlog.rmem_alloc
-
- int sk_forward_alloc;
-diff --git a/include/net/tcp.h b/include/net/tcp.h
-index 05c81677aaf78..44e442bf23f9c 100644
---- a/include/net/tcp.h
-+++ b/include/net/tcp.h
-@@ -1368,6 +1368,16 @@ static inline bool tcp_checksum_complete(struct sk_buff *skb)
- }
-
- bool tcp_add_backlog(struct sock *sk, struct sk_buff *skb);
-+
-+void __sk_defer_free_flush(struct sock *sk);
-+
-+static inline void sk_defer_free_flush(struct sock *sk)
-+{
-+ if (llist_empty(&sk->defer_list))
-+ return;
-+ __sk_defer_free_flush(sk);
-+}
-+
- int tcp_filter(struct sock *sk, struct sk_buff *skb);
- void tcp_set_state(struct sock *sk, int state);
- void tcp_done(struct sock *sk);
-diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
-index 4e7011672aa9a..33cd9a1c199ce 100644
---- a/net/ipv4/tcp.c
-+++ b/net/ipv4/tcp.c
-@@ -1580,14 +1580,34 @@ void tcp_cleanup_rbuf(struct sock *sk, int copied)
- tcp_send_ack(sk);
- }
-
-+void __sk_defer_free_flush(struct sock *sk)
-+{
-+ struct llist_node *head;
-+ struct sk_buff *skb, *n;
-+
-+ head = llist_del_all(&sk->defer_list);
-+ llist_for_each_entry_safe(skb, n, head, ll_node) {
-+ prefetch(n);
-+ skb_mark_not_on_list(skb);
-+ __kfree_skb(skb);
-+ }
-+}
-+EXPORT_SYMBOL(__sk_defer_free_flush);
-+
- static void tcp_eat_recv_skb(struct sock *sk, struct sk_buff *skb)
- {
-+ __skb_unlink(skb, &sk->sk_receive_queue);
- if (likely(skb->destructor == sock_rfree)) {
- sock_rfree(skb);
- skb->destructor = NULL;
- skb->sk = NULL;
-+ if (!skb_queue_empty(&sk->sk_receive_queue) ||
-+ !llist_empty(&sk->defer_list)) {
-+ llist_add(&skb->ll_node, &sk->defer_list);
-+ return;
-+ }
- }
-- sk_eat_skb(sk, skb);
-+ __kfree_skb(skb);
- }
-
- static struct sk_buff *tcp_recv_skb(struct sock *sk, u32 seq, u32 *off)
-@@ -2422,6 +2442,7 @@ static int tcp_recvmsg_locked(struct sock *sk, struct msghdr *msg, size_t len,
- /* Do not sleep, just process backlog. */
- __sk_flush_backlog(sk);
- } else {
-+ sk_defer_free_flush(sk);
- sk_wait_data(sk, &timeo, last);
- }
-
-@@ -2540,6 +2561,7 @@ int tcp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int nonblock,
- ret = tcp_recvmsg_locked(sk, msg, len, nonblock, flags, &tss,
- &cmsg_flags);
- release_sock(sk);
-+ sk_defer_free_flush(sk);
-
- if (cmsg_flags && ret >= 0) {
- if (cmsg_flags & TCP_CMSG_TS)
-@@ -3065,7 +3087,7 @@ int tcp_disconnect(struct sock *sk, int flags)
- sk->sk_frag.page = NULL;
- sk->sk_frag.offset = 0;
- }
--
-+ sk_defer_free_flush(sk);
- sk_error_report(sk);
- return 0;
- }
-@@ -4194,6 +4216,7 @@ static int do_tcp_getsockopt(struct sock *sk, int level,
- err = BPF_CGROUP_RUN_PROG_GETSOCKOPT_KERN(sk, level, optname,
- &zc, &len, err);
- release_sock(sk);
-+ sk_defer_free_flush(sk);
- if (len >= offsetofend(struct tcp_zerocopy_receive, msg_flags))
- goto zerocopy_rcv_cmsg;
- switch (len) {
-diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
-index 5ad81bfb27b2f..3dd19a2bf06c4 100644
---- a/net/ipv4/tcp_ipv4.c
-+++ b/net/ipv4/tcp_ipv4.c
-@@ -2102,6 +2102,7 @@ process:
-
- sk_incoming_cpu_update(sk);
-
-+ sk_defer_free_flush(sk);
- bh_lock_sock_nested(sk);
- tcp_segs_in(tcp_sk(sk), skb);
- ret = 0;
-diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
-index f41f14b701233..3b7d6ede13649 100644
---- a/net/ipv6/tcp_ipv6.c
-+++ b/net/ipv6/tcp_ipv6.c
-@@ -1758,6 +1758,7 @@ process:
-
- sk_incoming_cpu_update(sk);
-
-+ sk_defer_free_flush(sk);
- bh_lock_sock_nested(sk);
- tcp_segs_in(tcp_sk(sk), skb);
- ret = 0;
---
-cgit 1.2.3-1.el7
-