Kai-Heng Feng: The full dmesg output is already part of the ticket. However, I've now also included the latest crash as an attachment.
The issue happened again tonight. When the crash happens, the system loses the ability to write to the filesystem(s). Specifically, if you type 'sync' in a window, it will hang. ** Attachment added: "dmesg output caused by resetting the RED-V board - leads to system hang" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1913900/+attachment/5464649/+files/dmesg -- 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/1913900 Title: Reset of USB device leads to GPF in cdc_acm kernel module Status in linux package in Ubuntu: Confirmed Bug description: Ubuntu 20.04 system, and a SparkFun RED-V RISC-V devboard attached via USB. Software used includes SEGGER J-Link (proprietary) and /opt /riscv-bin/riscv32-unknown-elf-gdb from the riscv github repo. With a 'gdb remote' connection established, via the JLink software, pressing the RESET button on the devboard leads to a GPF in the cdc_acm kernel module. The machine doesn't go dowdn instantly, but becomes progressively more unusable after that (e.g. ssh login hangs after password prompt, unlocking from screensaver leads to a black screen, but no desktop. Usually a reset is required because the system will fail to properly shut down. Although this description still lacks some precision, the effect is very reproducible. A USB device, and software without any special privileges, should not be able to destabilize the system. Jan 30 13:24:46 crunchy kernel: [ 4839.033113] cdc_acm 1-8.3:1.0: failed to set dtr/rts Jan 30 13:24:46 crunchy kernel: [ 4839.045325] xhci_hcd 0000:00:14.0: WARN Cannot submit Set TR Deq Ptr Jan 30 13:24:46 crunchy kernel: [ 4839.045329] xhci_hcd 0000:00:14.0: A Set TR Deq Ptr command is pending. Jan 30 13:24:46 crunchy kernel: [ 4839.046417] general protection fault: 0000 [#1] SMP PTI Jan 30 13:24:46 crunchy kernel: [ 4839.046430] CPU: 5 PID: 55103 Comm: kworker/5:3 Tainted: P OE 5.4.0-65-generic #73-Ubuntu Jan 30 13:24:46 crunchy kernel: [ 4839.046435] Hardware name: System manufacturer System Product Name/PRIME Z270M-PLUS, BIOS 1205 05/14/2018 Jan 30 13:24:46 crunchy kernel: [ 4839.046451] Workqueue: events acm_softint [cdc_acm] Jan 30 13:24:46 crunchy kernel: [ 4839.046465] RIP: 0010:usb_clear_halt+0x1d/0xc0 Jan 30 13:24:46 crunchy kernel: [ 4839.046474] Code: 85 f6 75 e8 c3 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 55 89 f0 48 89 e5 41 54 49 89 fc 53 89 f3 c1 fb 0f 83 e3 0f 48 83 ec 08 <8b> 37 c1 e6 08 81 ce 00 00 00 80 a8 80 74 44 68 88 13 00 00 80 cb Jan 30 13:24:46 crunchy kernel: [ 4839.046480] RSP: 0018:ffffb4523f1e3e18 EFLAGS: 00010296 Jan 30 13:24:46 crunchy kernel: [ 4839.046487] RAX: 00000000c0408780 RBX: 0000000000000001 RCX: ffffffff92bbe148 Jan 30 13:24:46 crunchy kernel: [ 4839.046493] RDX: 0000000000000001 RSI: 00000000c0408780 RDI: 9b444bbb6b70a4de Jan 30 13:24:46 crunchy kernel: [ 4839.046498] RBP: ffffb4523f1e3e30 R08: 0000000000000108 R09: ffff98c5b6b46068 Jan 30 13:24:46 crunchy kernel: [ 4839.046503] R10: 0000000000008a0a R11: 0000000000000000 R12: 9b444bbb6b70a4de Jan 30 13:24:46 crunchy kernel: [ 4839.046508] R13: ffff98c5b6b70700 R14: ffff98c3e5537000 R15: ffff98c3d454be40 Jan 30 13:24:46 crunchy kernel: [ 4839.046515] FS: 0000000000000000(0000) GS:ffff98c5b6b40000(0000) knlGS:0000000000000000 Jan 30 13:24:46 crunchy kernel: [ 4839.046520] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 Jan 30 13:24:46 crunchy kernel: [ 4839.046526] CR2: 00007efd6d25f020 CR3: 0000000fa64e8005 CR4: 00000000003606e0 Jan 30 13:24:46 crunchy kernel: [ 4839.046531] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 Jan 30 13:24:46 crunchy kernel: [ 4839.046537] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Jan 30 13:24:46 crunchy kernel: [ 4839.046540] Call Trace: Jan 30 13:24:46 crunchy kernel: [ 4839.046556] acm_softint+0x65/0xf0 [cdc_acm] Jan 30 13:24:46 crunchy kernel: [ 4839.046570] process_one_work+0x1eb/0x3b0 Jan 30 13:24:46 crunchy kernel: [ 4839.046580] worker_thread+0x4d/0x400 Jan 30 13:24:46 crunchy kernel: [ 4839.046591] kthread+0x104/0x140 Jan 30 13:24:46 crunchy kernel: [ 4839.046600] ? process_one_work+0x3b0/0x3b0 Jan 30 13:24:46 crunchy kernel: [ 4839.046607] ? kthread_park+0x90/0x90 Jan 30 13:24:46 crunchy kernel: [ 4839.046619] ret_from_fork+0x35/0x40 Jan 30 13:24:46 crunchy kernel: [ 4839.046627] Modules linked in: cdc_acm xt_CHECKSUM xt_MASQUERADE xt_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp ip6table_mangle ip6table_nat iptable_mangle iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables nfnetlink ip6table_filter ip6_tables iptable_filter bpfilter bridge stp llc binfmt_misc zfs(PO) zunicode(PO) zavl(PO) icp(PO) zcommon(PO) znvpair(PO) spl(O) intel_rapl_msr zlua(PO) snd_hda_codec_hdmi mei_hdcp intel_rapl_common x86_pkg_temp_thermal intel_powerclamp snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio snd_seq_midi kvm snd_seq_midi_event snd_hda_intel snd_intel_dspcfg snd_rawmidi rapl snd_hda_codec intel_cstate snd_hda_core snd_hwdep eeepc_wmi asus_wmi sparse_keymap wmi_bmof mxm_wmi snd_pcm snd_seq snd_seq_device snd_timer input_leds joydev snd mei_me soundcore mei nvidia_uvm(OE) mac_hid acpi_pad sch_fq_codel coretemp parport_pc ppdev parport ip_tables x_tables autofs4 raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor Jan 30 13:24:46 crunchy kernel: [ 4839.046733] raid6_pq libcrc32c raid0 multipath linear hid_generic usbhid hid uas usb_storage raid1 nvidia_drm(POE) nvidia_modeset(POE) nvidia(POE) crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel crypto_simd cryptd glue_helper e1000e drm_kms_helper syscopyarea i2c_i801 sysfillrect sysimgblt nvme fb_sys_fops i40e ahci drm nvme_core libahci wmi video [last unloaded: lp] Jan 30 13:24:46 crunchy kernel: [ 4839.046841] ---[ end trace 707f9ebaac874489 ]--- Jan 30 13:24:46 crunchy kernel: [ 4839.046843] RIP: 0010:usb_clear_halt+0x1d/0xc0 Jan 30 13:24:46 crunchy kernel: [ 4839.046845] Code: 85 f6 75 e8 c3 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 55 89 f0 48 89 e5 41 54 49 89 fc 53 89 f3 c1 fb 0f 83 e3 0f 48 83 ec 08 <8b> 37 c1 e6 08 81 ce 00 00 00 80 a8 80 74 44 68 88 13 00 00 80 cb Jan 30 13:24:46 crunchy kernel: [ 4839.046846] RSP: 0018:ffffb4523f1e3e18 EFLAGS: 00010296 Jan 30 13:24:46 crunchy kernel: [ 4839.046847] RAX: 00000000c0408780 RBX: 0000000000000001 RCX: ffffffff92bbe148 Jan 30 13:24:46 crunchy kernel: [ 4839.046848] RDX: 0000000000000001 RSI: 00000000c0408780 RDI: 9b444bbb6b70a4de Jan 30 13:24:46 crunchy kernel: [ 4839.046848] RBP: ffffb4523f1e3e30 R08: 0000000000000108 R09: ffff98c5b6b46068 Jan 30 13:24:46 crunchy kernel: [ 4839.046849] R10: 0000000000008a0a R11: 0000000000000000 R12: 9b444bbb6b70a4de Jan 30 13:24:46 crunchy kernel: [ 4839.046850] R13: ffff98c5b6b70700 R14: ffff98c3e5537000 R15: ffff98c3d454be40 Jan 30 13:24:46 crunchy kernel: [ 4839.046851] FS: 0000000000000000(0000) GS:ffff98c5b6b40000(0000) knlGS:0000000000000000 Jan 30 13:24:46 crunchy kernel: [ 4839.046852] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 Jan 30 13:24:46 crunchy kernel: [ 4839.046853] CR2: 00007efd6d25f020 CR3: 0000000fa64e8005 CR4: 00000000003606e0 Jan 30 13:24:46 crunchy kernel: [ 4839.046854] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 Jan 30 13:24:46 crunchy kernel: [ 4839.046855] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: linux-modules-extra-5.4.0-65-generic 5.4.0-65.73 ProcVersionSignature: Ubuntu 5.4.0-65.73-generic 5.4.78 Uname: Linux 5.4.0-65-generic x86_64 NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset nvidia ApportVersion: 2.20.11-0ubuntu27.14 Architecture: amd64 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/controlC1: paul 5136 F.... pulseaudio /dev/snd/controlC0: paul 5136 F.... pulseaudio CasperMD5CheckResult: skip CurrentDesktop: KDE Date: Sat Jan 30 20:01:17 2021 HibernationDevice: RESUME=none MachineType: System manufacturer System Product Name ProcFB: 0 VESA VGA ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-65-generic root=UUID=b8e8ad64-f6f1-4e03-98d4-9dbf90a9ba78 ro quiet nosplash RelatedPackageVersions: linux-restricted-modules-5.4.0-65-generic N/A linux-backports-modules-5.4.0-65-generic N/A linux-firmware 1.187.9 RfKill: SourcePackage: linux UpgradeStatus: Upgraded to focal on 2020-04-26 (279 days ago) dmi.bios.date: 05/14/2018 dmi.bios.vendor: American Megatrends Inc. dmi.bios.version: 1205 dmi.board.asset.tag: Default string dmi.board.name: PRIME Z270M-PLUS dmi.board.vendor: ASUSTeK COMPUTER INC. dmi.board.version: Rev X.0x dmi.chassis.asset.tag: Default string dmi.chassis.type: 3 dmi.chassis.vendor: Default string dmi.chassis.version: Default string dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr1205:bd05/14/2018:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKCOMPUTERINC.:rnPRIMEZ270M-PLUS:rvrRevX.0x:cvnDefaultstring:ct3:cvrDefaultstring: dmi.product.family: To be filled by O.E.M. dmi.product.name: System Product Name dmi.product.sku: SKU dmi.product.version: System Version dmi.sys.vendor: System manufacturer To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1913900/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp

