Received: by mail.netbsd.org (Postfix, from userid 605) id 4D6E184E7A; Sun, 16 Apr 2023 04:52:21 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 732DF84E78 for ; Sun, 16 Apr 2023 04:52:20 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id NJtmYP0tJ2ec for ; Sun, 16 Apr 2023 04:52:20 +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 0771684CD7 for ; Sun, 16 Apr 2023 04:52:20 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id E66DFFA85; Sun, 16 Apr 2023 04:52:19 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sun, 16 Apr 2023 04:52:19 +0000 From: "Taylor R Campbell" Subject: CVS commit: src/sys/kern To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20230416045219.E66DFFA85@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Taylor R Campbell" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: riastradh Date: Sun Apr 16 04:52:19 UTC 2023 Modified Files: src/sys/kern: subr_pserialize.c Log Message: pserialize(9): Fix buggy assertion inside assertion. If there has been a context switch, then we can't be in a pserialize read section -- _and_ whatever we read out of curcpu() is stale, so we can't assert anything based on it. So just delete the assertion. Reported-by: syzbot+d7065ab16d7cd9cc09af@syzkaller.appspotmail.com https://syzkaller.appspot.com/bug?id=0c63db890575d29c6a51fb24b003d3bab1f7f04b To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 src/sys/kern/subr_pserialize.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.