Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4648778iob; Sun, 8 May 2022 20:32:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzH/lejNAPJQ1BwmnLLFtsjhihkG3CiJLXNiTIAqmowFvrj2/t9Ld3Z+rGDsYn1Jah5JveQ X-Received: by 2002:a63:d30d:0:b0:3c2:646b:d9b7 with SMTP id b13-20020a63d30d000000b003c2646bd9b7mr11684901pgg.318.1652067169081; Sun, 08 May 2022 20:32:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652067169; cv=none; d=google.com; s=arc-20160816; b=gRshsEgKQtwDtJVNT8lUvx9ygakCwQuL9UoCuIFThd1hdc9HIbloRB7w0nMOIryTx1 kDIJz+HLijsuwFNcD3Wzz4wK/d/1OCJuunvCnUil8m3dN3p5xUYdBKKo4IOqQDnR3PXl MmuSqZc2R5b1pQxDCASDKUyJRVgTj51oF2GdsQnWpmj+rPxMMl6aspjELiNjZl3hrdrC HH+oEMNLGy+Rqoc0yYT0hTP0wE9CfvjFWjEK9i2qTsW53e4+noxIE3QV+bM5JwK/syex 2MXLfgeEOLMEmSmIuHOdqinf+Y0agVOayJ742KH1Na7zdrL4NesEwYKGBbPaZPuRStut lRxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=lQYNSaWHnrcI5QezQhu4C6Dn82MFLjowgcSE9eLDMWM=; b=ImZpL+7I0uzFg6/qqkSJKUAJPliL3DcjotERZUMoUTqRIVvRkVNy4AYNgGADJ/0sf0 9vp9U6AxfNEHTTA/XHWqDTZ33kEFdBn348t1MN0dmmbksNslG05v4zpcDhGNLg/1egGl POiYasFDrLqhk3gyA38GuU1ftWT8BgdhKrmDaSRD53hIpF1PCr4PYebymFN+RwECbShU 6HQbJ4FINjSbY3VsLA8AaMAINdYPArxBz1T/7ej05l5xnML9cdthtF539S2gAqhXeb5b fJspovUQ+zj9eR1zJepMTfeoo7Tq0LVEzv6T7OS52PiyljIahpFXa6TWT69dflQ1tTJn IYXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cjr.nz header.s=dkim header.b="W/h4q1VZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cjr.nz Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q2-20020a056a00088200b004fa3a8dffa5si4252804pfj.92.2022.05.08.20.32.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 20:32:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@cjr.nz header.s=dkim header.b="W/h4q1VZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cjr.nz Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 380D8A204E; Sun, 8 May 2022 20:31:27 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354874AbiEDVCl (ORCPT + 99 others); Wed, 4 May 2022 17:02:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240311AbiEDVCi (ORCPT ); Wed, 4 May 2022 17:02:38 -0400 Received: from mx.cjr.nz (mx.cjr.nz [51.158.111.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2FE940E40; Wed, 4 May 2022 13:59:01 -0700 (PDT) Received: from authenticated-user (mx.cjr.nz [51.158.111.142]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pc) by mx.cjr.nz (Postfix) with ESMTPSA id 075787FC20; Wed, 4 May 2022 20:58:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cjr.nz; s=dkim; t=1651697939; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=lQYNSaWHnrcI5QezQhu4C6Dn82MFLjowgcSE9eLDMWM=; b=W/h4q1VZLVeeo+4ZiqMAKqvIOyV73ZC0GYROIcYjy6YKERMEYeZVlUVz3sLFBLm65FCawg G+DYZhO0Pv8qwoXzKqeVRQTbSDYD94NwjW9VxX62WOqzJpQpXhNC2c/nNojCM8mKcrnEds SwazqYTDS3ky50bo9eCGjBOoa3SOOABt8UO0Ps0kx4nHz6fpe39+Rf6eS0Ypipr8qaPzA0 ul2AICRDyknE3Y/MDLNIGVQ+qSpa3SOOahI0Cvs3s0eb5JspGRMJVwbE5L+CAZ2i46pG2D Zv4l0xGYyrDveTAKQmZyYSNBoWowedWxz7pZGXPM7nnvVi6I/BswR2Fw3suU1Q== From: Paulo Alcantara To: Tom Talpey , Steven French , Byron Stanoszek , Shyam Prasad N Cc: linux-cifs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: CIFS regression mounting vers=1.0 NTLMSSP when hostname is too long In-Reply-To: References: <878rri2i6o.fsf@cjr.nz> <7dc6c729-73cd-74be-eec7-ac4a0013f60f@samba.org> <87tua51550.fsf@cjr.nz> Date: Wed, 04 May 2022 17:58:54 -0300 Message-ID: <87r15910c1.fsf@cjr.nz> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Tom Talpey writes: > I think the most conservative and spec-compliant choice should be made. > SMB1 should not be pushing the envelope of interoperability, in this day > and age. OK. > I believe the NetBIOS name is a fixed array of 16 octets, right? So, if > the nodename is shorter, it needs to be padded with 0's. Right. > Did this code change recently? Why??? We used to not send the WorkstationName during NTLMSSP until recent patch from Shyam: commit 49bd49f983b5026e4557d31c5d737d9657c4113e Author: Shyam Prasad N Date: Fri Nov 5 19:03:57 2021 +0000 cifs: send workstation name during ntlmssp session setup During the ntlmssp session setup (authenticate phases) send the client workstation info. This can make debugging easier on servers. Signed-off-by: Shyam Prasad N Reviewed-by: Paulo Alcantara (SUSE) Reviewed-by: Enzo Matsumiya Signed-off-by: Steve French Unfortunately some servers did not seem to enforce it to be 16 bytes long, so the reason why we didn't catch it earlier. Steve, Shyam, let me know if it does make sense to you and then I can work on a patch to fix it properly.