Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2308995pxb; Wed, 9 Feb 2022 15:48:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJz8Pmdy57KTpaGc3JDLFMaHDiLJWIv9iT56/ZAsurMCa6GCn3YIBSPIEzw0CL13gkefAt3r X-Received: by 2002:a17:90a:bc81:: with SMTP id x1mr5366931pjr.119.1644450524158; Wed, 09 Feb 2022 15:48:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644450524; cv=none; d=google.com; s=arc-20160816; b=UrsXkXs7NGr9x8JsQri3ygckGhMxpP4j/4oErSlyKDV0CVrKJzdxn4cOuUvO5SdUPO i3iaro3/dgF4AADh54ftK2uAEQSyeelUKo1ohSQQ80IczGr4hI6d9x823mcvJV682/iV un95haQPB1NiX2X73I8sTBfY3KoY28XKJZul69u3pWoC8RrtI0XBxTRQZCUVOYz9pJvb lMTxOAtP9/+G5glDzjdCL8MBadagvDonDxfu5UN28xT36X1eGmo6wJRRJDCwCAMmUmLY SMkh17mIkAmseCxWopJCUV7znBig81hxzipRAL+dRLTy5SlSZ9G9YRAPJ94qvn7KussZ z0Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=j+pQpKmfzlL4KZk9ukchLsiAEhY7uRcrMQ98+/U4mU0=; b=bUf8IztjW2l/jDAwzuugS3uMcX2Y2nCTa5ot7z39PuXfLiGymAmbS+JOf37WO6b/Jb MDQ1PanAnoTXuyHRPrAeTaMg7OJd2jUk+CwgJwAT9iz+hvcuBT8o3zAe+Dif5OeAop8d f799a86dgdrWuENixb+1gBe/j591SOfex1L8VIvf4VXYCHe0ejBKrLjzjDvrfstwT+As E/GQS9lFwFue27vl24P+DMyfTv3jWFQ2aWR+2bcJmQrgaOdmmUQnFORjyGLmXiwZQ3Jl ygw+vdht8n1HN14c/dnJolD7DDDdq7tacuSg1grgJxek+kBqI5Ig2aj0xwgcv8C27CX8 pw4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=eKSAQfQC; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=aTjHNUkI; 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=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id r70si18168729pgr.157.2022.02.09.15.48.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 15:48:44 -0800 (PST) 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=@suse.de header.s=susede2_rsa header.b=eKSAQfQC; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=aTjHNUkI; 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=NONE sp=NONE dis=NONE) header.from=suse.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 67AD9E08FBD9; Wed, 9 Feb 2022 15:24:28 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234609AbiBIWAJ (ORCPT + 99 others); Wed, 9 Feb 2022 17:00:09 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:34182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234491AbiBIV7x (ORCPT ); Wed, 9 Feb 2022 16:59:53 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6EA1E00D131; Wed, 9 Feb 2022 13:59:55 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id A2A001F391; Wed, 9 Feb 2022 21:59:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1644443994; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=j+pQpKmfzlL4KZk9ukchLsiAEhY7uRcrMQ98+/U4mU0=; b=eKSAQfQCWZPpF8fWc7728iUVKDG/8xR98p8nDijBvNvt52pynaLXqeR6sY965pMDlBeCSh y47AGd3E19xzvuYK3hmsDY2vyt8q82lsVhZ1yLRek+hq1U7Q9GqSagKaUoKQprx2Og5o1X P0UXuWCIwOPdupwNPVBjFWKy+D0lNzA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1644443994; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=j+pQpKmfzlL4KZk9ukchLsiAEhY7uRcrMQ98+/U4mU0=; b=aTjHNUkIup75+LiMJuwnyqbqEqC8SAf4w30ZJjgGNhYFY3PSAwLywS8ZNNRUw+IYYeC5oZ OoIds/Y2hxOgKbCQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 31A2113A91; Wed, 9 Feb 2022 21:59:52 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id UF+yN1g5BGKWMQAAMHmgww (envelope-from ); Wed, 09 Feb 2022 21:59:52 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 From: "NeilBrown" To: "Ian Kent" Cc: autofs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [ANNOUNCE] autofs 5.1.8 release In-reply-to: References: Date: Thu, 10 Feb 2022 08:59:48 +1100 Message-id: <164444398868.27779.4643380819577932837@noble.neil.brown.name> 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 On Tue, 19 Oct 2021, Ian Kent wrote: > Hi all, >=20 > It's time for a release, autofs-5.1.8. >=20 ... > - also require TCP_REQUESTED when setting NFS port. Unfortunately that last patch is buggy. TCP_REQUESTED is masked out in the caller. Maybe the following is best. NeilBrown From: NeilBrown Subject: [PATCH] Test TCP request correctly in nfs_get_info() The TCP_REQUESTED flag is masked out by the caller, so it never gets to nfs_get_info(). We can test if TCP was requested by examining the 'proto' parameter. Signed-off-by: NeilBrown diff --git a/modules/replicated.c b/modules/replicated.c index 09075dd0c1b4..3ac7ee432e73 100644 --- a/modules/replicated.c +++ b/modules/replicated.c @@ -291,7 +291,7 @@ static unsigned int get_nfs_info(unsigned logopt, struct = host *host, =20 rpc_info->proto =3D proto; if (port < 0) { - if ((version & NFS4_REQUESTED) && (version & TCP_REQUESTED)) + if ((version & NFS4_REQUESTED) && (proto =3D=3D IPPROTO_TCP)) rpc_info->port =3D NFS_PORT; else port =3D 0;