From owner-svn-src-head@FreeBSD.ORG Tue Nov 4 09:26:03 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1CBF29E1; Tue, 4 Nov 2014 09:26:03 +0000 (UTC) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9CA20ED3; Tue, 4 Nov 2014 09:26:02 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.9/8.14.9) with ESMTP id sA49Pw7U066540 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 4 Nov 2014 11:25:58 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.9.2 kib.kiev.ua sA49Pw7U066540 Received: (from kostik@localhost) by tom.home (8.14.9/8.14.9/Submit) id sA49PwDc066539; Tue, 4 Nov 2014 11:25:58 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 4 Nov 2014 11:25:58 +0200 From: Konstantin Belousov To: Alfred Perlstein Subject: Re: svn commit: r274017 - head/sys/kern Message-ID: <20141104092558.GP53947@kib.kiev.ua> References: <201411030746.sA37kpPu037113@svn.freebsd.org> <5457F771.3010509@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5457F771.3010509@freebsd.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on tom.home Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Mateusz Guzik X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Nov 2014 09:26:03 -0000 On Mon, Nov 03, 2014 at 01:45:21PM -0800, Alfred Perlstein wrote: > Isn't there a problem where the stack can be swapped out? > > I seem to recall a problem where a swapped out process was causing > problems due to a buffer passed being stack allocated and that process > being swapped out... > > If this is not the case then please disregard. Sure, stack can be swapped out, but buffer passing is usually not a problem. At least, I am not aware of cases. In fact, many compat layers do exactly this, allocate the native-ABI structure on the stack, copyin the foreighn-ABI structure in pieces into the native-ABI one, and pass native to kern_foo() implementations. So I think you worries are not realized.