Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2221365/?format=api
{ "id": 2221365, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2221365/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260409095926.905020-7-rajasimandalos@gmail.com/", "project": { "id": 12, "url": "http://patchwork.ozlabs.org/api/1.2/projects/12/?format=api", "name": "Linux CIFS Client", "link_name": "linux-cifs-client", "list_id": "linux-cifs.vger.kernel.org", "list_email": "linux-cifs@vger.kernel.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260409095926.905020-7-rajasimandalos@gmail.com>", "list_archive_url": null, "date": "2026-04-09T09:59:24", "name": "[7/9] smb: client: block cache=ro and cache=singleclient on remount", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "9b69165587b1f979fcf4838ee05ac5acbeab26de", "submitter": { "id": 91740, "url": "http://patchwork.ozlabs.org/api/1.2/people/91740/?format=api", "name": "Rajasi Mandal", "email": "rajasimandalos@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260409095926.905020-7-rajasimandalos@gmail.com/mbox/", "series": [ { "id": 499267, "url": "http://patchwork.ozlabs.org/api/1.2/series/499267/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=499267", "date": "2026-04-09T09:59:18", "name": "[1/9] smb: client: block non-reconfigurable option changes on remount", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/499267/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2221365/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2221365/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-cifs+bounces-10734-incoming=patchwork.ozlabs.org@vger.kernel.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linux-cifs@vger.kernel.org" ], "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=kpWw4ljk;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-cifs+bounces-10734-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=\"kpWw4ljk\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.210.172", "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=gmail.com" ], "Received": [ "from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4frwXp34kzz1yD3\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 09 Apr 2026 20:05:14 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 7C20C3042D28\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 9 Apr 2026 10:01:31 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 8D4913A5E9F;\n\tThu, 9 Apr 2026 10:00:17 +0000 (UTC)", "from mail-pf1-f172.google.com (mail-pf1-f172.google.com\n [209.85.210.172])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 43B323BED7F\n\tfor <linux-cifs@vger.kernel.org>; Thu, 9 Apr 2026 10:00:13 +0000 (UTC)", "by mail-pf1-f172.google.com with SMTP id\n d2e1a72fcca58-82cd98be655so516801b3a.0\n for <linux-cifs@vger.kernel.org>;\n Thu, 09 Apr 2026 03:00:12 -0700 (PDT)", "from dev-vm-rm.hzz4ddxqtfeetjrh00qlbgyytb.rx.internal.cloudapp.net\n ([20.197.52.255])\n by smtp.gmail.com with ESMTPSA id\n d2e1a72fcca58-82cf9c6b80dsm29113671b3a.42.2026.04.09.03.00.08\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 09 Apr 2026 03:00:11 -0700 (PDT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775728816; cv=none;\n b=DwpK2+pBxk5rdgUdRFW2rngYzxR0urWYRChJpXuaazAK0ql7yn6T458pw9eEE3YNHojnAOjrilLSPyELpKxb0fGmj82LmMQSV07kmweq0May579LMsQcfBhomFL8FgIJEJr5jYI//eRQ4y34olDt9OZO5IQVVvGpCLMUMAsPBSM=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775728816; c=relaxed/simple;\n\tbh=jLDGH2xbdkICao3AAOemRCpEXMamhhYa4U4t1QlA53w=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=Eif+XH645wF7IMEAJx2Z7iUCsp3tQ4T1aqF+d+G/dw6d+XonEJlNkzpFNzbjHxJnw2CvurRVyQaRZafoVLLXRfN/dFE/VtIa0uKvq5vMwzxaGWyu+zpbl5xrNi1gVEp6vbSnMNstnEstKmAcuaBDd6s8aviRhLQWfpvrkE6bOqo=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com;\n spf=pass smtp.mailfrom=gmail.com;\n dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=kpWw4ljk; arc=none smtp.client-ip=209.85.210.172", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1775728812; x=1776333612;\n darn=vger.kernel.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=cOqI9jBMlEFSepIEKpFv4Fn8Y0sEbCOesb+bDrPgbcc=;\n b=kpWw4ljkw0sLT63co6djpUBucoczAv7eDyfFhsFjRqZFtvQ07Q0TK+r/5HKR1Y7Qgv\n 9g9CiZEqp5wtvDUcohlwBmM4T1iSgi1AmfYRxWzbiTeUdpK3kRnswSgYCu0MPCsv0Daj\n UFxfQEG7MhWFD8URb6QjL/h5UwTfYdLiXEJHG7xGFLWruMgmVAQPCmPDOiVBDPkAVHFF\n srXijc80EC6qB247d/QPOO3/9VRhkuk3AlpepBGKFTtcbclzIR3wP/Gf2FxTh5FYzGTu\n FzfhvcbC1Xc8aPytUGG4U3+uQXhNrxOU+nHKPSHWWxgpgL11RGz8t/w5WgJpMVoBad5D\n RzCA==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775728812; x=1776333612;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=cOqI9jBMlEFSepIEKpFv4Fn8Y0sEbCOesb+bDrPgbcc=;\n b=inshoA0kUDyWgfT5x416DOstePfU3LfaBolGO6tLQJfSygfAaJDtMmXav19knVYowY\n 3AxTnzg+81Vt1z6vJ26qqOrxMZ1kjCpnyA/UBTECshcHEwefXs5vzMunDxHNsUUtdqyj\n lUNyxm7WwUuR6GCfoAVkrMTDkucueR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2e1a72fcca58-82d0dbb96fdmr24441118b3a.43.1775728812252;\n Thu, 09 Apr 2026 03:00:12 -0700 (PDT)", "From": "rajasimandalos@gmail.com", "To": "sfrench@samba.org,\n\tlinux-cifs@vger.kernel.org", "Cc": "pc@manguebit.org,\n\tronniesahlberg@gmail.com,\n\tsprasad@microsoft.com,\n\ttom@talpey.com,\n\tmetze@samba.org,\n\tbharathsm@microsoft.com,\n\tsamba-technical@lists.samba.org,\n\tlinux-kernel@vger.kernel.org,\n\tRajasi Mandal <rajasimandal@microsoft.com>", "Subject": "[PATCH 7/9] smb: client: block cache=ro and cache=singleclient on\n remount", "Date": "Thu, 9 Apr 2026 09:59:24 +0000", "Message-ID": "<20260409095926.905020-7-rajasimandalos@gmail.com>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20260409095926.905020-1-rajasimandalos@gmail.com>", "References": "<20260409095926.905020-1-rajasimandalos@gmail.com>", "Precedence": "bulk", "X-Mailing-List": "linux-cifs@vger.kernel.org", "List-Id": "<linux-cifs.vger.kernel.org>", "List-Subscribe": "<mailto:linux-cifs+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:linux-cifs+unsubscribe@vger.kernel.org>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit" }, "content": "From: Rajasi Mandal <rajasimandal@microsoft.com>\n\ncache=ro and cache=singleclient are mount-time environment declarations\nwhere the admin promises that the share is read-only or exclusively\naccessed. The client bypasses server-based coherency (oplocks/leases)\nand caches aggressively based on this promise.\n\nThese modes were intentionally excluded from smb3_update_mnt_flags()\nwhen it was introduced in commit 2d39f50c2b15 (\"cifs: move update of\nflags into a separate function\") — only cache=strict, cache=none and\ncache=loose were made reconfigurable. However, remount currently\nsilently accepts cache=ro and cache=singleclient without actually\napplying them, which is confusing.\n\nAdd explicit checks in smb3_verify_reconfigure_ctx() to reject\nattempts to change these options during remount with a clear error\nmessage.\n\nSigned-off-by: Rajasi Mandal <rajasimandal@microsoft.com>\n---\n fs/smb/client/fs_context.c | 8 ++++++++\n 1 file changed, 8 insertions(+)", "diff": "diff --git a/fs/smb/client/fs_context.c b/fs/smb/client/fs_context.c\nindex ce4842e778c4..2be72733ef2e 100644\n--- a/fs/smb/client/fs_context.c\n+++ b/fs/smb/client/fs_context.c\n@@ -1180,6 +1180,14 @@ static int smb3_verify_reconfigure_ctx(struct fs_context *fc,\n \t\tcifs_errorf(fc, \"can not change rdma during remount\\n\");\n \t\treturn -EINVAL;\n \t}\n+\tif (new_ctx->cache_ro != old_ctx->cache_ro) {\n+\t\tcifs_errorf(fc, \"can not change cache=ro during remount\\n\");\n+\t\treturn -EINVAL;\n+\t}\n+\tif (new_ctx->cache_rw != old_ctx->cache_rw) {\n+\t\tcifs_errorf(fc, \"can not change cache=singleclient during remount\\n\");\n+\t\treturn -EINVAL;\n+\t}\n \n \treturn 0;\n }\n", "prefixes": [ "7/9" ] }