Received: by mail.netbsd.org (Postfix, from userid 605) id 5BEE784DC6; Fri, 21 Feb 2020 12:56:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id CAFFF84DC5 for ; Fri, 21 Feb 2020 12:56:37 +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 HNsHXsty-a0u for ; Fri, 21 Feb 2020 12:56:37 +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 662A284C6C for ; Fri, 21 Feb 2020 12:56:37 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 5E260FBF4; Fri, 21 Feb 2020 12:56:37 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Fri, 21 Feb 2020 12:56:37 +0000 From: "Rin Okuyama" Subject: CVS commit: src/sys/arch/powerpc/include To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20200221125637.5E260FBF4@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: "Rin Okuyama" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: rin Date: Fri Feb 21 12:56:37 UTC 2020 Modified Files: src/sys/arch/powerpc/include: param.h Log Message: Reduce UPAGES from 2 to 1 for ibm4xx, which was originally 1 and bumped to 2 in rev 1.29: http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/powerpc/include/param.h#rev1.29 Since page size is 16KB on ibm4xx, USPACE is still 16KB, which is the same size as on other powerpc processors. This avoids kernel crash described in PR kern/54994. Also, even if the PR is resolved, fork(2) easily fails with ENOMEM if UPAGES is 2, which requires physically contiguous pages for u-area. No bad side effect is observed as far as I can see. XXX Even with this commit, kern/54994 still critically affects other archs with __HAVE_CPU_UAREA_ROUTINES, i.e., alpha, mips, powerpc/{oea,booke}, and riscv. To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/sys/arch/powerpc/include/param.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.