Received: by mail.netbsd.org (Postfix, from userid 605) id 1872585590; Tue, 21 Nov 2017 08:49:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 7B0CE84DC6 for ; Tue, 21 Nov 2017 08:49:16 +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 z1rzkdOMPcyL for ; Tue, 21 Nov 2017 08:49:16 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 20E8F84D90 for ; Tue, 21 Nov 2017 08:49:16 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 453E6FB40; Tue, 21 Nov 2017 08:49:15 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Tue, 21 Nov 2017 08:49:15 +0000 From: "Ryota Ozaki" Subject: CVS commit: src/sys To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20171121084915.453E6FB40@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Ryota Ozaki" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: ozaki-r Date: Tue Nov 21 08:49:15 UTC 2017 Modified Files: src/sys/kern: kern_lock.c subr_pserialize.c src/sys/rump/librump/rumpkern: emul.c rump.c src/sys/sys: pserialize.h Log Message: Implement debugging feature for pserialize(9) The debugging feature detects violations of pserialize constraints. It causes a panic: - if a context switch happens in a read section, or - if a sleepable function is called in a read section. The feature is enabled only if LOCKDEBUG is on. Discussed on tech-kern@ To generate a diff of this commit: cvs rdiff -u -r1.159 -r1.160 src/sys/kern/kern_lock.c cvs rdiff -u -r1.8 -r1.9 src/sys/kern/subr_pserialize.c cvs rdiff -u -r1.183 -r1.184 src/sys/rump/librump/rumpkern/emul.c cvs rdiff -u -r1.329 -r1.330 src/sys/rump/librump/rumpkern/rump.c cvs rdiff -u -r1.1 -r1.2 src/sys/sys/pserialize.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.