8k bcache NULL pointer deref on mount / can't boot

Bug #1809748 reported by Robert Collins on 2018-12-25
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)

Bug Description

After creating a bcache cache device with an 8k block size (see #1662407), a kernel oops happens every time device is probed.

I'm not sure that there is any userspace bug present in #1662407 at all - it may just be kernel. I've attached a dmesg there, but can't actually get into the system at the moment to get apport-collect or other diagnostics.

Robert Collins (lifeless) wrote :

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1809748

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete

cache superblock info - sb.magic ok
sb.first_sector 8 [match]
sb.csum 5A3217E583DB5B86 [match]
sb.version 0 [cache device]

dev.label (empty)
dev.uuid 2a9e0dfd-acd0-4750-85ae-b347d7580e2b
dev.sectors_per_block 16
dev.sectors_per_bucket 1024
dev.cache.first_sector 1024
dev.cache.cache_sectors 209714176
dev.cache.total_sectors 209715200
dev.cache.ordered no
dev.cache.discard no
dev.cache.pos 0
dev.cache.replacement 0 [lru]

cset.uuid 24283111-591b-4fb8-9428-8f5db4cb5a87

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Robert Collins (lifeless) wrote :

after doing a wipefs on the cache drive the BUG still occured; wipefs's the backing drive corrected that. I haven't yet tried wiping just the backing drive.

summary: - 8k bcache cache NULL pointer deref on mount / can't boot
+ 8k bcache NULL pointer deref on mount / can't boot
Robert Collins (lifeless) wrote :

hint if testing this - add module_blacklist=bcache to your kernel boot line to boot and reset the metadata :)

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments