Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3315401rwi; Fri, 28 Oct 2022 20:01:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5peQpYzkQaFfNMzb2v6/7NC1n3ymcFHisdHHor0KEK888GGfTf7owJhLpOrEl8tqPKrprN X-Received: by 2002:a17:906:846d:b0:7ad:90dd:4b6 with SMTP id hx13-20020a170906846d00b007ad90dd04b6mr2083271ejc.492.1667012472028; Fri, 28 Oct 2022 20:01:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667012472; cv=none; d=google.com; s=arc-20160816; b=JdmnoUosygxPFzCmU+cL4CcxnD3uKaPXl5Zl4fcQw5m8NYBkSHwVEMolbcaxYWvClF cYN0w+gXQIn7ZQU5VDA+pY4KNGo9szoRc3e/bNmnrOYC92IeRQ6FjB4g/Y1zBBKHCD5o iDBKLbeyCgy5h3W4i0WhRlyuOJ/ZsLdsgW+mXwl6mA+9UqMngsKeIINNuqafIIg04Dr0 KImU47ui50trN4r9IWgRsJp5V7lhhqILoNCMge0de2SWOaNyHAoUrkwjQik8xkQdivQV nh0U8umWCBAGwwZk/VAa/feq5eAaopoZ5oXExwkix5/FX49M0PBQ+9/2nBGvj3nzkubG EHWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:date:cc:to:from:subject :message-id; bh=4gjKZuz9IffGjuGKpn3PW3u/OD19cZl3dQNkCioVIVE=; b=OCs9eVPMsIwSiaJMcrHKDQbYn6Rqn2OQwPTQ5pB6UsrwhQHS556s7Dg0mCONkLnrVm YVfbtZ9vr/uVPu+2jS/i04Tn8Nr2D8FupEnR98vG17YI3AfY5eynfR9RPxOVuSoE/jTD WzruB1hdNSyDDbUdISmLkDeWTzvfD7D/o4hp2KoNXfu81lHbjq9QqILoaD1OFAoQCdGV JJJ1shEuiAXjFJ4RpqMrNhHojsUg/JiXuQ7v9V8Nyfkk7K4rRhdILGG8MwigBAcpprzw nG4hi4TIvl69iuS71/RfwNguEnYrkZyy4jBlTAOAeZL5STcGas6QLbb9KmymOlKr9uXY 1q2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nc24-20020a1709071c1800b00787e1d77943si572215ejc.49.2022.10.28.20.00.34; Fri, 28 Oct 2022 20:01:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229872AbiJ2DAa (ORCPT + 99 others); Fri, 28 Oct 2022 23:00:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229870AbiJ2DA3 (ORCPT ); Fri, 28 Oct 2022 23:00:29 -0400 Received: from mail-il1-f172.google.com (mail-il1-f172.google.com [209.85.166.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D116319E92A; Fri, 28 Oct 2022 19:58:40 -0700 (PDT) Received: by mail-il1-f172.google.com with SMTP id g13so3896866ile.0; Fri, 28 Oct 2022 19:58:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:date:cc:to:from:subject:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4gjKZuz9IffGjuGKpn3PW3u/OD19cZl3dQNkCioVIVE=; b=XKzswANHM5Ef8hqs9iQ4TsPao6yww1T5iM1YCzlKxfDRSo4kdP4ggXSQ9qlXHYgqu4 rjYVNYbM6iItSU2ejrv4VIJmKv74PkvrJ2HuqHDXgqmAGWY0XEWsFxeVhdn0edic53mH RH3e098qjmQ8N8yINSr7JonzFXmJlQd1MpRe2/JuQXUEN37EcbnlD9wY/ObrCjF7zDzx kvQqR0MVFeacm5rHdwZhtfhu3NzW0NiyeuqrqiCZi3Jz6nUqPvWxay2TD2kYeGCBaEuE tviqNEuDlS9jPs+kptVe1RRDxvmarkZj+BJfDf4I/UOPnE5zk4Mzvw2ImuqusMagR4O6 Ni1A== X-Gm-Message-State: ACrzQf0Pgr5T36yi/b7/70SS1gGjeiLqUYqnEPxiW+JmaDgik2uwTUCL eoLOGkQFZWqkCcKUFHh7E4zfK9Wc7Q== X-Received: by 2002:a05:6e02:19c9:b0:2fc:6475:510f with SMTP id r9-20020a056e0219c900b002fc6475510fmr1135728ill.44.1667012286677; Fri, 28 Oct 2022 19:58:06 -0700 (PDT) Received: from [192.168.75.138] (50-36-85-28.alma.mi.frontiernet.net. [50.36.85.28]) by smtp.gmail.com with ESMTPSA id bg3-20020a0566383c4300b00375217ea9b6sm163292jab.45.2022.10.28.19.58.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 19:58:06 -0700 (PDT) Message-ID: Subject: Stable patch for 5.15.x From: Trond Myklebust To: stable@vger.kernel.org Cc: linux-nfs@vger.kernel.org, Anna Schumaker , Benjamin Coddington , Scott Mayhew Date: Fri, 28 Oct 2022 22:58:05 -0400 Content-Type: multipart/mixed; boundary="=-cj1xZxAySvRZYL7FqNNp" User-Agent: Evolution 3.44.4 (3.44.4-2.fc36) MIME-Version: 1.0 X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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-nfs@vger.kernel.org --=-cj1xZxAySvRZYL7FqNNp Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Greg / Sasha, Can we please pull commit c3ed222745d9 ("NFSv4: Fix free of uninitialized nfs4_label on referral lookup.") into the 5.15.x tree? As far as I can tell, it should apply cleanly on top of v5.15.75. Unfortunately, that commit also contains a bug, which requires us to pull in commit 4f40a5b55446 ("NFSv4: Add an fattr allocation to _nfs4_discover_trunking()"), which does not apply cleanly. I've attached a backported version to this email. I'm seeing the Oops that this commit fixes when I do a NFSv4.2 mount from a NFS client running a 5.15.75 kernel against a server that has referrals configured. The reason is that commit d755ad8dc752 ("NFS: Create a new nfs_alloc_fattr_with_label() function") got pulled into v5.15.46 apparently as part of a dependency. Thanks Trond --=20 Trond Myklebust Linux NFS client maintainer, Hammerspace trond.myklebust@hammerspace.com --=-cj1xZxAySvRZYL7FqNNp Content-Disposition: inline; filename="0001-NFSv4-Add-an-fattr-allocation-to-_nfs4_discover_trun.patch" Content-Type: text/x-patch; name="0001-NFSv4-Add-an-fattr-allocation-to-_nfs4_discover_trun.patch"; charset="UTF-8" Content-Transfer-Encoding: base64 RnJvbSA4MGI5NzljMWJlYzIxYTc2OTEzYzA1NmFiMGEwMjRlNDFlYWIwODU3IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBTY290dCBNYXloZXcgPHNtYXloZXdAcmVkaGF0LmNvbT4KRGF0 ZTogTW9uLCAyNyBKdW4gMjAyMiAxNzozMToyOSAtMDQwMApTdWJqZWN0OiBbUEFUQ0hdIE5GU3Y0 OiBBZGQgYW4gZmF0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