Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4086015imm; Wed, 5 Sep 2018 10:26:38 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ4fGvJOM0ayrKxPTMMk9O35TbnmvnyKLdZ8ag9TJe5MgBvKqcjucOt7/BZfe0jtcbjGCl0 X-Received: by 2002:a62:51c6:: with SMTP id f189-v6mr41848396pfb.7.1536168398018; Wed, 05 Sep 2018 10:26:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536168397; cv=none; d=google.com; s=arc-20160816; b=ALqF8YxcHWViyWGPmA0/m07JU35c5eOSSF4Vg7Tjl14j6/QWCfqKCOs4u6Wk0/iT5l BP7WmVt+REbM879DHpj41XpH+/Nj1BlD7RfS8a+s8Lnui1ZC/rClatzK4I8L3dmAWlVH M0+ZMIcSrefXfQxgMssCvRKBwXfyhaZDt9AfV084uNvPDzeNyhIS/6D2NYZPalvLVhc5 yQWz0OAos3EMYUW5PLTIx2e6ZS65OuR0+BTDhETEs7fvp5pxMPCmShE6cELleszOBYt+ 8KA0+vJ/4cNd4R7NtqWjg7mCBu2o6B41lJTQWLITKTJGXQvxBnSot05bpT8M+B37IHi4 /Slw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date; bh=stpGI63uK9N+agWoEi6TcoIh/xzdr9DN1dZW9AscOmM=; b=J/pI28IFv1F+Zn6WSIQpSsTeMPB1AUHityZPT2n8KDJyiU23b2/riqK/BoaJv7UoxQ 4iONPXwt6LZMbfl9gIY9XTXlvZs8APiesirLQWkXqGFAwaIcJH7VRFIKo1xXhtS6d/GT qHHol7m67kJTzP3oN8H/EY/9VowW4oDUHlzgZPxav3RFpILl2EHTi7JbpUI4b3vx1Z7v JqeunIBo//6pTMGQ+BCvO1MdUOzhY+P/rFHipEnVGmF1k0AsdS1kSNgKRGnJ/0i6aneL UiiqEqdoxtvD5ht3TJ9M9WaID+g9r3hjr8rsiby4M4k6RrfuBCFbisvRCTIKYMhBKSuG O72A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmu.edu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r24-v6si2435747pgo.605.2018.09.05.10.26.22; Wed, 05 Sep 2018 10:26:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmu.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727685AbeIEV4U (ORCPT + 99 others); Wed, 5 Sep 2018 17:56:20 -0400 Received: from hurricane.elijah.cs.cmu.edu ([128.2.209.191]:60246 "EHLO hurricane.elijah.cs.cmu.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727397AbeIEV4U (ORCPT ); Wed, 5 Sep 2018 17:56:20 -0400 X-Greylist: delayed 1828 seconds by postgrey-1.27 at vger.kernel.org; Wed, 05 Sep 2018 17:56:19 EDT Received: from [127.0.0.1] (helo=cs.cmu.edu) by hurricane.elijah.cs.cmu.edu with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.91) (envelope-from ) id 1fxb4q-00074u-Sb; Wed, 05 Sep 2018 12:54:48 -0400 Date: Wed, 5 Sep 2018 12:54:47 -0400 From: Jan Harkes To: David Howells Cc: linux-api@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 05/11] UAPI: coda: Don't use internal kernel structs in UAPI Message-ID: <20180905165447.gnjcc2xbgaem3ue3@cs.cmu.edu> Mail-Followup-To: David Howells , linux-api@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org References: <153616286704.23468.584491117180383924.stgit@warthog.procyon.org.uk> <153616291029.23468.16421004714304578585.stgit@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <153616291029.23468.16421004714304578585.stgit@warthog.procyon.org.uk> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 05, 2018 at 04:55:10PM +0100, David Howells wrote: > The size and layout of internal kernel structures may not be relied upon > outside of the kernel and may even change in a containerised environment if > a container image is frozen and shifted to another machine. > > Excise these from Coda's upc_req struct. Argh, that won't work. I still have to look at where this structure is used exactly, but... Either this structure is used by the messages that the kernel sends to userspace, in which case we don't want the kernel to pack the larger structure that includes a list_head and a wait_queue_head_t in the message while userspace reads as if it was a smaller structure without those. But my gut feeling is that this is not part of the upcall request messages and never gets to userspace and as such shouldn't be in uapi to begin with. Jan