From nobody Wed May 4 03:23:44 2022 X-Original-To: bugs@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 7F9B61AC23CC for ; Wed, 4 May 2022 03:23:45 +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 4KtMcK1sp8z4kLc for ; Wed, 4 May 2022 03:23:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 1FE9B328B for ; Wed, 4 May 2022 03:23:45 +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 2443NjO9099989 for ; Wed, 4 May 2022 03:23:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2443Nj7i099988 for bugs@FreeBSD.org; Wed, 4 May 2022 03:23:45 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: bugs@FreeBSD.org Subject: [Bug 263704] Panic because device went away with XPT_ATA_IO pending Date: Wed, 04 May 2022 03:23:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: imp@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: imp@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to 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 List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651634625; 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: in-reply-to:in-reply-to:references:references; bh=aeQSn9pLV1sh163qE9SIK+XQ1UdsoQhsnS2ImZPBe6w=; b=FKPtwvFFO2PCgl4zprAK/iADMLK6NnawrKNFQuZtFQFFSR3qxqaz7VIz7RqjY496s/U1qR rHnhO1ZlNtSIazmjYVF8xa3I8YeCOyRbPhV+NAyCmHlBPhXsf03ZaoLhsKkV0yj2MrynMQ d9Gr4Rl+HF7YPNPLGuJIJdYYYPz7GagEo9HxT+yHO9tfHXGQYiMQq0khq/wCi2Sjh4PeoC +M8V9nqDEzFRpo0pMPyXUr0C2U3aMr3DpZQRlIc0iHbe6rlomORaMWyaPNdqtHI0NJb2bO 2B7BgsBEwuKmi0w+VARJ24JamaDe39htWXl01k06SBnJVSD9m0q5gG8Hz6RwHg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651634625; a=rsa-sha256; cv=none; b=Z+jBNRk3mX+SVb6BXKrszHUPbqt7GaniHvYoXyY+2bpeIg4Qwe93zJRUWIuW66+q86Yt18 AyfqMJmeivohjMwFShjkmdVlQO/xFQlsirsyhrsKFvHDYDDlFZYnyXvrTpdqGCCU9xuz2M eaG2rN9BUNKjMxmzI5zVr4F7eGdi7ecEvVo3GmAliWos4P7xypfXT2Ad1DrJQ0yWpOoBFE pGlZsw1CCh0xHXXuoA4/S585lFhaOVxaagXNqgEGLz1BfcHXacOUjYi9LaBI2rLMyBV2Nu ioETSck7Rnq5tnBp5JroFWZDouC6EzXCLzsN49+ZVgu1tUlMNrq16T9BqO4gvw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263704 Warner Losh changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |In Progress Assignee|bugs@FreeBSD.org |imp@FreeBSD.org --- Comment #1 from Warner Losh --- On further examination, it appears to be a bug in the dynamic I/O scheduler. We can call xpt_schedule(CAM_PRI_NORMAL) during recovery which causes all existing periphs that use it to schedule their recovery operation a second time, but at a bad priority. It has nothing to do with dropping references to the device, but rather causing extra I/O to be scheduled that can persist after the periph is invalidated (because the periph driver knows nothing of the extra CCBs) leading to accessing the path after it's been freed which leads to a number of different pathologies depending on where in the CCB lifecycle we wakeup. It only affects the dynamic scheduler (all the time, but that points out anoth= er bug, the timeout ticker shouldn't run all the time if there's nothing to be controlled like bandwidth or iops). --=20 You are receiving this mail because: You are the assignee for the bug.=