Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp3483066ioo; Wed, 25 May 2022 01:23:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1w0J9PLY+/VZfNmo40YKA2ywJfimfW0e0dgQiqwMl8qZfrrr2dQYnOZGD+NP6Ul/9KYmP X-Received: by 2002:a05:6402:b8f:b0:42a:be5d:7a94 with SMTP id cf15-20020a0564020b8f00b0042abe5d7a94mr32939447edb.150.1653467030201; Wed, 25 May 2022 01:23:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653467030; cv=none; d=google.com; s=arc-20160816; b=ETnHVQZMQSMAUwtiblCtAIUQOYJfoVisnwYH4l/T7QioMpr5k/sMKYRcHA6mbWHJEr N4blgSkJjy0y4YkWijlhJgvgpMBuz3GCOOI+QcJ7jAuPnHpCQmqybVHrZcZO/CRJWEEg NC7Sa3naIIf5o6lSLUx40IbfNEOVf9Zs8HQXKV+KHCH/z5aqiBw8I1Kmx+il8Kpm6u6K LkFAnZTj1hFGRakHCWdUgYnd7yRv3uSkwbAXKM6BPwCGF1xIl+eYoh4FUU0Qw7ppC9Eb 9ZV/7aABkiNOdRa5ifQ8ABNPjpWdgOzIMEz1DyiscAbmrzNqi/Tm0+kPO5JAPE/8sTTz bDhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date; bh=jbqT1MhPBQCPWuQb0c0vBERL4mfbId1CJ0Z3kDq9kjk=; b=VLgLtVdwDsCoRNehmrHKDKBrqqW3sdc1m5Yzb3jLAeaPohMtOVs74471GIRzMb+mxV Ft8deWhnrwow971bx/u95Tv10FDx2mZVqdM38NCCQC/ph2zZ21/9vkhYrfFzmG7NO952 CsK9QpKqsB65FSETuNHiBj79eeKTJwoRyMZ9SoECz14F+FT/rFCHjpjoKvfZSdoBmd8x aHieLmbV6h1RN0H2Ex9uCBK0TBf8acAw82OYIq21EamcKNYnDYYQoL57ImfIS3W1VvYU l/zny2j+6l2ZTc+r4m1V3a5+l6+s9pES6BSNbZYJiEeFJJ0lL4J1AAFNLo3CCcBLOhZU il1g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bf9-20020a0564021a4900b00428111dd527si15715296edb.584.2022.05.25.01.23.24; Wed, 25 May 2022 01:23:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242175AbiEYDRP (ORCPT + 99 others); Tue, 24 May 2022 23:17:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240132AbiEYDRM (ORCPT ); Tue, 24 May 2022 23:17:12 -0400 Received: from winds.org (winds.org [68.75.195.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 45C6734666; Tue, 24 May 2022 20:17:08 -0700 (PDT) Received: by winds.org (Postfix, from userid 100) id F00CB1DE8872; Tue, 24 May 2022 23:17:07 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by winds.org (Postfix) with ESMTP id ED9F01DE864A; Tue, 24 May 2022 23:17:07 -0400 (EDT) Date: Tue, 24 May 2022 23:17:07 -0400 (EDT) From: Byron Stanoszek To: Paulo Alcantara cc: Steve French , 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: <874k1nj3p4.fsf@cjr.nz> Message-ID: References: <874k1nj3p4.fsf@cjr.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Tue, 17 May 2022, Paulo Alcantara wrote: > Could you please try below patch? > > Let me know if I missed something else. Thanks. > >> From bf63fb30ac90c06f45e40acbd3bbd2284d8ffffb Mon Sep 17 00:00:00 2001 > From: Paulo Alcantara > Date: Tue, 17 May 2022 17:23:23 -0300 > Subject: [PATCH] cifs: fix ntlmssp on old servers > > Some older servers seem to require the workstation name during ntlmssp > to be at most 15 chars (RFC1001 name length), so truncate it before > sending when using insecure dialects. > > Link: https://lore.kernel.org/r/e6837098-15d9-acb6-7e34-1923cf8c6fe1@winds.org > Reported-by: Byron Stanoszek > Fixes: 49bd49f983b5 ("cifs: send workstation name during ntlmssp session setup") > Signed-off-by: Paulo Alcantara (SUSE) > --- > fs/cifs/cifsglob.h | 15 ++++++++++++++- > fs/cifs/connect.c | 22 ++++------------------ > fs/cifs/fs_context.c | 29 ++++------------------------- > fs/cifs/fs_context.h | 2 +- > fs/cifs/misc.c | 1 - > fs/cifs/sess.c | 6 +++--- > 6 files changed, 26 insertions(+), 49 deletions(-) Hi Paulo, I confirm that the patch worked for me (against Linux 5.16.13). Regards, -Byron