From owner-freebsd-usb@freebsd.org Mon Mar 12 21:07:27 2018 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 92D67F4AA5F for ; Mon, 12 Mar 2018 21:07:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 53D897285D for ; Mon, 12 Mar 2018 21:07:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 67CAD194D3 for ; Mon, 12 Mar 2018 21:07:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w2CL7QpE050424 for ; Mon, 12 Mar 2018 21:07:26 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w2CL7Qow050410 for freebsd-usb@FreeBSD.org; Mon, 12 Mar 2018 21:07:26 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-usb@FreeBSD.org Subject: [Bug 226174] umass access results in kernel panic Date: Mon, 12 Mar 2018 21:07:26 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: stitzinger_rupert@web.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2018 21:07:27 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D226174 --- Comment #2 from Rupert Stitzinger --- 1. Installed the patch for scsi_da from below link (D14456) --> Same behaviour 2. messages when crashing (hope no typo): ----------------------- # // plug in usb stick umass1 on uhub0 . umass1: SCSI over bulk-only; quirks=3D0x4000 umass1:2:1: Attached to scbus2 da1 at umass-sim1 bus 1 scbus 2 target 0 lun 0 da1: < 1100> Removable Direct Access SPC-2 SCSI device . da1: 40.000MB/s transfers . da1: quirks=3D0x2 # # mount_msdosfs /dev/da1 /mnt/dos=20=20=20=20=20=20=20 panic: bq_remove: Remove buffer 0xfffffe0000e3ec40 from wrong queue cpuid=3D1 time=3D1520878478 KBD: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00004a0= 7a0 vpanic() at vpanic+0x18d/frame 0xfffffe00004a0800 vpanic() at vpanic/frame 0xfffffe00004a0800 bq_remove() at bq_remove+0x151/frame 0xfffffe00004a08a0 buf_recycle() at buf_recycle+0x1a6/frame 0xfffffe00004a0910 bufspace_demon() at bufspace_demon+0x9a/frame 0xfffffe00004a0970 fork_exit() at fork_exit+0x84/frame 0xfffffe00004a09b0 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe00004a09b0 --- trap 0, rip =3D 0, rsp =3D 0, rbp =3D 0 --- KBD: enter: panic [thread pid 22 tid 1000072 ] Stopped at kbd_enter+0x3b: movq $0,kdb_why db> ------------------------------ // Added some debug printfs at various functions at head and at end for entering and leaving (only at the end of function) some functions // Before panic: ENTER dastart, LEAVE dastart, ENTER dadone, ENTER dastart, LEAVE dastart panic: ----------------------------- Might be of interest: Machine has microcode patches (for Meltdown / Spectre= ) in BIOS. --=20 You are receiving this mail because: You are the assignee for the bug.=