Raspberry Pi 3B plus cpuinfo
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-raspi2 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
Missing model name, hardware revision etc. from /proc/cpuinfo.
[Test Case]
'cat /proc/cpuinfo' should show something like:
Hardware : BCM2835
Revision : a02082
Serial : 00000000f13010a2
[Fix]
Backport commit 935eb6f9a319 ("arch/arm64: Add Revision, Serial, Model to cpuinfo") from raspberry/linux rpi-4.19.y.
[Regression Potential]
Low. Isolated and simple fix.
[Original Description]
# OS
```
$ uname -a
Linux host-name 4.15.0-1033-raspi2 #35-Ubuntu SMP PREEMPT Fri Mar 15 15:53:58 UTC 2019 aarch64 aarch64 aarch64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
```
# expected cpuinfo
with "model name", "Hardware", "Revision" etc.
some example from raspbian armhf
```
processor : 0
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
.
.
.
Hardware : BCM2835
Revision : a02082
Serial : 00000000f13010a2
```
# actual cpuinfo
This causes golang unable to detect platform.
```
$ cat /proc/cpuinfo
processor : 0
BogoMIPS : 38.40
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 1
BogoMIPS : 38.40
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 2
BogoMIPS : 38.40
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 3
BogoMIPS : 38.40
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
```
CVE References
description: | updated |
no longer affects: | ubuntu-mate |
affects: | cpuinfo (Ubuntu) → linux-raspi2 (Ubuntu) |
description: | updated |
Changed in linux-raspi2 (Ubuntu Bionic): | |
status: | New → Fix Committed |
Still affected on Ubuntu Mate 18.04.02 64-bit.
Any fix or workaround out their?