Linux PARISC architecture development
 help / color / mirror / Atom feed
From: Helge Deller <deller@gmx.de>
To: Christoph Biedl <linux-kernel.bfrz@manchmal.in-ulm.de>,
	Mike Rapoport <rppt@kernel.org>,
	linux-parisc@vger.kernel.org, Vlastimil Babka <vbabka@suse.cz>
Subject: Re: Regression with kernel 6.4 "swapper: page allocation failure: order:0, mode:0x100(__GFP_ZERO)
Date: Sun, 6 Aug 2023 21:59:08 +0200	[thread overview]
Message-ID: <b9a15934-ea29-ef54-a272-671859d2bc02@gmx.de> (raw)
In-Reply-To: <f361955c-bcea-a424-b3d5-927910ab5f1d@gmx.de>

On 8/6/23 21:54, Helge Deller wrote:
> On 8/6/23 21:21, Christoph Biedl wrote:
>> Christoph Biedl wrote...
>>
>>> Mike Rapoport wrote...
>>>
>>>> Can you check if the patch helps:
>>>>
>>>> diff --git a/arch/parisc/mm/fixmap.c b/arch/parisc/mm/fixmap.c
>>>> index cc15d737fda6..ae3493dae9dc 100644
>>> (...)
>>>
>>> Yes, everything's fine now. Applied on top of v6.5-rc4, there
>>> were some offsets.
>>
>> Now confirmed on top of 6.4.8 as well.
>>
>> However, there's now an issue when reconfiguring the locales package in
>> Debian:
>>
>>      Setting up locales (2.37-7) ...
>>      Generating locales (this might take a while)...
>>        C.UTF-8...cannot map archive header: Invalid argument
>>       done
>>
>> Using 6.3.13, everything is fine.
>>
>> There a Debian bug report #552233 from very old ages about this, the
>> solution suggests this is related to memory management so it might apply
>> here, too.
>
> I'm afraid that my patch:
> commit 32832a407a7178eec3215fad9b1a3298c14b0d69
> Author: Helge Deller <deller@gmx.de>
> Date:   Fri Jul 21 17:24:31 2023 +0200
>
>      io_uring: Fix io_uring mmap() by using architecture-provided get_unmapped_area()
>
> might be the culprit...

could you test this (copy&pasted) patch?
(it will break io_uring, but this is just a test)

diff --git a/arch/parisc/kernel/sys_parisc.c b/arch/parisc/kernel/sys_parisc.c
index ca2d537e25b1..6c94e8da19b7 100644
--- a/arch/parisc/kernel/sys_parisc.c
+++ b/arch/parisc/kernel/sys_parisc.c
@@ -117,7 +117,7 @@ static unsigned long arch_get_unmapped_area_common(struct file *filp,
         do_color_align = 0;
         if (filp || (flags & MAP_SHARED))
                 do_color_align = 1;
-       filp_pgoff = GET_FILP_PGOFF(filp, addr);
+       filp_pgoff = GET_FILP_PGOFF(filp, 0);

         if (flags & MAP_FIXED) {
                 /* Even MAP_FIXED mappings must reside within TASK_SIZE */


  reply	other threads:[~2023-08-06 19:59 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-01 19:37 Regression with kernel 6.4 "swapper: page allocation failure: order:0, mode:0x100(__GFP_ZERO) Christoph Biedl
2023-08-01 21:31 ` John David Anglin
2023-08-02  9:56 ` Mike Rapoport
2023-08-02 19:20   ` Christoph Biedl
2023-08-02 19:55     ` John David Anglin
2023-08-06 19:21     ` Christoph Biedl
2023-08-06 19:54       ` Helge Deller
2023-08-06 19:59         ` Helge Deller [this message]
2023-08-07 18:04           ` [PATCH] io_uring/parisc: Adjust pgoff in io_uring mmap() for parisc Helge Deller
2023-08-07 18:24             ` Jens Axboe
2023-08-07 18:27               ` Helge Deller
2023-08-07 18:33                 ` Jens Axboe
2023-08-07 19:30                   ` Helge Deller
2023-08-07 18:34             ` Jens Axboe
2023-08-07 19:33               ` Helge Deller
2023-08-07 19:55                 ` Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b9a15934-ea29-ef54-a272-671859d2bc02@gmx.de \
    --to=deller@gmx.de \
    --cc=linux-kernel.bfrz@manchmal.in-ulm.de \
    --cc=linux-parisc@vger.kernel.org \
    --cc=rppt@kernel.org \
    --cc=vbabka@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox