2019-12-16 17:29:23 |
Seth Bromberger |
bug |
|
|
added bug |
2020-01-07 18:40:39 |
Connor Kuehl |
bug task added |
|
linux (Ubuntu) |
|
2020-01-07 18:40:53 |
Connor Kuehl |
nominated for series |
|
Ubuntu Eoan |
|
2020-01-07 18:40:53 |
Connor Kuehl |
bug task added |
|
linux (Ubuntu Eoan) |
|
2020-01-07 18:40:53 |
Connor Kuehl |
bug task added |
|
fstrim (Ubuntu Eoan) |
|
2020-01-07 18:41:08 |
Connor Kuehl |
linux (Ubuntu): status |
New |
Invalid |
|
2020-01-07 18:41:12 |
Connor Kuehl |
linux (Ubuntu Eoan): status |
New |
In Progress |
|
2020-01-07 18:41:13 |
Connor Kuehl |
linux (Ubuntu Eoan): importance |
Undecided |
Medium |
|
2020-01-07 18:41:14 |
Connor Kuehl |
linux (Ubuntu Eoan): assignee |
|
Connor Kuehl (connork) |
|
2020-01-07 18:42:27 |
Connor Kuehl |
bug task deleted |
fstrim (Ubuntu Eoan) |
|
|
2020-01-07 22:04:17 |
Connor Kuehl |
nominated for series |
|
Ubuntu Xenial |
|
2020-01-07 22:04:17 |
Connor Kuehl |
bug task added |
|
linux (Ubuntu Xenial) |
|
2020-01-07 22:04:17 |
Connor Kuehl |
bug task added |
|
fstrim (Ubuntu Xenial) |
|
2020-01-07 22:04:17 |
Connor Kuehl |
nominated for series |
|
Ubuntu Disco |
|
2020-01-07 22:04:17 |
Connor Kuehl |
bug task added |
|
linux (Ubuntu Disco) |
|
2020-01-07 22:04:17 |
Connor Kuehl |
bug task added |
|
fstrim (Ubuntu Disco) |
|
2020-01-07 22:04:17 |
Connor Kuehl |
nominated for series |
|
Ubuntu Bionic |
|
2020-01-07 22:04:17 |
Connor Kuehl |
bug task added |
|
linux (Ubuntu Bionic) |
|
2020-01-07 22:04:17 |
Connor Kuehl |
bug task added |
|
fstrim (Ubuntu Bionic) |
|
2020-01-07 22:04:32 |
Connor Kuehl |
bug task deleted |
fstrim (Ubuntu) |
|
|
2020-01-07 22:04:46 |
Connor Kuehl |
linux (Ubuntu Xenial): status |
New |
In Progress |
|
2020-01-07 22:04:48 |
Connor Kuehl |
linux (Ubuntu Bionic): status |
New |
In Progress |
|
2020-01-07 22:04:49 |
Connor Kuehl |
linux (Ubuntu Disco): status |
New |
In Progress |
|
2020-01-07 22:04:53 |
Connor Kuehl |
linux (Ubuntu Disco): importance |
Undecided |
Medium |
|
2020-01-07 22:04:55 |
Connor Kuehl |
linux (Ubuntu Bionic): importance |
Undecided |
Medium |
|
2020-01-07 22:04:57 |
Connor Kuehl |
linux (Ubuntu Xenial): importance |
Undecided |
Medium |
|
2020-01-07 22:05:00 |
Connor Kuehl |
linux (Ubuntu Bionic): assignee |
|
Connor Kuehl (connork) |
|
2020-01-07 22:05:02 |
Connor Kuehl |
linux (Ubuntu Disco): assignee |
|
Connor Kuehl (connork) |
|
2020-01-07 22:05:05 |
Connor Kuehl |
linux (Ubuntu Xenial): assignee |
|
Connor Kuehl (connork) |
|
2020-01-07 22:05:09 |
Connor Kuehl |
bug task deleted |
fstrim (Ubuntu Xenial) |
|
|
2020-01-07 22:05:11 |
Connor Kuehl |
bug task deleted |
fstrim (Ubuntu Bionic) |
|
|
2020-01-07 22:05:18 |
Connor Kuehl |
bug task deleted |
fstrim (Ubuntu Disco) |
|
|
2020-01-14 18:56:10 |
Connor Kuehl |
description |
/dev/nvme0n1 Sabrent Rocket 4.0 1TB firmware RKT401.1
on Ubuntu 19.10 with an ASRock 300 Deskmini motherboard and a Ryzen 3400G CPU. The filesystem is ext4:
Linux elemental 5.3.0-24-generic #26-Ubuntu SMP Thu Nov 14 01:33:18 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
UUID=c1812230-91be-4a18-8055-c3b7c82fbbd8 / ext4 defaults 0 0
/dev/nvme0n1p2 on / type ext4 (rw,relatime)
When I run fstrim -v / as root, I get the following error message at the command line:
seth@elemental:~$ sudo fstrim -v /
fstrim: /: FITRIM ioctl failed: Input/output error
and the following kernel messages are logged:
[ 136.309115] nvme 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x0 flags=0x0000]
[ 136.309129] nvme 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x700 flags=0x0000]
[ 136.309139] nvme 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x680 flags=0x0000]
[ 136.309150] nvme 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x300 flags=0x0000]
[ 136.309162] nvme 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x200 flags=0x0000]
[ 136.309171] nvme 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x580 flags=0x0000]
[ 136.309180] nvme 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x100 flags=0x0000]
[ 136.309189] nvme 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x400 flags=0x0000]
[ 136.309198] nvme 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x380 flags=0x0000]
[ 136.309207] nvme 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x780 flags=0x0000]
[ 136.309216] amd_iommu_report_page_fault: 1 callbacks suppressed
[ 136.309218] AMD-Vi: Event logged [IO_PAGE_FAULT device=01:00.0 domain=0x0000 address=0x180 flags=0x0000]
[ 136.309228] AMD-Vi: Event logged [IO_PAGE_FAULT device=01:00.0 domain=0x0000 address=0x500 flags=0x0000]
[ 136.309238] AMD-Vi: Event logged [IO_PAGE_FAULT device=01:00.0 domain=0x0000 address=0x480 flags=0x0000]
[ 136.309250] AMD-Vi: Event logged [IO_PAGE_FAULT device=01:00.0 domain=0x0000 address=0x280 flags=0x0000]
[ 136.309259] AMD-Vi: Event logged [IO_PAGE_FAULT device=01:00.0 domain=0x0000 address=0x600 flags=0x0000]
[ 136.309269] AMD-Vi: Event logged [IO_PAGE_FAULT device=01:00.0 domain=0x0000 address=0x80 flags=0x0000]
[ 136.309279] AMD-Vi: Event logged [IO_PAGE_FAULT device=01:00.0 domain=0x0000 address=0x980 flags=0x0000]
[ 136.309291] AMD-Vi: Event logged [IO_PAGE_FAULT device=01:00.0 domain=0x0000 address=0x900 flags=0x0000]
[ 136.309301] AMD-Vi: Event logged [IO_PAGE_FAULT device=01:00.0 domain=0x0000 address=0x880 flags=0x0000]
[ 136.309311] AMD-Vi: Event logged [IO_PAGE_FAULT device=01:00.0 domain=0x0000 address=0xa00 flags=0x0000]
[ 136.309762] blk_update_request: I/O error, dev nvme0n1, sector 1141976 op 0x3:(DISCARD) flags 0x800 phys_seg 1 prio class 0
I have tried setting iommu passthrough on boot but this doesn’t seem to help:
GRUB_CMDLINE_LINUX_DEFAULT="amd_iommu=pt avic=1”
This is possibly related to:
https://bugzilla.kernel.org/show_bug.cgi?id=202665
http://git.infradead.org/nvme.git/commitdiff/530436c45ef2e446c12538a400e465929a0b3ade?hp=400b6a7b13a3fd71cff087139ce45dd1e5fff444 |
[Impact]
Discard requests can fail on a non-compliant nvme device meaning that prescribed maintenance use of fstrim will be unsuccessful and unused blocks are no longer properly disposed of.
[Test case]
Run fstrim (from bug report, ran as root: fstrim -v /)
Expected result: "/: 758.3 GiB (814159003648 bytes) trimmed" -- will vary depending on the blocks that are unused for your system
Unpatched actual result: "fstrim: /: FITRIM ioctl failed: Input/output error"
[Regression Potential]
This patch only increases the size of a memory allocation and does not add any changes in logic for error handling or normal flow of control. This routine already handles the case where the memory allocation fails. Because of this, it is a low risk change.
Original bug description below:
--------------------------------------
/dev/nvme0n1 Sabrent Rocket 4.0 1TB firmware RKT401.1
on Ubuntu 19.10 with an ASRock 300 Deskmini motherboard and a Ryzen 3400G CPU. The filesystem is ext4:
Linux elemental 5.3.0-24-generic #26-Ubuntu SMP Thu Nov 14 01:33:18 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
UUID=c1812230-91be-4a18-8055-c3b7c82fbbd8 / ext4 defaults 0 0
/dev/nvme0n1p2 on / type ext4 (rw,relatime)
When I run fstrim -v / as root, I get the following error message at the command line:
seth@elemental:~$ sudo fstrim -v /
fstrim: /: FITRIM ioctl failed: Input/output error
and the following kernel messages are logged:
[ 136.309115] nvme 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x0 flags=0x0000]
[ 136.309129] nvme 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x700 flags=0x0000]
[ 136.309139] nvme 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x680 flags=0x0000]
[ 136.309150] nvme 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x300 flags=0x0000]
[ 136.309162] nvme 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x200 flags=0x0000]
[ 136.309171] nvme 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x580 flags=0x0000]
[ 136.309180] nvme 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x100 flags=0x0000]
[ 136.309189] nvme 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x400 flags=0x0000]
[ 136.309198] nvme 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x380 flags=0x0000]
[ 136.309207] nvme 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x780 flags=0x0000]
[ 136.309216] amd_iommu_report_page_fault: 1 callbacks suppressed
[ 136.309218] AMD-Vi: Event logged [IO_PAGE_FAULT device=01:00.0 domain=0x0000 address=0x180 flags=0x0000]
[ 136.309228] AMD-Vi: Event logged [IO_PAGE_FAULT device=01:00.0 domain=0x0000 address=0x500 flags=0x0000]
[ 136.309238] AMD-Vi: Event logged [IO_PAGE_FAULT device=01:00.0 domain=0x0000 address=0x480 flags=0x0000]
[ 136.309250] AMD-Vi: Event logged [IO_PAGE_FAULT device=01:00.0 domain=0x0000 address=0x280 flags=0x0000]
[ 136.309259] AMD-Vi: Event logged [IO_PAGE_FAULT device=01:00.0 domain=0x0000 address=0x600 flags=0x0000]
[ 136.309269] AMD-Vi: Event logged [IO_PAGE_FAULT device=01:00.0 domain=0x0000 address=0x80 flags=0x0000]
[ 136.309279] AMD-Vi: Event logged [IO_PAGE_FAULT device=01:00.0 domain=0x0000 address=0x980 flags=0x0000]
[ 136.309291] AMD-Vi: Event logged [IO_PAGE_FAULT device=01:00.0 domain=0x0000 address=0x900 flags=0x0000]
[ 136.309301] AMD-Vi: Event logged [IO_PAGE_FAULT device=01:00.0 domain=0x0000 address=0x880 flags=0x0000]
[ 136.309311] AMD-Vi: Event logged [IO_PAGE_FAULT device=01:00.0 domain=0x0000 address=0xa00 flags=0x0000]
[ 136.309762] blk_update_request: I/O error, dev nvme0n1, sector 1141976 op 0x3:(DISCARD) flags 0x800 phys_seg 1 prio class 0
I have tried setting iommu passthrough on boot but this doesn’t seem to help:
GRUB_CMDLINE_LINUX_DEFAULT="amd_iommu=pt avic=1”
This is possibly related to:
https://bugzilla.kernel.org/show_bug.cgi?id=202665
http://git.infradead.org/nvme.git/commitdiff/530436c45ef2e446c12538a400e465929a0b3ade?hp=400b6a7b13a3fd71cff087139ce45dd1e5fff444 |
|
2020-01-14 19:00:38 |
Connor Kuehl |
bug task deleted |
linux (Ubuntu Xenial) |
|
|
2020-01-29 04:21:38 |
Khaled El Mously |
linux (Ubuntu Bionic): status |
In Progress |
Fix Committed |
|
2020-01-29 04:21:54 |
Khaled El Mously |
linux (Ubuntu Disco): status |
In Progress |
Fix Committed |
|
2020-01-29 04:21:56 |
Khaled El Mously |
linux (Ubuntu Eoan): status |
In Progress |
Fix Committed |
|
2020-02-03 22:43:47 |
Ubuntu Kernel Bot |
tags |
amd fstrim nvme |
amd fstrim nvme verification-needed-eoan |
|
2020-02-03 23:12:14 |
Ubuntu Kernel Bot |
tags |
amd fstrim nvme verification-needed-eoan |
amd fstrim nvme verification-needed-bionic verification-needed-eoan |
|
2020-02-13 03:13:03 |
Khaled El Mously |
tags |
amd fstrim nvme verification-needed-bionic verification-needed-eoan |
amd fstrim nvme verification-done-bionic verification-done-eoan |
|
2020-02-17 10:23:38 |
Launchpad Janitor |
linux (Ubuntu Eoan): status |
Fix Committed |
Fix Released |
|
2020-02-17 10:23:38 |
Launchpad Janitor |
cve linked |
|
2019-19050 |
|
2020-02-17 10:23:38 |
Launchpad Janitor |
cve linked |
|
2019-19077 |
|
2020-02-17 10:23:38 |
Launchpad Janitor |
cve linked |
|
2019-19078 |
|
2020-02-17 10:23:38 |
Launchpad Janitor |
cve linked |
|
2019-19082 |
|
2020-02-17 10:23:38 |
Launchpad Janitor |
cve linked |
|
2019-19332 |
|
2020-02-17 10:23:38 |
Launchpad Janitor |
cve linked |
|
2019-19965 |
|
2020-02-17 10:36:02 |
Launchpad Janitor |
linux (Ubuntu Bionic): status |
Fix Committed |
Fix Released |
|
2020-02-17 10:36:02 |
Launchpad Janitor |
cve linked |
|
2019-18885 |
|
2020-02-17 10:36:02 |
Launchpad Janitor |
cve linked |
|
2019-20096 |
|
2020-02-17 10:36:02 |
Launchpad Janitor |
cve linked |
|
2019-5108 |
|
2020-07-02 19:54:14 |
Steve Langasek |
linux (Ubuntu Disco): status |
Fix Committed |
Won't Fix |
|