Received: by mail.netbsd.org (Postfix, from userid 605) id 49D1684D53; Mon, 24 May 2021 03:43:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 419F784D60 for ; Mon, 24 May 2021 03:43:25 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id beexhawnLZY5 for ; Mon, 24 May 2021 03:43:24 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id C663A84D0C for ; Mon, 24 May 2021 03:43:24 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id B2822FA95; Mon, 24 May 2021 03:43:24 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Mon, 24 May 2021 03:43:24 +0000 From: "Jason R Thorpe" Subject: CVS commit: src/sys/arch/alpha To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20210524034324.B2822FA95@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Jason R Thorpe" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: thorpej Date: Mon May 24 03:43:24 UTC 2021 Modified Files: src/sys/arch/alpha/alpha: pmap.c src/sys/arch/alpha/include: pmap.h Log Message: pmap_tlb_shootdown_all_user() can be called in the PV scenario as well as the forward scenario, for example if a pmap_page_protect() to remove all mappings results in the freeing of a PT page. It therefore needs to do the same reference counting dance as pmap_tlb_shootdown_pv(). Also fix a use-after-free error in pmap_page_protect(). Add / tweak some assertions, and shrink the pmap::pm_count field from long to unsigned int (which gave me a spare unsigned int field for debugging purposes). PR port-alpha/56201. To generate a diff of this commit: cvs rdiff -u -r1.277 -r1.278 src/sys/arch/alpha/alpha/pmap.c cvs rdiff -u -r1.84 -r1.85 src/sys/arch/alpha/include/pmap.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.