Received: by mail.netbsd.org (Postfix, from userid 605) id DB26184D6F; Tue, 6 Aug 2019 15:48:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 5997984D6D for ; Tue, 6 Aug 2019 15:48:07 +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 HAWmpzSpEWUW for ; Tue, 6 Aug 2019 15:48:07 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id F28DF84D25 for ; Tue, 6 Aug 2019 15:48:06 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id EFA74FBF4; Tue, 6 Aug 2019 15:48:06 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Tue, 6 Aug 2019 15:48:06 +0000 From: "Taylor R Campbell" Subject: CVS commit: src/sys/kern To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20190806154806.EFA74FBF4@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: "Taylor R Campbell" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: riastradh Date: Tue Aug 6 15:48:06 UTC 2019 Modified Files: src/sys/kern: sysv_shm.c Log Message: Acquire shmseg uobj reference while we hold shm_lock. Otherwise nothing prevents it from being detached under our feet when we drop shm_lock. Reported-by: syzbot+a76c618a6808a0fda475@syzkaller.appspotmail.com To generate a diff of this commit: cvs rdiff -u -r1.135 -r1.136 src/sys/kern/sysv_shm.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.