lscpu crashs when /dev/mem is not stable to read
Bug #1674258 reported by
Ike Panhc
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
util-linux (Ubuntu) |
Fix Released
|
Undecided
|
Ike Panhc | ||
Xenial |
Fix Released
|
Undecided
|
Ike Panhc | ||
Yakkety |
Fix Released
|
Undecided
|
Ike Panhc | ||
Zesty |
Fix Released
|
Undecided
|
Ike Panhc |
Bug Description
[Impact]
* Read from /dev/mem and scan DMI tables is dangerous, if /dev/mem is not stable to read, it will cause lscpu crash.
[Test Case]
* `sudo lscpu` shall not cause Segmentation fault (core dumped)
[Regression Potential]
* Reading from DMI tables is sysfs is more stable then reading from /dev/mem and if DMI tables is not available lscpu will use the old way to search in /dev/mem. I believe its low regression risk
Changed in util-linux (Ubuntu): | |
assignee: | nobody → Ike Panhc (ikepanhc) |
Changed in util-linux (Ubuntu Xenial): | |
status: | New → In Progress |
Changed in util-linux (Ubuntu Yakkety): | |
status: | New → In Progress |
Changed in util-linux (Ubuntu Zesty): | |
status: | New → In Progress |
assignee: | nobody → Ike Panhc (ikepanhc) |
Changed in util-linux (Ubuntu Yakkety): | |
assignee: | nobody → Ike Panhc (ikepanhc) |
Changed in util-linux (Ubuntu Xenial): | |
assignee: | nobody → Ike Panhc (ikepanhc) |
description: | updated |
description: | updated |
tags: |
added: verification-done-xenial verification-done-yakkety verification-done-zesty removed: verification-done |
To post a comment you must log in.
upstream patch found.
https:/ /git.kernel. org/pub/ scm/utils/ util-linux/ util-linux. git/commit/ ?id=92a6392c41c 11bcb49af9f129d fbd1fed651f044