bcache kernel oops if creating with 8K block size
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bcache-tools (Ubuntu) |
Triaged
|
Undecided
|
Unassigned |
Bug Description
# make-bcache -C /dev/nvme0n1p5 -B /dev/sda4 --discard --writeback -w 8K --wipe-bcache
UUID: 77b47d90-
Set UUID: de69c5aa-
version: 0
nbuckets: 24576
block_size: 16
bucket_size: 1024
nr_in_set: 1
nr_this_dev: 0
first_bucket: 1
UUID: cfcf5483-
Set UUID: de69c5aa-
version: 1
block_size: 16
data_offset: 16
Results in:
...
Feb 7 03:42:09 ubuntu kernel: [ 654.832820] bcache: bch_journal_
Feb 7 03:42:09 ubuntu kernel: [ 654.833029] bcache: register_cache() registered cache device nvme0n1p5
Feb 7 03:42:50 ubuntu kernel: [ 695.322129] bcache: cache_set_free() Cache set 3382ccca-
Feb 7 03:43:17 ubuntu kernel: [ 722.935068] bcache: bch_journal_
Feb 7 03:43:17 ubuntu kernel: [ 722.937292] bcache: register_cache() registered cache device nvme0n1p5
Feb 7 03:44:35 ubuntu kernel: [ 800.815538] bcache: cache_set_free() Cache set 3382ccca-
Feb 7 03:44:57 ubuntu kernel: [ 822.495862] bcache: register_bcache() error opening /dev/nvme0n1p5: Bad block/bucket size
Feb 7 03:44:57 ubuntu kernel: [ 822.511403] bcache: register_bdev() registered backing device sda4
Feb 7 03:44:57 ubuntu kernel: [ 822.512207] BUG: unable to handle kernel NULL pointer dereference at 0000000000000098
Feb 7 03:44:57 ubuntu kernel: [ 822.512235] IP: [<ffffffff81248
Feb 7 03:44:57 ubuntu kernel: [ 822.512256] PGD 0
Feb 7 03:44:57 ubuntu kernel: [ 822.512263] Oops: 0000 [#1] SMP
Feb 7 03:44:57 ubuntu kernel: [ 822.512275] Modules linked in: bcache drbg ansi_cprng ctr ccm rfcomm bnep hid_multitouch snd_hda_codec_hdmi i2c_designware_
Feb 7 03:44:57 ubuntu kernel: [ 822.512758] CPU: 7 PID: 14484 Comm: systemd-udevd Not tainted 4.4.0-31-generic #50-Ubuntu
Feb 7 03:44:57 ubuntu kernel: [ 822.512781] Hardware name: Dell Inc. Precision 5510/08R8KJ, BIOS 1.2.19 12/22/2016
Feb 7 03:44:57 ubuntu kernel: [ 822.512802] task: ffff880891ac3b00 ti: ffff8800340a0000 task.ti: ffff8800340a0000
Feb 7 03:44:57 ubuntu kernel: [ 822.512822] RIP: 0010:[<
Feb 7 03:44:57 ubuntu kernel: [ 822.512846] RSP: 0018:ffff880034
Feb 7 03:44:57 ubuntu kernel: [ 822.512861] RAX: 0000000000000004 RBX: 0000000000000000 RCX: 0000000000000004
Feb 7 03:44:57 ubuntu kernel: [ 822.512880] RDX: ffffea001f190c40 RSI: fff88081a9189200 RDI: 0000000000000000
Feb 7 03:44:57 ubuntu kernel: [ 822.512899] RBP: ffff8800340a3aa0 R08: ffff8800340a3bb8 R09: ffff8800340a3bb0
Feb 7 03:44:57 ubuntu kernel: [ 822.512918] R10: ffff8808922a1130 R11: fff88081a9189200 R12: 0000000000000000
Feb 7 03:44:57 ubuntu kernel: [ 822.512937] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Feb 7 03:44:57 ubuntu kernel: [ 822.512956] FS: 00007f9af701e8c
Feb 7 03:44:57 ubuntu kernel: [ 822.512978] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Feb 7 03:44:57 ubuntu kernel: [ 822.512994] CR2: 0000000000000098 CR3: 00000000340bb000 CR4: 00000000003406e0
Feb 7 03:44:57 ubuntu kernel: [ 822.513013] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Feb 7 03:44:57 ubuntu kernel: [ 822.513032] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Feb 7 03:44:57 ubuntu kernel: [ 822.513051] Stack:
Feb 7 03:44:57 ubuntu kernel: [ 822.513058] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
Feb 7 03:44:57 ubuntu kernel: [ 822.513082] ffff8800340a3b78 ffffffff8124ef9b ffff8800340a3ae0 ffff8800340a3ba8
Feb 7 03:44:57 ubuntu kernel: [ 822.513105] 0000000000000000 ffff8800340a3bb8 ffff8800340a3bb0 ffffffff81247c20
Feb 7 03:44:57 ubuntu kernel: [ 822.513129] Call Trace:
Feb 7 03:44:57 ubuntu kernel: [ 822.513139] [<ffffffff8124e
Feb 7 03:44:57 ubuntu kernel: [ 822.513156] [<ffffffff81247
Feb 7 03:44:57 ubuntu kernel: [ 822.513172] [<ffffffff8119e
Feb 7 03:44:57 ubuntu kernel: [ 822.513188] [<ffffffff8124f
Feb 7 03:44:57 ubuntu kernel: [ 822.513204] [<ffffffff81247
Feb 7 03:44:57 ubuntu kernel: [ 822.513218] [<ffffffff81247
Feb 7 03:44:57 ubuntu kernel: [ 822.513234] [<ffffffff811e1
Feb 7 03:44:57 ubuntu kernel: [ 822.513252] [<ffffffff81248
Feb 7 03:44:57 ubuntu kernel: [ 822.513268] [<ffffffff8119c
Feb 7 03:44:57 ubuntu kernel: [ 822.513288] [<ffffffff810e7
Feb 7 03:44:57 ubuntu kernel: [ 822.513304] [<ffffffff813f6
Feb 7 03:44:57 ubuntu kernel: [ 822.513323] [<ffffffff8119c
Feb 7 03:44:57 ubuntu kernel: [ 822.513342] [<ffffffff8119c
Feb 7 03:44:57 ubuntu kernel: [ 822.513360] [<ffffffff8118f
Feb 7 03:44:57 ubuntu kernel: [ 822.513379] [<ffffffff815c3
Feb 7 03:44:57 ubuntu kernel: [ 822.513394] [<ffffffff81248
Feb 7 03:44:57 ubuntu kernel: [ 822.513411] [<ffffffff8120c
Feb 7 03:44:57 ubuntu kernel: [ 822.513427] [<ffffffff8120c
Feb 7 03:44:57 ubuntu kernel: [ 822.513442] [<ffffffff8120d
Feb 7 03:44:57 ubuntu kernel: [ 822.513457] [<ffffffff8120d
Feb 7 03:44:57 ubuntu kernel: [ 822.513472] [<ffffffff8182d
Feb 7 03:44:57 ubuntu kernel: [ 822.513489] Code: 83 f8 a1 0f 45 d8 89 d8 5b 41 5c 5d c3 0f 1f 40 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 55 48 89 e5 41 56 41 55 41 54 53 <48> 8b 87 98 00 00 00 4c 8b b0 c0 03 00 00 49 83 7e 10 00 74 77
Feb 7 03:44:57 ubuntu kernel: [ 822.513603] RIP [<ffffffff81248
Feb 7 03:44:57 ubuntu kernel: [ 822.513621] RSP <ffff8800340a3a80>
Feb 7 03:44:57 ubuntu kernel: [ 822.513631] CR2: 0000000000000098
Feb 7 03:44:57 ubuntu kernel: [ 822.520392] ---[ end trace 2180ab74f37e6694 ]---
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial
Linux ubuntu 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Changed in bcache-tools (Ubuntu): | |
status: | New → Incomplete |
status: | Incomplete → Triaged |
Oddly I get this error that you would this should apply to the failure case:
# make-bcache -C /dev/nvme0n1p5 -B /dev/sda4 --discard --writeback -w 4K -b 2048
Bucket size cannot be smaller than block size
P.S. pool/main/ b/bcache- tools/bcache- tools_1. 0.8-2_amd64. deb