Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#59367 - [linux] System lockup with kernels 4.17.4-4.17.6

Attached to Project: Arch Linux
Opened by ValdikSS (ValdikSS) - Tuesday, 17 July 2018, 11:24 GMT
Last edited by Doug Newgard (Scimmia) - Wednesday, 18 July 2018, 17:55 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: Kernel versions 4.17.4-4.17.6 contain bug which lockups the system:
This bug is fixed in kernel 4.17.7 with commit 5ea45736209c8efd04ed793f81084925097f84ed. Please backport it.

commit 5ea45736209c8efd04ed793f81084925097f84ed
Author: Pavel Tatashin <pasha.tatashin@oracle.com>
Date: Sat Jul 14 09:15:07 2018 -0400

mm: zero unavailable pages before memmap init

commit e181ae0c5db9544de9c53239eb22bc012ce75033 upstream.

We must zero struct pages for memory that is not backed by physical
memory, or kernel does not have access to.

Recently, there was a change which zeroed all memmap for all holes in
e820. Unfortunately, it introduced a bug that is discussed here:

https://www.spinics.net/lists/linux-mm/msg156764.html

Linus, also saw this bug on his machine, and confirmed that reverting
commit 124049decbb1 ("x86/e820: put !E820_TYPE_RAM regions into
memblock.reserved") fixes the issue.

The problem is that we incorrectly zero some struct pages after they
were setup.

The fix is to zero unavailable struct pages prior to initializing of
struct pages.

A more detailed fix should come later that would avoid double zeroing
cases: one in __init_single_page(), the other one in
zero_resv_unavail().

Fixes: 124049decbb1 ("x86/e820: put !E820_TYPE_RAM regions into memblock.reserved")

Note that kernel 4.17.7 itself does not boot on 32-bit systems:
https://lkml.org/lkml/2018/7/17/434

This task depends upon

Closed by  Doug Newgard (Scimmia)
Wednesday, 18 July 2018, 17:55 GMT
Reason for closing:  Fixed
Additional comments about closing:  linux 4.17.7-1
Comment by loqs (loqs) - Tuesday, 17 July 2018, 20:54 GMT
Can you confirm linux 4.17.7-1 in testing resolves the issue?
Comment by ValdikSS (ValdikSS) - Wednesday, 18 July 2018, 17:46 GMT
I've tested mainline 4.17.7 and it works fine.

Loading...