Did this issue start happening after an update/upgrade? Was there a prior kernel version where you were not having this particular problem?
Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.14 kernel[0]. If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'. If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'. Once testing of the upstream kernel is complete, please mark this bug as "Confirmed". Thanks in advance. [0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.14-rc4 ** Changed in: linux (Ubuntu) Importance: Undecided => Medium ** Changed in: linux (Ubuntu) Status: Confirmed => Incomplete ** Tags added: kernel-da-key -- 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/1723032 Title: Copying data from SATA SSD to NVMe SSD causes kernel bug Status in linux package in Ubuntu: Incomplete Bug description: I'm trying to move my Ubuntu Server installation to a new NVMe SSD (Samsung EVO 960 500GB) using dd: sudo dd if=/dev/sda3 of=/dev/nvme0n1p3 bs=1M conv=fsync status=progress The first two partitions, EFI System and the Linux root fs, copy fine but copying the third partition causes the dd command to hang after a few seconds. If I kill the dd command the whole system freezes. Running Ubuntu Desktop 17.4 live image on a USB-connected SD-card My SATA SSD is partitioned as follows: Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: 75902613-8162-4C99-A7CF-1642374BEDBB Device Start End Sectors Size Type /dev/sda1 2048 1050623 1048576 512M EFI System /dev/sda2 1050624 59643903 58593280 28G Linux filesystem /dev/sda3 59643904 250068991 190425088 90.8G Linux LVM dmesg output: [ 140.327890] ------------[ cut here ]------------ [ 140.327914] kernel BUG at /build/linux-Fk60NP/linux-4.10.0/drivers/nvme/host/pci.c:566! [ 140.327940] invalid opcode: 0000 [#1] SMP [ 140.327953] Modules linked in: bnep snd_hda_codec_hdmi intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel irqbypass snd_hda_codec crct10dif_pclmul crc32_pclmul snd_hda_core snd_hwdep ghash_clmulni_intel snd_pcm pcbc aesni_intel snd_seq_midi snd_seq_midi_event aes_x86_64 snd_rawmidi crypto_simd glue_helper cryptd intel_cstate snd_seq intel_rapl_perf snd_seq_device input_leds joydev snd_timer serio_raw snd hci_uart soundcore btbcm btqca btintel bluetooth mei_me mei intel_lpss_acpi intel_lpss mac_hid acpi_pad shpchp intel_pch_thermal parport_pc ppdev lp parport ip_tables x_tables autofs4 aufs nls_utf8 isofs btrfs xor raid6_pq nls_iso8859_1 dm_mirror dm_region_hash dm_log uas usb_storage hid_generic usbhid i915 i2c_algo_bit [ 140.328186] drm_kms_helper syscopyarea e1000e psmouse ptp pps_core nvme sysfillrect sysimgblt nvme_core fb_sys_fops ahci drm libahci wmi i2c_hid pinctrl_sunrisepoint video pinctrl_intel hid fjes [ 140.328243] CPU: 1 PID: 170 Comm: kworker/u4:3 Not tainted 4.10.0-19-generic #21-Ubuntu [ 140.328267] Hardware name: FUJITSU D3417-B1/D3417-B1, BIOS V5.0.0.11 R1.22.0 for D3417-B1x 07/26/2017 [ 140.328302] Workqueue: writeback wb_workfn (flush-259:0) [ 140.328320] task: ffff8a80a84eab00 task.stack: ffff968380aac000 [ 140.328341] RIP: 0010:nvme_queue_rq+0x746/0x8e0 [nvme] [ 140.328358] RSP: 0018:ffff968380aaf670 EFLAGS: 00010286 [ 140.328375] RAX: 0000000000000078 RBX: 00000000fffff200 RCX: 0000000000001000 [ 140.328397] RDX: 0000000000000010 RSI: 0000000000000200 RDI: 0000000000000246 [ 140.328418] RBP: ffff968380aaf748 R08: ffff8a80a1d66000 R09: 000000000000f200 [ 140.328440] R10: 0000000000001000 R11: ffff8a7fbcdf0000 R12: 00000000a4dfa000 [ 140.328461] R13: 000000000002f400 R14: ffff8a80a1d66000 R15: 0000000000000200 [ 140.328483] FS: 0000000000000000(0000) GS:ffff8a80ae500000(0000) knlGS:0000000000000000 [ 140.328508] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 140.328526] CR2: 00007f0422b5f2b5 CR3: 000000004ba09000 CR4: 00000000002406e0 [ 140.328547] Call Trace: [ 140.328560] blk_mq_try_issue_directly+0x7e/0x100 [ 140.328576] blk_mq_make_request+0x3cf/0x4e0 [ 140.328592] generic_make_request+0xf2/0x1d0 [ 140.328607] submit_bio+0x73/0x150 [ 140.328619] ? __percpu_counter_add+0x4f/0x60 [ 140.328635] submit_bh_wbc+0x152/0x180 [ 140.328648] __block_write_full_page+0x176/0x360 [ 140.328664] ? I_BDEV+0x20/0x20 [ 140.328676] ? I_BDEV+0x20/0x20 [ 140.328688] block_write_full_page+0x13b/0x160 [ 140.328702] blkdev_writepage+0x18/0x20 [ 140.328716] __writepage+0x13/0x30 [ 140.328728] write_cache_pages+0x205/0x530 [ 140.328742] ? wb_position_ratio+0x1f0/0x1f0 [ 140.328757] generic_writepages+0x56/0x90 [ 140.328771] ? delayacct_end+0x56/0x60 [ 140.328784] ? __delayacct_blkio_end+0x30/0x50 [ 140.328799] blkdev_writepages+0x2f/0x40 [ 140.328813] do_writepages+0x1e/0x30 [ 140.328826] __writeback_single_inode+0x45/0x320 [ 140.328842] ? wake_up_q+0x80/0x80 [ 140.328855] writeback_sb_inodes+0x266/0x5f0 [ 140.328870] __writeback_inodes_wb+0x92/0xc0 [ 140.328884] wb_writeback+0x268/0x300 [ 140.328897] wb_workfn+0x234/0x410 [ 140.328910] process_one_work+0x1fc/0x4b0 [ 140.328924] worker_thread+0x4b/0x500 [ 140.328938] kthread+0x101/0x140 [ 140.328949] ? process_one_work+0x4b0/0x4b0 [ 140.328964] ? kthread_create_on_node+0x60/0x60 [ 140.328980] ret_from_fork+0x2c/0x40 [ 140.328992] Code: 51 63 8b ec 8b 95 48 ff ff ff 48 89 85 60 ff ff ff 4c 8b 50 10 44 8b 48 18 8b 8d 50 ff ff ff 44 8b 9d 58 ff ff ff e9 dc fc ff ff <0f> 0b 49 8b 76 68 48 8b 7d 80 e8 1b 07 8a ec 83 e8 01 74 58 41 [ 140.329073] RIP: nvme_queue_rq+0x746/0x8e0 [nvme] RSP: ffff968380aaf670 [ 140.342445] ---[ end trace 0863dd8ab4eda254 ]--- [ 140.342446] ------------[ cut here ]------------ [ 140.342449] WARNING: CPU: 1 PID: 170 at /build/linux-Fk60NP/linux-4.10.0/kernel/exit.c:746 do_exit+0x62/0xb10 [ 140.342450] Modules linked in: bnep snd_hda_codec_hdmi intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel irqbypass snd_hda_codec crct10dif_pclmul crc32_pclmul snd_hda_core snd_hwdep ghash_clmulni_intel snd_pcm pcbc aesni_intel snd_seq_midi snd_seq_midi_event aes_x86_64 snd_rawmidi crypto_simd glue_helper cryptd intel_cstate snd_seq intel_rapl_perf snd_seq_device input_leds joydev snd_timer serio_raw snd hci_uart soundcore btbcm btqca btintel bluetooth mei_me mei intel_lpss_acpi intel_lpss mac_hid acpi_pad shpchp intel_pch_thermal parport_pc ppdev lp parport ip_tables x_tables autofs4 aufs nls_utf8 isofs btrfs xor raid6_pq nls_iso8859_1 dm_mirror dm_region_hash dm_log uas usb_storage hid_generic usbhid i915 i2c_algo_bit [ 140.342474] drm_kms_helper syscopyarea e1000e psmouse ptp pps_core nvme sysfillrect sysimgblt nvme_core fb_sys_fops ahci drm libahci wmi i2c_hid pinctrl_sunrisepoint video pinctrl_intel hid fjes [ 140.342482] CPU: 1 PID: 170 Comm: kworker/u4:3 Tainted: G D 4.10.0-19-generic #21-Ubuntu [ 140.342483] Hardware name: FUJITSU D3417-B1/D3417-B1, BIOS V5.0.0.11 R1.22.0 for D3417-B1x 07/26/2017 [ 140.342485] Workqueue: writeback wb_workfn (flush-259:0) [ 140.342487] Call Trace: [ 140.342489] dump_stack+0x63/0x81 [ 140.342490] __warn+0xcb/0xf0 [ 140.342492] warn_slowpath_null+0x1d/0x20 [ 140.342493] do_exit+0x62/0xb10 [ 140.342495] ? kthread+0x101/0x140 [ 140.342497] ? process_one_work+0x4b0/0x4b0 [ 140.342499] rewind_stack_do_exit+0x17/0x20 [ 140.342501] ---[ end trace 0863dd8ab4eda255 ]--- ProblemType: Bug DistroRelease: Ubuntu 17.04 Package: linux-image-4.10.0-19-generic 4.10.0-19.21 ProcVersionSignature: Ubuntu 4.10.0-19.21-generic 4.10.8 Uname: Linux 4.10.0-19-generic x86_64 ApportVersion: 2.20.4-0ubuntu4 Architecture: amd64 AudioDevicesInUse: Cannot stat file /proc/2554/fd/17: Stale file handle Cannot stat file /proc/2554/fd/18: Stale file handle USER PID ACCESS COMMAND /dev/snd/controlC0: ubuntu 2471 F.... pulseaudio CasperVersion: 1.380 CurrentDesktop: Unity:Unity7 Date: Thu Oct 12 08:08:56 2017 IwConfig: lo no wireless extensions. enp0s31f6 no wireless extensions. LiveMediaBuild: Ubuntu 17.04 "Zesty Zapus" - Release amd64 (20170412) Lsusb: Bus 002 Device 002: ID 0bda:0326 Realtek Semiconductor Corp. Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 046d:c025 Logitech, Inc. MX500 Optical Mouse Bus 001 Device 002: ID 046d:c31b Logitech, Inc. Compact Keyboard K300 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub MachineType: FUJITSU D3417-B1 ProcEnviron: TERM=xterm-256color PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bash ProcFB: 0 inteldrmfb ProcKernelCmdLine: BOOT_IMAGE=/casper/vmlinuz.efi file=/cdrom/preseed/username.seed boot=casper quiet splash --- RelatedPackageVersions: linux-restricted-modules-4.10.0-19-generic N/A linux-backports-modules-4.10.0-19-generic N/A linux-firmware 1.164 RfKill: SourcePackage: linux UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 07/26/2017 dmi.bios.vendor: FUJITSU // American Megatrends Inc. dmi.bios.version: V5.0.0.11 R1.22.0 for D3417-B1x dmi.board.name: D3417-B1 dmi.board.vendor: FUJITSU dmi.board.version: S26361-D3417-B1 dmi.chassis.type: 3 dmi.chassis.vendor: FUJITSU dmi.modalias: dmi:bvnFUJITSU//AmericanMegatrendsInc.:bvrV5.0.0.11R1.22.0forD3417-B1x:bd07/26/2017:svnFUJITSU:pnD3417-B1:pvr:rvnFUJITSU:rnD3417-B1:rvrS26361-D3417-B1:cvnFUJITSU:ct3:cvr: dmi.product.name: D3417-B1 dmi.sys.vendor: FUJITSU To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1723032/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp