[ 2938.649666] bcache: register_bcache() error /dev/nvme0n1p2: Bad block/bucket size [ 2945.532897] bcache: register_bdev() registered backing device md127 [ 2945.533124] BUG: unable to handle kernel NULL pointer dereference at 0000000000000008 [ 2945.533863] PGD 0 P4D 0 [ 2945.535162] Oops: 0000 [#1] SMP NOPTI [ 2945.536474] CPU: 13 PID: 3773 Comm: bcache-register Not tainted 4.18.0-10-generic #11-Ubuntu [ 2945.537785] Hardware name: System manufacturer System Product Name/PRIME X399-A, BIOS 0808 10/12/2018 [ 2945.539297] RIP: 0010:create_empty_buffers+0x29/0x110 [ 2945.540623] Code: 90 0f 1f 44 00 00 55 48 89 e5 41 55 49 89 d5 ba 01 00 00 00 41 54 53 48 89 fb e8 92 f5 ff ff 49 89 c4 48 89 c2 eb 03 48 89 ca <48> 8b 4a 08 4c 09 2a 48 85 c9 75 f1 4c 89 62 08 48 8b 43 18 48 8d [ 2945.542015] RSP: 0018:ffffb90b874777d0 EFLAGS: 00010282 [ 2945.543408] RAX: 0000000000000000 RBX: ffffe1309f8b1140 RCX: 000000000000000d [ 2945.544793] RDX: 0000000000000000 RSI: 0000000000002000 RDI: ffffe1309f8b1140 [ 2945.546727] RBP: ffffb90b874777e8 R08: dead0000000000ff R09: 0000000000000011 [ 2945.548121] R10: ffffffffffffffff R11: 0000000000000000 R12: 0000000000000000 [ 2945.549515] R13: 0000000000000000 R14: 00000000006200c0 R15: ffffe1309f8b1140 [ 2945.550888] FS: 00007f7d07190540(0000) GS:ffff9e0f5cd40000(0000) knlGS:0000000000000000 [ 2945.552266] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 2945.553646] CR2: 0000000000000008 CR3: 00000007e788c000 CR4: 00000000003406e0 [ 2945.555027] Call Trace: [ 2945.556399] create_page_buffers+0x51/0x60 [ 2945.557799] block_read_full_page+0x4d/0x330 [ 2945.559191] ? check_disk_change+0x70/0x70 [ 2945.560562] ? __add_to_page_cache_locked+0x1e3/0x240 [ 2945.561935] blkdev_readpage+0x18/0x20 [ 2945.563304] do_read_cache_page+0x2b4/0x5b0 [ 2945.564684] ? blkdev_writepages+0x10/0x10 [ 2945.566052] read_cache_page+0x15/0x20 [ 2945.567562] read_dev_sector+0x2d/0xd0 [ 2945.568920] read_lba+0xcd/0x220 [ 2945.570259] ? find_valid_gpt+0xd1/0x560 [ 2945.571601] find_valid_gpt+0xf1/0x560 [ 2945.572939] ? string+0x61/0x80 [ 2945.574286] efi_partition+0x89/0x3a3 [ 2945.575608] ? snprintf+0x49/0x60 [ 2945.576916] ? find_valid_gpt+0x560/0x560 [ 2945.578224] check_partition+0x139/0x236 [ 2945.580162] rescan_partitions+0xaf/0x290 [ 2945.581469] ? down_write+0x12/0x40 [ 2945.582775] __blkdev_get+0x367/0x500 [ 2945.584081] blkdev_get+0x10c/0x330 [ 2945.585380] ? unlock_new_inode+0x4b/0x60 [ 2945.586706] ? bdget+0x110/0x130 [ 2945.588005] __device_add_disk+0x392/0x430 [ 2945.589307] device_add_disk+0x13/0x20 [ 2945.590616] bch_cached_dev_run.part.31+0x42/0x1b0 [bcache] [ 2945.591917] register_bcache.cold.49+0x20d/0x212 [bcache] [ 2945.593249] ? __seccomp_filter+0x49/0x4b0 [ 2945.594571] kobj_attr_store+0x12/0x20 [ 2945.596000] ? _cond_resched+0x19/0x30 [ 2945.597279] ? kobj_attr_store+0x12/0x20 [ 2945.598549] sysfs_kf_write+0x3b/0x50 [ 2945.599800] kernfs_fop_write+0x12e/0x1b0 [ 2945.601057] __vfs_write+0x1b/0x40 [ 2945.602350] vfs_write+0xab/0x1b0 [ 2945.603610] ksys_write+0x55/0xc0 [ 2945.604857] __x64_sys_write+0x1a/0x20 [ 2945.606100] do_syscall_64+0x5a/0x110 [ 2945.607334] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 2945.608568] RIP: 0033:0x7f7d070aefd4 [ 2945.609793] Code: 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b3 0f 1f 80 00 00 00 00 48 8d 05 29 f7 0d 00 8b 00 85 c0 75 13 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 54 c3 0f 1f 00 41 54 49 89 d4 55 48 89 f5 53 [ 2945.611080] RSP: 002b:00007ffd30265128 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 2945.612808] RAX: ffffffffffffffda RBX: 000000000000000b RCX: 00007f7d070aefd4 [ 2945.614069] RDX: 000000000000000b RSI: 000055fe2f17c260 RDI: 0000000000000003 [ 2945.615337] RBP: 000055fe2f17c260 R08: 0000000000000000 R09: 00000000ffffffff [ 2945.616598] R10: 000055fe2e9cca32 R11: 0000000000000246 R12: 00007ffd302651c0 [ 2945.617861] R13: 000000000000000b R14: 00007f7d071862a0 R15: 00007f7d07185760 [ 2945.619124] Modules linked in: cfg80211 amd64_edac_mod edac_mce_amd kvm_amd snd_hda_codec_hdmi kvm irqbypass crct10dif_pclmul snd_hda_codec_realtek eeepc_wmi crc32_pclmul snd_hda_codec_generic asus_wmi ghash_clmulni_intel sparse_keymap wmi_bmof snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep snd_pcm input_leds ccp joydev snd_timer snd soundcore k10temp mac_hid sch_fq_codel ib_iser rdma_cm iw_cm ib_cm ib_core iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi ip_tables x_tables autofs4 overlay nls_iso8859_1 raid10 raid1 raid0 multipath linear raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c hid_generic uas usbhid hid usb_storage bcache nouveau mxm_wmi video ttm drm_kms_helper aesni_intel syscopyarea aes_x86_64 sysfillrect crypto_simd sysimgblt cryptd fb_sys_fops [ 2945.621885] glue_helper drm nvme igb i2c_piix4 ahci atlantic nvme_core dca libahci i2c_algo_bit gpio_amdpt wmi gpio_generic [ 2945.623313] CR2: 0000000000000008 [ 2945.624921] ---[ end trace 7eb0f6afada18a8a ]--- [ 2945.626362] RIP: 0010:create_empty_buffers+0x29/0x110 [ 2945.627789] Code: 90 0f 1f 44 00 00 55 48 89 e5 41 55 49 89 d5 ba 01 00 00 00 41 54 53 48 89 fb e8 92 f5 ff ff 49 89 c4 48 89 c2 eb 03 48 89 ca <48> 8b 4a 08 4c 09 2a 48 85 c9 75 f1 4c 89 62 08 48 8b 43 18 48 8d [ 2945.629273] RSP: 0018:ffffb90b874777d0 EFLAGS: 00010282 [ 2945.630798] RAX: 0000000000000000 RBX: ffffe1309f8b1140 RCX: 000000000000000d [ 2945.632256] RDX: 0000000000000000 RSI: 0000000000002000 RDI: ffffe1309f8b1140 [ 2945.633708] RBP: ffffb90b874777e8 R08: dead0000000000ff R09: 0000000000000011 [ 2945.635153] R10: ffffffffffffffff R11: 0000000000000000 R12: 0000000000000000 [ 2945.636588] R13: 0000000000000000 R14: 00000000006200c0 R15: ffffe1309f8b1140 [ 2945.638024] FS: 00007f7d07190540(0000) GS:ffff9e0f5cd40000(0000) knlGS:0000000000000000 [ 2945.639461] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 2945.640905] CR2: 0000000000000008 CR3: 00000007e788c000 CR4: 00000000003406e0