Bug#974157: linux-image-5.9.0-2-686-pae: prints incorrect highmem if memory >= 4GB

2020-11-10 Thread Ryutaroh Matsumoto
Package: src:linux
Followup-For: Bug #974157
Control: tags -1 + buster bullseye sid
Control: found -1 4.19.152-1
Control: found -1 4.19+105+deb10u7

Dear Maintainer,

This symptom is also ovserved with Buster's following packages:
linux-image-4.19.0-12-686-pae   4.19.152-1
linux-image-686-pae 4.19+105+deb10u7

Ryutaroh

-- System Information:
Debian Release: 10.6
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 4.19.0-12-686-pae (SMP w/6 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled



Bug#974157: linux-image-5.9.0-2-686-pae: prints incorrect highmem if memory >= 4GB

2020-11-10 Thread Ryutaroh Matsumoto
Package: src:linux
Version: 5.9.6-1
Severity: minor

Dear Maintainer,

This symptom is observed in a qemu-system-i386 guest.
When 4GB or more memory is given by -m option to qemu,
the amounts of highmem are printed as


[0.021084] 5656MB HIGHMEM available.
[0.021085] 487MB LOWMEM available.
[0.260926] Memory: 3968828K/4158180K available (7846K kernel code, 770K 
rwdata, 2372K rodata, 868K init, 480K bss, 189352K reserved, 0K cma-reserved, 
3649456K highmem)

Two inconsistent amounts are printed as above.
I do not observe this when I give 2GB memory to qemu-system-i386.

There seems no actual inconvenience by this, though.

Best regards, Ryutaroh Matsumoto


-- Package-specific info:
** Version:
Linux version 5.9.0-2-686-pae (debian-kernel@lists.debian.org) (gcc-10 (Debian 
10.2.0-16) 10.2.0, GNU ld (GNU Binutils for Debian) 2.35.1) #1 SMP Debian 
5.9.6-1 (2020-11-08)

** Command line:
BOOT_IMAGE=/boot/vmlinuz-5.9.0-2-686-pae 
root=UUID=70ea2c03-79ae-4c46-a442-0c9d26ebf9c7 ro console=ttyS0 vmalloc=512M 
systemd.unified_cgroup_hierarchy=1

** Not tainted

** Kernel log:

[0.00] Linux version 5.9.0-2-686-pae (debian-kernel@lists.debian.org) 
(gcc-10 (Debian 10.2.0-16) 10.2.0, GNU ld (GNU Binutils for Debian) 2.35.1) #1 
SMP Debian 5.9.6-1 (2020-11-08)
[0.00] x86/fpu: x87 FPU will use FXSAVE
[0.00] BIOS-provided physical RAM map:
[0.00] BIOS-e820: [mem 0x-0x0002] usable
[0.00] BIOS-e820: [mem 0x0003-0x0004] reserved
[0.00] BIOS-e820: [mem 0x0005-0x0009dfff] usable
[0.00] BIOS-e820: [mem 0x0009e000-0x0009] reserved
[0.00] BIOS-e820: [mem 0x0010-0x00806fff] usable
[0.00] BIOS-e820: [mem 0x00807000-0x00807fff] ACPI NVS
[0.00] BIOS-e820: [mem 0x00808000-0x0080] usable
[0.00] BIOS-e820: [mem 0x0081-0x0170] ACPI NVS
[0.00] BIOS-e820: [mem 0x0171-0x7af6] usable
[0.00] BIOS-e820: [mem 0x7af73000-0x7eba2fff] usable
[0.00] BIOS-e820: [mem 0x7eba3000-0x7ee22fff] reserved
[0.00] BIOS-e820: [mem 0x7ee23000-0x7ee32fff] ACPI data
[0.00] BIOS-e820: [mem 0x7ee33000-0x7eeb2fff] ACPI NVS
[0.00] BIOS-e820: [mem 0x7eeb3000-0x7ef4] usable
[0.00] BIOS-e820: [mem 0x7ef5-0x7eff] ACPI NVS
[0.00] BIOS-e820: [mem 0x7f00-0x7fff] reserved
[0.00] BIOS-e820: [mem 0xb000-0xbfff] reserved
[0.00] BIOS-e820: [mem 0x0001-0x00017fff] usable
[0.00] Notice: NX (Execute Disable) protection missing in CPU!
[0.00] e820: update [mem 0x7d438010-0x7d441a3b] usable ==> usable
[0.00] e820: update [mem 0x7d438010-0x7d441a3b] usable ==> usable
[0.00] e820: update [mem 0x7d3fb010-0x7d437c3b] usable ==> usable
[0.00] e820: update [mem 0x7d3fb010-0x7d437c3b] usable ==> usable
[0.00] extended physical RAM map:
[0.00] reserve setup_data: [mem 0x-0x0002] 
usable
[0.00] reserve setup_data: [mem 0x0003-0x0004] 
reserved
[0.00] reserve setup_data: [mem 0x0005-0x0009dfff] 
usable
[0.00] reserve setup_data: [mem 0x0009e000-0x0009] 
reserved
[0.00] reserve setup_data: [mem 0x0010-0x00806fff] 
usable
[0.00] reserve setup_data: [mem 0x00807000-0x00807fff] 
ACPI NVS
[0.00] reserve setup_data: [mem 0x00808000-0x0080] 
usable
[0.00] reserve setup_data: [mem 0x0081-0x0170] 
ACPI NVS
[0.00] reserve setup_data: [mem 0x0171-0x7af6] 
usable
[0.00] reserve setup_data: [mem 0x7af73000-0x7d3fb00f] 
usable
[0.00] reserve setup_data: [mem 0x7d3fb010-0x7d437c3b] 
usable
[0.00] reserve setup_data: [mem 0x7d437c3c-0x7d43800f] 
usable
[0.00] reserve setup_data: [mem 0x7d438010-0x7d441a3b] 
usable
[0.00] reserve setup_data: [mem 0x7d441a3c-0x7eba2fff] 
usable
[0.00] reserve setup_data: [mem 0x7eba3000-0x7ee22fff] 
reserved
[0.00] reserve setup_data: [mem 0x7ee23000-0x7ee32fff] 
ACPI data
[0.00] reserve setup_data: [mem 0x7ee33000-0x7eeb2fff] 
ACPI NVS
[0.00] reserve setup_data: [mem 0x7eeb3000-0x7ef4] 
usable
[0.00] reserve setup_data: [mem 0x7ef5-0x7eff] 
ACPI NVS
[0.00] reserve setup_data: [mem 0x7f00-0x7fff] 
reserved
[0.00] reserve setup_data: [mem