bcache kernel warning when attaching device
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Invalid
|
Undecided
|
Mauricio Faria de Oliveira | ||
Bionic |
Fix Released
|
Undecided
|
Mauricio Faria de Oliveira | ||
Disco |
Fix Released
|
Undecided
|
Mauricio Faria de Oliveira | ||
Eoan |
Invalid
|
Undecided
|
Mauricio Faria de Oliveira |
Bug Description
[Impact]
* Users can get a Warning or even Oops the kernel if
bcache/
caching device to the bcache device.
* The fix is trivial, upstream, and consists of just
checking whether the caching device is attached in
order to set flags and schedule thread (which oops).
[Test Case]
* See attachment 'setup-
used in comment #5 and #6 to reproduce the problem(s).
* for 'Warning':
# make-bcache -B <BACKING DEVICE>
# make-bcache -C <CACHE DEVICE>
# echo 11 > /sys/block/<BACKING DEVICE>
# sleep 1
# echo <CSET_UUID> > /sys/block/<BACKING DEVICE>
* for 'Oops':
(steps above, but don't run last command / 'attach').
[Regression Potential]
* Low. The fix is trivial, contained, and exclusive to bcache sysfs handler.
* The modified path has been exercised with synthetic testing (script).
[Original Bug Description]
See attached dmesg, each time this server is rebooted it emits a concerning bcache warning.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-
ProcVersionSign
Uname: Linux 4.15.0-54-generic x86_64
AlsaVersion: Advanced Linux Sound Architecture Driver Version k4.15.0-54-generic.
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
ApportVersion: 2.20.9-0ubuntu7.7
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', '/dev/snd/hwC0D2', '/dev/snd/
Card0.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer': 'amixer'
Card0.Amixer.
Card1.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer': 'amixer'
Card1.Amixer.
Date: Wed Jul 24 12:28:06 2019
InstallationDate: Installed on 2013-10-04 (2119 days ago)
InstallationMedia: Ubuntu-Server 13.10 "Saucy Salamander" - Beta amd64 (20130925.1)
MachineType: Supermicro X9DAi
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcFB: 0 EFI VGA
ProcKernelCmdLine: BOOT_IMAGE=
RelatedPackageV
linux-
linux-
linux-firmware 1.173.9
RfKill: Error: [Errno 2] No such file or directory: 'rfkill': 'rfkill'
SourcePackage: linux
UpgradeStatus: Upgraded to bionic on 2018-06-09 (409 days ago)
dmi.bios.date: 05/09/2015
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 3.2
dmi.board.
dmi.board.name: X9DAi
dmi.board.vendor: Supermicro
dmi.board.version: 0123456789
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: Supermicro
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.family: To be filled by O.E.M.
dmi.product.name: X9DAi
dmi.product.
dmi.sys.vendor: Supermicro
CVE References
Changed in linux (Ubuntu): | |
assignee: | nobody → Mauricio Faria de Oliveira (mfo) |
Changed in linux (Ubuntu Eoan): | |
status: | Confirmed → Invalid |
Changed in linux (Ubuntu Disco): | |
assignee: | nobody → Mauricio Faria de Oliveira (mfo) |
Changed in linux (Ubuntu Bionic): | |
assignee: | nobody → Mauricio Faria de Oliveira (mfo) |
status: | New → Confirmed |
Changed in linux (Ubuntu Disco): | |
status: | New → Confirmed |
Changed in linux (Ubuntu Disco): | |
status: | In Progress → Fix Committed |
This change was made by a bot.