From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Date: Thu, 29 Mar 2018 07:20:27 -0700 From: Matthew Wilcox Subject: Re: [PATCH 000/109] remove in-kernel calls to syscalls Message-ID: <20180329142027.GA24860@bombadil.infradead.org> References: <20180329112426.23043-1-linux@dominikbrodowski.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20180329112426.23043-1-linux@dominikbrodowski.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Dominik Brodowski Cc: Peter Zijlstra , Amir Goldstein , linux-mm@kvack.org, "H . Peter Anvin" , tautschn@amazon.co.uk, Ingo Molnar , linux-arch@vger.kernel.org, linux-s390@vger.kernel.org, Andi Kleen , user-mode-linux-devel@lists.sourceforge.net, x86@kernel.org, hmclauchlan@fb.com, Christoph Hellwig , Jiri Slaby , Darren Hart , Jaswinder Singh , arnd@arndb.de, Jeff Dike , viro@ZenIV.linux.org.uk, Thomas Gleixner , netdev@vger.kernel.org, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, "Luis R . Rodriguez" , "Eric W . Biederman" , linux-fsdevel@vger.kernel.org, Andrew Morton , torvalds@linux-foundation.org, "David S . Miller" On Thu, Mar 29, 2018 at 01:22:37PM +0200, Dominik Brodowski wrote: > At least on 64-bit x86, it will likely be a hard requirement from v4.17 > onwards to not call system call functions in the kernel: It is better to > use use a different calling convention for system calls there, where > struct pt_regs is decoded on-the-fly in a syscall wrapper which then hands > processing over to the actual syscall function. This means that only those > parameters which are actually needed for a specific syscall are passed on > during syscall entry, instead of filling in six CPU registers with random > user space content all the time (which may cause serious trouble down the > call chain).[*] How do we stop new ones from springing up? Some kind of linker trick like was used to, er, "dissuade" people from using gets()? _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec