Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1584238lqp; Mon, 15 Apr 2024 10:28:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXc8iuvHVv64Rs+0HgbpdK1A5yIE4Qcq7rYk34VgyUTphxXyF/DtS78V7G7CxOZbdQBlqV1uN0CHYSMJQgw1b8vAnaTeyqw5QYK0slBjA== X-Google-Smtp-Source: AGHT+IGG14/4kKOni5xub0+NmiUqH4xkCGgTNmjWKEutfHrO9SqxwuT66CY7ju05Q6prg7NALb4y X-Received: by 2002:a05:6a21:8909:b0:1a7:5fe0:1c99 with SMTP id tc9-20020a056a21890900b001a75fe01c99mr7443488pzc.46.1713202115671; Mon, 15 Apr 2024 10:28:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713202115; cv=pass; d=google.com; s=arc-20160816; b=okGU4PWWggYjbvynSX0adzDh83YZSjThzR2FQUncvx7JdYkyiO5hDWCPNBkwIP2NU1 /qznyV8KPqCDfOT6nB1+blTf6tY/WeN7AIdL08veqL5pGQN7uO4cdm0ErLUBzdh1bgdu 7sw+5aREJ0BEGUnj3byC1gYO4Hj9V/6GP9M0lltKoo/d4xIq+ymI8D8LLdbRbViKyqXN Cif6YiZSLgBK02visGil6i6FDxGDA4YbfmMeRmc2xOMVRmyvtiYw7bHRtVwMbXrNI4GX HJHmKwTHDSwOjlWhGXXrxPz56sJ10a28dU/SKX70/qA5HBXTi53Ki8GeUZ/ICIS3NvHt OYEQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature:dkim-signature:dkim-signature:dkim-signature; bh=DAd9OwUFmnRixsBxYu+oocH797id5OOXdxYRydPak1E=; fh=PPc/77VhX6OSkQzSJmzZ9cbJthmDcZSYAlPhreo/tN0=; b=Z3G4QsnVAgcdMX4F+1U23Vdrj+J+bDqtQYXyul5IRPPof0q42yUtLr55jr4yeMEI9H 7bq5EBayLqhMGhIX72arxtNTCDElBpltueGGxvP75Mxvw7p4557j//Mru8P97CWwx6If dVeSFJ9SNPl6rsr4JoYRTh959JWozG69OKVULZgKsS9OPwANUhheqkjeG6wl3zUfNwIn Om2pPtCMKujgyHD4XQwp0pPLHVbRDBhirCx7jaH7cuQMQuSbvhyjFalWb28X3WGLWLaq nRkSKzOMLEh5QxJSiFwP3d1Ke1a2KVcGYR61629nMt6ptFlCD7sznqSlG0R0qxmyVFP5 nRpw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=QljMduAU; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=QljMduAU; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-nfs+bounces-2813-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2813-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id e8-20020a630f08000000b005dc4912432csi8324298pgl.577.2024.04.15.10.28.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 10:28:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-2813-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=QljMduAU; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=QljMduAU; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-nfs+bounces-2813-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2813-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id B87F1B20912 for ; Mon, 15 Apr 2024 17:21:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7CF0E8BEF; Mon, 15 Apr 2024 17:21:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="QljMduAU"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="k0uWZ037"; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="QljMduAU"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="k0uWZ037" X-Original-To: linux-nfs@vger.kernel.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BFE0D8289E for ; Mon, 15 Apr 2024 17:21:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713201706; cv=none; b=ki27dlBODDSuLEMRBtJpJKrJDGyBbFTfeqFg/UU+9fiFKkqXuhrJjB9t0LhIYGGihCFN6bp6DYTuHgcSX7JnJpDO8yA7G5cG9D6FPgwlxWcvqr8zD4t/sp/fuaIUhuefMrHJ8c27yojZf9EK+u2D8F5vudy8nyqvolcSJVrXAfQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713201706; c=relaxed/simple; bh=kQ9nAnKDX7dlANlaeiWBYBm4lgvJVP8vY1EPkFTe76I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gVAZPY9GCGKdnrhA2qPglDHV8gB+BUB3IGJVHxMF+2PHcuiJu3qU1TrEIgOhCwSkYE4WpIZOvAILHrFwI4gWISGpN5HuDtSSQsGmZ02M/ZW111YFR68OEQbYOekxHZ8XZ0xPxJgkVmzdIhLEUDGTNsDFSialvNqFBmRlDl2215c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz; spf=pass smtp.mailfrom=suse.cz; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=QljMduAU; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=k0uWZ037; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=QljMduAU; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=k0uWZ037; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.cz Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id C367E343E3; Mon, 15 Apr 2024 17:21:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1713201702; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=DAd9OwUFmnRixsBxYu+oocH797id5OOXdxYRydPak1E=; b=QljMduAUaszTS2gzcqDJag1xAidN138mW3LUlbSkaXZRNrteyXWxUfzGby5Hm6iOGUYaEm rloCxeGlX93TQwNRgiMMqnjDFI+7OqtP2bUgEsSPfJRfpcXw4xOsrIGtVOKpuaRFdbaXGl UPqE6T3OyxHIoMNFX/exCEWxT1ye63E= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1713201702; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=DAd9OwUFmnRixsBxYu+oocH797id5OOXdxYRydPak1E=; b=k0uWZ037zpxS8FNUJiKf8XZuo9WBOjHg7Cpr31cn1fN72rUREU0+/qU+BZs+MLcy4rA7+c CjrbOhmSdxum23DA== Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=QljMduAU; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=k0uWZ037 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1713201702; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=DAd9OwUFmnRixsBxYu+oocH797id5OOXdxYRydPak1E=; b=QljMduAUaszTS2gzcqDJag1xAidN138mW3LUlbSkaXZRNrteyXWxUfzGby5Hm6iOGUYaEm rloCxeGlX93TQwNRgiMMqnjDFI+7OqtP2bUgEsSPfJRfpcXw4xOsrIGtVOKpuaRFdbaXGl UPqE6T3OyxHIoMNFX/exCEWxT1ye63E= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1713201702; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=DAd9OwUFmnRixsBxYu+oocH797id5OOXdxYRydPak1E=; b=k0uWZ037zpxS8FNUJiKf8XZuo9WBOjHg7Cpr31cn1fN72rUREU0+/qU+BZs+MLcy4rA7+c CjrbOhmSdxum23DA== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 70FB21368B; Mon, 15 Apr 2024 17:21:42 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id hkEhGSZiHWZdYAAAD6G6ig (envelope-from ); Mon, 15 Apr 2024 17:21:42 +0000 From: Petr Vorel To: ltp@lists.linux.it Cc: Petr Vorel , NeilBrown , Cyril Hrubis , Chuck Lever , Jeff Layton , linux-nfs@vger.kernel.org Subject: [PATCH 1/1] proc01: Whitelist /proc/fs/nfsd/nfsv4recoverydir Date: Mon, 15 Apr 2024 19:21:33 +0200 Message-ID: <20240415172133.553441-1-pvorel@suse.cz> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Flag: NO X-Spam-Score: -3.01 X-Rspamd-Action: no action X-Rspamd-Queue-Id: C367E343E3 X-Spam-Level: X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spamd-Result: default: False [-3.01 / 50.00]; BAYES_HAM(-3.00)[100.00%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; R_DKIM_ALLOW(-0.20)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.cz:dkim,suse.cz:email,imap1.dmz-prg2.suse.org:helo,imap1.dmz-prg2.suse.org:rdns]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:104:10:150:64:97:from]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_SEVEN(0.00)[7]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; FUZZY_BLOCKED(0.00)[rspamd.com]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; DKIM_TRACE(0.00)[suse.cz:+] /proc/fs/nfsd/nfsv4recoverydir started from kernel 6.8 report EINVAL. Signed-off-by: Petr Vorel --- Hi, @ Jeff, Chuck, Neil, NFS devs: The patch itself whitelist reading /proc/fs/nfsd/nfsv4recoverydir in LTP test. I suspect reading failed with EINVAL in 6.8 was a deliberate change and expected behavior when CONFIG_NFSD_LEGACY_CLIENT_TRACKING is not set: $ sudo cat /proc/fs/nfsd/nfsv4recoverydir cat: /proc/fs/nfsd/nfsv4recoverydir: Invalid argument I'm asking because It worked fine in kernel 6.7: $ sudo cat /proc/fs/nfsd/nfsv4recoverydir /var/lib/nfs/v4recovery I did not bisect but I suspect suspect 74fd48739d04 ("nfsd: new Kconfig option for legacy client tracking") from v6.8-rc1. The system I test (openSUSE Tumbleweed) has not CONFIG_NFSD_LEGACY_CLIENT_TRACKING set and 74fd48739d04 wraps write_recoverydir setup, thus it's not set. +#ifdef CONFIG_NFSD_LEGACY_CLIENT_TRACKING [NFSD_RecoveryDir] = write_recoverydir, +#endif Kind regards, Petr testcases/kernel/fs/proc/proc01.c | 1 + 1 file changed, 1 insertion(+) diff --git a/testcases/kernel/fs/proc/proc01.c b/testcases/kernel/fs/proc/proc01.c index c90e509a3..08b9bbc75 100644 --- a/testcases/kernel/fs/proc/proc01.c +++ b/testcases/kernel/fs/proc/proc01.c @@ -113,6 +113,7 @@ static const struct mapping known_issues[] = { {"read", "/proc/fs/nfsd/filehandle", EINVAL}, {"read", "/proc/fs/nfsd/.getfs", EINVAL}, {"read", "/proc/fs/nfsd/.getfd", EINVAL}, + {"read", "/proc/fs/nfsd/nfsv4recoverydir", EINVAL}, {"read", "/proc/self/net/rpc/use-gss-proxy", EAGAIN}, {"read", "/proc/sys/net/ipv6/conf/*/stable_secret", EIO}, {"read", "/proc/sys/vm/nr_hugepages", EOPNOTSUPP}, -- 2.43.0