[UBUNTU 22.04] Running smartctl on NVME hit segmentation fault
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu on IBM z Systems |
Fix Released
|
High
|
Skipper Bug Screeners | ||
smartmontools (Ubuntu) |
Fix Released
|
High
|
Zhaoxuan Zhai | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned | ||
Lunar |
Won't Fix
|
Undecided
|
Unassigned | ||
Mantic |
Fix Released
|
Undecided
|
Zhaoxuan Zhai |
Bug Description
[ Impact ]
* smartmontools crash when it is reading NVME error log on a big-endian system.
[ Test Plan ]
* Prepare a big-endian system (like an Ubuntu on s390x)
and attach an NVME drive to it.
This nvme drive could have error logs, but it's ok if it doesn't.
* Run `sudo smartctl -i -a /dev/nvme0` against NVME drive to get SMART data
and hit Segmentation fault.
* Run this command again with patched smartctl will show SMART data and error
logs normally
[ Where problems could occur ]
* The process of reading error log page from NVME device on big-endian system.
[ Other Info ]
* Ubuntu 'noble' is not affected, since it incl. v7.4 which incl. the fix already.
* We skip 23.04, since it is too close to end of life (in about 2 weeks from now).
-------
== Comment: #0 - SCHAYNE BELLROSE <email address hidden> - 2023-10-31 10:08:10 ==
---Problem Description---
Ran sudo smartctl -i -a /dev/nvme0 against NVME drive to get SMART data but hit Segmentation fault
Contact Information = Schayne <email address hidden>
---Additional Hardware Info---
DPM system and added Storage group contains a NVME drive set for data.
---uname output---
Linux t249sb2 5.15.0-87-generic #97-Ubuntu SMP Mon Oct 2 21:11:23 UTC 2023 s390x s390x s390x GNU/Linux
Machine Type = 3932
---Steps to Reproduce---
Run the following command
smartctl -i -a /dev/nvme0
*Additional Instructions for Schayne <email address hidden>:
-Post a private note with access information to the machine that the bug is occuring on.
tags: | added: architecture-s39064 bugnameltc-203947 severity-medium targetmilestone-inin--- |
Changed in ubuntu: | |
assignee: | nobody → Skipper Bug Screeners (skipper-screen-team) |
affects: | ubuntu → linux (Ubuntu) |
information type: | Public → Public Security |
information type: | Public Security → Public |
affects: | linux (Ubuntu) → smartmontools (Ubuntu) |
Changed in smartmontools (Ubuntu): | |
status: | New → Triaged |
Changed in ubuntu-z-systems: | |
status: | New → Triaged |
assignee: | nobody → Skipper Bug Screeners (skipper-screen-team) |
importance: | Undecided → High |
Changed in smartmontools (Ubuntu): | |
importance: | Undecided → High |
assignee: | Skipper Bug Screeners (skipper-screen-team) → Zhaoxuan Zhai (kxuan) |
Changed in smartmontools (Ubuntu): | |
status: | Triaged → In Progress |
Changed in ubuntu-z-systems: | |
status: | Triaged → In Progress |
Changed in smartmontools (Ubuntu Mantic): | |
assignee: | nobody → Zhaoxuan Zhai (kxuan) |
tags: |
added: targetmilestone-inin2204 removed: targetmilestone-inin--- |
tags: |
added: verification-done-jammy removed: verification-needed-jammy |
Changed in ubuntu-z-systems: | |
status: | In Progress → Fix Committed |
description: | updated |
Changed in ubuntu-z-systems: | |
status: | Fix Committed → Fix Released |
tags: |
added: verification-done removed: verification-needed |
------- Comment From <email address hidden> 2023-11-06 19:32 EDT------- /github. com/smartmontoo ls/smartmontool s/issues/ 172 error_log( )"
--- Comment from Niklas S. ---
This is almost certainly the same problem as described in this upstream issue:
https:/
"On Big-Endian systems smartctl -a /dev/nvmeXnY may segfault in nvme_read_