[Kernel-packages] [Bug 1586838] Re: bcache causes a kernel bug when adding a new cache device
v4.7-rc2 kernel (http://kernel.ubuntu.com/~kernel- ppa/mainline/v4.7-rc2-yakkety/) sees the same issue: [ 70.064983] kernel BUG at /home/kernel/COD/linux/drivers/md/bcache/super.c:1822! [ 70.065214] invalid opcode: [#1] SMP [ 70.065355] Modules linked in: fuse ppdev input_leds lpc_ich intel_powerclamp led_class joydev serio_raw parport_pc sg i2c_piix4 ac battery parport mac_hid acpi_cpufreq ib_iser rdma_cm iw_cm ib_cm ib_core configfs iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi autofs4 btrfs raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 multipath linear bcache raid0 md_mod sr_mod cdrom sd_mod ata_generic pata_acpi hid_generic usbhid hid ohci_pci crct10dif_pclmul virtio_net crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel ahci aes_x86_64 lrw gf128mul libahci glue_helper ablk_helper cryptd ohci_hcd ehci_pci ata_piix ehci_hcd libata usbcore scsi_mod psmouse usb_common fjes virtio_pci virtio_ring virtio video button jitterentropy_rng drbg ansi_cprng [ 70.071156] CPU: 3 PID: 1557 Comm: bcache-register Not tainted 4.7.0-040700rc2-generic #201606051831 [ 70.071417] Hardware name: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006 [ 70.071655] task: 8800775f ti: 88007bf84000 task.ti: 88007bf84000 [ 70.072051] RIP: 0010:[] [] cache_alloc.isra.21+0x646/0x670 [bcache] [ 70.072757] RSP: 0018:88007bf87d18 EFLAGS: 00010246 [ 70.073129] RAX: 88007757b070 RBX: 88007c228000 RCX: 07f8 [ 70.073516] RDX: 07f7 RSI: RDI: 88007d003b80 [ 70.073902] RBP: 88007bf87d30 R08: 88007fd99f40 R09: 88007d003b80 [ 70.074288] R10: 88007757b070 R11: 0040 R12: [ 70.074674] R13: 0010 R14: 88007b2308f0 R15: 880078479000 [ 70.075061] FS: 7f2bd2778700() GS:88007fd8() knlGS: [ 70.075708] CS: 0010 DS: ES: CR0: 80050033 [ 70.076064] CR2: 7f2bd21e1130 CR3: 79a4b000 CR4: 000406e0 [ 70.076452] DR0: DR1: DR2: [ 70.076854] DR3: DR6: fffe0ff0 DR7: 0400 [ 70.077267] Stack: [ 70.077565] 880035568340 ea0001efbcc0 88007c228000 88007bf87dd0 [ 70.078547] c02e83f9 88007952b500 880035648f00 005b [ 70.079455] 0080 88007c228008 88007757b080 0009 [ 70.081160] Call Trace: [ 70.081755] [] register_bcache+0x2d9/0x1190 [bcache] [ 70.082165] [] kobj_attr_store+0xf/0x20 [ 70.082530] [] ? kobj_attr_store+0xf/0x20 [ 70.082902] [] sysfs_kf_write+0x37/0x40 [ 70.083278] [] kernfs_fop_write+0x118/0x1a0 [ 70.083635] [] __vfs_write+0x37/0x160 [ 70.083977] [] ? apparmor_file_permission+0x18/0x20 [ 70.084349] [] ? security_file_permission+0x3d/0xc0 [ 70.084721] [] ? percpu_down_read+0x12/0x50 [ 70.085075] [] vfs_write+0xb8/0x1b0 [ 70.085412] [] SyS_write+0x55/0xc0 [ 70.086226] [] entry_SYSCALL_64_fastpath+0x1e/0xa8 [ 70.086631] Code: 6a fd ff ff e9 4d fd ff ff be c0 00 40 02 4c 89 e7 e8 bf aa f1 c0 48 85 c0 48 89 83 f0 0a 00 00 0f 85 96 fd ff ff e9 79 fd ff ff <0f> 0b 0f 0b 0f 0b bf 40 00 00 00 e8 2a a2 ef c0 48 85 c0 48 89 [ 70.090234] RIP [] cache_alloc.isra.21+0x646/0x670 [bcache] [ 70.090848] RSP [ 70.091365] ---[ end trace 241fa6e06ca0e7af ]--- ** Tags added: kernel-bug-exists-upstream ** Changed in: linux (Ubuntu) Status: Incomplete => Confirmed -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1586838 Title: bcache causes a kernel bug when adding a new cache device Status in linux package in Ubuntu: Confirmed Bug description: Ubuntu 16.04 on virtualbox 5.0.20. VirtualBoxAddition is installed. The issue happens on both out-of-box 4.4.0 kernel and the later- installed 4.4.11 kernel. 100% re-producible. The same issue applies to both virtual hard drive (/dev/sdb) and file-base block device (/dev/loop2) I created within Ubuntu. $ sudo make-bcache -C /dev/sdb The error shows (through dmesg): [ 47.616016] [ cut here ] [ 47.616035] kernel BUG at /home/kernel/COD/linux/drivers/md/bcache/super.c:1822! [ 47.616051] invalid opcode: [#1] SMP [ 47.616063] Modules linked in: vboxsf(OE) ppdev vboxvideo(OE) ttm drm_kms_helper input_leds joydev drm serio_raw lpc_ich fb_sys_fops syscopyarea i2c_piix4 sysfillrect sysimgblt 8250_fintek parport_pc vboxguest(OE) parport mac_hid ib_iser rdma_cm iw_cm ib_cm ib_sa ib_mad ib_core ib_addr iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi autofs4 btrfs raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 multipath linear bcache raid
[Kernel-packages] [Bug 1586838] Re: bcache causes a kernel bug when adding a new cache device
I tried to install the latest kernel as following: $ sudo dpkg -i *.deb (Reading database ... 130671 files and directories currently installed.) Preparing to unpack linux-headers-4.7.0-040700rc1_4.7.0-040700rc1.201605291331_all.deb ... Unpacking linux-headers-4.7.0-040700rc1 (4.7.0-040700rc1.201605291331) over (4.7.0-040700rc1.201605291331) ... Preparing to unpack linux-headers-4.7.0-040700rc1-generic_4.7.0-040700rc1.201605291331_amd64.deb ... Unpacking linux-headers-4.7.0-040700rc1-generic (4.7.0-040700rc1.201605291331) over (4.7.0-040700rc1.201605291331) ... Preparing to unpack linux-image-4.7.0-040700rc1-generic_4.7.0-040700rc1.201605291331_amd64.deb ... Done. Unpacking linux-image-4.7.0-040700rc1-generic (4.7.0-040700rc1.201605291331) over (4.7.0-040700rc1.201605291331) ... Examining /etc/kernel/postrm.d . run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.7.0-040700rc1-generic /boot/vmlinuz-4.7.0-040700rc1-generic run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.7.0-040700rc1-generic /boot/vmlinuz-4.7.0-040700rc1-generic Setting up linux-headers-4.7.0-040700rc1 (4.7.0-040700rc1.201605291331) ... Setting up linux-headers-4.7.0-040700rc1-generic (4.7.0-040700rc1.201605291331) ... Setting up linux-image-4.7.0-040700rc1-generic (4.7.0-040700rc1.201605291331) ... Running depmod. update-initramfs: deferring update (hook will be called later) Not updating initrd symbolic links since we are being updated/reinstalled (4.7.0-040700rc1.201605291331 was configured last, according to dpkg) Not updating image symbolic links since we are being updated/reinstalled (4.7.0-040700rc1.201605291331 was configured last, according to dpkg) Examining /etc/kernel/postinst.d. run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.7.0-040700rc1-generic /boot/vmlinuz-4.7.0-040700rc1-generic run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.7.0-040700rc1-generic /boot/vmlinuz-4.7.0-040700rc1-generic update-initramfs: Generating /boot/initrd.img-4.7.0-040700rc1-generic run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.7.0-040700rc1-generic /boot/vmlinuz-4.7.0-040700rc1-generic run-parts: executing /etc/kernel/postinst.d/update-notifier 4.7.0-040700rc1-generic /boot/vmlinuz-4.7.0-040700rc1-generic run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.7.0-040700rc1-generic /boot/vmlinuz-4.7.0-040700rc1-generic Generating grub configuration file ... Found linux image: /boot/vmlinuz-4.7.0-040700rc1-generic Found initrd image: /boot/initrd.img-4.7.0-040700rc1-generic Found linux image: /boot/vmlinuz-4.4.11-040411-generic Found initrd image: /boot/initrd.img-4.4.11-040411-generic Found linux image: /boot/vmlinuz-4.4.0-21-generic Found initrd image: /boot/initrd.img-4.4.0-21-generic done But my server couldn't boot up and it shows: BusyBox v1.22.1 (Ubuntu 1:1.22.0-15ubuntu1) built-in shell (ash) Enter 'help' for a list of built-in commands. (initramfs) I have to roll back to the 4.4.11 kernel. Please advice the next step. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1586838 Title: bcache causes a kernel bug when adding a new cache device Status in linux package in Ubuntu: Incomplete Bug description: Ubuntu 16.04 on virtualbox 5.0.20. VirtualBoxAddition is installed. The issue happens on both out-of-box 4.4.0 kernel and the later- installed 4.4.11 kernel. 100% re-producible. The same issue applies to both virtual hard drive (/dev/sdb) and file-base block device (/dev/loop2) I created within Ubuntu. $ sudo make-bcache -C /dev/sdb The error shows (through dmesg): [ 47.616016] [ cut here ] [ 47.616035] kernel BUG at /home/kernel/COD/linux/drivers/md/bcache/super.c:1822! [ 47.616051] invalid opcode: [#1] SMP [ 47.616063] Modules linked in: vboxsf(OE) ppdev vboxvideo(OE) ttm drm_kms_helper input_leds joydev drm serio_raw lpc_ich fb_sys_fops syscopyarea i2c_piix4 sysfillrect sysimgblt 8250_fintek parport_pc vboxguest(OE) parport mac_hid ib_iser rdma_cm iw_cm ib_cm ib_sa ib_mad ib_core ib_addr iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi autofs4 btrfs raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 multipath linear bcache raid0 hid_generic usbhid hid crct10dif_pclmul crc32_pclmul aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd psmouse fjes ahci libahci pata_acpi video [ 47.616255] CPU: 2 PID: 1247 Comm: bcache-register Tainted: G OE 4.4.11-040411-generic #201605182255 [ 47.616277] Hardware name: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006 [ 47.616295] task: 88003514 ti: 88007684 task.ti: 88007684 [ 47.616311] RIP: 0010:[] [] cache_alloc.isra.20+0x646/0x670 [bcache] [ 47.616340] RSP: 0018:880076843d10 EFLAGS: 000102
[Kernel-packages] [Bug 1586838] JournalErrors.txt
apport information ** Attachment added: "JournalErrors.txt" https://bugs.launchpad.net/bugs/1586838/+attachment/4672630/+files/JournalErrors.txt -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1586838 Title: bcache causes a kernel bug when adding a new cache device Status in linux package in Ubuntu: Incomplete Bug description: Ubuntu 16.04 on virtualbox 5.0.20. VirtualBoxAddition is installed. The issue happens on both out-of-box 4.4.0 kernel and the later- installed 4.4.11 kernel. 100% re-producible. The same issue applies to both virtual hard drive (/dev/sdb) and file-base block device (/dev/loop2) I created within Ubuntu. $ sudo make-bcache -C /dev/sdb The error shows (through dmesg): [ 47.616016] [ cut here ] [ 47.616035] kernel BUG at /home/kernel/COD/linux/drivers/md/bcache/super.c:1822! [ 47.616051] invalid opcode: [#1] SMP [ 47.616063] Modules linked in: vboxsf(OE) ppdev vboxvideo(OE) ttm drm_kms_helper input_leds joydev drm serio_raw lpc_ich fb_sys_fops syscopyarea i2c_piix4 sysfillrect sysimgblt 8250_fintek parport_pc vboxguest(OE) parport mac_hid ib_iser rdma_cm iw_cm ib_cm ib_sa ib_mad ib_core ib_addr iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi autofs4 btrfs raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 multipath linear bcache raid0 hid_generic usbhid hid crct10dif_pclmul crc32_pclmul aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd psmouse fjes ahci libahci pata_acpi video [ 47.616255] CPU: 2 PID: 1247 Comm: bcache-register Tainted: G OE 4.4.11-040411-generic #201605182255 [ 47.616277] Hardware name: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006 [ 47.616295] task: 88003514 ti: 88007684 task.ti: 88007684 [ 47.616311] RIP: 0010:[] [] cache_alloc.isra.20+0x646/0x670 [bcache] [ 47.616340] RSP: 0018:880076843d10 EFLAGS: 00010246 [ 47.616352] RAX: 880079528c60 RBX: 8800796a RCX: 05d2 [ 47.616367] RDX: 05d1 RSI: RDI: 00019d40 [ 47.616382] RBP: 880076843d28 R08: 88007fd19d40 R09: 88007d001d00 [ 47.616398] R10: 880079528c60 R11: 88007b590958 R12: [ 47.616413] R13: 0010 R14: 88007c3c4000 R15: 8800796a [ 47.616428] FS: 7ff8ffa10700() GS:88007fd0() knlGS: [ 47.616445] CS: 0010 DS: ES: CR0: 80050033 [ 47.616458] CR2: 7ff8ff4c1d30 CR3: 77f7 CR4: 000406e0 [ 47.616476] DR0: DR1: DR2: [ 47.616491] DR3: DR6: fffe0ff0 DR7: 0400 [ 47.616506] Stack: [ 47.616511] ea0001e880c0 88007cc28680 880076843dd0 [ 47.616531] c01373e3 880076843d58 811c8de5 7fd61025 [ 47.616551] 7ff8ff4cf000 88007b590958 8800796a0008 0009 [ 47.616570] Call Trace: [ 47.616585] [] register_bcache+0x2b3/0x1140 [bcache] [ 47.616626] [] ? page_add_file_rmap+0x25/0x60 [ 47.617074] [] ? unlock_page+0x69/0x70 [ 47.617516] [] kobj_attr_store+0xf/0x20 [ 47.617946] [] sysfs_kf_write+0x37/0x40 [ 47.618353] [] kernfs_fop_write+0x11d/0x170 [ 47.618755] [] __vfs_write+0x37/0x110 [ 47.619149] [] ? apparmor_file_permission+0x18/0x20 [ 47.619543] [] ? security_file_permission+0x3d/0xc0 [ 47.619922] [] ? percpu_down_read+0x12/0x50 [ 47.620290] [] vfs_write+0xa9/0x1a0 [ 47.620648] [] SyS_write+0x55/0xc0 [ 47.621021] [] entry_SYSCALL_64_fastpath+0x16/0x71 [ 47.621362] Code: 6a fd ff ff e9 4d fd ff ff be c0 00 40 02 4c 89 e7 e8 cf 61 0b c1 48 85 c0 48 89 83 f0 0a 00 00 0f 85 96 fd ff ff e9 79 fd ff ff <0f> 0b 0f 0b 0f 0b bf 40 00 00 00 e8 9a 90 09 c1 48 85 c0 48 89 [ 47.622456] RIP [] cache_alloc.isra.20+0x646/0x670 [bcache] [ 47.622812] RSP [ 47.623177] ---[ end trace 19bcd02731ac9be1 ]--- --- ApportVersion: 2.20.1-0ubuntu2.1 Architecture: amd64 DistroRelease: Ubuntu 16.04 InstallationDate: Installed on 2016-05-29 (0 days ago) InstallationMedia: Ubuntu-Server 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.3) Package: linux (not installed) ProcEnviron: TERM=xterm PATH=(custom, no user) XDG_RUNTIME_DIR= LANG=en_US.UTF-8 SHELL=/bin/bash Tags: xenial Uname: Linux 4.4.11-040411-generic x86_64 UnreportableReason: The running kernel is not an Ubuntu kernel UpgradeStatus: No upgrade log present (probably fresh install) UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo _MarkForUpload: True --- ApportVersion: 2.20.1-0ubuntu2.1 Archi
[Kernel-packages] [Bug 1586838] Re: bcache causes a kernel bug when adding a new cache device
apport information ** Tags added: apport-collected xenial ** Description changed: Ubuntu 16.04 on virtualbox 5.0.20. VirtualBoxAddition is installed. The issue happens on both out-of-box 4.4.0 kernel and the later- installed 4.4.11 kernel. 100% re-producible. The same issue applies to both virtual hard drive (/dev/sdb) and file-base block device (/dev/loop2) I created within Ubuntu. $ sudo make-bcache -C /dev/sdb The error shows (through dmesg): [ 47.616016] [ cut here ] [ 47.616035] kernel BUG at /home/kernel/COD/linux/drivers/md/bcache/super.c:1822! [ 47.616051] invalid opcode: [#1] SMP [ 47.616063] Modules linked in: vboxsf(OE) ppdev vboxvideo(OE) ttm drm_kms_helper input_leds joydev drm serio_raw lpc_ich fb_sys_fops syscopyarea i2c_piix4 sysfillrect sysimgblt 8250_fintek parport_pc vboxguest(OE) parport mac_hid ib_iser rdma_cm iw_cm ib_cm ib_sa ib_mad ib_core ib_addr iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi autofs4 btrfs raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 multipath linear bcache raid0 hid_generic usbhid hid crct10dif_pclmul crc32_pclmul aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd psmouse fjes ahci libahci pata_acpi video [ 47.616255] CPU: 2 PID: 1247 Comm: bcache-register Tainted: G OE 4.4.11-040411-generic #201605182255 [ 47.616277] Hardware name: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006 [ 47.616295] task: 88003514 ti: 88007684 task.ti: 88007684 [ 47.616311] RIP: 0010:[] [] cache_alloc.isra.20+0x646/0x670 [bcache] [ 47.616340] RSP: 0018:880076843d10 EFLAGS: 00010246 [ 47.616352] RAX: 880079528c60 RBX: 8800796a RCX: 05d2 [ 47.616367] RDX: 05d1 RSI: RDI: 00019d40 [ 47.616382] RBP: 880076843d28 R08: 88007fd19d40 R09: 88007d001d00 [ 47.616398] R10: 880079528c60 R11: 88007b590958 R12: [ 47.616413] R13: 0010 R14: 88007c3c4000 R15: 8800796a [ 47.616428] FS: 7ff8ffa10700() GS:88007fd0() knlGS: [ 47.616445] CS: 0010 DS: ES: CR0: 80050033 [ 47.616458] CR2: 7ff8ff4c1d30 CR3: 77f7 CR4: 000406e0 [ 47.616476] DR0: DR1: DR2: [ 47.616491] DR3: DR6: fffe0ff0 DR7: 0400 [ 47.616506] Stack: [ 47.616511] ea0001e880c0 88007cc28680 880076843dd0 [ 47.616531] c01373e3 880076843d58 811c8de5 7fd61025 [ 47.616551] 7ff8ff4cf000 88007b590958 8800796a0008 0009 [ 47.616570] Call Trace: [ 47.616585] [] register_bcache+0x2b3/0x1140 [bcache] [ 47.616626] [] ? page_add_file_rmap+0x25/0x60 [ 47.617074] [] ? unlock_page+0x69/0x70 [ 47.617516] [] kobj_attr_store+0xf/0x20 [ 47.617946] [] sysfs_kf_write+0x37/0x40 [ 47.618353] [] kernfs_fop_write+0x11d/0x170 [ 47.618755] [] __vfs_write+0x37/0x110 [ 47.619149] [] ? apparmor_file_permission+0x18/0x20 [ 47.619543] [] ? security_file_permission+0x3d/0xc0 [ 47.619922] [] ? percpu_down_read+0x12/0x50 [ 47.620290] [] vfs_write+0xa9/0x1a0 [ 47.620648] [] SyS_write+0x55/0xc0 [ 47.621021] [] entry_SYSCALL_64_fastpath+0x16/0x71 [ 47.621362] Code: 6a fd ff ff e9 4d fd ff ff be c0 00 40 02 4c 89 e7 e8 cf 61 0b c1 48 85 c0 48 89 83 f0 0a 00 00 0f 85 96 fd ff ff e9 79 fd ff ff <0f> 0b 0f 0b 0f 0b bf 40 00 00 00 e8 9a 90 09 c1 48 85 c0 48 89 [ 47.622456] RIP [] cache_alloc.isra.20+0x646/0x670 [bcache] [ 47.622812] RSP [ 47.623177] ---[ end trace 19bcd02731ac9be1 ]--- + --- + ApportVersion: 2.20.1-0ubuntu2.1 + Architecture: amd64 + DistroRelease: Ubuntu 16.04 + InstallationDate: Installed on 2016-05-29 (0 days ago) + InstallationMedia: Ubuntu-Server 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.3) + Package: linux (not installed) + ProcEnviron: + TERM=xterm + PATH=(custom, no user) + XDG_RUNTIME_DIR= + LANG=en_US.UTF-8 + SHELL=/bin/bash + Tags: xenial + Uname: Linux 4.4.11-040411-generic x86_64 + UnreportableReason: The running kernel is not an Ubuntu kernel + UpgradeStatus: No upgrade log present (probably fresh install) + UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo + _MarkForUpload: True ** Attachment added: "JournalErrors.txt" https://bugs.launchpad.net/bugs/1586838/+attachment/4672629/+files/JournalErrors.txt ** Description changed: Ubuntu 16.04 on virtualbox 5.0.20. VirtualBoxAddition is installed. The issue happens on both out-of-box 4.4.0 kernel and the later- installed 4.4.11 kernel. 100% re-producible. The same issue applies to both virtual hard drive (/dev/sdb) a
[Kernel-packages] [Bug 1586838] [NEW] bcache causes a kernel bug when adding a new cache device
Public bug reported: Ubuntu 16.04 on virtualbox 5.0.20. VirtualBoxAddition is installed. The issue happens on both out-of-box 4.4.0 kernel and the later- installed 4.4.11 kernel. 100% re-producible. The same issue applies to both virtual hard drive (/dev/sdb) and file-base block device (/dev/loop2) I created within Ubuntu. $ sudo make-bcache -C /dev/sdb The error shows (through dmesg): [ 47.616016] [ cut here ] [ 47.616035] kernel BUG at /home/kernel/COD/linux/drivers/md/bcache/super.c:1822! [ 47.616051] invalid opcode: [#1] SMP [ 47.616063] Modules linked in: vboxsf(OE) ppdev vboxvideo(OE) ttm drm_kms_helper input_leds joydev drm serio_raw lpc_ich fb_sys_fops syscopyarea i2c_piix4 sysfillrect sysimgblt 8250_fintek parport_pc vboxguest(OE) parport mac_hid ib_iser rdma_cm iw_cm ib_cm ib_sa ib_mad ib_core ib_addr iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi autofs4 btrfs raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 multipath linear bcache raid0 hid_generic usbhid hid crct10dif_pclmul crc32_pclmul aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd psmouse fjes ahci libahci pata_acpi video [ 47.616255] CPU: 2 PID: 1247 Comm: bcache-register Tainted: G OE 4.4.11-040411-generic #201605182255 [ 47.616277] Hardware name: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006 [ 47.616295] task: 88003514 ti: 88007684 task.ti: 88007684 [ 47.616311] RIP: 0010:[] [] cache_alloc.isra.20+0x646/0x670 [bcache] [ 47.616340] RSP: 0018:880076843d10 EFLAGS: 00010246 [ 47.616352] RAX: 880079528c60 RBX: 8800796a RCX: 05d2 [ 47.616367] RDX: 05d1 RSI: RDI: 00019d40 [ 47.616382] RBP: 880076843d28 R08: 88007fd19d40 R09: 88007d001d00 [ 47.616398] R10: 880079528c60 R11: 88007b590958 R12: [ 47.616413] R13: 0010 R14: 88007c3c4000 R15: 8800796a [ 47.616428] FS: 7ff8ffa10700() GS:88007fd0() knlGS: [ 47.616445] CS: 0010 DS: ES: CR0: 80050033 [ 47.616458] CR2: 7ff8ff4c1d30 CR3: 77f7 CR4: 000406e0 [ 47.616476] DR0: DR1: DR2: [ 47.616491] DR3: DR6: fffe0ff0 DR7: 0400 [ 47.616506] Stack: [ 47.616511] ea0001e880c0 88007cc28680 880076843dd0 [ 47.616531] c01373e3 880076843d58 811c8de5 7fd61025 [ 47.616551] 7ff8ff4cf000 88007b590958 8800796a0008 0009 [ 47.616570] Call Trace: [ 47.616585] [] register_bcache+0x2b3/0x1140 [bcache] [ 47.616626] [] ? page_add_file_rmap+0x25/0x60 [ 47.617074] [] ? unlock_page+0x69/0x70 [ 47.617516] [] kobj_attr_store+0xf/0x20 [ 47.617946] [] sysfs_kf_write+0x37/0x40 [ 47.618353] [] kernfs_fop_write+0x11d/0x170 [ 47.618755] [] __vfs_write+0x37/0x110 [ 47.619149] [] ? apparmor_file_permission+0x18/0x20 [ 47.619543] [] ? security_file_permission+0x3d/0xc0 [ 47.619922] [] ? percpu_down_read+0x12/0x50 [ 47.620290] [] vfs_write+0xa9/0x1a0 [ 47.620648] [] SyS_write+0x55/0xc0 [ 47.621021] [] entry_SYSCALL_64_fastpath+0x16/0x71 [ 47.621362] Code: 6a fd ff ff e9 4d fd ff ff be c0 00 40 02 4c 89 e7 e8 cf 61 0b c1 48 85 c0 48 89 83 f0 0a 00 00 0f 85 96 fd ff ff e9 79 fd ff ff <0f> 0b 0f 0b 0f 0b bf 40 00 00 00 e8 9a 90 09 c1 48 85 c0 48 89 [ 47.622456] RIP [] cache_alloc.isra.20+0x646/0x670 [bcache] [ 47.622812] RSP [ 47.623177] ---[ end trace 19bcd02731ac9be1 ]--- ** Affects: linux (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1586838 Title: bcache causes a kernel bug when adding a new cache device Status in linux package in Ubuntu: New Bug description: Ubuntu 16.04 on virtualbox 5.0.20. VirtualBoxAddition is installed. The issue happens on both out-of-box 4.4.0 kernel and the later- installed 4.4.11 kernel. 100% re-producible. The same issue applies to both virtual hard drive (/dev/sdb) and file-base block device (/dev/loop2) I created within Ubuntu. $ sudo make-bcache -C /dev/sdb The error shows (through dmesg): [ 47.616016] [ cut here ] [ 47.616035] kernel BUG at /home/kernel/COD/linux/drivers/md/bcache/super.c:1822! [ 47.616051] invalid opcode: [#1] SMP [ 47.616063] Modules linked in: vboxsf(OE) ppdev vboxvideo(OE) ttm drm_kms_helper input_leds joydev drm serio_raw lpc_ich fb_sys_fops syscopyarea i2c_piix4 sysfillrect sysimgblt 8250_fintek parport_pc vboxguest(OE) parport mac_hid ib_iser rdma_cm iw_cm ib_cm ib_sa ib_mad ib_core ib_addr iscsi_tcp