[PATCH v4 3/8] asm-generic: introduce text-patching.h

2024-10-06 Thread Mike Rapoport
From: "Mike Rapoport (Microsoft)" Several architectures support text patching, but they name the header files that declare patching functions differently. Make all such headers consistently named text-patching.h and add an empty header in asm-generic for architectures that do not support text pa

[PATCH v4 1/8] mm: vmalloc: group declarations depending on CONFIG_MMU together

2024-10-06 Thread Mike Rapoport
From: "Mike Rapoport (Microsoft)" There are a couple of declarations that depend on CONFIG_MMU in include/linux/vmalloc.h spread all over the file. Group them all together to improve code readability. No functional changes. Signed-off-by: Mike Rapoport (Microsoft) --- include/linux/vmalloc.h

[PATCH v4 0/8] x86/module: use large ROX pages for text allocations

2024-10-06 Thread Mike Rapoport
From: "Mike Rapoport (Microsoft)" Hi, These patches add support for using large ROX pages for allocations of executable memory on x86. They address Andy's comments [1] about having executable mappings for code that was not completely formed. The approach taken is to allocate ROX memory along w

[PATCH v4 2/8] mm: vmalloc: don't account for number of nodes for HUGE_VMAP allocations

2024-10-06 Thread Mike Rapoport
From: "Mike Rapoport (Microsoft)" vmalloc allocations with VM_ALLOW_HUGE_VMAP that do not explicitly specify node ID will use huge pages only if size_per_node is larger than a huge page. Still the actual allocated memory is not distributed between nodes and there is no advantage in such approach.

[PATCH v4 6/8] x86/module: perpare module loading for ROX allocations of text

2024-10-06 Thread Mike Rapoport
From: "Mike Rapoport (Microsoft)" When module text memory will be allocated with ROX permissions, the memory at the actual address where the module will live will contain invalid instructions and there will be a writable copy that contains the actual module code. Update relocations and alternati

[PATCH v4 4/8] module: prepare to handle ROX allocations for text

2024-10-06 Thread Mike Rapoport
From: "Mike Rapoport (Microsoft)" In order to support ROX allocations for module text, it is necessary to handle modifications to the code, such as relocations and alternatives patching, without write access to that memory. One option is to use text patching, but this would make module loading e

[PATCH v4 7/8] execmem: add support for cache of large ROX pages

2024-10-06 Thread Mike Rapoport
From: "Mike Rapoport (Microsoft)" Using large pages to map text areas reduces iTLB pressure and improves performance. Extend execmem_alloc() with an ability to use huge pages with ROX permissions as a cache for smaller allocations. To populate the cache, a writable large page is allocated from

[PATCH v4 5/8] arch: introduce set_direct_map_valid_noflush()

2024-10-06 Thread Mike Rapoport
From: "Mike Rapoport (Microsoft)" Add an API that will allow updates of the direct/linear map for a set of physically contiguous pages. It will be used in the following patches. Signed-off-by: Mike Rapoport (Microsoft) --- arch/arm64/include/asm/set_memory.h | 1 + arch/arm64/mm/pageattr

[PATCH v4 8/8] x86/module: enable ROX caches for module text

2024-10-06 Thread Mike Rapoport
From: "Mike Rapoport (Microsoft)" Enable execmem's cache of PMD_SIZE'ed pages mapped as ROX for module text allocations. Signed-off-by: Mike Rapoport (Microsoft) --- arch/x86/mm/init.c | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/arch/x86/mm/in

[powerpc:merge] BUILD SUCCESS f85c105361db641654955608e0a880f7550fe381

2024-10-06 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git merge branch HEAD: f85c105361db641654955608e0a880f7550fe381 Automatic merge of 'fixes' into merge (2024-10-06 17:53) elapsed time: 1122m configs tested: 131 configs skipped: 9 The following configs have been built

Re: [PATCH] drm/radeon: add late_register for connector

2024-10-06 Thread Hoi Pok Wu
Thank you. I am looking at the problem now. On Mon, Oct 7, 2024 at 1:37 AM Christophe Leroy wrote: > > > > Le 06/10/2024 à 18:56, Christian Zigotzky a écrit : > > On 03 October 2024 at 08:06 am, Wu Hoi Pok wrote: > >> This is a fix patch not tested yet, > >> for a bug I introduce in previous rewo

