From nobody Sun Jan 14 02:45:54 2024 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TCKQW1k4Qz56pHr for ; Sun, 14 Jan 2024 02:45:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TCKQV50zNz41fk for ; Sun, 14 Jan 2024 02:45:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705200354; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nJ+mWz4NIboK3L81VaNRGE5fU1Yz0hryY8bap77QhxU=; b=OopGgLrZrxBkNSxo1do0VOJI6zemNa3pUbAdx0Eqmjy+xa6v2GAGNYq5+B5R2AXgwMQyNV KQczNnGXbgH2CV6uprEVc1kxTjyYxMg5hVFrt9U7fSKB5xObZ8Gp3SIIWESzP7V1U2UnbX 8WHFZ6g6USqJHGFWlQJNC1g4rSR1zcJ/Tq5hwBqpf/agky2A9aF5rR8FO7d5TQXdrSzKsN iorGfhBCWB+fsgMSF72YawxRX7/1Uwv+rFMymu/V068XQqptg8WSQ5iurt8Xki147gmJrD SB1qyQInqtpbcGML7uieBxtq0bTmHLYqGwBABRtcH57bqaTCzME6XLLXKP2PSA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705200354; a=rsa-sha256; cv=none; b=Y1n2GY1f35HKsBg37jw213uyOA+LDZXMRHLOhtWKGXpCei+Rc4bF1QURvTz+dqv0Y2aEQG iPcXSCH2DSldplRkmUDaST6xvYLvvkBLFFP2qSTHMn6omCHFDp0TkBaudP8OfhRvyVx845 TFVqfnoMh42PTpwMIn6ZvAdRBVQBScMuLTWbC3pTp0tRgGStKwPlnGrN/Firy4SMl56QZx Zwc63w9xT0Up2N10Otkb53X34Ee8MUeKteiELH8NwclQD6MJYDNLwhwpVzxTyWzOIDu1+M RoYFhu1BjZky1cvvfNP6oJ7EuzCS/wzn+fFW9lESaZcHoMt2/qLKHf56XItYNg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TCKQV44R0zwP1 for ; Sun, 14 Jan 2024 02:45:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 40E2jseN075035 for ; Sun, 14 Jan 2024 02:45:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 40E2jsjr075025 for freebsd-arm@FreeBSD.org; Sun, 14 Jan 2024 02:45:54 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 276309] OS craching [sic] on USB connection Date: Sun, 14 Jan 2024 02:45:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: arm X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: fbsd@www.zefox.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-arm@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276309 Bug ID: 276309 Summary: OS craching [sic] on USB connection Product: Base System Version: 14.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: arm Assignee: freebsd-arm@FreeBSD.org Reporter: fbsd@www.zefox.net This is in response to Warner's closure of bug 205166 The test host I used was a Pi3 booted from a usb mechanical hard drive connected via a powered hub running FreeBSD pelorus.zefox.org 14.0-RELEASE-p4 FreeBSD 14.0-RELEASE-p4 #0 releng/14.0-n265400-4edf3b80733e: Wed Dec 27 20:21:26 PST 2023=20=20=20=20 bob@pelorus:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64 The first test was to connect a former boot disk similar to the one the machine was currently running from. No problem, normal device discovery chatter on the console. Next experiment was to connect a usb-serial adapter with an old Raspian microSD already plugged into it. Response was an immediate reboot, from the Raspian microSD Las experiment was to plug in an FTDI usb-serial adapter, resulting in=20 login: ugen1.4: at usbus1 (disconnected) (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 27 e0 b0 28 00 00 18 00 uhub2: at uhub1, port 2, addr 4 (disconnected) (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command, 3 more tries remain ugen1.5: at usbus1 (disconnected) (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 27 e0 b0 28 00 00 18 00 umass0: at uhub2, port 2, addr 5 (disconnected) (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command, 2 more tries remain da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: s/n 000000000000A detached g_vfs_done(): da0p2 converting all errors to ENXIO g_vfs_done():da0p2[WRITE(offset=3D342274080768, length=3D12288)]error =3D 6 supressing further ENXIO panic: UFS: root fs would be forcibly unmounted cpuid =3D 0 time =3D 1705223363 KDB: stack backtrace: #0 0xffff00000050d52c at kdb_backtrace+0x58 #1 0xffff0000004b9044 at vpanic+0x19c #2 0xffff0000004b8ea4 at panic+0x44 #3 0xffff0000007fd290 at ffs_fsfail_cleanup+0x178 #4 0xffff0000007d1748 at ffs_update+0x300 #5 0xffff00000080534c at ffs_syncvnode+0x62c #6 0xffff000000803ce4 at ffs_fsync+0x28 #7 0xffff0000005cdd84 at kern_fsync+0x1b0 #8 0xffff000000896628 at do_el0_sync+0x5b0 #9 0xffff000000874110 at handle_el0_sync+0x44 Uptime: 6m28s Resetting system ...had to pull the plug. All three tests were done via the powered usb hub. I'll add that even Pi4 RasPiOS isn't immune to such mischief. Plugging in the same usb-microSD adapter with a card inserted stops the mouse and keyboard working, with power cycling the easiest recovery. Plugging in the adapter without a card and then inserting the card allows normal recognition. Haven't tried that with FreeBSD recently, it used to work also. The FT232 also crashed RasPiOS, disabling keyboard and mouse. The RasPiOS experiments didn't use a powered hub, but neither device draws much power. USB still seems a work in progress. --=20 You are receiving this mail because: You are the assignee for the bug.=