kernel BUG at drivers/md/bcache/super.c - kernel 4.14.85 bcache detach fails, but 4.18.19 and 4.19.6 work fine

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, just reporting a bug... it works in a newer version, but not an old longterm one; maybe you can backport something to fix it?

I'm not subscribed, so be sure to CC me.

I tested 4.14.67 and 4.14.85, and bcache detach fails. 4.18.19 and 4.19.6 work fine. I have never been able to detach on those versions... every attempt fails. It's possible a previous version I used (4.14.x where x is one of 50,52,57,61) works, since I only discovered this when updating to either 4.14.61 or 4.14.67. And so since retesting fails...I figure I'll report it this time.

Also a minor note: strangely 4.14.x name the devices with numbers 0, 16, 32, ... instead of 0, 1, 2, ...


example command to cause it, where previously this device is attached in writeback mode with state clean:

> echo 6be6c766-6e0e-43aa-9c40-4502a693826b > /sys/block/bcache64/bcache/detach

This is dmesg from 4.18.85 today, on my desktop, after a fresh boot up and idling:

> [  263.480721] ------------[ cut here ]------------
> [  263.480723] kernel BUG at drivers/md/bcache/super.c:892!
> [  263.480731] invalid opcode: 0000 [#1] PREEMPT SMP NOPTI
> [  263.480735] Modules linked in: xt_nat xt_REDIRECT nf_nat_redirect nfsd auth_rpcgss nfs_acl lockd grace sunrpc e1000e r8169 mii xt_recent xt_comment xt_iprange arptable_filter arp_tables ipt_REJECT nf_reject_ipv4 xt_addrtype xt_physdev br_netfilter bridge stp llc iptable_nat nf_nat_ipv4 xt_mark iptable_mangle xt_hashlimit xt_tcpudp xt_CT iptable_raw xt_multiport nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack xt_NFLOG nfnetlink_log nf_log_ipv4 nf_log_common xt_LOG nf_conntrack_sane nf_conntrack_netlink nfnetlink nf_nat_tftp nf_nat_snmp_basic nf_conntrack_snmp nf_nat_sip nf_nat_pptp nf_nat_proto_gre nf_nat_irc nf_nat_h323 nf_nat_ftp nf_nat_amanda nf_nat nf_conntrack_tftp nf_conntrack_sip nf_conntrack_pptp nf_conntrack_proto_gre nf_conntrack_netbios_ns nf_conntrack_broadcast nf_conntrack_irc nf_conntrack_h323
> [  263.480769]  nf_conntrack_ftp ts_kmp nf_conntrack_amanda nf_conntrack libcrc32c iptable_filter ip_tables x_tables nls_iso8859_1 nls_cp437 vfat fat sch_fq_codel btrfs zstd_decompress zstd_compress xxhash xor raid6_pq amdkfd amd_iommu_v2 edac_mce_amd snd_hda_codec_realtek kvm_amd amdgpu bcache snd_hda_codec_generic raid1 wmi_bmof mxm_wmi kvm ttm snd_usb_audio uvcvideo crct10dif_pclmul drm_kms_helper crc32_pclmul ghash_clmulni_intel crypto_user snd_hda_intel videobuf2_vmalloc pcbc videobuf2_memops snd_hda_codec snd_usbmidi_lib videobuf2_v4l2 aesni_intel snd_hda_core snd_rawmidi aes_x86_64 videobuf2_core ccp crypto_simd snd_seq_device snd_hwdep glue_helper drm igb cryptd snd_pcm videodev syscopyarea sp5100_tco evdev snd_timer input_leds pcspkr joydev rng_core mousedev led_class media sysfillrect i2c_piix4
> [  263.480811]  ptp snd pps_core dca sysimgblt sha256_generic fb_sys_fops soundcore alx i2c_algo_bit mdio shpchp pcc_cpufreq wmi button acpi_cpufreq ext4 crc32c_generic crc16 mbcache jbd2 fscrypto vfio_pci irqbypass vfio_virqfd vfio_iommu_type1 vfio md_mod sr_mod cdrom sd_mod uas usb_storage dm_mod dax ahci libahci crc32c_intel xhci_pci libata xhci_hcd nvme nvme_core mac_hid usbhid usbcore usb_common hid_generic hid virtio_blk virtio_pci virtio_net virtio_scsi scsi_mod virtio_ring virtio
> [  263.480846] CPU: 3 PID: 139 Comm: kworker/3:1 Not tainted 4.14.85-1-aa #1
> [  263.480848] Hardware name: Gigabyte Technology Co., Ltd. AX370-Gaming 5/AX370-Gaming 5, BIOS F10 12/07/2017
> [  263.480856] Workqueue: events cached_dev_detach_finish [bcache]
> [  263.480859] task: ffff88883668c880 task.stack: ffffc90003ad4000
> [  263.480865] RIP: 0010:cached_dev_detach_finish+0x176/0x180 [bcache]
> [  263.480867] RSP: 0018:ffffc90003ad7e28 EFLAGS: 00010286
> [  263.480870] RAX: 00000000ffffffff RBX: ffff888829f90ab0 RCX: 0000000000000000
> [  263.480872] RDX: ffff88885ece1060 RSI: 00000000000000c0 RDI: ffffc90003ad7e58
> [  263.480874] RBP: ffff888829f90000 R08: 0000000000000087 R09: 0000000000000000
> [  263.480876] R10: 0000000000000000 R11: 0000000000000000 R12: ffffc90003ad7e28
> [  263.480877] R13: 0000000000000000 R14: 0ffff88885ece500 R15: ffff8888366cc840
> [  263.480880] FS:  0000000000000000(0000) GS:ffff88885ecc0000(0000) knlGS:0000000000000000
> [  263.480882] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> [  263.480884] CR2: 00005600bbf06ec0 CR3: 00000006e9652000 CR4: 00000000003406e0
> [  263.480886] Call Trace:
> [  263.480894]  ? __schedule+0x245/0x850
> [  263.480898]  process_one_work+0x1d1/0x410
> [  263.480902]  worker_thread+0x2b/0x3d0
> [  263.480904]  ? process_one_work+0x410/0x410
> [  263.480907]  kthread+0x119/0x130
> [  263.480911]  ? kthread_create_on_node+0x60/0x60
> [  263.480914]  ret_from_fork+0x22/0x40
> [  263.480917] Code: 48 89 c2 e8 78 18 16 e0 4c 89 e7 e8 b5 62 ff ff 48 8b 44 24 50 65 48 33 04 25 28 00 00 00 75 0d 48 83 c4 58 5b 5d 41 5c c3 0f 0b <0f> 0b e8 b3 4b 10 e0 0f 1f 00 0f 1f 44 00 00 41 57 b9 06 00 00 
> [  263.480951] RIP: cached_dev_detach_finish+0x176/0x180 [bcache] RSP: ffffc90003ad7e28
> [  263.480953] ---[ end trace fdb71e14562195b2 ]---



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux ARM Kernel]     [Linux Filesystem Development]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux