Cover Letter Detail
Show a cover letter.
GET /api/covers/2217413/?format=api
{ "id": 2217413, "url": "http://patchwork.ozlabs.org/api/covers/2217413/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/cover/20260328172314.45807-1-dorjoychy111@gmail.com/", "project": { "id": 12, "url": "http://patchwork.ozlabs.org/api/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": "<20260328172314.45807-1-dorjoychy111@gmail.com>", "list_archive_url": null, "date": "2026-03-28T17:22:21", "name": "[v6,0/4] OPENAT2_REGULAR flag support for openat2", "submitter": { "id": 88386, "url": "http://patchwork.ozlabs.org/api/people/88386/?format=api", "name": "Dorjoy Chowdhury", "email": "dorjoychy111@gmail.com" }, "mbox": "http://patchwork.ozlabs.org/project/linux-cifs-client/cover/20260328172314.45807-1-dorjoychy111@gmail.com/mbox/", "series": [ { "id": 497884, "url": "http://patchwork.ozlabs.org/api/series/497884/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=497884", "date": "2026-03-28T17:22:21", "name": "OPENAT2_REGULAR flag support for openat2", "version": 6, "mbox": "http://patchwork.ozlabs.org/series/497884/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/covers/2217413/comments/", "headers": { "Return-Path": "\n <linux-cifs+bounces-10562-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=he2Tc3id;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-cifs+bounces-10562-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=\"he2Tc3id\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.216.45", "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 sea.lore.kernel.org (sea.lore.kernel.org\n [IPv6:2600:3c0a:e001:db::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fjkrL1cLsz1xy1\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 29 Mar 2026 04:23:46 +1100 (AEDT)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id B79B23016EFD\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 28 Mar 2026 17:23:43 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 0AE3E3A3821;\n\tSat, 28 Mar 2026 17:23:43 +0000 (UTC)", "from mail-pj1-f45.google.com (mail-pj1-f45.google.com\n [209.85.216.45])\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 7FC2D276050\n\tfor <linux-cifs@vger.kernel.org>; Sat, 28 Mar 2026 17:23:41 +0000 (UTC)", "by mail-pj1-f45.google.com with SMTP id\n 98e67ed59e1d1-35d95017a68so321361a91.3\n for <linux-cifs@vger.kernel.org>;\n Sat, 28 Mar 2026 10:23:41 -0700 (PDT)", "from toolbx ([103.103.35.11])\n by smtp.gmail.com with ESMTPSA id\n 98e67ed59e1d1-35c22a5570esm10513773a91.3.2026.03.28.10.23.25\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sat, 28 Mar 2026 10:23:40 -0700 (PDT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774718622; cv=none;\n b=O5VoIkZtrTjhJID4IagipDDeagZ5bh0TVdJ9lwh2EA/kiTErssiPX1J/vdRrGJaUfjDv+ioppEdPyB7yY8cQsNrxZhOq3GL6KRnBr2IJOghSjbpDlyIYlIHLd8yO5kTWMqLeyOJYrnm8ipbk8BAPiCdiUIzq75ts2OjPr+FJFFw=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774718622; c=relaxed/simple;\n\tbh=WbXqvQhn4qwD4XjOM1f/RolmfvXydvP/QpIVZ5/s984=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=uQmXL9gWQ/dhqFlvS+w40dRC6gVNdlqMg3Q6l1KC5EEwerNrgwcY/IPds+FsjYp4QMv9dsiN/hbyfn+eHYSOyNXeRvzDZiwSPpRaBTDpKAEfDIw3ejdvQRC0bB3okfhw5mx9UONEgt1MUtoYG1yKy1EHZaLyiR+nXn7tYwQ0OCA=", "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=he2Tc3id; arc=none smtp.client-ip=209.85.216.45", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1774718621; x=1775323421;\n darn=vger.kernel.org;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=BNS/xpL/hsal7ModqBYJCvXhQFGlskOPOCno4hyw7aY=;\n b=he2Tc3id36N/dNrImAB0FtQFWApWtJHTjZ72YR26i8lE+n/7H96TCzG9qYvHmqk+2e\n uhIK/YFXplWVcKkPvGinoa+vojsICJPfJOCo90pDQcWKUw0bcf9YMhWHaGc6t3aDXzaz\n J0ZN74GIXjZxZ1cHytdCxoivIZe9H2+5LHik+R0ySUgsb7V81/k2KYAcaoJxglkogLHt\n itgBsuq/w5xhyhloX2BJw9loZpXt2izQxnRHpMpCU28qK6a3lsRUy1qiplwSVk2WBqXf\n i+gHVslEVJre6VrlGsJP/g1RxCmDbsoFkhecX6fevPzYq0iINcrs9faBGCP9baFUrKFp\n WCFg==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774718621; x=1775323421;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=BNS/xpL/hsal7ModqBYJCvXhQFGlskOPOCno4hyw7aY=;\n b=J938BOuHxNrLD7HUKdRxI7WgdA3KqVabG+fUQ0UZS+22qMZYu3+1bMsNzRWvwq16Nj\n 6LlmaIBbmamBAZ7xkh0zfc8K7L9jSvD/lou9VYXglXNy+HH9eEqaaxL5fLtMs4+q+Elf\n n95VGHM3EYcOFPFWrMdSsKq9qin5a/91WIZ4Lg3Mbw61RYbIHe5RwbrX7Nkpcs1Uv8GL\n Jl1TDmatMy1lhs/ae+E1oyvOGdwUw/8Ltttehbznh0SsxcvsGjTb9Zng0atusiseBgMR\n 1MxGCImVm+so1KWFpmCGJhPrKuAt+g8LKhYPcMuxigS8KwuSVXMSJq8OM2Wx4erPvytS\n jZKg==", "X-Forwarded-Encrypted": "i=1;\n AJvYcCVhl72YoAJs2GXSrivxcAFUlKdg6aXpR3Q3Ic+7RlNpYXMFM0q9iZPkoXp0fe6FzwqEEqC/wkG5COmO@vger.kernel.org", "X-Gm-Message-State": "AOJu0YxxzjyoxRxelGvqllXb/z+y9yEaoBhMx7UTnsXNM7LqwVPJpSlF\n\tWEmKO6Gre9Q710pKR/IUCR6cuMgfnGImOkKCEHIo0MyxA4FhmPNWfHKL", "X-Gm-Gg": "ATEYQzyczsaABm2E2rqeRJokZc/0pjvde8y/MBYFwZdYY6QV5l/iRDpO/QJAzVyXyd/\n\tcz9gLuXQKuUQXhiO7ZEpBPRpi3bB1r4vgaOGhWpuzMIg//OVi8IvdvtZPjpBGMC3gjcDJnNCpuF\n\thBWn07JKxXKXyoDXzqPhWJ8Lhw6UYeTV4u2M/2WOSfp7hBDFOFIZ5ByIUVKa9nXetoDtWUkI4hq\n\tEc7MYDT0AMRcoH362L4EbMZsuLWIy5O1wiL+GF7gKjKNKJCOJEVTFMPun1I/11dj4Vz3Sg9EqaD\n\tPSfnO/ZaDZXVgEiVgqO2/M4M13ke5XUWG+mIq0dqAGBDl9yAAVU0EUBQszM7k6WiOtrKqv6SCJL\n\tY/ZQ1NLuBVXeHLYopKYmZ+FpQnQ8BZp2mqBOZb29ECJvsbZTt1hNcd+hW3TF1QTJYk3XDBhLhkR\n\tafxiUDiPdjv+oBAVH1qiOFzegoypXt9CD3EZv9aLG/ipHuACknAU9pqSk=", "X-Received": "by 2002:a17:90b:2744:b0:35b:e690:c5ad with SMTP id\n 98e67ed59e1d1-35c30094a5amr6635171a91.25.1774718620730;\n Sat, 28 Mar 2026 10:23:40 -0700 (PDT)", "From": "Dorjoy Chowdhury <dorjoychy111@gmail.com>", "To": "linux-fsdevel@vger.kernel.org", "Cc": "linux-kernel@vger.kernel.org,\n\tlinux-api@vger.kernel.org,\n\tceph-devel@vger.kernel.org,\n\tgfs2@lists.linux.dev,\n\tlinux-nfs@vger.kernel.org,\n\tlinux-cifs@vger.kernel.org,\n\tv9fs@lists.linux.dev,\n\tlinux-kselftest@vger.kernel.org,\n\tviro@zeniv.linux.org.uk,\n\tbrauner@kernel.org,\n\tjack@suse.cz,\n\tjlayton@kernel.org,\n\tchuck.lever@oracle.com,\n\talex.aring@gmail.com,\n\tarnd@arndb.de,\n\tadilger@dilger.ca,\n\tmjguzik@gmail.com,\n\tsmfrench@gmail.com,\n\trichard.henderson@linaro.org,\n\tmattst88@gmail.com,\n\tlinmag7@gmail.com,\n\ttsbogend@alpha.franken.de,\n\tJames.Bottomley@HansenPartnership.com,\n\tdeller@gmx.de,\n\tdavem@davemloft.net,\n\tandreas@gaisler.com,\n\tidryomov@gmail.com,\n\tamarkuze@redhat.com,\n\tslava@dubeyko.com,\n\tagruenba@redhat.com,\n\ttrondmy@kernel.org,\n\tanna@kernel.org,\n\tsfrench@samba.org,\n\tpc@manguebit.org,\n\tronniesahlberg@gmail.com,\n\tsprasad@microsoft.com,\n\ttom@talpey.com,\n\tbharathsm@microsoft.com,\n\tshuah@kernel.org,\n\tmiklos@szeredi.hu,\n\thansg@kernel.org", "Subject": "[PATCH v6 0/4] OPENAT2_REGULAR flag support for openat2", "Date": "Sat, 28 Mar 2026 23:22:21 +0600", "Message-ID": "<20260328172314.45807-1-dorjoychy111@gmail.com>", "X-Mailer": "git-send-email 2.53.0", "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-Transfer-Encoding": "8bit" }, "content": "Hi,\n\nI came upon this \"Ability to only open regular files\" uapi feature suggestion\nfrom https://uapi-group.org/kernel-features/#ability-to-only-open-regular-files\nand thought it would be something I could do as a first patch and get to\nknow the kernel code a bit better.\n\nThe following filesystems have been tested by building and booting the kernel\nx86 bzImage in a Fedora 43 VM in QEMU. I have tested with OPENAT2_REGULAR that\nregular files can be successfully opened and non-regular files (directory, fifo etc)\nreturn -EFTYPE.\n- btrfs\n- NFS (loopback)\n- SMB (loopback)\n\nChanges in v6:\n- OPENAT2_REGULAR stripped from file->f_flags in do_dentry_open so that it doesn't leak in fcntl(fd, F_GETFL)\n- BUILD_BUG_ON updated to use VALID_OPENAT2_FLAGS instead of VALID_OPEN_FLAGS in build_open_flags and in fcntl_init\n- v5 is at: https://lore.kernel.org/linux-fsdevel/20260307140726.70219-1-dorjoychy111@gmail.com/T/\n\nChanges in v5:\n- EFTYPE is already used in BSDs mentioned in commit message\n- consistently return -EFTYPE in all filesystems\n- v4 is at: https://lore.kernel.org/linux-fsdevel/20260221145915.81749-1-dorjoychy111@gmail.com/T/\n\nChanges in v4:\n- changed O_REGULAR to OPENAT2_REGULAR\n- OPENAT2_REGULAR does not affect O_PATH\n- atomic_open codepaths updated to work properly for OPENAT2_REGULAR\n- commit message includes the uapi-group URL\n- v3 is at: https://lore.kernel.org/linux-fsdevel/20260127180109.66691-1-dorjoychy111@gmail.com/T/\n\nChanges in v3:\n- included motivation about O_REGULAR flag in commit message e.g., programs not wanting to be tricked into opening device nodes\n- fixed commit message wrongly referencing ENOTREGULAR instead of ENOTREG\n- fixed the O_REGULAR flag in arch/parisc/include/uapi/asm/fcntl.h from 060000000 to 0100000000\n- added 2 commits converting arch/{mips,sparc}/include/uapi/asm/fcntl.h O_* macros from hex to octal\n- v2 is at: https://lore.kernel.org/linux-fsdevel/20260126154156.55723-1-dorjoychy111@gmail.com/T/\n\nChanges in v2:\n- rename ENOTREGULAR to ENOTREG\n- define ENOTREG in uapi/asm-generic/errno.h (instead of errno-base.h) and in arch/*/include/uapi/asm/errno.h files\n- override O_REGULAR in arch/{alpha,sparc,parisc}/include/uapi/asm/fcntl.h due to clash with include/uapi/asm-generic/fcntl.h\n- I have kept the kselftest but now that O_REGULAR and ENOTREG can have different value on different architectures I am not sure if it's right\n- v1 is at: https://lore.kernel.org/linux-fsdevel/20260125141518.59493-1-dorjoychy111@gmail.com/T/\n\nThanks.\n\nRegards,\nDorjoy\n\nDorjoy Chowdhury (4):\n openat2: new OPENAT2_REGULAR flag support\n kselftest/openat2: test for OPENAT2_REGULAR flag\n sparc/fcntl.h: convert O_* flag macros from hex to octal\n mips/fcntl.h: convert O_* flag macros from hex to octal\n\n arch/alpha/include/uapi/asm/errno.h | 2 +\n arch/alpha/include/uapi/asm/fcntl.h | 1 +\n arch/mips/include/uapi/asm/errno.h | 2 +\n arch/mips/include/uapi/asm/fcntl.h | 22 +++++------\n arch/parisc/include/uapi/asm/errno.h | 2 +\n arch/parisc/include/uapi/asm/fcntl.h | 1 +\n arch/sparc/include/uapi/asm/errno.h | 2 +\n arch/sparc/include/uapi/asm/fcntl.h | 35 +++++++++---------\n fs/ceph/file.c | 4 ++\n fs/fcntl.c | 4 +-\n fs/gfs2/inode.c | 6 +++\n fs/namei.c | 4 ++\n fs/nfs/dir.c | 4 ++\n fs/open.c | 8 ++--\n fs/smb/client/dir.c | 14 ++++++-\n include/linux/fcntl.h | 2 +\n include/uapi/asm-generic/errno.h | 2 +\n include/uapi/asm-generic/fcntl.h | 4 ++\n tools/arch/alpha/include/uapi/asm/errno.h | 2 +\n tools/arch/mips/include/uapi/asm/errno.h | 2 +\n tools/arch/parisc/include/uapi/asm/errno.h | 2 +\n tools/arch/sparc/include/uapi/asm/errno.h | 2 +\n tools/include/uapi/asm-generic/errno.h | 2 +\n .../testing/selftests/openat2/openat2_test.c | 37 ++++++++++++++++++-\n 24 files changed, 131 insertions(+), 35 deletions(-)" }