Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1346588ybz; Thu, 16 Apr 2020 07:36:28 -0700 (PDT) X-Google-Smtp-Source: APiQypLUzUZ6ev8A5aEo2RwZLk6e1BH570hGi78ZbvSyyfev6r0ZiSyWYYAA+2ulvpal6wJCK65s X-Received: by 2002:a50:9a04:: with SMTP id o4mr3861546edb.289.1587047788779; Thu, 16 Apr 2020 07:36:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587047788; cv=none; d=google.com; s=arc-20160816; b=J6qQC6jhDl6KxIjcz22wYn3HjuFMJZRcwjPRPEglVEQSS4MGYMhPzJt0WlHf7cIK4f 7PwRnpvEXhgJt9gHeWdkuNrON2QySDhNQRyjuS3EBoVrQOyNWPW3TQbca349Itnvpr1U Vv1lLzvhO+4qXsTDCOAxAlxo0+phPEapNVggmy+f7BOq3mvjn33WFrDh4bz94mXMaFkZ NMgFNjhzG7tYs9XgDd68W8lHFCgoY2M6LzLcy+zaojWyX68vI2QV6+ibAacycUCxePLD VYdy+3Ms+CuSi0vAcVbNaSgTg60mCAYSbaOfgvVMYsW0fVxquYmb0omcYjqNm5JjNvy2 zvXg== 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:message-id:subject:cc :to:from:date; bh=mQZAk6QEJnx0bcR/gMVXRIJTUx/Dpwgr23OXPai6wmc=; b=rIDIG0z1kc4Pyj2ff5A1apg0MlVoBaKWNIfcshPaAWUQkgczCwJC5BWgpgYxDr+Fnc 2rgQGFdbBLQq7jCN8GkoReBY81Sd3/263ggM5Wq/rb+pgN/CusV5BZVrvuBuK2vyUpr2 5YBucPiLQkdoEAwlPriudVKBzD/ID1FPvMEWruexZ+vQgHDCMk2WjtdwHQCoB7NcR6B7 ZswH9Z1LNRc0Eok5q1hOSAFQ8mwifx+SwQbQVaLgcLAB2U5whIZi2y6ISUq5eDAtQC6V kRPeKz4vUq+KMzc0Nz6vp0KbRJyOnON9nG0dZpm6FYOJnqq+ocbhtmKn+9xDRxq5Hact OXXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jr4si11974047ejb.114.2020.04.16.07.35.52; Thu, 16 Apr 2020 07:36:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2410132AbgDPO2u (ORCPT + 99 others); Thu, 16 Apr 2020 10:28:50 -0400 Received: from fieldses.org ([173.255.197.46]:51266 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2410120AbgDPO2r (ORCPT ); Thu, 16 Apr 2020 10:28:47 -0400 Received: by fieldses.org (Postfix, from userid 2815) id 313741510; Thu, 16 Apr 2020 10:28:45 -0400 (EDT) Date: Thu, 16 Apr 2020 10:28:45 -0400 From: Bruce Fields To: Chuck Lever Cc: Jeff Layton , Linux NFS Mailing List Subject: Re: GSS unwrapping breaks the DRC Message-ID: <20200416142845.GA28206@fieldses.org> References: <20200415192542.GA6466@fieldses.org> <0775FBE7-C2DD-4ED6-955D-22B944F302E0@oracle.com> <20200415215823.GB6466@fieldses.org> <39815C35-EAD8-4B2E-B48F-88F3D5B10C57@oracle.com> <20200416000009.GA13083@fieldses.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Thu, Apr 16, 2020 at 10:07:27AM -0400, Chuck Lever wrote: > The bigger picture is updating the server to use xdr_stream throughout > its XDR stack. That's the main reason I worked on the client-side GSS > wrap and unwrap functions last year. > > Using xdr_stream would move the server and client sides closer together > in style and implementation, then hopefully we could share more code. I'm all for that, though I'm not sure it's the same problem. The krb5i/krb5p implementation isn't based on xdr_stream on either the client or the server. But yes maybe it would force thinking about what the different xdr_buf fields mean in a way that would clarify things. I don't know. --b.