Received: by mail.netbsd.org (Postfix, from userid 605) id E78ED84D8A; Sun, 1 Sep 2019 11:00:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 6900D84D7A for ; Sun, 1 Sep 2019 11:00:32 +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 OXrezCrep-pt for ; Sun, 1 Sep 2019 11:00:32 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id F189584CE8 for ; Sun, 1 Sep 2019 11:00:31 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id E664AFBF4; Sun, 1 Sep 2019 11:00:31 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sun, 1 Sep 2019 11:00:31 +0000 From: "Martin Husemann" Subject: CVS commit: [netbsd-9] src/sys/netinet6 To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20190901110031.E664AFBF4@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: "Martin Husemann" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: martin Date: Sun Sep 1 11:00:31 UTC 2019 Modified Files: src/sys/netinet6 [netbsd-9]: nd6.c Log Message: Pull up following revision(s) (requested by roy in ticket #131): sys/netinet6/nd6.c: revision 1.260 inet6: nd6_free assumes all routers are processed by kernel RA This hasn't been the case for a long time if you're a dhcpcd user with a default config. As such, it's possible for the default IPv6 router as set by dhcpcd could be erroneously gc'ed by nd6_free. This reduces the scope of the ND6_WLOCK taken as well as fixing an issue where we write to ln->ln_state without a lock being held. To generate a diff of this commit: cvs rdiff -u -r1.256.2.2 -r1.256.2.3 src/sys/netinet6/nd6.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.