[gentoo-commits] proj/linux-patches:5.5 commit in: /
commit: 448b36f25e511a3d58d54b0fb283fa5577cc805f Author: Mike Pagano gentoo org> AuthorDate: Tue Apr 21 11:22:45 2020 + Commit: Mike Pagano gentoo org> CommitDate: Tue Apr 21 11:22:45 2020 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=448b36f2 Linux patch 5.5.19 Signed-off-by: Mike Pagano gentoo.org> _README |4 + 1018_linux-5.5.19.patch | 2518 +++ 2 files changed, 2522 insertions(+) diff --git a/_README b/_README index e488875..7beb30d 100644 --- a/_README +++ b/_README @@ -115,6 +115,10 @@ Patch: 1017_linux-5.5.18.patch From: http://www.kernel.org Desc: Linux 5.5.18 +Patch: 1018_linux-5.5.19.patch +From: http://www.kernel.org +Desc: Linux 5.5.19 + Patch: 1500_XATTR_USER_PREFIX.patch From: https://bugs.gentoo.org/show_bug.cgi?id=470644 Desc: Support for namespace user.pax.* on tmpfs. diff --git a/1018_linux-5.5.19.patch b/1018_linux-5.5.19.patch new file mode 100644 index 000..a7dc99c --- /dev/null +++ b/1018_linux-5.5.19.patch @@ -0,0 +1,2518 @@ +diff --git a/Makefile b/Makefile +index 0dfb52e860b7..0c685a280e14 100644 +--- a/Makefile b/Makefile +@@ -1,7 +1,7 @@ + # SPDX-License-Identifier: GPL-2.0 + VERSION = 5 + PATCHLEVEL = 5 +-SUBLEVEL = 18 ++SUBLEVEL = 19 + EXTRAVERSION = + NAME = Kleptomaniac Octopus + +diff --git a/arch/arm/boot/dts/imx7-colibri.dtsi b/arch/arm/boot/dts/imx7-colibri.dtsi +index 04717cf69db0..9bad960f2b39 100644 +--- a/arch/arm/boot/dts/imx7-colibri.dtsi b/arch/arm/boot/dts/imx7-colibri.dtsi +@@ -345,7 +345,7 @@ + &iomuxc { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpio1 &pinctrl_gpio2 &pinctrl_gpio3 &pinctrl_gpio4 +- &pinctrl_gpio7>; ++ &pinctrl_gpio7 &pinctrl_usbc_det>; + + pinctrl_gpio1: gpio1-grp { + fsl,pins = < +@@ -450,7 +450,6 @@ + + pinctrl_enet1: enet1grp { + fsl,pins = < +- MX7D_PAD_ENET1_CRS__GPIO7_IO14 0x14 + MX7D_PAD_ENET1_RGMII_RX_CTL__ENET1_RGMII_RX_CTL 0x73 + MX7D_PAD_ENET1_RGMII_RD0__ENET1_RGMII_RD0 0x73 + MX7D_PAD_ENET1_RGMII_RD1__ENET1_RGMII_RD1 0x73 +@@ -648,6 +647,12 @@ + >; + }; + ++ pinctrl_usbc_det: gpio-usbc-det { ++ fsl,pins = < ++ MX7D_PAD_ENET1_CRS__GPIO7_IO14 0x14 ++ >; ++ }; ++ + pinctrl_usbh_reg: gpio-usbh-vbus { + fsl,pins = < + MX7D_PAD_UART3_CTS_B__GPIO4_IO7 0x14 /* SODIMM 129 USBH PEN */ +diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts +index 596bc65f475c..b2cf6f192525 100644 +--- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts +@@ -743,6 +743,7 @@ + }; + + &usb3_phy0 { ++ vbus-supply = <®_5v_p>; + status = "okay"; + }; + +diff --git a/arch/arm64/kernel/vdso.c b/arch/arm64/kernel/vdso.c +index 354b11e27c07..033a48f30dbb 100644 +--- a/arch/arm64/kernel/vdso.c b/arch/arm64/kernel/vdso.c +@@ -260,18 +260,7 @@ static int __aarch32_alloc_vdso_pages(void) + if (ret) + return ret; + +- ret = aarch32_alloc_kuser_vdso_page(); +- if (ret) { +- unsigned long c_vvar = +- (unsigned long)page_to_virt(aarch32_vdso_pages[C_VVAR]); +- unsigned long c_vdso = +- (unsigned long)page_to_virt(aarch32_vdso_pages[C_VDSO]); +- +- free_page(c_vvar); +- free_page(c_vdso); +- } +- +- return ret; ++ return aarch32_alloc_kuser_vdso_page(); + } + #else + static int __aarch32_alloc_vdso_pages(void) +diff --git a/arch/x86/include/asm/microcode_amd.h b/arch/x86/include/asm/microcode_amd.h +index 209492849566..5c524d4f71cd 100644 +--- a/arch/x86/include/asm/microcode_amd.h b/arch/x86/include/asm/microcode_amd.h +@@ -41,7 +41,7 @@ struct microcode_amd { + unsigned intmpb[0]; + }; + +-#define PATCH_MAX_SIZE PAGE_SIZE ++#define PATCH_MAX_SIZE (3 * PAGE_SIZE) + + #ifdef CONFIG_MICROCODE_AMD + extern void __init load_ucode_amd_bsp(unsigned int family); +diff --git a/arch/x86/kernel/cpu/resctrl/core.c b/arch/x86/kernel/cpu/resctrl/core.c +index 89049b343c7a..d8cc5223b7ce 100644 +--- a/arch/x86/kernel/cpu/resctrl/core.c b/arch/x86/kernel/cpu/resctrl/core.c +@@ -578,6 +578,8 @@ static void domain_add_cpu(int cpu, struct rdt_resource *r) + d->id = id; + cpumask_set_cpu(cpu, &d->cpu_mask); + ++ rdt_domain_reconfigure_cdp(r); ++ + if (r->alloc_capable && domain_setup_ctrlval(r, d)) { + kfree(d); + return; +diff --git a/arch/x86/kernel/cpu/resctrl/internal.h b/arch/x86/kernel/cpu/resctrl/i
[gentoo-commits] proj/linux-patches:5.5 commit in: /
commit: b366c77d6dbdcabdd71b8447c45ca84abd1a258b Author: Mike Pagano gentoo org> AuthorDate: Wed Apr 15 15:19:42 2020 + Commit: Mike Pagano gentoo org> CommitDate: Fri Apr 17 15:47:21 2020 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=b366c77d Update distro Kconfig to support needed options for elogind Signed-off-by: Mike Pagano gentoo.org> 4567_distro-Gentoo-Kconfig.patch | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/4567_distro-Gentoo-Kconfig.patch b/4567_distro-Gentoo-Kconfig.patch index 20b9f54..581cb20 100644 --- a/4567_distro-Gentoo-Kconfig.patch +++ b/4567_distro-Gentoo-Kconfig.patch @@ -1,14 +1,14 @@ a/Kconfig 2019-12-30 16:37:13.825731109 -0500 -+++ b/Kconfig 2019-12-30 16:36:59.575609049 -0500 +--- a/Kconfig 2020-04-15 11:05:30.202413863 -0400 b/Kconfig 2020-04-15 10:37:45.683952949 -0400 @@ -32,3 +32,5 @@ source "lib/Kconfig" source "lib/Kconfig.debug" source "Documentation/Kconfig" + +source "distro/Kconfig" /dev/null 2019-12-30 10:19:12.810163556 -0500 -+++ b/distro/Kconfig 2019-12-30 16:42:52.928524222 -0500 -@@ -0,0 +1,151 @@ +--- /dev/null 2020-04-15 02:49:37.900191585 -0400 b/distro/Kconfig 2020-04-15 11:07:10.952929540 -0400 +@@ -0,0 +1,156 @@ +menu "Gentoo Linux" + +config GENTOO_LINUX @@ -91,7 +91,12 @@ + depends on GENTOO_LINUX + + select BINFMT_SCRIPT ++ select CGROUPS ++ select EPOLL + select FILE_LOCKING ++ select INOTIFY_USER ++ select SIGNALFD ++ select TIMERFD + + help + The init system is the first thing that loads after the kernel booted.
[gentoo-commits] proj/linux-patches:5.5 commit in: /
commit: b1ae3a1f548403a813fcd8b6c4c48c14378ae96a Author: Mike Pagano gentoo org> AuthorDate: Mon Apr 13 12:46:57 2020 + Commit: Mike Pagano gentoo org> CommitDate: Mon Apr 13 12:46:57 2020 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=b1ae3a1f Linux patch 5.5.17 Signed-off-by: Mike Pagano gentoo.org> _README |4 + 1016_linux-5.5.17.patch | 2045 +++ 2 files changed, 2049 insertions(+) diff --git a/_README b/_README index 93cf50c..0952792 100644 --- a/_README +++ b/_README @@ -107,6 +107,10 @@ Patch: 1015_linux-5.5.16.patch From: http://www.kernel.org Desc: Linux 5.5.16 +Patch: 1016_linux-5.5.17.patch +From: http://www.kernel.org +Desc: Linux 5.5.17 + Patch: 1500_XATTR_USER_PREFIX.patch From: https://bugs.gentoo.org/show_bug.cgi?id=470644 Desc: Support for namespace user.pax.* on tmpfs. diff --git a/1016_linux-5.5.17.patch b/1016_linux-5.5.17.patch new file mode 100644 index 000..edd23d4 --- /dev/null +++ b/1016_linux-5.5.17.patch @@ -0,0 +1,2045 @@ +diff --git a/Makefile b/Makefile +index 757fc72a8f51..0245e5b512d5 100644 +--- a/Makefile b/Makefile +@@ -1,7 +1,7 @@ + # SPDX-License-Identifier: GPL-2.0 + VERSION = 5 + PATCHLEVEL = 5 +-SUBLEVEL = 16 ++SUBLEVEL = 17 + EXTRAVERSION = + NAME = Kleptomaniac Octopus + +diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig +index 593bf1519608..95584ee02b55 100644 +--- a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig +@@ -520,6 +520,7 @@ config SOC_IMX6UL + bool "i.MX6 UltraLite support" + select PINCTRL_IMX6UL + select SOC_IMX6 ++ select ARM_ERRATA_814220 + + help + This enables support for Freescale i.MX6 UltraLite processor. +@@ -556,6 +557,7 @@ config SOC_IMX7D + select PINCTRL_IMX7D + select SOC_IMX7D_CA7 if ARCH_MULTI_V7 + select SOC_IMX7D_CM4 if ARM_SINGLE_ARMV7M ++ select ARM_ERRATA_814220 if ARCH_MULTI_V7 + help + This enables support for Freescale i.MX7 Dual processor. + +diff --git a/arch/s390/include/asm/lowcore.h b/arch/s390/include/asm/lowcore.h +index 237ee0c4169f..612ed3c6d581 100644 +--- a/arch/s390/include/asm/lowcore.h b/arch/s390/include/asm/lowcore.h +@@ -141,7 +141,9 @@ struct lowcore { + + /* br %r1 trampoline */ + __u16 br_r1_trampoline; /* 0x0400 */ +- __u8pad_0x0402[0x0e00-0x0402]; /* 0x0402 */ ++ __u32 return_lpswe; /* 0x0402 */ ++ __u32 return_mcck_lpswe; /* 0x0406 */ ++ __u8pad_0x040a[0x0e00-0x040a]; /* 0x040a */ + + /* +* 0xe00 contains the address of the IPL Parameter Information +diff --git a/arch/s390/include/asm/processor.h b/arch/s390/include/asm/processor.h +index 361ef5eda468..c9522346799f 100644 +--- a/arch/s390/include/asm/processor.h b/arch/s390/include/asm/processor.h +@@ -162,6 +162,7 @@ typedef struct thread_struct thread_struct; + #define INIT_THREAD { \ + .ksp = sizeof(init_stack) + (unsigned long) &init_stack,\ + .fpu.regs = (void *) init_task.thread.fpu.fprs, \ ++ .last_break = 1,\ + } + + /* +diff --git a/arch/s390/include/asm/setup.h b/arch/s390/include/asm/setup.h +index 69289e99cabd..5017499601a3 100644 +--- a/arch/s390/include/asm/setup.h b/arch/s390/include/asm/setup.h +@@ -8,6 +8,7 @@ + + #include + #include ++#include + + #define EP_OFFSET 0x10008 + #define EP_STRING "S390EP" +@@ -155,6 +156,12 @@ static inline unsigned long kaslr_offset(void) + return __kaslr_offset; + } + ++static inline u32 gen_lpswe(unsigned long addr) ++{ ++ BUILD_BUG_ON(addr > 0xfff); ++ return 0xb2b2 | addr; ++} ++ + #else /* __ASSEMBLY__ */ + + #define IPL_DEVICE(IPL_DEVICE_OFFSET) +diff --git a/arch/s390/kernel/asm-offsets.c b/arch/s390/kernel/asm-offsets.c +index ce33406cfe83..e80f0e6f5972 100644 +--- a/arch/s390/kernel/asm-offsets.c b/arch/s390/kernel/asm-offsets.c +@@ -124,6 +124,8 @@ int main(void) + OFFSET(__LC_EXT_DAMAGE_CODE, lowcore, external_damage_code); + OFFSET(__LC_MCCK_FAIL_STOR_ADDR, lowcore, failing_storage_address); + OFFSET(__LC_LAST_BREAK, lowcore, breaking_event_addr); ++ OFFSET(__LC_RETURN_LPSWE, lowcore, return_lpswe); ++ OFFSET(__LC_RETURN_MCCK_LPSWE, lowcore, return_mcck_lpswe); + OFFSET(__LC_RST_OLD_PSW, lowcore, restart_old_psw); + OFFSET(__LC_EXT_OLD_PSW, lowcore, external_old_psw); + OFFSET(__LC_SVC_OLD_PSW, lowcore, svc_old_psw); +diff --git a/arch/s390/kernel/entry.S b/arch/s390/kernel/entry.S +index 270d1d145761..bc85987727f0 100644 +--- a/arch/s390/kernel/entry.S b/arch/s390/kernel/entry.S +@@ -115,26 +115,29 @@ _LPP_OFFSET = __LC_LPP + + .macro
[gentoo-commits] proj/linux-patches:5.5 commit in: /
commit: 3a3835943d7391924f0e9dbf37f0630d3292d909 Author: Mike Pagano gentoo org> AuthorDate: Wed Apr 8 12:43:53 2020 + Commit: Mike Pagano gentoo org> CommitDate: Wed Apr 8 12:43:53 2020 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=3a383594 Linux patch 5.5.16 Signed-off-by: Mike Pagano gentoo.org> _README |4 + 1015_linux-5.5.16.patch | 1721 +++ 2 files changed, 1725 insertions(+) diff --git a/_README b/_README index f19cfa9..93cf50c 100644 --- a/_README +++ b/_README @@ -103,6 +103,10 @@ Patch: 1014_linux-5.5.15.patch From: http://www.kernel.org Desc: Linux 5.5.15 +Patch: 1015_linux-5.5.16.patch +From: http://www.kernel.org +Desc: Linux 5.5.16 + Patch: 1500_XATTR_USER_PREFIX.patch From: https://bugs.gentoo.org/show_bug.cgi?id=470644 Desc: Support for namespace user.pax.* on tmpfs. diff --git a/1015_linux-5.5.16.patch b/1015_linux-5.5.16.patch new file mode 100644 index 000..3298fd7 --- /dev/null +++ b/1015_linux-5.5.16.patch @@ -0,0 +1,1721 @@ +diff --git a/Makefile b/Makefile +index 2105fed0b349..757fc72a8f51 100644 +--- a/Makefile b/Makefile +@@ -1,7 +1,7 @@ + # SPDX-License-Identifier: GPL-2.0 + VERSION = 5 + PATCHLEVEL = 5 +-SUBLEVEL = 15 ++SUBLEVEL = 16 + EXTRAVERSION = + NAME = Kleptomaniac Octopus + +diff --git a/drivers/extcon/extcon-axp288.c b/drivers/extcon/extcon-axp288.c +index a7f216191493..710a3bb66e95 100644 +--- a/drivers/extcon/extcon-axp288.c b/drivers/extcon/extcon-axp288.c +@@ -443,9 +443,40 @@ static int axp288_extcon_probe(struct platform_device *pdev) + /* Start charger cable type detection */ + axp288_extcon_enable(info); + ++ device_init_wakeup(dev, true); ++ platform_set_drvdata(pdev, info); ++ ++ return 0; ++} ++ ++static int __maybe_unused axp288_extcon_suspend(struct device *dev) ++{ ++ struct axp288_extcon_info *info = dev_get_drvdata(dev); ++ ++ if (device_may_wakeup(dev)) ++ enable_irq_wake(info->irq[VBUS_RISING_IRQ]); ++ + return 0; + } + ++static int __maybe_unused axp288_extcon_resume(struct device *dev) ++{ ++ struct axp288_extcon_info *info = dev_get_drvdata(dev); ++ ++ /* ++ * Wakeup when a charger is connected to do charger-type ++ * connection and generate an extcon event which makes the ++ * axp288 charger driver set the input current limit. ++ */ ++ if (device_may_wakeup(dev)) ++ disable_irq_wake(info->irq[VBUS_RISING_IRQ]); ++ ++ return 0; ++} ++ ++static SIMPLE_DEV_PM_OPS(axp288_extcon_pm_ops, axp288_extcon_suspend, ++ axp288_extcon_resume); ++ + static const struct platform_device_id axp288_extcon_table[] = { + { .name = "axp288_extcon" }, + {}, +@@ -457,6 +488,7 @@ static struct platform_driver axp288_extcon_driver = { + .id_table = axp288_extcon_table, + .driver = { + .name = "axp288_extcon", ++ .pm = &axp288_extcon_pm_ops, + }, + }; + +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +index 332b9c24a2cd..9a8a1c6ca321 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +@@ -3854,6 +3854,8 @@ static int amdgpu_do_asic_reset(struct amdgpu_hive_info *hive, + if (r) + goto out; + ++ amdgpu_fbdev_set_suspend(tmp_adev, 0); ++ + /* must succeed. */ + amdgpu_ras_resume(tmp_adev); + +@@ -4023,6 +4025,8 @@ int amdgpu_device_gpu_recover(struct amdgpu_device *adev, +*/ + amdgpu_unregister_gpu_instance(tmp_adev); + ++ amdgpu_fbdev_set_suspend(adev, 1); ++ + /* disable ras on ALL IPs */ + if (!in_ras_intr && amdgpu_device_ip_need_full_reset(tmp_adev)) + amdgpu_ras_suspend(tmp_adev); +diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c +index b4f84a820a44..654912402a85 100644 +--- a/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c +@@ -1374,7 +1374,7 @@ static int vcn_v1_0_set_clockgating_state(void *handle, + + if (enable) { + /* wait for STATUS to clear */ +- if (vcn_v1_0_is_idle(handle)) ++ if (!vcn_v1_0_is_idle(handle)) + return -EBUSY; + vcn_v1_0_enable_clock_gating(adev); + } else { +diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +index 504055fc70e8..6f2b3ec17e7f 100644 +--- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +@@ -2909,6 +2909,17 @@ static bool ret
[gentoo-commits] proj/linux-patches:5.5 commit in: /
commit: 4a66053233f0eaab09c8f6a9142f0cbc63b63ef8 Author: Mike Pagano gentoo org> AuthorDate: Sat Apr 4 22:58:14 2020 + Commit: Mike Pagano gentoo org> CommitDate: Sat Apr 4 22:58:14 2020 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=4a660532 Select REGMAP_I2C for SBS Charger Reported at gentoo bugzilla: https://bugs.gentoo.org/713830 Signed-off-by: Mike Pagano gentoo.org> _README| 4 2910_sbs-battery-fix-by-selecting-REGMAP-I2C.patch | 27 ++ 2 files changed, 31 insertions(+) diff --git a/_README b/_README index 8bfd9dc..f19cfa9 100644 --- a/_README +++ b/_README @@ -123,6 +123,10 @@ Patch: 2900_tmp513-Fix-build-issue-by-selecting-CONFIG_REG.patch From: https://bugs.gentoo.org/710790 Desc: tmp513 requies REGMAP_I2C to build. Select it by default in Kconfig. See bug #710790. Thanks to Phil Stracchino +Patch: 2910_sbs-battery-fix-by-selecting-REGMAP-I2C.patch +From: https://bugs.gentoo.org/713830 +Desc: sbs charger requies REGMAP_I2C to build. Select it by default in Kconfig. See bug #713830. Thanks to Paul Gover + Patch: 4567_distro-Gentoo-Kconfig.patch From: Tom Wijsman Desc: Add Gentoo Linux support config settings and defaults. diff --git a/2910_sbs-battery-fix-by-selecting-REGMAP-I2C.patch b/2910_sbs-battery-fix-by-selecting-REGMAP-I2C.patch new file mode 100644 index 000..f57636f --- /dev/null +++ b/2910_sbs-battery-fix-by-selecting-REGMAP-I2C.patch @@ -0,0 +1,27 @@ +From 194b29f0dcb5c70c58cc331b08bbb8638f84294a Mon Sep 17 00:00:00 2001 +From: Mike Pagano +Date: Wed, 1 Apr 2020 15:35:46 -0400 +Subject: [PATCH] This driver requires REGMAP_I2C to build. Select it by + default in Kconfig. Reported at gentoo bugzilla: + https://bugs.gentoo.org/713830 +Cc: mpag...@gentoo.org + +Signed-off-by: Mike Pagano +--- + drivers/power/supply/Kconfig | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/drivers/power/supply/Kconfig b/drivers/power/supply/Kconfig +index 9a5591ab90d0..27554b6815da 100644 +--- a/drivers/power/supply/Kconfig b/drivers/power/supply/Kconfig +@@ -218,6 +218,7 @@ config BATTERY_SBS + config CHARGER_SBS + tristate "SBS Compliant charger" + depends on I2C ++select REGMAP_I2C + help + Say Y to include support for SBS compliant battery chargers. + +-- +2.24.1
[gentoo-commits] proj/linux-patches:5.5 commit in: /
commit: 10bb37d80b665947cf8f3a9315576ae2a5181041 Author: Mike Pagano gentoo org> AuthorDate: Thu Apr 2 15:27:50 2020 + Commit: Mike Pagano gentoo org> CommitDate: Thu Apr 2 15:27:50 2020 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=10bb37d8 Linux patch 5.5.15 Signed-off-by: Mike Pagano gentoo.org> _README |4 + 1014_linux-5.5.15.patch | 1165 +++ 2 files changed, 1169 insertions(+) diff --git a/_README b/_README index 835b96f..8bfd9dc 100644 --- a/_README +++ b/_README @@ -99,6 +99,10 @@ Patch: 1013_linux-5.5.14.patch From: http://www.kernel.org Desc: Linux 5.5.14 +Patch: 1014_linux-5.5.15.patch +From: http://www.kernel.org +Desc: Linux 5.5.15 + Patch: 1500_XATTR_USER_PREFIX.patch From: https://bugs.gentoo.org/show_bug.cgi?id=470644 Desc: Support for namespace user.pax.* on tmpfs. diff --git a/1014_linux-5.5.15.patch b/1014_linux-5.5.15.patch new file mode 100644 index 000..ffcda65 --- /dev/null +++ b/1014_linux-5.5.15.patch @@ -0,0 +1,1165 @@ +diff --git a/Makefile b/Makefile +index 262892f82a15..2105fed0b349 100644 +--- a/Makefile b/Makefile +@@ -1,7 +1,7 @@ + # SPDX-License-Identifier: GPL-2.0 + VERSION = 5 + PATCHLEVEL = 5 +-SUBLEVEL = 14 ++SUBLEVEL = 15 + EXTRAVERSION = + NAME = Kleptomaniac Octopus + +diff --git a/arch/arm/boot/dts/bcm2835-rpi-zero-w.dts b/arch/arm/boot/dts/bcm2835-rpi-zero-w.dts +index b75af21069f9..4c3f606e5b8d 100644 +--- a/arch/arm/boot/dts/bcm2835-rpi-zero-w.dts b/arch/arm/boot/dts/bcm2835-rpi-zero-w.dts +@@ -112,6 +112,7 @@ + &sdhci { + #address-cells = <1>; + #size-cells = <0>; ++ pinctrl-names = "default"; + pinctrl-0 = <&emmc_gpio34 &gpclk2_gpio43>; + bus-width = <4>; + mmc-pwrseq = <&wifi_pwrseq>; +diff --git a/arch/arm/boot/dts/bcm2835-rpi.dtsi b/arch/arm/boot/dts/bcm2835-rpi.dtsi +index 394c8a71b13b..fd2c766e0f71 100644 +--- a/arch/arm/boot/dts/bcm2835-rpi.dtsi b/arch/arm/boot/dts/bcm2835-rpi.dtsi +@@ -15,6 +15,7 @@ + firmware: firmware { + compatible = "raspberrypi,bcm2835-firmware", "simple-bus"; + mboxes = <&mailbox>; ++ dma-ranges; + }; + + power: power { +diff --git a/arch/arm/boot/dts/imx6qdl-phytec-phycore-som.dtsi b/arch/arm/boot/dts/imx6qdl-phytec-phycore-som.dtsi +index 881cea0b61ba..31fa37d2fe47 100644 +--- a/arch/arm/boot/dts/imx6qdl-phytec-phycore-som.dtsi b/arch/arm/boot/dts/imx6qdl-phytec-phycore-som.dtsi +@@ -107,14 +107,14 @@ + regulators { + vdd_arm: buck1 { + regulator-name = "vdd_arm"; +- regulator-min-microvolt = <73>; ++ regulator-min-microvolt = <925000>; + regulator-max-microvolt = <138>; + regulator-always-on; + }; + + vdd_soc: buck2 { + regulator-name = "vdd_soc"; +- regulator-min-microvolt = <73>; ++ regulator-min-microvolt = <115>; + regulator-max-microvolt = <138>; + regulator-always-on; + }; +diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts +index a638e059135b..b63e7d2cbeb4 100644 +--- a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts +@@ -849,34 +849,46 @@ + compatible = "ti,omap2-onenand"; + reg = <0 0 0x2>;/* CS0, offset 0, IO size 128K */ + ++ /* ++ * These timings are based on CONFIG_OMAP_GPMC_DEBUG=y reported ++ * bootloader set values when booted with v5.1 ++ * (OneNAND Manufacturer: Samsung): ++ * ++ * cs0 GPMC_CS_CONFIG1: 0xfb001202 ++ * cs0 GPMC_CS_CONFIG2: 0x0000 ++ * cs0 GPMC_CS_CONFIG3: 0x00020200 ++ * cs0 GPMC_CS_CONFIG4: 0x11001102 ++ * cs0 GPMC_CS_CONFIG5: 0x03101616 ++ * cs0 GPMC_CS_CONFIG6: 0x9006 ++ */ + gpmc,sync-read; + gpmc,sync-write; + gpmc,burst-length = <16>; + gpmc,burst-read; + gpmc,burst-wrap; + gpmc,burst-write; +- gpmc,device-width = <2>; /* GPMC_DEVWIDTH_16BIT */ +- gpmc,mux-add-data = <2>; /* GPMC_MUX_AD */ ++ gpmc,device-width = <2>; ++ gpmc,mux-add-data = <2>; + gpmc,cs-on-ns = <0>; +- gpmc,cs-rd-off-ns = <87>; +- gpmc,cs-wr-off-ns = <87>; ++ gpmc,cs-rd-off-ns = <102>; ++ gpmc,cs-wr-off-ns = <
[gentoo-commits] proj/linux-patches:5.5 commit in: /
commit: 0bf9749b455d1fe18a7e6a56ba00efadff057106 Author: Mike Pagano gentoo org> AuthorDate: Wed Apr 1 13:12:24 2020 + Commit: Mike Pagano gentoo org> CommitDate: Wed Apr 1 13:12:24 2020 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=0bf9749b Remove redundant patch Removed: 1800_x86-ioremap-Fix-CONFIG_EFI-equals-n-build.patch Signed-off-by: Mike Pagano gentoo.org> _README| 4 --- ...x86-ioremap-Fix-CONFIG_EFI-equals-n-build.patch | 33 -- 2 files changed, 37 deletions(-) diff --git a/_README b/_README index 60b3027..835b96f 100644 --- a/_README +++ b/_README @@ -107,10 +107,6 @@ 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. -Patch: 1800_x86-ioremap-Fix-CONFIG_EFI-equals-n-build.patch -From: https://lkml.org/lkml/diff/2020/3/18/809/1 -Desc: x86/ioremap: Fix CONFIG_EFI=n build. See bug #713460. Thanks to Phil Stracchino. - Patch: 2000_BT-Check-key-sizes-only-if-Secure-Simple-Pairing-enabled.patch From: https://lore.kernel.org/linux-bluetooth/20190522070540.48895-1-mar...@holtmann.org/raw Desc: Bluetooth: Check key sizes only when Secure Simple Pairing is enabled. See bug #686758 diff --git a/1800_x86-ioremap-Fix-CONFIG_EFI-equals-n-build.patch b/1800_x86-ioremap-Fix-CONFIG_EFI-equals-n-build.patch deleted file mode 100644 index e6bc74f..000 --- a/1800_x86-ioremap-Fix-CONFIG_EFI-equals-n-build.patch +++ /dev/null @@ -1,33 +0,0 @@ -From: Borislav Petkov -Date: Wed, 18 Mar 2020 19:27:48 +0100 - -In order to use efi_mem_type(), one needs CONFIG_EFI enabled. Otherwise -that function is undefined. Use IS_ENABLED() to check and avoid the -ifdeffery as the compiler optimizes away the following unreachable code -then. - -Fixes: 985e537a4082 ("x86/ioremap: Map EFI runtime services data as encrypted for SEV") -Reported-by: Randy Dunlap -Signed-off-by: Borislav Petkov -Cc: Tom Lendacky -Link: https://lkml.kernel.org/r/7561e981-0d9b-d62c-0ef2-ce6007aff...@infradead.org - arch/x86/mm/ioremap.c | 3 +++ - 1 file changed, 3 insertions(+) - -diff --git a/arch/x86/mm/ioremap.c b/arch/x86/mm/ioremap.c -index 935a91e1fd77..18c637c0dc6f 100644 a/arch/x86/mm/ioremap.c -+++ b/arch/x86/mm/ioremap.c -@@ -115,6 +115,9 @@ static void __ioremap_check_other(resource_size_t addr, struct ioremap_desc *des - if (!sev_active()) - return; - -+ if (!IS_ENABLED(CONFIG_EFI)) -+ return; -+ - if (efi_mem_type(addr) == EFI_RUNTIME_SERVICES_DATA) - desc->flags |= IORES_MAP_ENCRYPTED; - } --- -2.21.0
[gentoo-commits] proj/linux-patches:5.5 commit in: /
commit: bebe7c804f5e05b95f2afcdc28cea99e41621d09 Author: Mike Pagano gentoo org> AuthorDate: Wed Mar 25 17:56:52 2020 + Commit: Mike Pagano gentoo org> CommitDate: Wed Mar 25 17:56:52 2020 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=bebe7c80 Linux patch 5.5.13 Signed-off-by: Mike Pagano gentoo.org> _README | 4 1012_linux-5.5.13.patch | 57 + 2 files changed, 61 insertions(+) diff --git a/_README b/_README index 1bae1b3..c561f7c 100644 --- a/_README +++ b/_README @@ -91,6 +91,10 @@ Patch: 1011_linux-5.5.12.patch From: http://www.kernel.org Desc: Linux 5.5.12 +Patch: 1012_linux-5.5.13.patch +From: http://www.kernel.org +Desc: Linux 5.5.13 + Patch: 1500_XATTR_USER_PREFIX.patch From: https://bugs.gentoo.org/show_bug.cgi?id=470644 Desc: Support for namespace user.pax.* on tmpfs. diff --git a/1012_linux-5.5.13.patch b/1012_linux-5.5.13.patch new file mode 100644 index 000..47908a3 --- /dev/null +++ b/1012_linux-5.5.13.patch @@ -0,0 +1,57 @@ +diff --git a/Makefile b/Makefile +index d962fe0f26ce..d1574c99f83c 100644 +--- a/Makefile b/Makefile +@@ -1,7 +1,7 @@ + # SPDX-License-Identifier: GPL-2.0 + VERSION = 5 + PATCHLEVEL = 5 +-SUBLEVEL = 12 ++SUBLEVEL = 13 + EXTRAVERSION = + NAME = Kleptomaniac Octopus + +diff --git a/drivers/base/core.c b/drivers/base/core.c +index 3306d5ae92a6..dbb0f9130f42 100644 +--- a/drivers/base/core.c b/drivers/base/core.c +@@ -718,6 +718,8 @@ static void __device_links_queue_sync_state(struct device *dev, + { + struct device_link *link; + ++ if (!dev_has_sync_state(dev)) ++ return; + if (dev->state_synced) + return; + +@@ -819,7 +821,7 @@ late_initcall(sync_state_resume_initcall); + + static void __device_links_supplier_defer_sync(struct device *sup) + { +- if (list_empty(&sup->links.defer_sync)) ++ if (list_empty(&sup->links.defer_sync) && dev_has_sync_state(sup)) + list_add_tail(&sup->links.defer_sync, &deferred_sync); + } + +diff --git a/include/linux/device.h b/include/linux/device.h +index 96ff76731e93..50d97767d8d6 100644 +--- a/include/linux/device.h b/include/linux/device.h +@@ -1522,6 +1522,17 @@ static inline struct device_node *dev_of_node(struct device *dev) + + void driver_init(void); + ++static inline bool dev_has_sync_state(struct device *dev) ++{ ++ if (!dev) ++ return false; ++ if (dev->driver && dev->driver->sync_state) ++ return true; ++ if (dev->bus && dev->bus->sync_state) ++ return true; ++ return false; ++} ++ + /* + * High level routines for use by the bus drivers + */
[gentoo-commits] proj/linux-patches:5.5 commit in: /
commit: da18e546cfbdd6c3aede0d567fcdd51246e36217 Author: Mike Pagano gentoo org> AuthorDate: Wed Mar 25 15:02:23 2020 + Commit: Mike Pagano gentoo org> CommitDate: Wed Mar 25 15:02:23 2020 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=da18e546 Linux patch 5.5.12 Signed-off-by: Mike Pagano gentoo.org> _README |4 + 1011_linux-5.5.12.patch | 4071 +++ 2 files changed, 4075 insertions(+) diff --git a/_README b/_README index dd392c0..1bae1b3 100644 --- a/_README +++ b/_README @@ -87,6 +87,10 @@ Patch: 1010_linux-5.5.11.patch From: http://www.kernel.org Desc: Linux 5.5.11 +Patch: 1011_linux-5.5.12.patch +From: http://www.kernel.org +Desc: Linux 5.5.12 + Patch: 1500_XATTR_USER_PREFIX.patch From: https://bugs.gentoo.org/show_bug.cgi?id=470644 Desc: Support for namespace user.pax.* on tmpfs. diff --git a/1011_linux-5.5.12.patch b/1011_linux-5.5.12.patch new file mode 100644 index 000..b3c0d26 --- /dev/null +++ b/1011_linux-5.5.12.patch @@ -0,0 +1,4071 @@ +diff --git a/Documentation/kbuild/modules.rst b/Documentation/kbuild/modules.rst +index 69fa48ee93d6..e0b45a257f21 100644 +--- a/Documentation/kbuild/modules.rst b/Documentation/kbuild/modules.rst +@@ -470,9 +470,9 @@ build. + + The syntax of the Module.symvers file is:: + +- ++ + +- 0xe1cc2a05 usb_stor_suspend USB_STORAGE drivers/usb/storage/usb-storage EXPORT_SYMBOL_GPL ++ 0xe1cc2a05 usb_stor_suspend drivers/usb/storage/usb-storage EXPORT_SYMBOL_GPL USB_STORAGE + + The fields are separated by tabs and values may be empty (e.g. + if no namespace is defined for an exported symbol). +diff --git a/Makefile b/Makefile +index b3a42cb0042d..d962fe0f26ce 100644 +--- a/Makefile b/Makefile +@@ -1,7 +1,7 @@ + # SPDX-License-Identifier: GPL-2.0 + VERSION = 5 + PATCHLEVEL = 5 +-SUBLEVEL = 11 ++SUBLEVEL = 12 + EXTRAVERSION = + NAME = Kleptomaniac Octopus + +diff --git a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts +index 1b5a835f66bd..b8c4b5bb265a 100644 +--- a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts +@@ -31,6 +31,8 @@ + pwr { + label = "PWR"; + gpios = <&expgpio 2 GPIO_ACTIVE_LOW>; ++ default-state = "keep"; ++ linux,default-trigger = "default-on"; + }; + }; + +diff --git a/arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts b/arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts +index 66ab35eccba7..28be0332c1c8 100644 +--- a/arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts b/arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts +@@ -26,6 +26,8 @@ + pwr { + label = "PWR"; + gpios = <&expgpio 2 GPIO_ACTIVE_LOW>; ++ default-state = "keep"; ++ linux,default-trigger = "default-on"; + }; + }; + }; +diff --git a/arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts b/arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts +index 74ed6d047807..37343148643d 100644 +--- a/arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts b/arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts +@@ -27,6 +27,8 @@ + pwr { + label = "PWR"; + gpios = <&expgpio 2 GPIO_ACTIVE_LOW>; ++ default-state = "keep"; ++ linux,default-trigger = "default-on"; + }; + }; + +diff --git a/arch/arm/boot/dts/dra7-l4.dtsi b/arch/arm/boot/dts/dra7-l4.dtsi +index 7e7aa101d8a4..912ee8778830 100644 +--- a/arch/arm/boot/dts/dra7-l4.dtsi b/arch/arm/boot/dts/dra7-l4.dtsi +@@ -3461,6 +3461,7 @@ + clocks = <&l4per3_clkctrl DRA7_L4PER3_TIMER13_CLKCTRL 24>; + clock-names = "fck"; + interrupts = ; ++ ti,timer-pwm; + }; + }; + +@@ -3489,6 +3490,7 @@ + clocks = <&l4per3_clkctrl DRA7_L4PER3_TIMER14_CLKCTRL 24>; + clock-names = "fck"; + interrupts = ; ++ ti,timer-pwm; + }; + }; + +@@ -3517,6 +3519,7 @@ + clocks = <&l4per3_clkctrl DRA7_L4PER3_TIMER15_CLKCTRL 24>; + clock-names = "fck"; + interrupts = ; ++ ti,timer-pwm; + }; + }; + +@@ -3545,6 +3548,7 @@ + clocks = <&l4per3_clkctrl DRA7_L4PER3_TIMER16_CLKCTRL 24>; + clock-names = "fck"
[gentoo-commits] proj/linux-patches:5.5 commit in: /
commit: 047b82317fa79e06080ed2364ad29565fddf0631 Author: Mike Pagano gentoo org> AuthorDate: Mon Mar 23 16:37:02 2020 + Commit: Mike Pagano gentoo org> CommitDate: Mon Mar 23 16:37:02 2020 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=047b8231 tmp513 requires REGMAP_I2C to build. Signed-off-by: Mike Pagano gentoo.org> _README| 4 +++ ...3-Fix-build-issue-by-selecting-CONFIG_REG.patch | 30 ++ 2 files changed, 34 insertions(+) diff --git a/_README b/_README index 276951b..dd392c0 100644 --- a/_README +++ b/_README @@ -107,6 +107,10 @@ Patch: 2600_enable-key-swapping-for-apple-mac.patch From: https://github.com/free5lot/hid-apple-patched Desc: This hid-apple patch enables swapping of the FN and left Control keys and some additional on some apple keyboards. See bug #622902 +Patch: 2900_tmp513-Fix-build-issue-by-selecting-CONFIG_REG.patch +From: https://bugs.gentoo.org/710790 +Desc: tmp513 requies REGMAP_I2C to build. Select it by default in Kconfig. See bug #710790. Thanks to Phil Stracchino + Patch: 4567_distro-Gentoo-Kconfig.patch From: Tom Wijsman Desc: Add Gentoo Linux support config settings and defaults. diff --git a/2900_tmp513-Fix-build-issue-by-selecting-CONFIG_REG.patch b/2900_tmp513-Fix-build-issue-by-selecting-CONFIG_REG.patch new file mode 100644 index 000..4335685 --- /dev/null +++ b/2900_tmp513-Fix-build-issue-by-selecting-CONFIG_REG.patch @@ -0,0 +1,30 @@ +From dc328d75a6f37f4ff11a81ae16b1ec88c3197640 Mon Sep 17 00:00:00 2001 +From: Mike Pagano +Date: Mon, 23 Mar 2020 08:20:06 -0400 +Subject: [PATCH 1/1] This driver requires REGMAP_I2C to build. Select it by + default in Kconfig. Reported at gentoo bugzilla: + https://bugs.gentoo.org/710790 +Cc: mpag...@gentoo.org + +Reported-by: Phil Stracchino + +Signed-off-by: Mike Pagano +--- + drivers/hwmon/Kconfig | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig +index 47ac20aee06f..530b4f29ba85 100644 +--- a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig +@@ -1769,6 +1769,7 @@ config SENSORS_TMP421 + config SENSORS_TMP513 + tristate "Texas Instruments TMP513 and compatibles" + depends on I2C ++ select REGMAP_I2C + help + If you say yes here you get support for Texas Instruments TMP512, + and TMP513 temperature and power supply sensor chips. +-- +2.24.1 +
[gentoo-commits] proj/linux-patches:5.5 commit in: /
commit: a8046d9a651c8e2c368102486580f0c8d7a30ed1 Author: Mike Pagano gentoo org> AuthorDate: Sat Mar 21 18:58:58 2020 + Commit: Mike Pagano gentoo org> CommitDate: Sat Mar 21 18:58:58 2020 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=a8046d9a Linux patch 5.5.11 Signed-off-by: Mike Pagano gentoo.org> _README |4 + 1010_linux-5.5.11.patch | 2116 +++ 2 files changed, 2120 insertions(+) diff --git a/_README b/_README index 7cca34e..276951b 100644 --- a/_README +++ b/_README @@ -83,6 +83,10 @@ Patch: 1009_linux-5.5.10.patch From: http://www.kernel.org Desc: Linux 5.5.10 +Patch: 1010_linux-5.5.11.patch +From: http://www.kernel.org +Desc: Linux 5.5.11 + Patch: 1500_XATTR_USER_PREFIX.patch From: https://bugs.gentoo.org/show_bug.cgi?id=470644 Desc: Support for namespace user.pax.* on tmpfs. diff --git a/1010_linux-5.5.11.patch b/1010_linux-5.5.11.patch new file mode 100644 index 000..aa637cc --- /dev/null +++ b/1010_linux-5.5.11.patch @@ -0,0 +1,2116 @@ +diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt +index ade4e6ec23e0..727a03fb26c9 100644 +--- a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt +@@ -136,6 +136,10 @@ + dynamic table installation which will install SSDT + tables to /sys/firmware/acpi/tables/dynamic. + ++ acpi_no_watchdog[HW,ACPI,WDT] ++ Ignore the ACPI-based watchdog interface (WDAT) and let ++ a native driver control the watchdog device instead. ++ + acpi_rsdp= [ACPI,EFI,KEXEC] + Pass the RSDP address to the kernel, mostly used + on machines running EFI runtime service to boot the +diff --git a/Makefile b/Makefile +index 5d0fdaf900e9..b3a42cb0042d 100644 +--- a/Makefile b/Makefile +@@ -1,7 +1,7 @@ + # SPDX-License-Identifier: GPL-2.0 + VERSION = 5 + PATCHLEVEL = 5 +-SUBLEVEL = 10 ++SUBLEVEL = 11 + EXTRAVERSION = + NAME = Kleptomaniac Octopus + +@@ -1239,7 +1239,7 @@ ifneq ($(dtstree),) + %.dtb: include/config/kernel.release scripts_dtc + $(Q)$(MAKE) $(build)=$(dtstree) $(dtstree)/$@ + +-PHONY += dtbs dtbs_install dt_binding_check ++PHONY += dtbs dtbs_install dtbs_check + dtbs dtbs_check: include/config/kernel.release scripts_dtc + $(Q)$(MAKE) $(build)=$(dtstree) + +@@ -1259,6 +1259,7 @@ PHONY += scripts_dtc + scripts_dtc: scripts_basic + $(Q)$(MAKE) $(build)=scripts/dtc + ++PHONY += dt_binding_check + dt_binding_check: scripts_dtc + $(Q)$(MAKE) $(build)=Documentation/devicetree/bindings + +diff --git a/arch/arm/Makefile b/arch/arm/Makefile +index db857d07114f..1fc32b611f8a 100644 +--- a/arch/arm/Makefile b/arch/arm/Makefile +@@ -307,13 +307,15 @@ endif + ifeq ($(CONFIG_STACKPROTECTOR_PER_TASK),y) + prepare: stack_protector_prepare + stack_protector_prepare: prepare0 +- $(eval KBUILD_CFLAGS += \ ++ $(eval SSP_PLUGIN_CFLAGS := \ + -fplugin-arg-arm_ssp_per_task_plugin-tso=$(shell\ + awk '{if ($$2 == "THREAD_SZ_ORDER") print $$3;}'\ + include/generated/asm-offsets.h)\ + -fplugin-arg-arm_ssp_per_task_plugin-offset=$(shell \ + awk '{if ($$2 == "TI_STACK_CANARY") print $$3;}'\ + include/generated/asm-offsets.h)) ++ $(eval KBUILD_CFLAGS += $(SSP_PLUGIN_CFLAGS)) ++ $(eval GCC_PLUGINS_CFLAGS += $(SSP_PLUGIN_CFLAGS)) + endif + + all: $(notdir $(KBUILD_IMAGE)) +diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile +index a1e883c5e5c4..6da67789ac22 100644 +--- a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile +@@ -101,7 +101,6 @@ clean-files += piggy_data lib1funcs.S ashldi3.S bswapsdi2.S \ + $(libfdt) $(libfdt_hdrs) hyp-stub.S + + KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING +-KBUILD_CFLAGS += $(DISABLE_ARM_SSP_PER_TASK_PLUGIN) + + ifeq ($(CONFIG_FUNCTION_TRACER),y) + ORIG_CFLAGS := $(KBUILD_CFLAGS) +@@ -117,7 +116,8 @@ CFLAGS_fdt_ro.o := $(nossp_flags) + CFLAGS_fdt_rw.o := $(nossp_flags) + CFLAGS_fdt_wip.o := $(nossp_flags) + +-ccflags-y := -fpic $(call cc-option,-mno-single-pic-base,) -fno-builtin -I$(obj) ++ccflags-y := -fpic $(call cc-option,-mno-single-pic-base,) -fno-builtin \ ++ -I$(obj) $(DISABLE_ARM_SSP_PER_TASK_PLUGIN) + asflags-y := -DZIMAGE + + # Supply kernel BSS size to the decompressor via a linker symbol. +diff --git a/arch/arm/kernel/vdso.c b/arch/arm/kernel/vdso.c +index c89ac1b9d28b..e0330a25e1c6 100644 +--- a/arch/arm/kernel/vdso.c b/arch/arm/kernel/vdso.c +@@ -94,6 +94,8 @@ static bool __init cntvct_functional(void) +* this. +*/ + np = o
[gentoo-commits] proj/linux-patches:5.5 commit in: /
commit: ec737266d1761c7432af2d04d1fc38a60990ea02 Author: Mike Pagano gentoo org> AuthorDate: Thu Mar 19 23:21:27 2020 + Commit: Mike Pagano gentoo org> CommitDate: Thu Mar 19 23:21:27 2020 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=ec737266 x86/ioremap: Fix CONFIG_EFI=n build. See bug #713460. Thanks to Phil Stracchino. Signed-off-by: Mike Pagano gentoo.org> _README| 4 +++ ...x86-ioremap-Fix-CONFIG_EFI-equals-n-build.patch | 33 ++ 2 files changed, 37 insertions(+) diff --git a/_README b/_README index 9c4285d..7cca34e 100644 --- a/_README +++ b/_README @@ -91,6 +91,10 @@ 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. +Patch: 1800_x86-ioremap-Fix-CONFIG_EFI-equals-n-build.patch +From: https://lkml.org/lkml/diff/2020/3/18/809/1 +Desc: x86/ioremap: Fix CONFIG_EFI=n build. See bug #713460. Thanks to Phil Stracchino. + Patch: 2000_BT-Check-key-sizes-only-if-Secure-Simple-Pairing-enabled.patch From: https://lore.kernel.org/linux-bluetooth/20190522070540.48895-1-mar...@holtmann.org/raw Desc: Bluetooth: Check key sizes only when Secure Simple Pairing is enabled. See bug #686758 diff --git a/1800_x86-ioremap-Fix-CONFIG_EFI-equals-n-build.patch b/1800_x86-ioremap-Fix-CONFIG_EFI-equals-n-build.patch new file mode 100644 index 000..e6bc74f --- /dev/null +++ b/1800_x86-ioremap-Fix-CONFIG_EFI-equals-n-build.patch @@ -0,0 +1,33 @@ +From: Borislav Petkov +Date: Wed, 18 Mar 2020 19:27:48 +0100 + +In order to use efi_mem_type(), one needs CONFIG_EFI enabled. Otherwise +that function is undefined. Use IS_ENABLED() to check and avoid the +ifdeffery as the compiler optimizes away the following unreachable code +then. + +Fixes: 985e537a4082 ("x86/ioremap: Map EFI runtime services data as encrypted for SEV") +Reported-by: Randy Dunlap +Signed-off-by: Borislav Petkov +Cc: Tom Lendacky +Link: https://lkml.kernel.org/r/7561e981-0d9b-d62c-0ef2-ce6007aff...@infradead.org +--- + arch/x86/mm/ioremap.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/arch/x86/mm/ioremap.c b/arch/x86/mm/ioremap.c +index 935a91e1fd77..18c637c0dc6f 100644 +--- a/arch/x86/mm/ioremap.c b/arch/x86/mm/ioremap.c +@@ -115,6 +115,9 @@ static void __ioremap_check_other(resource_size_t addr, struct ioremap_desc *des + if (!sev_active()) + return; + ++ if (!IS_ENABLED(CONFIG_EFI)) ++ return; ++ + if (efi_mem_type(addr) == EFI_RUNTIME_SERVICES_DATA) + desc->flags |= IORES_MAP_ENCRYPTED; + } +-- +2.21.0
[gentoo-commits] proj/linux-patches:5.5 commit in: /
commit: 71d46599cec09c88bb82c46b9707dea4d507e716 Author: Mike Pagano gentoo org> AuthorDate: Wed Mar 18 15:24:36 2020 + Commit: Mike Pagano gentoo org> CommitDate: Wed Mar 18 15:24:36 2020 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=71d46599 Remove redundant patch Removed: 2400_iwlwifi-PHY_SKU-NVM-3168-fix.patch Signed-off-by: Mike Pagano gentoo.org> _README | 4 2400_iwlwifi-PHY_SKU-NVM-3168-fix.patch | 14 -- 2 files changed, 18 deletions(-) diff --git a/_README b/_README index d6be20e..9c4285d 100644 --- a/_README +++ b/_README @@ -95,10 +95,6 @@ Patch: 2000_BT-Check-key-sizes-only-if-Secure-Simple-Pairing-enabled.patch From: https://lore.kernel.org/linux-bluetooth/20190522070540.48895-1-mar...@holtmann.org/raw Desc: Bluetooth: Check key sizes only when Secure Simple Pairing is enabled. See bug #686758 -Patch: 2400_iwlwifi-PHY_SKU-NVM-3168-fix.patch -From: https://patchwork.kernel.org/patch/11353871/ -Desc: iwlwifi: mvm: Do not require PHY_SKU NVM section for 3168 devices - Patch: 2600_enable-key-swapping-for-apple-mac.patch From: https://github.com/free5lot/hid-apple-patched Desc: This hid-apple patch enables swapping of the FN and left Control keys and some additional on some apple keyboards. See bug #622902 diff --git a/2400_iwlwifi-PHY_SKU-NVM-3168-fix.patch b/2400_iwlwifi-PHY_SKU-NVM-3168-fix.patch deleted file mode 100644 index d736a9e..000 --- a/2400_iwlwifi-PHY_SKU-NVM-3168-fix.patch +++ /dev/null @@ -1,14 +0,0 @@ -diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/nvm.c b/drivers/net/wireless/intel/iwlwifi/mvm/nvm.c -index 46128a2a9c6e..e98ce380c7b9 100644 a/drivers/net/wireless/intel/iwlwifi/mvm/nvm.c -+++ b/drivers/net/wireless/intel/iwlwifi/mvm/nvm.c -@@ -308,7 +308,8 @@ iwl_parse_nvm_sections(struct iwl_mvm *mvm) - } - - /* PHY_SKU section is mandatory in B0 */ -- if (!mvm->nvm_sections[NVM_SECTION_TYPE_PHY_SKU].data) { -+ if (mvm->trans->cfg->nvm_type == IWL_NVM_EXT && -+ !mvm->nvm_sections[NVM_SECTION_TYPE_PHY_SKU].data) { - IWL_ERR(mvm, - "Can't parse phy_sku in B0, empty sections\n"); - return NULL;
[gentoo-commits] proj/linux-patches:5.5 commit in: /
commit: 463e67dc5a2521fdc2e4ceafe2f42ac32f680752 Author: Mike Pagano gentoo org> AuthorDate: Wed Feb 19 23:49:07 2020 + Commit: Mike Pagano gentoo org> CommitDate: Wed Feb 19 23:49:07 2020 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=463e67dc Linux patch 5.5.5 Signed-off-by: Mike Pagano gentoo.org> _README|4 + 1004_linux-5.5.5.patch | 3180 2 files changed, 3184 insertions(+) diff --git a/_README b/_README index 567c784..7eb2076 100644 --- a/_README +++ b/_README @@ -59,6 +59,10 @@ Patch: 1003_linux-5.5.4.patch From: http://www.kernel.org Desc: Linux 5.5.4 +Patch: 1004_linux-5.5.5.patch +From: http://www.kernel.org +Desc: Linux 5.5.5 + Patch: 1500_XATTR_USER_PREFIX.patch From: https://bugs.gentoo.org/show_bug.cgi?id=470644 Desc: Support for namespace user.pax.* on tmpfs. diff --git a/1004_linux-5.5.5.patch b/1004_linux-5.5.5.patch new file mode 100644 index 000..1da35c5 --- /dev/null +++ b/1004_linux-5.5.5.patch @@ -0,0 +1,3180 @@ +diff --git a/Makefile b/Makefile +index 62f956e9c81d..1f7dc3a2e1dd 100644 +--- a/Makefile b/Makefile +@@ -1,7 +1,7 @@ + # SPDX-License-Identifier: GPL-2.0 + VERSION = 5 + PATCHLEVEL = 5 +-SUBLEVEL = 4 ++SUBLEVEL = 5 + EXTRAVERSION = + NAME = Kleptomaniac Octopus + +diff --git a/arch/arm/mach-npcm/Kconfig b/arch/arm/mach-npcm/Kconfig +index 880bc2a5cada..7f7002dc2b21 100644 +--- a/arch/arm/mach-npcm/Kconfig b/arch/arm/mach-npcm/Kconfig +@@ -11,7 +11,7 @@ config ARCH_NPCM7XX + depends on ARCH_MULTI_V7 + select PINCTRL_NPCM7XX + select NPCM7XX_TIMER +- select ARCH_REQUIRE_GPIOLIB ++ select GPIOLIB + select CACHE_L2X0 + select ARM_GIC + select HAVE_ARM_TWD if SMP +diff --git a/arch/arm64/boot/dts/arm/fvp-base-revc.dts b/arch/arm64/boot/dts/arm/fvp-base-revc.dts +index 62ab0d54ff71..335fff762451 100644 +--- a/arch/arm64/boot/dts/arm/fvp-base-revc.dts b/arch/arm64/boot/dts/arm/fvp-base-revc.dts +@@ -161,10 +161,10 @@ + bus-range = <0x0 0x1>; + reg = <0x0 0x4000 0x0 0x1000>; + ranges = <0x200 0x0 0x5000 0x0 0x5000 0x0 0x1000>; +- interrupt-map = <0 0 0 1 &gic GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>, +- <0 0 0 2 &gic GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>, +- <0 0 0 3 &gic GIC_SPI 170 IRQ_TYPE_LEVEL_HIGH>, +- <0 0 0 4 &gic GIC_SPI 171 IRQ_TYPE_LEVEL_HIGH>; ++ interrupt-map = <0 0 0 1 &gic 0 0 GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>, ++ <0 0 0 2 &gic 0 0 GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>, ++ <0 0 0 3 &gic 0 0 GIC_SPI 170 IRQ_TYPE_LEVEL_HIGH>, ++ <0 0 0 4 &gic 0 0 GIC_SPI 171 IRQ_TYPE_LEVEL_HIGH>; + interrupt-map-mask = <0x0 0x0 0x0 0x7>; + msi-map = <0x0 &its 0x0 0x1>; + iommu-map = <0x0 &smmu 0x0 0x1>; +diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c +index d54586d5b031..fab013c5ee8c 100644 +--- a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c +@@ -466,6 +466,13 @@ static void ssbs_thread_switch(struct task_struct *next) + if (unlikely(next->flags & PF_KTHREAD)) + return; + ++ /* ++ * If all CPUs implement the SSBS extension, then we just need to ++ * context-switch the PSTATE field. ++ */ ++ if (cpu_have_feature(cpu_feature(SSBS))) ++ return; ++ + /* If the mitigation is enabled, then we leave SSBS clear. */ + if ((arm64_get_ssbd_state() == ARM64_SSBD_FORCE_ENABLE) || + test_tsk_thread_flag(next, TIF_SSBD)) +diff --git a/arch/s390/boot/uv.c b/arch/s390/boot/uv.c +index ed007f4a6444..3f501159ee9f 100644 +--- a/arch/s390/boot/uv.c b/arch/s390/boot/uv.c +@@ -15,7 +15,8 @@ void uv_query_info(void) + if (!test_facility(158)) + return; + +- if (uv_call(0, (uint64_t)&uvcb)) ++ /* rc==0x100 means that there is additional data we do not process */ ++ if (uv_call(0, (uint64_t)&uvcb) && uvcb.header.rc != 0x100) + return; + + if (test_bit_inv(BIT_UVC_CMD_SET_SHARED_ACCESS, (unsigned long *)uvcb.inst_calls_list) && +diff --git a/arch/s390/include/asm/timex.h b/arch/s390/include/asm/timex.h +index 670f14a228e5..6bf3a45ccfec 100644 +--- a/arch/s390/include/asm/timex.h b/arch/s390/include/asm/timex.h +@@ -155,7 +155,7 @@ static inline void get_tod_clock_ext(char *clk) + + static inline unsigned long long get_tod_clock(void) + { +- unsigned char clk[STORE_CLOCK_EXT_SIZE]; ++ char clk[STORE_CLOCK_EXT_SIZE]; + + get_tod_clock_ext(clk); + return *((unsigned long long *)&clk[1]); +diff --git a/arch/x86/events/amd/core.c b/arch/x86/events/amd/core.c +index a7752cd78b89..d
[gentoo-commits] proj/linux-patches:5.5 commit in: /
commit: a91bb69e72b481ae5c68a3faf3e109aa68613ad8 Author: Mike Pagano gentoo org> AuthorDate: Wed Feb 5 14:43:24 2020 + Commit: Mike Pagano gentoo org> CommitDate: Wed Feb 5 14:43:24 2020 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=a91bb69e iwlwifi: mvm: Do not require PHY_SKU NVM section for 3168 devices See bug#706810 Signed-off-by: Mike Pagano gentoo.org> _README | 4 2400_iwlwifi-PHY_SKU-NVM-3168-fix.patch | 14 ++ 2 files changed, 18 insertions(+) diff --git a/_README b/_README index 65e9013..ead5c5e 100644 --- a/_README +++ b/_README @@ -63,6 +63,10 @@ Patch: 2000_BT-Check-key-sizes-only-if-Secure-Simple-Pairing-enabled.patch From: https://lore.kernel.org/linux-bluetooth/20190522070540.48895-1-mar...@holtmann.org/raw Desc: Bluetooth: Check key sizes only when Secure Simple Pairing is enabled. See bug #686758 +Patch: 2400_iwlwifi-PHY_SKU-NVM-3168-fix.patch +From: https://patchwork.kernel.org/patch/11353871/ +Desc: iwlwifi: mvm: Do not require PHY_SKU NVM section for 3168 devices + Patch: 2600_enable-key-swapping-for-apple-mac.patch From: https://github.com/free5lot/hid-apple-patched Desc: This hid-apple patch enables swapping of the FN and left Control keys and some additional on some apple keyboards. See bug #622902 diff --git a/2400_iwlwifi-PHY_SKU-NVM-3168-fix.patch b/2400_iwlwifi-PHY_SKU-NVM-3168-fix.patch new file mode 100644 index 000..d736a9e --- /dev/null +++ b/2400_iwlwifi-PHY_SKU-NVM-3168-fix.patch @@ -0,0 +1,14 @@ +diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/nvm.c b/drivers/net/wireless/intel/iwlwifi/mvm/nvm.c +index 46128a2a9c6e..e98ce380c7b9 100644 +--- a/drivers/net/wireless/intel/iwlwifi/mvm/nvm.c b/drivers/net/wireless/intel/iwlwifi/mvm/nvm.c +@@ -308,7 +308,8 @@ iwl_parse_nvm_sections(struct iwl_mvm *mvm) + } + + /* PHY_SKU section is mandatory in B0 */ +- if (!mvm->nvm_sections[NVM_SECTION_TYPE_PHY_SKU].data) { ++ if (mvm->trans->cfg->nvm_type == IWL_NVM_EXT && ++ !mvm->nvm_sections[NVM_SECTION_TYPE_PHY_SKU].data) { + IWL_ERR(mvm, + "Can't parse phy_sku in B0, empty sections\n"); + return NULL;
[gentoo-commits] proj/linux-patches:5.5 commit in: /
commit: 4c1e450a7187e3b4f37da18101df940780949972 Author: Mike Pagano gentoo org> AuthorDate: Tue Feb 4 18:47:17 2020 + Commit: Mike Pagano gentoo org> CommitDate: Tue Feb 4 18:47:17 2020 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=4c1e450a Fix patch name. Add Linux 5.5.2 Signed-off-by: Mike Pagano gentoo.org> _README | 4 + 1001_linux-5.5.1.patch => 1000_linux-5.5.1.patch | 0 1001_linux-5.5.2.patch | 807 +++ 3 files changed, 811 insertions(+) diff --git a/_README b/_README index b1a233d..65e9013 100644 --- a/_README +++ b/_README @@ -47,6 +47,10 @@ Patch: 1000_linux-5.5.1.patch From: http://www.kernel.org Desc: Linux 5.5.1 +Patch: 1001_linux-5.5.2.patch +From: http://www.kernel.org +Desc: Linux 5.5.2 + Patch: 1500_XATTR_USER_PREFIX.patch From: https://bugs.gentoo.org/show_bug.cgi?id=470644 Desc: Support for namespace user.pax.* on tmpfs. diff --git a/1001_linux-5.5.1.patch b/1000_linux-5.5.1.patch similarity index 100% rename from 1001_linux-5.5.1.patch rename to 1000_linux-5.5.1.patch diff --git a/1001_linux-5.5.2.patch b/1001_linux-5.5.2.patch new file mode 100644 index 000..2e099da --- /dev/null +++ b/1001_linux-5.5.2.patch @@ -0,0 +1,807 @@ +diff --git a/Documentation/ABI/testing/sysfs-class-devfreq b/Documentation/ABI/testing/sysfs-class-devfreq +index 01196e19afca..75897e2fde43 100644 +--- a/Documentation/ABI/testing/sysfs-class-devfreq b/Documentation/ABI/testing/sysfs-class-devfreq +@@ -7,6 +7,13 @@ Description: + The name of devfreq object denoted as ... is same as the + name of device using devfreq. + ++What: /sys/class/devfreq/.../name ++Date: November 2019 ++Contact: Chanwoo Choi ++Description: ++ The /sys/class/devfreq/.../name shows the name of device ++ of the corresponding devfreq object. ++ + What: /sys/class/devfreq/.../governor + Date: September 2011 + Contact: MyungJoo Ham +diff --git a/Makefile b/Makefile +index ec2caaef8b2d..cfbdf5f920fd 100644 +--- a/Makefile b/Makefile +@@ -1,7 +1,7 @@ + # SPDX-License-Identifier: GPL-2.0 + VERSION = 5 + PATCHLEVEL = 5 +-SUBLEVEL = 1 ++SUBLEVEL = 2 + EXTRAVERSION = + NAME = Kleptomaniac Octopus + +diff --git a/arch/arm64/boot/Makefile b/arch/arm64/boot/Makefile +index 1f012c506434..cd3414898d10 100644 +--- a/arch/arm64/boot/Makefile b/arch/arm64/boot/Makefile +@@ -16,7 +16,7 @@ + + OBJCOPYFLAGS_Image :=-O binary -R .note -R .note.gnu.build-id -R .comment -S + +-targets := Image Image.gz ++targets := Image Image.bz2 Image.gz Image.lz4 Image.lzma Image.lzo + + $(obj)/Image: vmlinux FORCE + $(call if_changed,objcopy) +diff --git a/arch/powerpc/kvm/book3s_pr.c b/arch/powerpc/kvm/book3s_pr.c +index ce4fcf76e53e..eb86a2f26986 100644 +--- a/arch/powerpc/kvm/book3s_pr.c b/arch/powerpc/kvm/book3s_pr.c +@@ -2030,6 +2030,7 @@ static int kvm_vm_ioctl_get_smmu_info_pr(struct kvm *kvm, + { + /* We should not get called */ + BUG(); ++ return 0; + } + #endif /* CONFIG_PPC64 */ + +diff --git a/arch/x86/kernel/cpu/resctrl/rdtgroup.c b/arch/x86/kernel/cpu/resctrl/rdtgroup.c +index dac7209a0708..954fd048ad9b 100644 +--- a/arch/x86/kernel/cpu/resctrl/rdtgroup.c b/arch/x86/kernel/cpu/resctrl/rdtgroup.c +@@ -1970,7 +1970,7 @@ static int rdt_get_tree(struct fs_context *fc) + + if (rdt_mon_capable) { + ret = mongroup_create_dir(rdtgroup_default.kn, +-NULL, "mon_groups", ++&rdtgroup_default, "mon_groups", + &kn_mongrp); + if (ret < 0) + goto out_info; +@@ -2205,7 +2205,11 @@ static void free_all_child_rdtgrp(struct rdtgroup *rdtgrp) + list_for_each_entry_safe(sentry, stmp, head, mon.crdtgrp_list) { + free_rmid(sentry->mon.rmid); + list_del(&sentry->mon.crdtgrp_list); +- kfree(sentry); ++ ++ if (atomic_read(&sentry->waitcount) != 0) ++ sentry->flags = RDT_DELETED; ++ else ++ kfree(sentry); + } + } + +@@ -2243,7 +2247,11 @@ static void rmdir_all_sub(void) + + kernfs_remove(rdtgrp->kn); + list_del(&rdtgrp->rdtgroup_list); +- kfree(rdtgrp); ++ ++ if (atomic_read(&rdtgrp->waitcount) != 0) ++ rdtgrp->flags = RDT_DELETED; ++ else ++ kfree(rdtgrp); + } + /* Notify online CPUs to update per cpu storage and PQR_ASSOC MSR */ + update_closid_rmid(cpu_online_mask, &rdtgroup_default); +@@ -2446,7 +2454,7 @@ static int mkdir_mondata_all(struct kernfs_node *parent_kn, + /* +* Create the mon_data directory firs
[gentoo-commits] proj/linux-patches:5.5 commit in: /
commit: 7ea8f1d01cce2c830bb7374831c9eec4b9fc1e32 Author: Mike Pagano gentoo org> AuthorDate: Sat Feb 1 10:33:07 2020 + Commit: Mike Pagano gentoo org> CommitDate: Sat Feb 1 10:33:07 2020 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=7ea8f1d0 Linux patch 5.5.1 Signed-off-by: Mike Pagano gentoo.org> _README|4 + 1001_linux-5.5.1.patch | 2082 2 files changed, 2086 insertions(+) diff --git a/_README b/_README index e1d45be..b1a233d 100644 --- a/_README +++ b/_README @@ -43,6 +43,10 @@ EXPERIMENTAL Individual Patch Descriptions: -- +Patch: 1000_linux-5.5.1.patch +From: http://www.kernel.org +Desc: Linux 5.5.1 + Patch: 1500_XATTR_USER_PREFIX.patch From: https://bugs.gentoo.org/show_bug.cgi?id=470644 Desc: Support for namespace user.pax.* on tmpfs. diff --git a/1001_linux-5.5.1.patch b/1001_linux-5.5.1.patch new file mode 100644 index 000..b3d73e1 --- /dev/null +++ b/1001_linux-5.5.1.patch @@ -0,0 +1,2082 @@ +diff --git a/Makefile b/Makefile +index 6a01b073915e..ec2caaef8b2d 100644 +--- a/Makefile b/Makefile +@@ -1,7 +1,7 @@ + # SPDX-License-Identifier: GPL-2.0 + VERSION = 5 + PATCHLEVEL = 5 +-SUBLEVEL = 0 ++SUBLEVEL = 1 + EXTRAVERSION = + NAME = Kleptomaniac Octopus + +diff --git a/arch/arm64/kvm/debug.c b/arch/arm64/kvm/debug.c +index 43487f035385..7a7e425616b5 100644 +--- a/arch/arm64/kvm/debug.c b/arch/arm64/kvm/debug.c +@@ -101,7 +101,7 @@ void kvm_arm_reset_debug_ptr(struct kvm_vcpu *vcpu) + void kvm_arm_setup_debug(struct kvm_vcpu *vcpu) + { + bool trap_debug = !(vcpu->arch.flags & KVM_ARM64_DEBUG_DIRTY); +- unsigned long mdscr; ++ unsigned long mdscr, orig_mdcr_el2 = vcpu->arch.mdcr_el2; + + trace_kvm_arm_setup_debug(vcpu, vcpu->guest_debug); + +@@ -197,6 +197,10 @@ void kvm_arm_setup_debug(struct kvm_vcpu *vcpu) + if (vcpu_read_sys_reg(vcpu, MDSCR_EL1) & (DBG_MDSCR_KDE | DBG_MDSCR_MDE)) + vcpu->arch.flags |= KVM_ARM64_DEBUG_DIRTY; + ++ /* Write mdcr_el2 changes since vcpu_load on VHE systems */ ++ if (has_vhe() && orig_mdcr_el2 != vcpu->arch.mdcr_el2) ++ write_sysreg(vcpu->arch.mdcr_el2, mdcr_el2); ++ + trace_kvm_arm_set_dreg32("MDCR_EL2", vcpu->arch.mdcr_el2); + trace_kvm_arm_set_dreg32("MDSCR_EL1", vcpu_read_sys_reg(vcpu, MDSCR_EL1)); + } +diff --git a/arch/um/include/asm/common.lds.S b/arch/um/include/asm/common.lds.S +index 7145ce699982..eca6c452a41b 100644 +--- a/arch/um/include/asm/common.lds.S b/arch/um/include/asm/common.lds.S +@@ -82,8 +82,8 @@ + __preinit_array_end = .; + } + .init_array : { +-/* dummy - we call this ourselves */ + __init_array_start = .; ++ *(.init_array) + __init_array_end = .; + } + .fini_array : { +diff --git a/arch/um/kernel/dyn.lds.S b/arch/um/kernel/dyn.lds.S +index c69d69ee96be..f5001481010c 100644 +--- a/arch/um/kernel/dyn.lds.S b/arch/um/kernel/dyn.lds.S +@@ -103,6 +103,7 @@ SECTIONS + be empty, which isn't pretty. */ + . = ALIGN(32 / 8); + .preinit_array : { *(.preinit_array) } ++ .init_array : { *(.init_array) } + .fini_array : { *(.fini_array) } + .data : { + INIT_TASK_DATA(KERNEL_STACK_SIZE) +diff --git a/crypto/af_alg.c b/crypto/af_alg.c +index 0dceaabc6321..3d8e53010cda 100644 +--- a/crypto/af_alg.c b/crypto/af_alg.c +@@ -134,11 +134,13 @@ void af_alg_release_parent(struct sock *sk) + sk = ask->parent; + ask = alg_sk(sk); + +- lock_sock(sk); ++ local_bh_disable(); ++ bh_lock_sock(sk); + ask->nokey_refcnt -= nokey; + if (!last) + last = !--ask->refcnt; +- release_sock(sk); ++ bh_unlock_sock(sk); ++ local_bh_enable(); + + if (last) + sock_put(sk); +diff --git a/crypto/pcrypt.c b/crypto/pcrypt.c +index 543792e0ebf0..81bbea7f2ba6 100644 +--- a/crypto/pcrypt.c b/crypto/pcrypt.c +@@ -362,11 +362,12 @@ err: + + static void __exit pcrypt_exit(void) + { ++ crypto_unregister_template(&pcrypt_tmpl); ++ + pcrypt_fini_padata(pencrypt); + pcrypt_fini_padata(pdecrypt); + + kset_unregister(pcrypt_kset); +- crypto_unregister_template(&pcrypt_tmpl); + } + + subsys_initcall(pcrypt_init); +diff --git a/drivers/android/binder.c b/drivers/android/binder.c +index b2dad43dbf82..9fcc761031d8 100644 +--- a/drivers/android/binder.c b/drivers/android/binder.c +@@ -5199,10 +5199,11 @@ err_bad_arg: + + static int binder_open(struct inode *nodp, struct file *filp) + { +- struct binder_proc *proc; ++ struct binder_proc *proc, *itr; + struct binder_device *binder_dev; + struct binderfs_info *info; + struct dentry *binder_binderfs_dir_entry_proc = NULL; ++ bool existing_pid = false; + + binder_debug(BINDER
[gentoo-commits] proj/linux-patches:5.5 commit in: /
commit: edf16b8e6864aa65b0822db040e0c1a56f8cc907 Author: Mike Pagano gentoo org> AuthorDate: Wed Jan 29 23:03:08 2020 + Commit: Mike Pagano gentoo org> CommitDate: Wed Jan 29 23:03:08 2020 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=edf16b8e Remove incompatible patch for the combo of kernel 5.5.X and gcc 8 Signed-off-by: Mike Pagano gentoo.org> _README | 4 - 5011_enable-cpu-optimizations-for-gcc8.patch | 569 --- 2 files changed, 573 deletions(-) diff --git a/_README b/_README index 2f0a93e..e1d45be 100644 --- a/_README +++ b/_README @@ -63,10 +63,6 @@ Patch: 4567_distro-Gentoo-Kconfig.patch From: Tom Wijsman Desc: Add Gentoo Linux support config settings and defaults. -Patch: 5011_enable-cpu-optimizations-for-gcc8.patch -From: https://github.com/graysky2/kernel_gcc_patch/ -Desc: Kernel patch for >= gccv8 enables kernel >= v4.13 optimizations for additional CPUs. - Patch: 5012_enable-cpu-optimizations-for-gcc91.patch From: https://github.com/graysky2/kernel_gcc_patch/ Desc: Kernel patch enables gcc >= v9.1 optimizations for additional CPUs. diff --git a/5011_enable-cpu-optimizations-for-gcc8.patch b/5011_enable-cpu-optimizations-for-gcc8.patch deleted file mode 100644 index bfd2065..000 --- a/5011_enable-cpu-optimizations-for-gcc8.patch +++ /dev/null @@ -1,569 +0,0 @@ -WARNING -This patch works with gcc versions 8.1+ and with kernel version 4.13+ and should -NOT be applied when compiling on older versions of gcc due to key name changes -of the march flags introduced with the version 4.9 release of gcc.[1] - -Use the older version of this patch hosted on the same github for older -versions of gcc. - -FEATURES -This patch adds additional CPU options to the Linux kernel accessible under: - Processor type and features ---> - Processor family ---> - -The expanded microarchitectures include: -* AMD Improved K8-family -* AMD K10-family -* AMD Family 10h (Barcelona) -* AMD Family 14h (Bobcat) -* AMD Family 16h (Jaguar) -* AMD Family 15h (Bulldozer) -* AMD Family 15h (Piledriver) -* AMD Family 15h (Steamroller) -* AMD Family 15h (Excavator) -* AMD Family 17h (Zen) -* Intel Silvermont low-power processors -* Intel 1st Gen Core i3/i5/i7 (Nehalem) -* Intel 1.5 Gen Core i3/i5/i7 (Westmere) -* Intel 2nd Gen Core i3/i5/i7 (Sandybridge) -* Intel 3rd Gen Core i3/i5/i7 (Ivybridge) -* Intel 4th Gen Core i3/i5/i7 (Haswell) -* Intel 5th Gen Core i3/i5/i7 (Broadwell) -* Intel 6th Gen Core i3/i5/i7 (Skylake) -* Intel 6th Gen Core i7/i9 (Skylake X) -* Intel 8th Gen Core i3/i5/i7 (Cannon Lake) -* Intel 8th Gen Core i7/i9 (Ice Lake) - -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 -the compiling machine. Using -march=native enables all instruction subsets -supported by the local machine and will produce code optimized for the local -machine under the constraints of the selected instruction set."[3] - -MINOR NOTES -This patch also changes 'atom' to 'bonnell' in accordance with the gcc v4.9 -changes. Note that upstream is using the deprecated 'match=atom' flags when I -believe it should use the newer 'march=bonnell' flag for atom processors.[2] - -It is not recommended to compile on Atom-CPUs with the 'native' option.[4] The -recommendation is to use the 'atom' option instead. - -BENEFITS -Small but real speed increases are measurable using a make endpoint comparing -a generic kernel to one built with one of the respective microarchs. - -See the following experimental evidence supporting this statement: -https://github.com/graysky2/kernel_gcc_patch - -REQUIREMENTS -linux version >=4.20 -gcc version >=8.1 - -ACKNOWLEDGMENTS -This patch builds on the seminal work by Jeroen.[5] - -REFERENCES -1. https://gcc.gnu.org/gcc-4.9/changes.html -2. https://bugzilla.kernel.org/show_bug.cgi?id=77461 -3. https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html -4. https://github.com/graysky2/kernel_gcc_patch/issues/15 -5. http://www.linuxforge.net/docs/linux/linux-gcc.php - a/arch/x86/Makefile_32.cpu 2019-02-22 09:22:03.426937735 -0500 -+++ b/arch/x86/Makefile_32.cpu 2019-02-22 09:37:58.680968580 -0500 -@@ -23,7 +23,18 @@ cflags-$(CONFIG_MK6)+= -march=k6 - # Please note, that patches that add -march=athlon-xp and friends are pointless. - # They make zero difference whatsosever to performance at this time. - cflags-$(CONFIG_MK7) += -march=athlon -+cflags-$(CONFIG_MNATIVE) += $(call cc-option,-march=native) - cflags-$(CONFIG_MK8) += $(call cc-option,-march=k8,-march=athlon) -+cflags-$(CONFIG_MK8SSE3) += $(call cc-option,-march=k8-sse3,-march=athlon) -+cflags-$(CONFIG_MK10) += $(call cc-option,-march=amdfam10,-march=athlon) -+cflags-$(CONFIG_MBARCELONA) += $(call cc-option,-march=barcelona,-march=athlon) -+cflags-$(CONFIG
[gentoo-commits] proj/linux-patches:5.5 commit in: /
commit: 2eb05a67750fe9fc4c720fc5176aa4177c2f4db3 Author: Mike Pagano gentoo org> AuthorDate: Mon Dec 30 23:47:43 2019 + Commit: Mike Pagano gentoo org> CommitDate: Mon Dec 30 23:47:43 2019 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=2eb05a67 Add patchesi for the 5.5 branch. Details below. Support for namespace user.pax.* on tmpfs. Enable link security restrictions by default. Bluetooth: Check key sizes only when Secure Simple Pairing is enabled. See bug #686758.This hid-apple patch enables swapping of the FN and left Control keys and some additional on some apple keyboards. See bug #622902.Add Gentoo Linux support config settings and defaults. Kernel patch for >= gccv8 enables kernel >= v4.13 optimizations for additional CPUs. Kernel patch enables gcc >= v9.1 optimizations for additional CPUs. Signed-off-by: Mike Pagano gentoo.org> _README| 24 + 1500_XATTR_USER_PREFIX.patch | 69 +++ ...ble-link-security-restrictions-by-default.patch | 20 + ...zes-only-if-Secure-Simple-Pairing-enabled.patch | 37 ++ 2600_enable-key-swapping-for-apple-mac.patch | 114 5011_enable-cpu-optimizations-for-gcc8.patch | 569 +++ 5012_enable-cpu-optimizations-for-gcc91.patch | 632 + 7 files changed, 1465 insertions(+) diff --git a/_README b/_README index 9018993..2f0a93e 100644 --- a/_README +++ b/_README @@ -43,6 +43,30 @@ EXPERIMENTAL Individual Patch Descriptions: -- +Patch: 1500_XATTR_USER_PREFIX.patch +From: https://bugs.gentoo.org/show_bug.cgi?id=470644 +Desc: Support for namespace user.pax.* on tmpfs. + +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. + +Patch: 2000_BT-Check-key-sizes-only-if-Secure-Simple-Pairing-enabled.patch +From: https://lore.kernel.org/linux-bluetooth/20190522070540.48895-1-mar...@holtmann.org/raw +Desc: Bluetooth: Check key sizes only when Secure Simple Pairing is enabled. See bug #686758 + +Patch: 2600_enable-key-swapping-for-apple-mac.patch +From: https://github.com/free5lot/hid-apple-patched +Desc: This hid-apple patch enables swapping of the FN and left Control keys and some additional on some apple keyboards. See bug #622902 + Patch: 4567_distro-Gentoo-Kconfig.patch From: Tom Wijsman Desc: Add Gentoo Linux support config settings and defaults. + +Patch: 5011_enable-cpu-optimizations-for-gcc8.patch +From: https://github.com/graysky2/kernel_gcc_patch/ +Desc: Kernel patch for >= gccv8 enables kernel >= v4.13 optimizations for additional CPUs. + +Patch: 5012_enable-cpu-optimizations-for-gcc91.patch +From: https://github.com/graysky2/kernel_gcc_patch/ +Desc: Kernel patch enables gcc >= v9.1 optimizations for additional CPUs. diff --git a/1500_XATTR_USER_PREFIX.patch b/1500_XATTR_USER_PREFIX.patch new file mode 100644 index 000..bacd032 --- /dev/null +++ b/1500_XATTR_USER_PREFIX.patch @@ -0,0 +1,69 @@ +From: Anthony G. Basile + +This patch adds support for a restricted user-controlled namespace on +tmpfs filesystem used to house PaX flags. The namespace must be of the +form user.pax.* and its value cannot exceed a size of 8 bytes. + +This is needed even on all Gentoo systems so that XATTR_PAX flags +are preserved for users who might build packages using portage on +a tmpfs system with a non-hardened kernel and then switch to a +hardened kernel with XATTR_PAX enabled. + +The namespace is added to any user with Extended Attribute support +enabled for tmpfs. Users who do not enable xattrs will not have +the XATTR_PAX flags preserved. + +diff --git a/include/uapi/linux/xattr.h b/include/uapi/linux/xattr.h +index 1590c49..5eab462 100644 +--- a/include/uapi/linux/xattr.h b/include/uapi/linux/xattr.h +@@ -73,5 +73,9 @@ + #define XATTR_POSIX_ACL_DEFAULT "posix_acl_default" + #define XATTR_NAME_POSIX_ACL_DEFAULT XATTR_SYSTEM_PREFIX XATTR_POSIX_ACL_DEFAULT + ++/* User namespace */ ++#define XATTR_PAX_PREFIX XATTR_USER_PREFIX "pax." ++#define XATTR_PAX_FLAGS_SUFFIX "flags" ++#define XATTR_NAME_PAX_FLAGS XATTR_PAX_PREFIX XATTR_PAX_FLAGS_SUFFIX + + #endif /* _UAPI_LINUX_XATTR_H */ +diff --git a/mm/shmem.c b/mm/shmem.c +index 440e2a7..c377172 100644 +--- a/mm/shmem.c b/mm/shmem.c +@@ -2667,6 +2667,14 @@ static int shmem_xattr_handler_set(const struct xattr_handler *handler, + struct shmem_inode_info *info = SHMEM_I(d_inode(dentry)); + + name = xattr_full_name(handler, name); ++ ++ if (!strncmp(name, XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN)) { ++ if (strcmp(name, XATTR_NAME_PAX_FLAGS)) ++ return -EOPNOTSUPP; ++