[PATCH] sched/membarrier: Fix redundant load of membarrier_state

2024-10-06 Thread Nysal Jan K.A.
From: "Nysal Jan K.A" On architectures where ARCH_HAS_SYNC_CORE_BEFORE_USERMODE is not selected, sync_core_before_usermode() is a no-op. In membarrier_mm_sync_core_before_usermode() the compiler does not eliminate redundant branches and the load of mm->membarrier_state for this case as the atomic

Kernel doesn't boot after DRM updates (drm-next-2024-09-19)

2024-10-06 Thread Christian Zigotzky
On 06 October 2024 at 8:01pm, Christian Zigotzky wrote: On 06 October 2024 at 7:37pm, Christophe Leroy wrote: Le 06/10/2024 à 18:56, Christian Zigotzky a écrit : Hello Wu Hoi Pok, Thanks a lot for your patch. Unfortunately there is a new issue after patching the RC1. Could you please fix the

[PATCH] drm/radeon: add late_register for connector

2024-10-06 Thread Christian Zigotzky
On 03 October 2024 at 08:06 am, Wu Hoi Pok wrote: This is a fix patch not tested yet, for a bug I introduce in previous rework of radeon driver. The bug is a null dereference in 'aux.dev', which is the 'device' not registered, resulting in kernel panic. By having 'late_register', the connector sh

Re: [PATCH] drm/radeon: add late_register for connector

2024-10-06 Thread Christophe Leroy
Le 06/10/2024 à 18:56, Christian Zigotzky a écrit : On 03 October 2024 at 08:06 am, Wu Hoi Pok wrote: This is a fix patch not tested yet, for a bug I introduce in previous rework of radeon driver. The bug is a null dereference in 'aux.dev', which is the 'device' not registered, resulting in k

[PATCH] drm/radeon: add late_register for connector

2024-10-06 Thread Christian Zigotzky
On 06 October 2024 at 7:37pm, Christophe Leroy wrote: Le 06/10/2024 à 18:56, Christian Zigotzky a écrit : Hello Wu Hoi Pok, Thanks a lot for your patch. Unfortunately there is a new issue after patching the RC1. Could you please fix the following issue? Thanks, Christian --- Linux fienix

Re: [GIT PULL] Please pull powerpc/linux.git powerpc-6.12-3 tag

2024-10-06 Thread pr-tracker-bot
The pull request you sent on Sun, 06 Oct 2024 18:02:46 +1100: > https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git > tags/powerpc-6.12-3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/b3ce5c30a0e05ee3600c82925bebaa4dc1b29cfd Thank you! -- Deet-doot-d

[GIT PULL] Please pull powerpc/linux.git powerpc-6.12-3 tag

2024-10-06 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi Linus, Please pull some more powerpc fixes for 6.12: The following changes since commit 9852d85ec9d492ebef56dc5f229416c925758edc: Linux 6.12-rc1 (2024-09-29 15:06:19 -0700) are available in the git repository at: https://git.kernel.org/pu

Re: [viro-vfs:work.xattr2] [fs/xattr] 64d47e878a: xfstests.xfs.046.fail

2024-10-06 Thread Al Viro
On Sun, Oct 06, 2024 at 10:20:57PM +0800, kernel test robot wrote: > xfs/046 - output mismatch (see > /lkp/benchmarks/xfstests/results//xfs/046.out.bad) > --- tests/xfs/046.out 2024-09-30 21:13:44.0 + > +++ /lkp/benchmarks/xfstests/results//xfs/046.out.bad 2024-1

[viro-vfs:work.xattr2] [fs/xattr] 64d47e878a: xfstests.xfs.046.fail

2024-10-06 Thread kernel test robot
/lkp/benchmarks/xfstests/results//xfs/046.out.bad' to see the entire diff) Ran: xfs/046 Failures: xfs/046 Failed 1 of 1 tests The kernel config and materials to reproduce are available at: https://download.01.org/0day-ci/archive/20241006/202410062250.ee92fca7-oliver.s...@intel.com --