Bug 196077
Summary: | mkfs.xfs on lv mirrior which include SSD will lead to NULL pointer | ||
---|---|---|---|
Product: | IO/Storage | Reporter: | yizhan |
Component: | LVM2/DM | Assignee: | Mike Snitzer (snitzer) |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | CC: | snitzer |
Priority: | P1 | ||
Hardware: | x86-64 | ||
OS: | Linux | ||
Kernel Version: | 4.12.0-rc5 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
yizhan
2017-06-15 04:19:46 UTC
This was reported via RedHat QE on 6/14/2017 so I was aware of this. I'll work on a fix and will report back once I it. (In reply to Mike Snitzer from comment #1) > This was reported via RedHat QE on 6/14/2017 so I was aware of this. > > I'll work on a fix and will report back once I it. Heh, Zhang Yi... you already reported this. Not sure why we need a kernel.org bug too. Please don't do this in the future! If you'd like to raise awareness, or ping developers if you feel we've been unresponsive, post to dm-devel@redhat.com (In reply to Mike Snitzer from comment #2) > (In reply to Mike Snitzer from comment #1) > > This was reported via RedHat QE on 6/14/2017 so I was aware of this. > > > > I'll work on a fix and will report back once I it. > > Heh, Zhang Yi... you already reported this. Not sure why we need a > kernel.org bug too. > Hi Mike I want to track this issue with upstream. > Please don't do this in the future! If you'd like to raise awareness, or > ping developers if you feel we've been unresponsive, post to > dm-devel@redhat.com OK, I will post to dm-devel@ next time, thanks for reminder. Yi I reproduced on my testbed. It is definitely an issue with how dm-mirror is processing discards (via dm-io). If I stop having mkfs.xfs issue discards (using mkfs.xfs -K) then I don't see the crash. If I let mkfs.xfs issue discards it crashes as reported. Given it is so easy to reproduce I expect to have a fix by end of day. Fixed, this will be included in 4.12: https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git/commit/?h=for-4.12/dm&id=feb7695fe9fb83084aa29de0094774f4c9d4c9fc |