Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3477889iob; Sat, 7 May 2022 06:13:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwg/5adnRS0pLS4qfF/Y0BzA1tKnqoX0W8W40io4CNCJ4CTmA3FOwAwtvkj4vgtcHVxvlri X-Received: by 2002:a17:906:5d11:b0:6f5:df90:45c0 with SMTP id g17-20020a1709065d1100b006f5df9045c0mr5149357ejt.23.1651929185074; Sat, 07 May 2022 06:13:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651929185; cv=none; d=google.com; s=arc-20160816; b=WsKR5ecNIcHSg/ueccKObBMnp6iiuzyjEytDMUMWMH98Y9SsKQisHgq6QnqRYud/23 ksTVidhHwDcpzg6kXS6f+Dbnhd+JDrbGePXhwfMTPbHOWHMKQJVnMv/uL0xxvJzxfvy3 nHRLeMPbbNINokYxtHl+wqURiQUlXG0wj1PrlAYpeLM+HRHWK1lqDpbI+pZArptuHhCU FqQJzsprfUphttsxmiSMIDPNPbIT+cP+P5MDYFnmmAEjzp7OjkWSZqBedNiG2p1mSu1L BnL/tl+mQJMya0tg+C7af3eAQqUAwQo4/q1SlHYlYpXZT6n6yTBPOFDw+OWMLWpdI5do wO8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=kqeaKt4VHSC0M6Q7xTIrEAfecmkELADSzjUpCKB9s4E=; b=vm5cWiUb5VA9svaAeB2yeM0fjCSOZhrUdX0csFnL5D5tnNkRBKR6Qe+eh91UJhwpGm YUWwqESf+y6iof1DjdShPaW6ZAREbIhoovSjWFaN/ZH/qZOi/3wdmvkhMmyaVJE1fveb ShhX5gUItpKnFWX7jDfi56Z63tdtwgVxFEFrBnArYxOAz1Mex9WqqpUoMICUyQg9c3wZ 5MOIysrXWtrRjY7tVPczJ4lhC0dkNJupup0jH3gUs32iBbuv335h1iKInpn1l8SpIwok IkWb0f8jFl6aKdD13v+cV0RERzYXLU5b5vL7BJ5LQBxGJjT53z1DTR/ehrHzndB4tcXO Q6Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hxftpkK7; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t23-20020a170906179700b006f460b50245si7700625eje.682.2022.05.07.06.12.29; Sat, 07 May 2022 06:13:05 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hxftpkK7; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1388311AbiEFCXo (ORCPT + 99 others); Thu, 5 May 2022 22:23:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235604AbiEFCXm (ORCPT ); Thu, 5 May 2022 22:23:42 -0400 Received: from mail-yb1-xb2c.google.com (mail-yb1-xb2c.google.com [IPv6:2607:f8b0:4864:20::b2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3BC4633A1; Thu, 5 May 2022 19:19:59 -0700 (PDT) Received: by mail-yb1-xb2c.google.com with SMTP id h10so10665476ybc.4; Thu, 05 May 2022 19:19:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kqeaKt4VHSC0M6Q7xTIrEAfecmkELADSzjUpCKB9s4E=; b=hxftpkK7H1BhuEkJMKp3T5iT7qVqTe6yWfanW9MMHeAY5I8Q3HqYuAManaLZW2aOtk mZz4Ua8yc2IWXS1jn1cGawbcUvEng4uYgQXBKwWwPKDsvjcRTEFnTTcYV4r+ucj2Ev61 E7ZQEk1Ef4dGjyJOR4jn3QWtuYFbZef6u95i+9V4+chneKgtGB9HxpBbtGavLVBPVevh 3yq75CLogf7jiEibqcReZq2SC8Ydx9ndCSMhE2iw+w5zfHjkMSTEp/3sB2R6xks2RzGf dNV30IwxoKzCuxR6e3LvYEimqurvOHlsFFr4sZNl/TY37UeiubrxjQ72rdXBfpxswvyf E5rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kqeaKt4VHSC0M6Q7xTIrEAfecmkELADSzjUpCKB9s4E=; b=cIdz2usn9e7eLATRCFlhJ1YtMrwN/4PklZy6dOmXH2Et2ooHDxOxLsLre6RNoTSN5s nNtd0whFr1ABIvn5XdWU6K7NBQdZA9RM5/IJ65oGgV96AYdQF6ow/+7OCL5QNiEHhNe+ dYaQkw8bEH9scgIsvGlHSEH4F2v6t10v9tKWjYllP/7wfEZWbmk6Qir00SCdsEeQSqml mTZpiqNEzAoN+C1BAjwIym5ur9j+E77QEB0dcCOx5bf95DHW2RkBm1JGWTWoVfXGNYOV 2a+iJKtZ0fvuYbCusc/YxMAyX3oQZBD/6wmLSXFs4pj07kOxORZ+NciJ602QKmaxUUON 3DaA== X-Gm-Message-State: AOAM532DDhBibjrogNPAnnW7vvo7mAY+mhia2a4w3H9kEpt25TSiDcHe LJztUioZhaxJThcaHN93Z0Q/A7h7Mav54URZfAk= X-Received: by 2002:a05:6902:709:b0:64a:99b:3594 with SMTP id k9-20020a056902070900b0064a099b3594mr837242ybt.493.1651803599053; Thu, 05 May 2022 19:19:59 -0700 (PDT) MIME-Version: 1.0 References: <878rri2i6o.fsf@cjr.nz> <7dc6c729-73cd-74be-eec7-ac4a0013f60f@samba.org> <87tua51550.fsf@cjr.nz> <87r15910c1.fsf@cjr.nz> In-Reply-To: <87r15910c1.fsf@cjr.nz> From: ronnie sahlberg Date: Fri, 6 May 2022 12:19:48 +1000 Message-ID: Subject: Re: CIFS regression mounting vers=1.0 NTLMSSP when hostname is too long To: Paulo Alcantara Cc: Tom Talpey , Steven French , Byron Stanoszek , Shyam Prasad N , linux-cifs , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 Fri, 6 May 2022 at 11:59, Paulo Alcantara wrote: > > 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. This regression should be easy to fix, but maybe we should not have done the initial change in the first place. If things is broken and do not work under SMB1, that is a good thing. Instead of adding features or fixing missing parts to SMB1 we should just tell people to switch to SMB2 instead. I think if things do not work correctly or things are missing in smb1, that is a GOOD THING. :-)