Re: [PATCH mm-unstable RFC 00/26] mm: support __HAVE_ARCH_PTE_SWP_EXCLUSIVE on all architectures with swap PTEs

2022-12-18 Thread David Hildenbrand
On 18.12.22 04:32, Huacai Chen wrote: Hi, David, What is the opposite of exclusive here? Shared or inclusive? I prefer pte_swp_mkshared() or pte_swp_mkinclusive() rather than pte_swp_clear_exclusive(). Existing examples: dirty/clean, young/old ... Hi Huacai, thanks for having a look! Please

Re: [PATCH] vdso: Improve cmd_vdso_check to check all dynamic relocations

2022-12-18 Thread Fangrui Song
On Sun, Dec 4, 2022 at 8:58 AM Christophe Leroy wrote: > > > > Le 04/12/2022 à 05:50, Fangrui Song a écrit : > > On Mon, Nov 14, 2022 at 4:46 PM Fangrui Song wrote: > >> > >> On 2022-11-14, Christophe Leroy wrote: > >>> > >>> > >>> Le 28/09/2022 à 07:25, Fangrui Song a écrit : > On Sat, Sep

[Bug 216368] do_IRQ: stack overflow at boot during btrfs handling on a PowerMac G5 11,2

2022-12-18 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216368 --- Comment #7 from Erhard F. (erhar...@mailbox.org) --- Created attachment 303424 --> https://bugzilla.kernel.org/attachment.cgi?id=303424&action=edit dmesg (6.1.0, PowerMac G5 11,2) Still in v6.1.0. Happens sometimes at boot on my G5: [...]

[Bug 216368] do_IRQ: stack overflow at boot during btrfs handling on a PowerMac G5 11,2

2022-12-18 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216368 --- Comment #8 from Erhard F. (erhar...@mailbox.org) --- Created attachment 303425 --> https://bugzilla.kernel.org/attachment.cgi?id=303425&action=edit kernel .config (6.1.0, PowerMac G5 11,2) -- You may reply to this email to add a comment.

Re: [PATCH mm-unstable RFC 00/26] mm: support __HAVE_ARCH_PTE_SWP_EXCLUSIVE on all architectures with swap PTEs

2022-12-18 Thread Huacai Chen
On Sun, Dec 18, 2022 at 5:59 PM David Hildenbrand wrote: > > On 18.12.22 04:32, Huacai Chen wrote: > > Hi, David, > > > > What is the opposite of exclusive here? Shared or inclusive? I prefer > > pte_swp_mkshared() or pte_swp_mkinclusive() rather than > > pte_swp_clear_exclusive(). Existing exampl

[PATCH] boot: simple_alloc: check after increasing memory allocation

2022-12-18 Thread Li zeming
The pointer new adds judgment and should help with program robustness. Signed-off-by: Li zeming --- arch/powerpc/boot/simple_alloc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/boot/simple_alloc.c b/arch/powerpc/boot/simple_alloc.c index 267d6524caac..db9a

[GIT PULL] Please pull powerpc/linux.git powerpc-6.2-1 tag

2022-12-18 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull powerpc updates for 6.2. There's one conflict with your tree in tools/objtool/check.c. The correct resolution is to combine the changes, which should look like: if (!insn || !insn_func(insn)) cheers Notable out of a

Re: [PATCH] powerpc/code-patching: Fix oops with DEBUG_VM enabled

2022-12-18 Thread Michael Ellerman
On Fri, 16 Dec 2022 23:59:13 +1100, Michael Ellerman wrote: > Nathan reported that the new per-cpu mm patching oopses if DEBUG_VM is > enabled: > > [ cut here ] > kernel BUG at arch/powerpc/mm/pgtable.c:333! > Oops: Exception in kernel mode, sig: 5 [#1] > LE PAGE_SI

Re: [PATCH] powerpc/64: Implement arch_within_stack_frames

2022-12-18 Thread Nicholas Miehlbradt
On 14/12/2022 10:39 pm, Nicholas Piggin wrote: On Wed Dec 14, 2022 at 6:39 PM AEST, Christophe Leroy wrote: Le 14/12/2022 à 05:42, Nicholas Miehlbradt a écrit : Walks the stack when copy_{to,from}_user address is in the stack to ensure that the object being copied is entirely within a sing

Re: [PATCH] boot: simple_alloc: check after increasing memory allocation

2022-12-18 Thread Christophe Leroy
Le 19/12/2022 à 03:18, Li zeming a écrit : > The pointer new adds judgment and should help with program robustness. This text is not understandable. Do you mean: simple_malloc() will return NULL when there is now enough memory left. Check pointer 'new' before using it to copy the old data. >