From nobody Thu Feb 10 14:55:49 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 049DA19B67AF for ; Thu, 10 Feb 2022 14:55:53 +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 4JvfvD1GTgz3Jlm for ; Thu, 10 Feb 2022 14:55:52 +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 9B22122469 for ; Thu, 10 Feb 2022 14:55:50 +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 21AEtoHM073863 for ; Thu, 10 Feb 2022 14:55:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 21AEtoXQ073862 for bugs@FreeBSD.org; Thu, 10 Feb 2022 14:55:50 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 261707] panic: vm_page_free_prep: freeing mapped page 0xfffffe0006f80170 on 14-Current(master-n252892-e30fceb89b7) Date: Thu, 10 Feb 2022 14:55:49 +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: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@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 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=1644504952; 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=vr8bntGdM8N7go21Mf2SndJBe0iuRibKMtUirjcuWjc=; b=VriAlBjSc4w/3nMcRrrkPLJbXjjRX+9SOy+M3x4p7BD3lrMN571BIm6AKWqcR8t4lvdBgN a9ewcVapytfoLZ2chr7neuhSsDW+MSq7APMpZ0uaIZCDWJvcFRIh5nDfi4d4Kaac4yUm2z 5i+RcOpu6Q8PjqZB/h0BTKwUD9sfF7u02iTu15twv5ALxfUWPUtalRCgg8T7qjncnL5h6F Gv4vdWuK1Ni6PxwIDigRmNiQPh6wOeSAX0MRul8PmvvUh5DCO7i6ZoF5OZ+6l32SxJIdlo 0l7PTUqdZIn9Q0K6/Eajugq7wh1sbphbl9D5Op1BAibqQGJqqS3L2alA2E9b7g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644504952; a=rsa-sha256; cv=none; b=hr3VcHZDgL3Lu/hFLFg7iWP5fBmeERyiSpwhUTunEy3oX4XeV4zC2KC3Usiar1crlZJ6ER HaMp0bjE/MYjvfkz7pClO+lbvCrvj9ZiYgKHTTXKWCfoiLxOnn3/3rzqMMXh8jx0HSxbw7 vhhY7AcennmmRaMQMkb1DnJYS5etYU8One2HdN6f/XrisZ8aszCS57NkLQ6MgGYvpzrprx TFFC+lsrrzsNlc1ehlVoPZM0CpfLXNa0oqLuXKL6PN7oZ7cX9UEsdUZ1H9nNgVMjoI0A7A ypzxdhNfwzB9MP1yYde6Zs9c2JejqNeyzrZL8UcHbCc8VzNznKC9EtoLuHnggA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261707 --- Comment #4 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Db51927b7b018d268c91b2127d82786caf= 68254de commit b51927b7b018d268c91b2127d82786caf68254de Author: Konstantin Belousov AuthorDate: 2022-02-10 14:50:42 +0000 Commit: Konstantin Belousov CommitDate: 2022-02-10 14:55:10 +0000 Revert "vm_pageout_scans: correct detection of active object" This reverts commit 3de96d664aaaf8e3fb1ca4fc4bd864d2cf734b24. Problem is that it is possible to reach the state with ref_count =3D=3D 1 for the mapped non-anonymous object. For instance, anonymous posix shmfd or linux shmfs object could be mapped, and then corresponding file descriptor closed, dropping the object reference owned by the shmfd/shmfs file. Then the check in inactive scan assumes that the object and page are not mapped and frees the page, while they are not. PR: 261707 Discussed with: markj Sponsored by: The FreeBSD Foundation MFC after: now sys/vm/vm_pageout.c | 56 +++++++++++++++++--------------------------------= ---- 1 file changed, 18 insertions(+), 38 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=