[gentoo-commits] proj/linux-patches:6.9 commit in: /
commit: 0877aff178386e9c1abb95779c332e460df7e666 Author: Mike Pagano gentoo org> AuthorDate: Sat Jul 27 22:47:30 2024 + Commit: Mike Pagano gentoo org> CommitDate: Sat Jul 27 22:47:30 2024 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=0877aff1 Update cpu optimixation patch. use=experiemental Signed-off-by: Mike Pagano gentoo.org> 5010_enable-cpu-optimizations-universal.patch | 88 --- 1 file changed, 51 insertions(+), 37 deletions(-) diff --git a/5010_enable-cpu-optimizations-universal.patch b/5010_enable-cpu-optimizations-universal.patch index 75c48bf1..b5382da3 100644 --- a/5010_enable-cpu-optimizations-universal.patch +++ b/5010_enable-cpu-optimizations-universal.patch @@ -1,4 +1,4 @@ -From 71dd30c3e2ab2852b0290ae1f34ce1c7f8655040 Mon Sep 17 00:00:00 2001 +rom 86977b5357d9212d57841bc325e80f43081bb333 Mon Sep 17 00:00:00 2001 From: graysky Date: Wed, 21 Feb 2024 08:38:13 -0500 @@ -32,8 +32,9 @@ CPU-specific microarchitectures include: • AMD Family 15h (Excavator) • AMD Family 17h (Zen) • AMD Family 17h (Zen 2) -• AMD Family 19h (Zen 3)† -• AMD Family 19h (Zen 4)§ +• AMD Family 19h (Zen 3)** +• AMD Family 19h (Zen 4)‡ +• AMD Family 1Ah (Zen 5)§ • Intel Silvermont low-power processors • Intel Goldmont low-power processors (Apollo Lake and Denverton) • Intel Goldmont Plus low-power processors (Gemini Lake) @@ -50,18 +51,20 @@ CPU-specific microarchitectures include: • Intel Xeon (Cascade Lake) • Intel Xeon (Cooper Lake)* • Intel 3rd Gen 10nm++ i3/i5/i7/i9-family (Tiger Lake)* -• Intel 4th Gen 10nm++ Xeon (Sapphire Rapids)‡ -• Intel 11th Gen i3/i5/i7/i9-family (Rocket Lake)‡ -• Intel 12th Gen i3/i5/i7/i9-family (Alder Lake)‡ -• Intel 13th Gen i3/i5/i7/i9-family (Raptor Lake)§ -• Intel 14th Gen i3/i5/i7/i9-family (Meteor Lake)§ -• Intel 5th Gen 10nm++ Xeon (Emerald Rapids)§ +• Intel 4th Gen 10nm++ Xeon (Sapphire Rapids)† +• Intel 11th Gen i3/i5/i7/i9-family (Rocket Lake)† +• Intel 12th Gen i3/i5/i7/i9-family (Alder Lake)† +• Intel 13th Gen i3/i5/i7/i9-family (Raptor Lake)‡ +• Intel 14th Gen i3/i5/i7/i9-family (Meteor Lake)‡ +• Intel 5th Gen 10nm++ Xeon (Emerald Rapids)‡ Notes: If not otherwise noted, gcc >=9.1 is required for support. *Requires gcc >=10.1 or clang >=10.0 - †Required gcc >=10.3 or clang >=12.0 - ‡Required gcc >=11.1 or clang >=12.0 - §Required gcc >=13.0 or clang >=15.0.5 + **Required gcc >=10.3 or clang >=12.0 + †Required gcc >=11.1 or clang >=12.0 + ‡Required gcc >=13.0 or clang >=15.0.5 + §Required gcc >=14.1 or clang >=19.0? + It also offers to compile passing the 'native' option which, "selects the CPU to generate code for at compilation time by determining the processor type of @@ -101,13 +104,13 @@ REFERENCES 4. https://github.com/graysky2/kernel_gcc_patch/issues/15 5. http://www.linuxforge.net/docs/linux/linux-gcc.php --- - arch/x86/Kconfig.cpu| 424 ++-- - arch/x86/Makefile | 44 +++- - arch/x86/include/asm/vermagic.h | 74 ++ - 3 files changed, 526 insertions(+), 16 deletions(-) + arch/x86/Kconfig.cpu| 432 ++-- + arch/x86/Makefile | 45 +++- + arch/x86/include/asm/vermagic.h | 76 ++ + 3 files changed, 537 insertions(+), 16 deletions(-) diff --git a/arch/x86/Kconfig.cpu b/arch/x86/Kconfig.cpu -index 2a7279d80460a..6924a0f5f1c26 100644 +index 2a7279d80460a..55941c31ade35 100644 --- a/arch/x86/Kconfig.cpu +++ b/arch/x86/Kconfig.cpu @@ -157,7 +157,7 @@ config MPENTIUM4 @@ -128,7 +131,7 @@ index 2a7279d80460a..6924a0f5f1c26 100644 depends on X86_32 help Select this for an AMD Athlon K7-family processor. Enables use of -@@ -173,12 +173,106 @@ config MK7 +@@ -173,12 +173,114 @@ config MK7 flags to GCC. config MK8 @@ -232,11 +235,19 @@ index 2a7279d80460a..6924a0f5f1c26 100644 +Select this for AMD Family 19h Zen 4 processors. + +Enables -march=znver4 ++ ++config MZEN5 ++ bool "AMD Zen 5" ++ depends on (CC_IS_GCC && GCC_VERSION >= 141000) || (CC_IS_CLANG && CLANG_VERSION >= 18) ++ help ++Select this for AMD Family 19h Zen 5 processors. ++ ++Enables -march=znver5 + config MCRUSOE bool "Crusoe" depends on X86_32 -@@ -270,7 +364,7 @@ config MPSC +@@ -270,7 +372,7 @@ config MPSC in /proc/cpuinfo. Family 15 is an older Xeon, Family 6 a newer one. config MCORE2 @@ -245,7 +256,7 @@ index 2a7279d80460a..6924a0f5f1c26 100644 help Select this for Intel Core 2 and newer Core 2 Xeons (Xeon 51xx and -@@ -278,6 +372,8 @@ config MCORE2 +@@ -278,6 +380,8 @@ config MCORE2 family in /proc/cpuinfo. Newer ones have 6 and older ones 15 (not a typo) @@ -254,7 +265,7 @@ index 2a7279d80460a..6924a0f5f1c26 100644 config MATOM bool "Intel Atom" help -@@
[gentoo-commits] proj/linux-patches:6.9 commit in: /
commit: c78fc9fdb4c29f7899905015e09ce855621591a8 Author: Mike Pagano gentoo org> AuthorDate: Sat Jul 27 13:46:07 2024 + Commit: Mike Pagano gentoo org> CommitDate: Sat Jul 27 13:46:07 2024 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=c78fc9fd Linux patch 6.9.12 Signed-off-by: Mike Pagano gentoo.org> _README | 4 + 1011_linux-6.9.12.patch | 896 2 files changed, 900 insertions(+) diff --git a/_README b/_README index dd499825..0267313c 100644 --- a/_README +++ b/_README @@ -87,6 +87,10 @@ Patch: 1010_linux-6.9.11.patch From: https://www.kernel.org Desc: Linux 6.9.11 +Patch: 1011_linux-6.9.12.patch +From: https://www.kernel.org +Desc: Linux 6.9.12 + Patch: 1510_fs-enable-link-security-restrictions-by-default.patch From: http://sources.debian.net/src/linux/3.16.7-ckt4-3/debian/patches/debian/fs-enable-link-security-restrictions-by-default.patch Desc: Enable link security restrictions by default. diff --git a/1011_linux-6.9.12.patch b/1011_linux-6.9.12.patch new file mode 100644 index ..b2251cee --- /dev/null +++ b/1011_linux-6.9.12.patch @@ -0,0 +1,896 @@ +diff --git a/Makefile b/Makefile +index 46457f645921e..d9243ad053f9a 100644 +--- a/Makefile b/Makefile +@@ -1,7 +1,7 @@ + # SPDX-License-Identifier: GPL-2.0 + VERSION = 6 + PATCHLEVEL = 9 +-SUBLEVEL = 11 ++SUBLEVEL = 12 + EXTRAVERSION = + NAME = Hurr durr I'ma ninja sloth + +diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi b/arch/arm64/boot/dts/qcom/ipq6018.dtsi +index 4e29adea570a0..1ddd314137017 100644 +--- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi b/arch/arm64/boot/dts/qcom/ipq6018.dtsi +@@ -685,6 +685,7 @@ dwc_0: usb@8a0 { + clocks = <&xo>; + clock-names = "ref"; + tx-fifo-resize; ++ snps,parkmode-disable-ss-quirk; + snps,is-utmi-l1-suspend; + snps,hird-threshold = /bits/ 8 <0x0>; + snps,dis_u2_susphy_quirk; +diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi +index e5b89753aa5c1..cf04879c6b75b 100644 +--- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi +@@ -647,6 +647,7 @@ dwc_0: usb@8a0 { + interrupts = ; + phys = <&qusb_phy_0>, <&ssphy_0>; + phy-names = "usb2-phy", "usb3-phy"; ++ snps,parkmode-disable-ss-quirk; + snps,is-utmi-l1-suspend; + snps,hird-threshold = /bits/ 8 <0x0>; + snps,dis_u2_susphy_quirk; +@@ -696,6 +697,7 @@ dwc_1: usb@8c0 { + interrupts = ; + phys = <&qusb_phy_1>, <&ssphy_1>; + phy-names = "usb2-phy", "usb3-phy"; ++ snps,parkmode-disable-ss-quirk; + snps,is-utmi-l1-suspend; + snps,hird-threshold = /bits/ 8 <0x0>; + snps,dis_u2_susphy_quirk; +diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi +index 1601e46549e77..db668416657c6 100644 +--- a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi +@@ -3061,6 +3061,7 @@ usb3_dwc3: usb@6a0 { + snps,dis_u2_susphy_quirk; + snps,dis_enblslpm_quirk; + snps,is-utmi-l1-suspend; ++ snps,parkmode-disable-ss-quirk; + tx-fifo-resize; + }; + }; +diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi +index 4dfe2d09ac285..240a29ed35262 100644 +--- a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi +@@ -2154,6 +2154,7 @@ usb3_dwc3: usb@a80 { + interrupts = ; + snps,dis_u2_susphy_quirk; + snps,dis_enblslpm_quirk; ++ snps,parkmode-disable-ss-quirk; + phys = <&qusb2phy>, <&usb3phy>; + phy-names = "usb2-phy", "usb3-phy"; + snps,has-lpm-erratum; +diff --git a/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts b/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts +index 6e9dd0312adc5..a9ab924d2ed12 100644 +--- a/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts b/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts +@@ -59,6 +59,17 @@ hdmi_con: endpoint { + }; + }; + ++ i2c2_gpio: i2c { ++
[gentoo-commits] proj/linux-patches:6.9 commit in: /
commit: 25334cfc78985c9f6ee2478fcb35cd24fb98505c Author: Mike Pagano gentoo org> AuthorDate: Wed Jul 3 23:04:24 2024 + Commit: Mike Pagano gentoo org> CommitDate: Wed Jul 3 23:04:24 2024 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=25334cfc BMQ Schedular (USE=experimental) v6.9-r0 Set default for BMQ. default to n Signed-off-by: Mike Pagano gentoo.org> _README | 8 1 file changed, 8 insertions(+) diff --git a/_README b/_README index 5ba3f04f..3b52f37f 100644 --- a/_README +++ b/_README @@ -110,3 +110,11 @@ Desc: Add Gentoo Linux support config settings and defaults. Patch: 5010_enable-cpu-optimizations-universal.patch From: https://github.com/graysky2/kernel_compiler_patch Desc: Kernel >= 5.15 patch enables gcc = v11.1+ optimizations for additional CPUs. + +Patch: 5020_BMQ-and-PDS-io-scheduler-v6.9-r0.patch +From: https://gitlab.com/alfredchen/projectc +Desc: BMQ(BitMap Queue) Scheduler. A new CPU scheduler developed from PDS(incld). Inspired by the scheduler in zircon. + +Patch: 5021_BMQ-and-PDS-gentoo-defaults.patch +From: https://gitweb.gentoo.org/proj/linux-patches.git/ +Desc: Set defaults for BMQ. default to n
[gentoo-commits] proj/linux-patches:6.9 commit in: /
commit: e9f56ab9ee755cdb0ac1635e3b7c3939049f79d0 Author: Mike Pagano gentoo org> AuthorDate: Thu May 30 12:02:23 2024 + Commit: Mike Pagano gentoo org> CommitDate: Thu May 30 12:02:23 2024 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=e9f56ab9 Remove redundant patch Removed: 2930_io-uring-sqpoll-ensure-task_work-fix.patch Signed-off-by: Mike Pagano gentoo.org> _README | 4 - 2930_io-uring-sqpoll-ensure-task_work-fix.patch | 115 2 files changed, 119 deletions(-) diff --git a/_README b/_README index 41e4fabf..83130556 100644 --- a/_README +++ b/_README @@ -83,10 +83,6 @@ Patch: 2920_sign-file-patch-for-libressl.patch From: https://bugs.gentoo.org/717166 Desc: sign-file: full functionality with modern LibreSSL -Patch: 2930_io-uring-sqpoll-ensure-task_work-fix.patch -From: https://bugs.gentoo.org/931942 -Desc: sqpoll: ensure that normal task_work is also run timely - Patch: 3000_Support-printing-firmware-info.patch From: https://bugs.gentoo.org/732852 Desc: Print firmware info (Reqs CONFIG_GENTOO_PRINT_FIRMWARE_INFO). Thanks to Georgy Yakovlev diff --git a/2930_io-uring-sqpoll-ensure-task_work-fix.patch b/2930_io-uring-sqpoll-ensure-task_work-fix.patch deleted file mode 100644 index 70e62a25.. --- a/2930_io-uring-sqpoll-ensure-task_work-fix.patch +++ /dev/null @@ -1,115 +0,0 @@ -From mboxrd@z Thu Jan 1 00:00:00 1970 -Received: from mail-io1-f48.google.com (mail-io1-f48.google.com [209.85.166.48]) - (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) - (No client certificate requested) - by smtp.subspace.kernel.org (Postfix) with ESMTPS id C0BC614884F - for ; Tue, 21 May 2024 19:43:52 + (UTC) -Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.48 -ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; - t=1716320634; cv=none; b=KU/mCJ7mBHO+iHipnVTh5iJc7FxW5xbo1S24b4Vfx1HWcIChj7ieZ6M0D4Dly+m6CHUZ/xGmrFxNLNl+hJyl1SruXRuZGd2zsG87whd+SMirOeAcxfkjgTN9YcSuuAs+cr6WBGo33TXA1wYYEdcKAp5+2MtFRlOEfEpneQZ1jRI= -ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; - s=arc-20240116; t=1716320634; c=relaxed/simple; - bh=gaIkoP5Tt9ptNy9eqUxDwFHSVRdtXZdNQxS3gSxXieM=; - h=Message-ID:Date:MIME-Version:To:From:Subject:Cc:Content-Type; b=g/8jkVOwbG15NZZ75HTC/Dfc8RLdXo+ufUTtRf0leBrGhctRXfFOQcPJHuIp8HY9Wrch47B9oRjqZL6/m5CaK8aKCXZAQ7dCknHsT8yf8O7aMN+fNs+3QQ7EyZpc+3NjnHZ+NbtSEtGyK2eC5F75Apq4KjVZCYUl/lUQ5sCjIp0= -ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk; spf=pass smtp.mailfrom=kernel.dk; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b=Q/x459tT; arc=none smtp.client-ip=209.85.166.48 -Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk -Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.dk -Authentication-Results: smtp.subspace.kernel.org; - dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b="Q/x459tT" -Received: by mail-io1-f48.google.com with SMTP id ca18e2360f4ac-7e1b8606bfdso19766539f.3 -for ; Tue, 21 May 2024 12:43:52 -0700 (PDT) -DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; -d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1716320631; x=1716925431; darn=vger.kernel.org; -h=content-transfer-encoding:cc:subject:from:to:content-language - :user-agent:mime-version:date:message-id:from:to:cc:subject:date - :message-id:reply-to; -bh=T4xIoHSMmGrzeSfhPivp04fPK+A8FmMUIxCHFcE1zPo=; -b=Q/x459tTR9ak5EYWL/Ygb8HtLydtfqDpakjjofFDUwlF24E3mxFim/Nnw4x9AEj/vO - Nw0e7YouxTiSj9kxnTdLpVz9LuTMJxvPohmoXfgI9ReSCIJ1I95Dn70CZ1CiQW8bsad1 - /7LdSpIPqGK1OCnLphDgXdqqyBn/URkVCoVovoxwhWgmDm4DwKMePqCdecoZ/M/o9zr5 - yEPrJag55yEmCVL6Rfezs07paFsHgHAiX55syf6xBBP2ghaH18+oB8oeeHfbCnHxunNc - cTL4mATn49cvERCj4GYxEZWnSB/KVSJw2TQbs8VyyLJauzMx4Jk5S/lrhsMzDolCajWj - /Tyw== -X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; -d=1e100.net; s=20230601; t=1716320631; x=1716925431; -h=content-transfer-encoding:cc:subject:from:to:content-language - :user-agent:mime-version:date:message-id:x-gm-message-state:from:to - :cc:subject:date:message-id:reply-to; -bh=T4xIoHSMmGrzeSfhPivp04fPK+A8FmMUIxCHFcE1zPo=; -b=W1PQkCljf2qgJy1vEyfE6GT8FahYvbyD7b8TGqRMKaqyAI6lt9kofryakDyC3RKSSQ - FZsB+Gx9RQEUu40SOMfUjZQegR+zKaojOx6wtx37pRW85eJG4oNto15sFFfJQSwyKuyN - p61QuElnpiAFyaT2QpK3M3NctjaTKRzT+DhJ4+cK1Py69C+ZCqQiaCMgtkIycVWtaUWF - evEF260Bry0bjSBbdVfuDaic9WhdvMo2p8c726hK/Bu1CkRs3pGoxkNEHWPQlMmyxzRw - zZLB6bwYwQ
[gentoo-commits] proj/linux-patches:6.9 commit in: /
commit: 190af96490abc9ac3659f6e8a74e7ae51df04e0a Author: Mike Pagano gentoo org> AuthorDate: Sat May 25 15:18:56 2024 + Commit: Mike Pagano gentoo org> CommitDate: Sat May 25 15:18:56 2024 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=190af964 Linux patch 6.9.2 Signed-off-by: Mike Pagano gentoo.org> _README|4 + 1001_linux-6.9.2.patch | 1480 2 files changed, 1484 insertions(+) diff --git a/_README b/_README index 55885e7a..111716b6 100644 --- a/_README +++ b/_README @@ -47,6 +47,10 @@ Patch: 1000_linux-6.9.1.patch From: https://www.kernel.org Desc: Linux 6.9.1 +Patch: 1001_linux-6.9.2.patch +From: https://www.kernel.org +Desc: Linux 6.9.2 + Patch: 1510_fs-enable-link-security-restrictions-by-default.patch From: http://sources.debian.net/src/linux/3.16.7-ckt4-3/debian/patches/debian/fs-enable-link-security-restrictions-by-default.patch/ Desc: Enable link security restrictions by default. diff --git a/1001_linux-6.9.2.patch b/1001_linux-6.9.2.patch new file mode 100644 index ..0b2b2476 --- /dev/null +++ b/1001_linux-6.9.2.patch @@ -0,0 +1,1480 @@ +diff --git a/Documentation/ABI/stable/sysfs-block b/Documentation/ABI/stable/sysfs-block +index 1fe9a553c37b7..f0025d1c3d5ac 100644 +--- a/Documentation/ABI/stable/sysfs-block b/Documentation/ABI/stable/sysfs-block +@@ -101,6 +101,16 @@ Description: + devices that support receiving integrity metadata. + + ++What: /sys/block//partscan ++Date: May 2024 ++Contact: Christoph Hellwig ++Description: ++ The /sys/block//partscan files reports if partition ++ scanning is enabled for the disk. It returns "1" if partition ++ scanning is enabled, or "0" if not. The value type is a 32-bit ++ unsigned integer, but only "0" and "1" are valid values. ++ ++ + What: /sys/block///alignment_offset + Date: April 2009 + Contact: Martin K. Petersen +diff --git a/Documentation/admin-guide/hw-vuln/core-scheduling.rst b/Documentation/admin-guide/hw-vuln/core-scheduling.rst +index cf1eeefdfc32f..a92e10ec402e7 100644 +--- a/Documentation/admin-guide/hw-vuln/core-scheduling.rst b/Documentation/admin-guide/hw-vuln/core-scheduling.rst +@@ -67,8 +67,8 @@ arg4: + will be performed for all tasks in the task group of ``pid``. + + arg5: +-userspace pointer to an unsigned long for storing the cookie returned by +-``PR_SCHED_CORE_GET`` command. Should be 0 for all other commands. ++userspace pointer to an unsigned long long for storing the cookie returned ++by ``PR_SCHED_CORE_GET`` command. Should be 0 for all other commands. + + In order for a process to push a cookie to, or pull a cookie from a process, it + is required to have the ptrace access mode: `PTRACE_MODE_READ_REALCREDS` to the +diff --git a/Documentation/admin-guide/mm/damon/usage.rst b/Documentation/admin-guide/mm/damon/usage.rst +index 6fce035fdbf5c..7daf1a95f9cb4 100644 +--- a/Documentation/admin-guide/mm/damon/usage.rst b/Documentation/admin-guide/mm/damon/usage.rst +@@ -153,7 +153,7 @@ Users can write below commands for the kdamond to the ``state`` file. + - ``clear_schemes_tried_regions``: Clear the DAMON-based operating scheme + action tried regions directory for each DAMON-based operation scheme of the + kdamond. +-- ``update_schemes_effective_bytes``: Update the contents of ++- ``update_schemes_effective_quotas``: Update the contents of + ``effective_bytes`` files for each DAMON-based operation scheme of the + kdamond. For more details, refer to :ref:`quotas directory `. + +@@ -342,7 +342,7 @@ Based on the user-specified :ref:`goal `, the + effective size quota is further adjusted. Reading ``effective_bytes`` returns + the current effective size quota. The file is not updated in real time, so + users should ask DAMON sysfs interface to update the content of the file for +-the stats by writing a special keyword, ``update_schemes_effective_bytes`` to ++the stats by writing a special keyword, ``update_schemes_effective_quotas`` to + the relevant ``kdamonds//state`` file. + + Under ``weights`` directory, three files (``sz_permil``, +@@ -434,7 +434,7 @@ pages of all memory cgroups except ``/having_care_already``.:: + # # further filter out all cgroups except one at '/having_care_already' + echo memcg > 1/type + echo /having_care_already > 1/memcg_path +-echo N > 1/matching ++echo Y > 1/matching + + Note that ``anon`` and ``memcg`` filters are currently supported only when + ``paddr`` :ref:`implementation ` is being used. +diff --git a/Documentation/sphinx/kernel_include.py b/Documentation/sphinx/kernel_include.py +index abe7680883771..6387624423363 100755 +--- a/Documentation/sphinx/kernel_include.py b/Documentation/sphinx/kernel_include.py +@@ -97,7 +97,6 @@ class Ker
[gentoo-commits] proj/linux-patches:6.9 commit in: /
commit: 9528f04dd74f7ffae81a7909fb07c8a57bb4d814 Author: Mike Pagano gentoo org> AuthorDate: Thu May 23 12:41:03 2024 + Commit: Mike Pagano gentoo org> CommitDate: Thu May 23 12:41:03 2024 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=9528f04d io_uring/sqpoll: ensure normal task_work is also run timely Bug: https://bugs.gentoo.org/931942 Signed-off-by: Mike Pagano gentoo.org> _README | 4 + 2930_io-uring-sqpoll-ensure-task_work-fix.patch | 115 2 files changed, 119 insertions(+) diff --git a/_README b/_README index 02b4c7fb..55885e7a 100644 --- a/_README +++ b/_README @@ -75,6 +75,10 @@ Patch: 2920_sign-file-patch-for-libressl.patch From: https://bugs.gentoo.org/717166 Desc: sign-file: full functionality with modern LibreSSL +Patch: 2930_io-uring-sqpoll-ensure-task_work-fix.patch +From: https://bugs.gentoo.org/931942 +Desc: sqpoll: ensure that normal task_work is also run timely + Patch: 3000_Support-printing-firmware-info.patch From: https://bugs.gentoo.org/732852 Desc: Print firmware info (Reqs CONFIG_GENTOO_PRINT_FIRMWARE_INFO). Thanks to Georgy Yakovlev diff --git a/2930_io-uring-sqpoll-ensure-task_work-fix.patch b/2930_io-uring-sqpoll-ensure-task_work-fix.patch new file mode 100644 index ..70e62a25 --- /dev/null +++ b/2930_io-uring-sqpoll-ensure-task_work-fix.patch @@ -0,0 +1,115 @@ +From mboxrd@z Thu Jan 1 00:00:00 1970 +Received: from mail-io1-f48.google.com (mail-io1-f48.google.com [209.85.166.48]) + (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) + (No client certificate requested) + by smtp.subspace.kernel.org (Postfix) with ESMTPS id C0BC614884F + for ; Tue, 21 May 2024 19:43:52 + (UTC) +Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.48 +ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; + t=1716320634; cv=none; b=KU/mCJ7mBHO+iHipnVTh5iJc7FxW5xbo1S24b4Vfx1HWcIChj7ieZ6M0D4Dly+m6CHUZ/xGmrFxNLNl+hJyl1SruXRuZGd2zsG87whd+SMirOeAcxfkjgTN9YcSuuAs+cr6WBGo33TXA1wYYEdcKAp5+2MtFRlOEfEpneQZ1jRI= +ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; + s=arc-20240116; t=1716320634; c=relaxed/simple; + bh=gaIkoP5Tt9ptNy9eqUxDwFHSVRdtXZdNQxS3gSxXieM=; + h=Message-ID:Date:MIME-Version:To:From:Subject:Cc:Content-Type; b=g/8jkVOwbG15NZZ75HTC/Dfc8RLdXo+ufUTtRf0leBrGhctRXfFOQcPJHuIp8HY9Wrch47B9oRjqZL6/m5CaK8aKCXZAQ7dCknHsT8yf8O7aMN+fNs+3QQ7EyZpc+3NjnHZ+NbtSEtGyK2eC5F75Apq4KjVZCYUl/lUQ5sCjIp0= +ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk; spf=pass smtp.mailfrom=kernel.dk; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b=Q/x459tT; arc=none smtp.client-ip=209.85.166.48 +Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk +Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.dk +Authentication-Results: smtp.subspace.kernel.org; + dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b="Q/x459tT" +Received: by mail-io1-f48.google.com with SMTP id ca18e2360f4ac-7e1b8606bfdso19766539f.3 +for ; Tue, 21 May 2024 12:43:52 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; +d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1716320631; x=1716925431; darn=vger.kernel.org; +h=content-transfer-encoding:cc:subject:from:to:content-language + :user-agent:mime-version:date:message-id:from:to:cc:subject:date + :message-id:reply-to; +bh=T4xIoHSMmGrzeSfhPivp04fPK+A8FmMUIxCHFcE1zPo=; +b=Q/x459tTR9ak5EYWL/Ygb8HtLydtfqDpakjjofFDUwlF24E3mxFim/Nnw4x9AEj/vO + Nw0e7YouxTiSj9kxnTdLpVz9LuTMJxvPohmoXfgI9ReSCIJ1I95Dn70CZ1CiQW8bsad1 + /7LdSpIPqGK1OCnLphDgXdqqyBn/URkVCoVovoxwhWgmDm4DwKMePqCdecoZ/M/o9zr5 + yEPrJag55yEmCVL6Rfezs07paFsHgHAiX55syf6xBBP2ghaH18+oB8oeeHfbCnHxunNc + cTL4mATn49cvERCj4GYxEZWnSB/KVSJw2TQbs8VyyLJauzMx4Jk5S/lrhsMzDolCajWj + /Tyw== +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; +d=1e100.net; s=20230601; t=1716320631; x=1716925431; +h=content-transfer-encoding:cc:subject:from:to:content-language + :user-agent:mime-version:date:message-id:x-gm-message-state:from:to + :cc:subject:date:message-id:reply-to; +bh=T4xIoHSMmGrzeSfhPivp04fPK+A8FmMUIxCHFcE1zPo=; +b=W1PQkCljf2qgJy1vEyfE6GT8FahYvbyD7b8TGqRMKaqyAI6lt9kofryakDyC3RKSSQ + FZsB+Gx9RQEUu40SOMfUjZQegR+zKaojOx6wtx37pRW85eJG4oNto15sFFfJQSwyKuyN + p61QuElnpiAFyaT2QpK3M3NctjaTKRzT+DhJ4+cK1Py69C+ZCqQiaCMgtkIycVWtaUWF + evEF260Bry0bjSBbdVfuDaic9WhdvMo2p8c726hK/Bu1CkRs3pGoxkNEHWPQlMmyxzRw +
[gentoo-commits] proj/linux-patches:6.9 commit in: /
commit: 705e865cb7116eec6fa548403b2d0c5c6309dd0e Author: Mike Pagano gentoo org> AuthorDate: Fri May 17 11:23:48 2024 + Commit: Mike Pagano gentoo org> CommitDate: Fri May 17 11:23:48 2024 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=705e865c Linux patch 6.9.1 Signed-off-by: Mike Pagano gentoo.org> _README| 4 + 1000_linux-6.9.1.patch | 286 + 2 files changed, 290 insertions(+) diff --git a/_README b/_README index 887cea4c..02b4c7fb 100644 --- a/_README +++ b/_README @@ -43,6 +43,10 @@ EXPERIMENTAL Individual Patch Descriptions: -- +Patch: 1000_linux-6.9.1.patch +From: https://www.kernel.org +Desc: Linux 6.9.1 + Patch: 1510_fs-enable-link-security-restrictions-by-default.patch From: http://sources.debian.net/src/linux/3.16.7-ckt4-3/debian/patches/debian/fs-enable-link-security-restrictions-by-default.patch/ Desc: Enable link security restrictions by default. diff --git a/1000_linux-6.9.1.patch b/1000_linux-6.9.1.patch new file mode 100644 index ..277d2283 --- /dev/null +++ b/1000_linux-6.9.1.patch @@ -0,0 +1,286 @@ +diff --git a/Makefile b/Makefile +index 967e97878ecdf..a7045435151e6 100644 +--- a/Makefile b/Makefile +@@ -1,7 +1,7 @@ + # SPDX-License-Identifier: GPL-2.0 + VERSION = 6 + PATCHLEVEL = 9 +-SUBLEVEL = 0 ++SUBLEVEL = 1 + EXTRAVERSION = + NAME = Hurr durr I'ma ninja sloth + +diff --git a/drivers/dma/idxd/cdev.c b/drivers/dma/idxd/cdev.c +index c095a2c8f6595..39935071174a3 100644 +--- a/drivers/dma/idxd/cdev.c b/drivers/dma/idxd/cdev.c +@@ -400,6 +400,18 @@ static int idxd_cdev_mmap(struct file *filp, struct vm_area_struct *vma) + int rc; + + dev_dbg(&pdev->dev, "%s called\n", __func__); ++ ++ /* ++ * Due to an erratum in some of the devices supported by the driver, ++ * direct user submission to the device can be unsafe. ++ * (See the INTEL-SA-01084 security advisory) ++ * ++ * For the devices that exhibit this behavior, require that the user ++ * has CAP_SYS_RAWIO capabilities. ++ */ ++ if (!idxd->user_submission_safe && !capable(CAP_SYS_RAWIO)) ++ return -EPERM; ++ + rc = check_vma(wq, vma, __func__); + if (rc < 0) + return rc; +@@ -414,6 +426,70 @@ static int idxd_cdev_mmap(struct file *filp, struct vm_area_struct *vma) + vma->vm_page_prot); + } + ++static int idxd_submit_user_descriptor(struct idxd_user_context *ctx, ++ struct dsa_hw_desc __user *udesc) ++{ ++ struct idxd_wq *wq = ctx->wq; ++ struct idxd_dev *idxd_dev = &wq->idxd->idxd_dev; ++ const uint64_t comp_addr_align = is_dsa_dev(idxd_dev) ? 0x20 : 0x40; ++ void __iomem *portal = idxd_wq_portal_addr(wq); ++ struct dsa_hw_desc descriptor __aligned(64); ++ int rc; ++ ++ rc = copy_from_user(&descriptor, udesc, sizeof(descriptor)); ++ if (rc) ++ return -EFAULT; ++ ++ /* ++ * DSA devices are capable of indirect ("batch") command submission. ++ * On devices where direct user submissions are not safe, we cannot ++ * allow this since there is no good way for us to verify these ++ * indirect commands. ++ */ ++ if (is_dsa_dev(idxd_dev) && descriptor.opcode == DSA_OPCODE_BATCH && ++ !wq->idxd->user_submission_safe) ++ return -EINVAL; ++ /* ++ * As per the programming specification, the completion address must be ++ * aligned to 32 or 64 bytes. If this is violated the hardware ++ * engine can get very confused (security issue). ++ */ ++ if (!IS_ALIGNED(descriptor.completion_addr, comp_addr_align)) ++ return -EINVAL; ++ ++ if (wq_dedicated(wq)) ++ iosubmit_cmds512(portal, &descriptor, 1); ++ else { ++ descriptor.priv = 0; ++ descriptor.pasid = ctx->pasid; ++ rc = idxd_enqcmds(wq, portal, &descriptor); ++ if (rc < 0) ++ return rc; ++ } ++ ++ return 0; ++} ++ ++static ssize_t idxd_cdev_write(struct file *filp, const char __user *buf, size_t len, ++ loff_t *unused) ++{ ++ struct dsa_hw_desc __user *udesc = (struct dsa_hw_desc __user *)buf; ++ struct idxd_user_context *ctx = filp->private_data; ++ ssize_t written = 0; ++ int i; ++ ++ for (i = 0; i < len/sizeof(struct dsa_hw_desc); i++) { ++ int rc = idxd_submit_user_descriptor(ctx, udesc + i); ++ ++ if (rc) ++ return written ? written : rc; ++ ++ written += sizeof(struct dsa_hw_desc); ++ } ++ ++ return written; ++} ++ + static __poll_t idxd_cdev_poll(struct file *filp, + struct
[gentoo-commits] proj/linux-patches:6.9 commit in: /
commit: bf5362e40b7eaa6ea37b4205fdc8f6f106de74d9 Author: Mike Pagano gentoo org> AuthorDate: Sun May 5 17:54:13 2024 + Commit: Mike Pagano gentoo org> CommitDate: Sun May 5 18:02:15 2024 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=bf5362e4 Update to KSPP patch Bug: https://bugs.gentoo.org/930733 Signed-off-by: Mike Pagano gentoo.org> 4567_distro-Gentoo-Kconfig.patch | 33 + 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/4567_distro-Gentoo-Kconfig.patch b/4567_distro-Gentoo-Kconfig.patch index 6134393f..87b8fa95 100644 --- a/4567_distro-Gentoo-Kconfig.patch +++ b/4567_distro-Gentoo-Kconfig.patch @@ -6,9 +6,9 @@ source "Documentation/Kconfig" + +source "distro/Kconfig" /dev/null 2024-04-27 13:10:54.18827 -0400 -+++ b/distro/Kconfig 2024-04-27 17:56:56.723132353 -0400 -@@ -0,0 +1,295 @@ +--- /dev/null 2024-05-05 10:40:37.10388 -0400 b/distro/Kconfig 2024-05-05 13:37:37.699554927 -0400 +@@ -0,0 +1,310 @@ +menu "Gentoo Linux" + +config GENTOO_LINUX @@ -178,7 +178,7 @@ + to unmet dependencies. Search for GENTOO_KERNEL_SELF_PROTECTION_COMMON and search for + GENTOO_KERNEL_SELF_PROTECTION_{X86_64, ARM64, X86_32, ARM} for dependency information on your + specific architecture. -+ Note 2: Please see the URL above for numeric settings, e.g. CONFIG_DEFAULT_MMAP_MIN_ADDR=65536 ++ Note 2: Please see the URL above for numeric settings, e.g. CONFIG_DEFAULT_MMAP_MIN_ADDR=65536 + for X86_64 + +if GENTOO_KERNEL_SELF_PROTECTION @@ -201,10 +201,13 @@ + select DEBUG_SG + select HARDENED_USERCOPY if HAVE_HARDENED_USERCOPY_ALLOCATOR=y + select KFENCE if HAVE_ARCH_KFENCE && (!SLAB || SLUB) ++ select PAGE_TABLE_CHECK if ARCH_SUPPORTS_PAGE_TABLE_CHECK=y && EXCLUSIVE_SYSTEM_RAM=y ++ select PAGE_TABLE_CHECK_ENFORCED if PAGE_TABLE_CHECK=y + select RANDOMIZE_KSTACK_OFFSET_DEFAULT if HAVE_ARCH_RANDOMIZE_KSTACK_OFFSET && (INIT_STACK_NONE || !CC_IS_CLANG || CLANG_VERSION>=14) + select SECURITY_LANDLOCK + select SCHED_CORE if SCHED_SMT + select BUG_ON_DATA_CORRUPTION ++ select RANDOM_KMALLOC_CACHE if SLUB_TINY=n + select SCHED_STACK_END_CHECK + select SECCOMP if HAVE_ARCH_SECCOMP + select SECCOMP_FILTER if HAVE_ARCH_SECCOMP_FILTER @@ -245,11 +248,13 @@ + default n + + select GCC_PLUGIN_STACKLEAK ++ select X86_KERNEL_IBT if CC_HAS_IBT=y && HAVE_OBJTOOL=y && (!LD_IS_LLD=n || LLD_VERSION>=14) + select LEGACY_VSYSCALL_NONE + select PAGE_TABLE_ISOLATION + select RANDOMIZE_BASE + select RANDOMIZE_MEMORY + select RELOCATABLE ++ select X86_USER_SHADOW_STACK if AS_WRUSS=Y + select VMAP_STACK + + @@ -259,11 +264,21 @@ + depends on ARM64 + default n + -+ select RANDOMIZE_BASE -+ select RELOCATABLE ++ select ARM64_BTI ++ select ARM64_E0PD ++ select ARM64_EPAN if ARM64_PAN=y ++ select ARM64_MTE if (ARM64_AS_HAS_MTE=y && ARM64_TAGGED_ADDR_ABI=y ) && ( AS_HAS_ARMV8_5=y ) && ( AS_HAS_LSE_ATOMICS=y ) && ( ARM64_PAN=y ) ++ select ARM64_PTR_AUTH ++ select ARM64_PTR_AUTH_KERNEL if ( ARM64_PTR_AUTH=y ) && (( CC_HAS_SIGN_RETURN_ADDRESS=y || CC_HAS_BRANCH_PROT_PAC_RET=y ) && AS_HAS_ARMV8_3=y ) && ( LD_IS_LLD=y || LD_VERSION >= 23301 || ( CC_IS_GCC=y && GCC_VERSION < 90100 )) && (CC_IS_CLANG=n || AS_HAS_CFI_NEGATE_RA_STATE=y ) && ((FUNCTION_GRAPH_TRACER=n || DYNAMIC_FTRACE_WITH_ARGS=y )) ++ select ARM64_BTI_KERNEL if ( ARM64_BTI=y ) && ( ARM64_PTR_AUTH_KERNEL=y ) && ( CC_HAS_BRANCH_PROT_PAC_RET_BTI=y ) && (CC_IS_GCC=n || GCC_VERSION >= 100100 ) && (CC_IS_GCC=n ) && ((FUNCTION_GRAPH_TRACE=n || DYNAMIC_FTRACE_WITH_ARG=y )) + select ARM64_SW_TTBR0_PAN + select CONFIG_UNMAP_KERNEL_AT_EL0 + select GCC_PLUGIN_STACKLEAK ++ select KASAN_HW_TAGS if HAVE_ARCH_KASAN_HW_TAGS=y ++ select RANDOMIZE_BASE ++ select RELOCATABLE ++ select SHADOW_CALL_STACK if ARCH_SUPPORTS_SHADOW_CALL_STACK=y && (DYNAMIC_FTRACE_WITH_ARGS=y || DYNAMIC_FTRACE_WITH_REGS=y || FUNCTION_GRAPH_TRACER=n) && MMU=y ++ select UNWIND_PATCH_PAC_INTO_SCS if (CC_IS_CLANG=y && CLANG_VERSION >= CONFIG_15 ) && ( ARM64_PTR_AUTH_KERNEL=y && CC_HAS_BRANCH_PROT_PAC_RET=y ) && ( SHADOW_CALL_STACK=y ) + select VMAP_STACK + +config GENTOO_KERNEL_SELF_PROTECTION_X86_32 @@ -304,12 +319,6 @@ + See the settings that become available for more details and fine-tuning. + +endmenu -From bd3ff0b16792c18c0614c2b95e148943209f460a Mon Sep 17 00:00:00 2001 -From: Georgy Yakovlev -Date: Tue, 8 Jun 2021 13:59:57 -0700 -Subject: [PATCH 2/2] set DEFAULT_MMAP_MIN_ADDR by default - mm/Kconfig | 2 ++ 1 file changed, 2 insertions(+)