From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752825AbdJTKPG (ORCPT ); Fri, 20 Oct 2017 06:15:06 -0400 Received: from mga05.intel.com ([192.55.52.43]:59675 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752667AbdJTKPE (ORCPT ); Fri, 20 Oct 2017 06:15:04 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,405,1503385200"; d="scan'208";a="1233109080" Date: Fri, 20 Oct 2017 13:14:55 +0300 From: Jarkko Sakkinen To: Christoph Hellwig Cc: intel-sgx-kernel-dev@lists.01.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, viro@zeniv.linux.org.uk Subject: Re: [PATCH v4 06/12] fs/pipe.c: export create_pipe_files() and replace_fd() Message-ID: <20171020101436.wyeqwle5lnj425lz@linux.intel.com> References: <20171016191855.16964-1-jarkko.sakkinen@linux.intel.com> <20171016191855.16964-7-jarkko.sakkinen@linux.intel.com> <20171019080617.GA13601@infradead.org> <20171019123616.2cxu74oacerz2ljv@linux.intel.com> <20171019145534.GA17068@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171019145534.GA17068@infradead.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 19, 2017 at 07:55:34AM -0700, Christoph Hellwig wrote: > On Thu, Oct 19, 2017 at 03:36:16PM +0300, Jarkko Sakkinen wrote: > > On Thu, Oct 19, 2017 at 01:06:17AM -0700, Christoph Hellwig wrote: > > > On Mon, Oct 16, 2017 at 10:18:49PM +0300, Jarkko Sakkinen wrote: > > > > Export create_pipe_files() and replace_fd() so that the SGX driver is > > > > able to create stdin and stdout pipes. > > > > > > Err, no way. > > > > What would be a better alternative? > > Don't abuse pipes for your interface. coredump uses pipes in a similar way. Maybe you could elaborate a bit why this is abusing? That could help me to find something more acceptable. The only reasonable alternative that comes into mind would be netlink socket. /Jarkko