Re: [PATCH 00/10] Account page tables at all levels

2024-12-20 Thread Dave Hansen
this together yesterday: > https://git.kernel.org/pub/scm/linux/kernel/git/daveh/devel.git/log/?h=simplify-pae-20241220 It definitely needs some more work. I'm particularly still puzzling about why SHARED_KERNEL_PMD is used both as a trigger for 32b vs. PAGE_SIZE PAE pgd allocations _and

[PATCH AUTOSEL 5.15 9/9] ARC: build: Try to guess GCC variant of cross compiler

2024-12-20 Thread Sasha Levin
From: Leon Romanovsky [ Upstream commit 824927e88456331c7a999fdf5d9d27923b619590 ] ARC GCC compiler is packaged starting from Fedora 39i and the GCC variant of cross compile tools has arc-linux-gnu- prefix and not arc-linux-. This is causing that CROSS_COMPILE variable is left unset. This chang

[PATCH AUTOSEL 6.6 16/16] ARC: build: Try to guess GCC variant of cross compiler

2024-12-20 Thread Sasha Levin
From: Leon Romanovsky [ Upstream commit 824927e88456331c7a999fdf5d9d27923b619590 ] ARC GCC compiler is packaged starting from Fedora 39i and the GCC variant of cross compile tools has arc-linux-gnu- prefix and not arc-linux-. This is causing that CROSS_COMPILE variable is left unset. This chang

[PATCH AUTOSEL 6.12 27/29] ARC: build: Try to guess GCC variant of cross compiler

2024-12-20 Thread Sasha Levin
From: Leon Romanovsky [ Upstream commit 824927e88456331c7a999fdf5d9d27923b619590 ] ARC GCC compiler is packaged starting from Fedora 39i and the GCC variant of cross compile tools has arc-linux-gnu- prefix and not arc-linux-. This is causing that CROSS_COMPILE variable is left unset. This chang

[PATCH AUTOSEL 5.4 6/6] ARC: build: Try to guess GCC variant of cross compiler

2024-12-20 Thread Sasha Levin
From: Leon Romanovsky [ Upstream commit 824927e88456331c7a999fdf5d9d27923b619590 ] ARC GCC compiler is packaged starting from Fedora 39i and the GCC variant of cross compile tools has arc-linux-gnu- prefix and not arc-linux-. This is causing that CROSS_COMPILE variable is left unset. This chang

[PATCH AUTOSEL 5.10 7/7] ARC: build: Try to guess GCC variant of cross compiler

2024-12-20 Thread Sasha Levin
From: Leon Romanovsky [ Upstream commit 824927e88456331c7a999fdf5d9d27923b619590 ] ARC GCC compiler is packaged starting from Fedora 39i and the GCC variant of cross compile tools has arc-linux-gnu- prefix and not arc-linux-. This is causing that CROSS_COMPILE variable is left unset. This chang

[PATCH AUTOSEL 6.1 12/12] ARC: build: Try to guess GCC variant of cross compiler

2024-12-20 Thread Sasha Levin
From: Leon Romanovsky [ Upstream commit 824927e88456331c7a999fdf5d9d27923b619590 ] ARC GCC compiler is packaged starting from Fedora 39i and the GCC variant of cross compile tools has arc-linux-gnu- prefix and not arc-linux-. This is causing that CROSS_COMPILE variable is left unset. This chang

[PATCH AUTOSEL 6.12 19/29] ARC: bpf: Correct conditional check in 'check_jmp_32'

2024-12-20 Thread Sasha Levin
From: Hardevsinh Palaniya [ Upstream commit 7dd9eb6ba88964b091b89855ce7d2a12405013af ] The original code checks 'if (ARC_CC_AL)', which is always true since ARC_CC_AL is a constant. This makes the check redundant and likely obscures the intention of verifying whether the jump is conditional. Up

[PATCH AUTOSEL 6.12 17/29] ARC: build: disallow invalid PAE40 + 4K page config

2024-12-20 Thread Sasha Levin
From: Vineet Gupta [ Upstream commit 8871331b1769978ecece205a430338a2581e5050 ] The config option being built was | CONFIG_ARC_MMU_V4=y | CONFIG_ARC_PAGE_SIZE_4K=y | CONFIG_HIGHMEM=y | CONFIG_ARC_HAS_PAE40=y This was hitting a BUILD_BUG_ON() since a 4K page can't hoist 1k, 8-byte PTE entries (8

[PATCH AUTOSEL 6.12 18/29] ARC: build: Use __force to suppress per-CPU cmpxchg warnings

2024-12-20 Thread Sasha Levin
From: "Paul E. McKenney" [ Upstream commit 1e8af9f04346ecc0bccf0c53b728fc8eb3490a28 ] Currently, the cast of the first argument to cmpxchg_emu_u8() drops the __percpu address-space designator, which results in sparse complaints when applying cmpxchg() to per-CPU variables in ARC. Therefore, use

Re: [PATCH 00/10] Account page tables at all levels

2024-12-20 Thread Dave Hansen
On 12/20/24 02:58, Kevin Brodsky wrote: >> Acked-by: Dave Hansen > Just to double-check, are your ack'ing the x86 changes specifically? If > so I'll add your Acked-by on patch 6, 7 and 9. Feel free to add it to each patch in the series. ___ linux-snps-

Re: [PATCH 01/10] mm: Move common parts of pagetable_*_[cd]tor to helpers

2024-12-20 Thread Qi Zheng
On 2024/12/20 22:28, Kevin Brodsky wrote: On 20/12/2024 15:16, Qi Zheng wrote: Did I miss something? My patch series is not only for cleanup, but also for fixes of UAF issue [1], so is it possible to rebase your patch series onto mine? I can post v3 ASAP. I see, yours should be merged firs

Re: [PATCH 01/10] mm: Move common parts of pagetable_*_[cd]tor to helpers

2024-12-20 Thread Kevin Brodsky
On 20/12/2024 15:16, Qi Zheng wrote: >>> >>> Did I miss something? >>> >>> My patch series is not only for cleanup, but also for fixes of >>> UAF issue [1], so is it possible to rebase your patch series onto >>> mine? I can post v3 ASAP. >> >> I see, yours should be merged first then. The issue is

Re: [PATCH 01/10] mm: Move common parts of pagetable_*_[cd]tor to helpers

2024-12-20 Thread Qi Zheng
On 2024/12/20 21:50, Kevin Brodsky wrote: On 20/12/2024 12:46, Qi Zheng wrote: Hi Kevin, On 2024/12/20 18:49, Kevin Brodsky wrote: [...] Qi, shall we collaborate to make our series complementary? I believe my series covers patch 2 and 4 of your series, but it goes further by covering all le

Re: [PATCH 01/10] mm: Move common parts of pagetable_*_[cd]tor to helpers

2024-12-20 Thread Kevin Brodsky
On 20/12/2024 12:46, Qi Zheng wrote: > Hi Kevin, > > On 2024/12/20 18:49, Kevin Brodsky wrote: >> [...] >> >> Qi, shall we collaborate to make our series complementary? I believe my >> series covers patch 2 and 4 of your series, but it goes further by >> covering all levels and all architectures, a

Re: [PATCH 01/10] mm: Move common parts of pagetable_*_[cd]tor to helpers

2024-12-20 Thread Qi Zheng
Hi Kevin, On 2024/12/20 18:49, Kevin Brodsky wrote: Hi Peter, Qi, On 19/12/2024 18:19, Peter Zijlstra wrote: On Thu, Dec 19, 2024 at 04:44:16PM +, Kevin Brodsky wrote: Besides the ptlock management at PTE/PMD level, all the pagetable_*_[cd]tor have the same implementation. Introduce commo

Re: [PATCH 00/10] Account page tables at all levels

2024-12-20 Thread Kevin Brodsky
On 19/12/2024 18:13, Dave Hansen wrote: > On 12/19/24 08:44, Kevin Brodsky wrote: >> >> +---+-+---+--++ >> | x86 | Y | Y | Y/N >>

Re: [PATCH 01/10] mm: Move common parts of pagetable_*_[cd]tor to helpers

2024-12-20 Thread Kevin Brodsky
Hi Peter, Qi, On 19/12/2024 18:19, Peter Zijlstra wrote: > On Thu, Dec 19, 2024 at 04:44:16PM +, Kevin Brodsky wrote: >> Besides the ptlock management at PTE/PMD level, all the >> pagetable_*_[cd]tor have the same implementation. Introduce common >> helpers for all levels to reduce the duplica