The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] 9p: fix privport option setting wrong RDMA field
@ 2026-07-03 10:22 Stefano Garzarella
  2026-07-03 14:16 ` Dominique Martinet
  2026-07-03 15:07 ` Eric Sandeen
  0 siblings, 2 replies; 3+ messages in thread
From: Stefano Garzarella @ 2026-07-03 10:22 UTC (permalink / raw)
  To: v9fs
  Cc: Latchesar Ionkov, Eric Sandeen, Dominique Martinet,
	Christian Schoenebeck, linux-kernel, Eric Van Hensbergen,
	Stefano Garzarella, stable

From: Stefano Garzarella <sgarzare@redhat.com>

While reviewing a patch adding vsock transport to 9p, I noticed that
since commit 1f3e4142c0eb ("9p: convert to the new mount API"), the
Opt_privport case incorrectly sets rdma_opts->port instead of
rdma_opts->privport, so mounting with the privport option overwrites
the RDMA port number instead of enabling privileged port usage.

Fixes: 1f3e4142c0eb ("9p: convert to the new mount API")
Cc: stable@vger.kernel.org
Cc: sandeen@redhat.com
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
---
 fs/9p/v9fs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/9p/v9fs.c b/fs/9p/v9fs.c
index 274c5157135d..f426cee37414 100644
--- a/fs/9p/v9fs.c
+++ b/fs/9p/v9fs.c
@@ -406,7 +406,7 @@ int v9fs_parse_param(struct fs_context *fc, struct fs_parameter *param)
 		break;
 	case Opt_privport:
 		fd_opts->privport = true;
-		rdma_opts->port = true;
+		rdma_opts->privport = true;
 		break;
 	}
 
-- 
2.55.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-07-03 15:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-03 10:22 [PATCH] 9p: fix privport option setting wrong RDMA field Stefano Garzarella
2026-07-03 14:16 ` Dominique Martinet
2026-07-03 15:07 ` Eric Sandeen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox