Writing to GPT partition on NVM device triggers "Kernel BUG"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
When I try writing a large amount of data to a GPT partition on my NVM SSD using dd, after a second or so I get "kernel BUG" messages in dmesg, and the writing comes to a halt. The machine remains responsive and I can write to other disks, but if I run "sync", it hangs forever.
The bug is 100 % repeatable. To replicate, run:
dd if=/dev/zero of=/dev/nvme0n1p1
This happens only when I write more than 0.5-1.5 GiB to a GPT partition on the NVM device. The bug does not happen in the following cases:
- writing just 500 MB on a GPT partition
- writing to the raw device (/dev/nvme0n1)
- writing to a DOS partition (i.e. when the NVM device is using a DOS style partition table)
The device in question is a 1 TB Samsung 960 EVO M.2 SSD.
Ubuntu release: 17.04
I have dmesg logs available of four instances of this happening, with very similar stack traces. I will be happy to experiment and provide any additional information you may need.
---
ApportVersion: 2.20.4-0ubuntu4.1
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
/dev/snd/
CurrentDesktop: Unity:Unity7
DistroRelease: Ubuntu 17.04
IwConfig:
lo no wireless extensions.
enp0s31f6 no wireless extensions.
MachineType: System manufacturer System Product Name
NonfreeKernelMo
Package: linux (not installed)
ProcFB:
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware 1.164.1
RfKill:
Tags: zesty
Uname: Linux 4.10.0-24-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 09/19/2016
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 2202
dmi.board.
dmi.board.name: Z170-A
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: Rev 1.xx
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: Default string
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: System Product Name
dmi.product.
dmi.sys.vendor: System manufacturer
affects: | ubuntu → linux-hwe-edge (Ubuntu) |
affects: | linux-hwe-edge (Ubuntu) → linux (Ubuntu) |
Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.
To change the source package that this bug is filed about visit https:/ /bugs.launchpad .net/ubuntu/ +bug/1700225/ +editstatus and add the package name in the text box next to the word Package.
[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]