Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp7542imn; Wed, 27 Jul 2022 13:33:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s8Y/LEqRI9jXXe4qEMnwa00gZ07R1wj3piRCWIUfNzYroeKniE+snTWFthz1v7WtWRGF5U X-Received: by 2002:a17:90b:1a81:b0:1f0:77a7:907f with SMTP id ng1-20020a17090b1a8100b001f077a7907fmr6637323pjb.49.1658953996535; Wed, 27 Jul 2022 13:33:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658953996; cv=none; d=google.com; s=arc-20160816; b=tbEU1j7JjhJxCe0/UemBigc3v11abVwL4Y7C1B3iReDw9dSjr2gEnlJn6zm79srp/V 9/6yq5pgfqthmE/ZOFmPPfOAUgLVRHUZ0W6ShP2p/0g+Bb47URxTpagbZ2d3Ha9kFlHN 5CosCB4W/6DH641LQgJB+xOiQJulOP73A5vQXbQd1sa1qfwzrb/ZS2C8EbdaZ9PH/+Zk ktCL9IujSvQOMmqu6iWeuSprLQCq7OZrEW4euqyrFJu/6hm7E6VWde8iH8ckY5xM3kxA ngqPFaDBmlf4UGKAfIQlpjs91EWHM8T+fXV9hk4LKYFkluvfjGMNneWsa2FSUxFGvm5E kj8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-language:references:cc:to:subject:from:user-agent :mime-version:date:message-id:dkim-signature; bh=sHSYPh+AzLsps9tMRYbaXtGOiqgNNXGNW2LnpSImx9w=; b=RJAfaOFwUL16NrwLr2uymWyYZlPhDRP7csEgDj5rD3yYtsm57IQwuNhPNaly8qyk/V oOmb5fpev7W5xVTcRF0IH5rUHja6BlfG+JN67m+0kFpcWt9uXJp3nIO3mUXnU7SbN6Tp GekbUT2WjMoV698JRaNLVQVZib0CqCg3xAbdIH0yfE/tNRmh+MSduZbJHX2Mit9s+EFK GWRJeULQ+yCWwU6WAEPpAaW5M32JrhWxxjeEbe4iHD8GmjQd6sh3/6QsRbUUPNVPRuKe whVyPechoAq3xYizCCHqPilAO8YYhZpzuHEsFRYg6O1+FI6BDoUTu9oCPzPmuQfUtK1M 15xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gdfObkFU; 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 bg10-20020a1709028e8a00b0016c474690cfsi19991984plb.318.2022.07.27.13.32.59; Wed, 27 Jul 2022 13:33:16 -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=gdfObkFU; 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 S233618AbiG0UEi (ORCPT + 99 others); Wed, 27 Jul 2022 16:04:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229508AbiG0UEh (ORCPT ); Wed, 27 Jul 2022 16:04:37 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DAE85A3D2; Wed, 27 Jul 2022 13:04:36 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id h9so25973419wrm.0; Wed, 27 Jul 2022 13:04:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:from:subject:to:cc :references:content-language:in-reply-to:content-transfer-encoding; bh=sHSYPh+AzLsps9tMRYbaXtGOiqgNNXGNW2LnpSImx9w=; b=gdfObkFU00csidxmtnvdCsZOg+Utjxek0TzgURzVqzjZZNEYByr525hTX0retfxoBt Pf7vF6rRabT1BzLjSJgV9I0+zl5Gh+VIJX4MNQFKKQP87uqmqvrIpOXqT+STaXjbtS2x oqqQYlmY8PvUEe3FTTz3MFAByTMedA2uWEvDTtw+vMzMv7xgNzN1pOfi6cd8vGXz4w79 jaQE0rtyEnDQT7VCQIaN35jwIxaw8oKys11iofrqnjuirYj9wU8ePWHiOmeFNtt3h7gN QRCMofJey4qXd3haYwVPmtYxvSzc+kcGORqaSp8bnR+P9NeJf5TxsPtMtGGJMeLXA9gM 829g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:from :subject:to:cc:references:content-language:in-reply-to :content-transfer-encoding; bh=sHSYPh+AzLsps9tMRYbaXtGOiqgNNXGNW2LnpSImx9w=; b=fOAxuKvfjAT+vzVa0y2oTLe1UEzAMtMOwND7GcxRKs1qmAkcmystbAV+gvnZg3Iz+6 tRCBXwKbvh0YCula6udWA6c44sEPa2a6A75gITyDwtbx17PA9eciP336fUU57GOobCSk UEyIEXpNL0VEOqaWeFRt2FFDtYSdU6UlzmL006KyQRzqeprszdIyXjJWOcxHg6pHDJwP /d09yEXHNMHcAoNk4//DVOxydl19wyt8NkH2j9SVhTjblCF9mK3xJyHe64sWNIHVFuVO GVbRWB+6IYoXSOAc0z5hGcuHwniGROihRe1r4wH//xKnZ6r7vbhcHlzaIcKrMa8nkrqT hGOg== X-Gm-Message-State: AJIora9G6vY1ENhogEfXBgPGLEjthYuYlzCGkK4wBbeNMr5J1XDNS0n9 Qfuj9yuht5F9n6Vv4+02KdBFpAq63PDGe5lU X-Received: by 2002:a05:6000:1549:b0:21d:bdce:1d01 with SMTP id 9-20020a056000154900b0021dbdce1d01mr15880551wry.373.1658952274837; Wed, 27 Jul 2022 13:04:34 -0700 (PDT) Received: from [192.168.2.21] (178-83-161-42.dynamic.hispeed.ch. [178.83.161.42]) by smtp.gmail.com with ESMTPSA id i3-20020a05600c354300b003a2e92edeccsm3717174wmq.46.2022.07.27.13.04.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 Jul 2022 13:04:34 -0700 (PDT) Message-ID: Date: Wed, 27 Jul 2022 22:04:33 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 From: Clemens Leu Subject: Re: Possible regression: unable to mount CIFS 1.0 shares from older machines since 76a3c92ec9e0668e4cd0e9ff1782eb68f61a179c To: torvalds@linux-foundation.org Cc: davydm@gmail.com, linux-cifs@vger.kernel.org, linux-kernel@vger.kernel.org, regressions@leemhuis.info, regressions@lists.linux.dev, ronniesahlberg@gmail.com, smfrench@gmail.com References: Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Hi all Here follows now another practical reason why it is at the moment a quite unhappy decision to ditch the NTLM/CIFS 1.0 support entirely. I am on Kubuntu 20.04 LTS and the access to my Apple Time Capsule worked fine. This changed when kernel 5.15.0-41-generic was installed some time ago. Since then I have in dmesg the known "kernel: bad security option: ntlm" and "kernel: CIFS: VFS: bad security option: ntlm" messages and no access is possible any longer to the Time Capsule. So it looks that commit "[76a3c92ec9e0668e4cd0e9ff1782eb68f61a179c] cifs: remove support for NTLM and weaker authentication algorithms" has completely broken my Time Capsule access. Yes, I know, ntlm is more than 20 years old and a quite insecure protocol. It is absolutely understandable to disable it as default. However, it should be also regarded that there exist companies which decided because of narrow-minded reasons to implement only the old SMB1 protocol also on not so old hardware. Apple is such an example, they really implemented on all of their Time Capsule models (which were using a special Samba implementation) only the stone-age variant of SMB/NTLM. This is true even for the last 2013 variant which was discontinued on April 26, 2018. Apple could for sure support a more recent SMB version but they didn't do it most likely to make their own AFP3 protocol look and perform better. So the alternative would be AFP in my case, unfortunately it's not so easy. While we have thanks to Netatalk a rock-solid AFP support in Linux at the server side, this is unfortunately not true for the client one. The corresponding "afpfs-ng" (Apple Filing Protocol Library, a client implementation of the Apple Filing Protocol) project is unmaintained and dormant for years. Long story short, the current situation in this topic is as I said quite unhappy. While I fully agree to disable NTLM/CIFS 1.0 as default, it shouldn't be removed entirely. Maybe it is possible to enable it only for accessing older network volumes/shares while on the same time block the possibility to create insecure NTLM network shares? I am aware that the risk in enabling this old and flawed protocol will be my own problem. I won't complain if I get into trouble because of it. ;-) Unfortunately I have no alternative other than buying a new NAS or downgrading to an older kernel which is also not a really practical option. Whatever, many thanks for all your great work!