From owner-svn-src-all@freebsd.org Tue Dec 12 21:56:00 2017 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AC7B2E863BD; Tue, 12 Dec 2017 21:56:00 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from mail.baldwin.cx (bigwig.baldwin.cx [96.47.65.170]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7F05D74D50; Tue, 12 Dec 2017 21:55:59 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from John-Baldwins-MacBook-Pro-3.local (unknown [128.57.46.190]) by mail.baldwin.cx (Postfix) with ESMTPSA id 01A2010AC13; Tue, 12 Dec 2017 16:55:57 -0500 (EST) Subject: Re: svn commit: r326758 - in head/sys/i386: conf include To: Eugene Grosbein , Konstantin Belousov , Conrad Meyer References: <201712110432.vBB4WbnE021090@repo.freebsd.org> <20171211091943.GF2272@kib.kiev.ua> <5A2E5D44.9030904@grosbein.net> <4a9c76c9-8063-9420-b198-14487b089840@FreeBSD.org> <5A30378A.3040609@grosbein.net> Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org From: John Baldwin Message-ID: Date: Tue, 12 Dec 2017 16:55:56 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <5A30378A.3040609@grosbein.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail.baldwin.cx); Tue, 12 Dec 2017 16:55:58 -0500 (EST) X-Virus-Scanned: clamav-milter 0.99.2 at mail.baldwin.cx X-Virus-Status: Clean X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Dec 2017 21:56:00 -0000 On 12/12/17 3:09 PM, Eugene Grosbein wrote: > On 13.12.2017 02:32, John Baldwin wrote: > >> Certainly for MIPS I have found that compiling with clang >> instead of gcc for mips64 gives a kernel that panics for stack overflow for any >> use of NFS. It might be that this is due to something MIPS-specific, but it >> might be worthwhile retesting with kstack_pages=2 and building the kernel >> with CROSS_TOOLCHAIN=i386-gcc after installing the appropriate package. > > You may want to check NFS code that uses stack heavily. > Here are numbers for i386 (bytes-on-stack, module, what function): > > 1344 nfs_nfsdport.o : > 1152 nfs_nfsdserv.o : > 1128 nfs_nfsdserv.o : > 952 nfs_nfsdserv.o : > 664 nfs_nfsdserv.o : > 640 nfs_nfsdserv.o : > 624 nfs_nfsdserv.o : > 608 nfs_nfsdserv.o : > 600 nfs_clvfsops.o : My point is that you should compare gcc with clang as 10.x switched to clang and that may be a factor in the stack overflows beginning with 10.x. -- John Baldwin