Re: Regression with kernel 6.4 "swapper: page allocation failure: order:0, mode:0x100(__GFP_ZERO)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxx>
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 */





[Index of Archives]     [Linux SoC]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux