get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.1/patches/2220763/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2220763,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2220763/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/ubuntu-kernel/patch/20260408003238.233653-2-acelan.kao@canonical.com/",
    "project": {
        "id": 15,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/15/?format=api",
        "name": "Ubuntu Kernel",
        "link_name": "ubuntu-kernel",
        "list_id": "kernel-team.lists.ubuntu.com",
        "list_email": "kernel-team@lists.ubuntu.com",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null
    },
    "msgid": "<20260408003238.233653-2-acelan.kao@canonical.com>",
    "date": "2026-04-08T00:32:38",
    "name": "[SRU,R,1/1] UBUNTU: SAUCE: dma-buf: set SB_I_NOEXEC and SB_I_NODEV on dmabuf filesystem",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "bf178eb1fbda7787d8ce8336cea63672bd85a19b",
    "submitter": {
        "id": 2976,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/2976/?format=api",
        "name": "AceLan Kao",
        "email": "acelan.kao@canonical.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/ubuntu-kernel/patch/20260408003238.233653-2-acelan.kao@canonical.com/mbox/",
    "series": [
        {
            "id": 499053,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/499053/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/ubuntu-kernel/list/?series=499053",
            "date": "2026-04-08T00:32:37",
            "name": "dma-buf filesystem flags fix",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/499053/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2220763/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2220763/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<kernel-team-bounces@lists.ubuntu.com>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=lYmf2aM4;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com\n (client-ip=185.125.189.65; helo=lists.ubuntu.com;\n envelope-from=kernel-team-bounces@lists.ubuntu.com;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fr3tz1Z2zz1xv0\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 08 Apr 2026 10:32:59 +1000 (AEST)",
            "from localhost ([127.0.0.1] helo=lists.ubuntu.com)\n\tby lists.ubuntu.com with esmtp (Exim 4.86_2)\n\t(envelope-from <kernel-team-bounces@lists.ubuntu.com>)\n\tid 1wAGqf-0006fv-GU; Wed, 08 Apr 2026 00:32:49 +0000",
            "from mail-qk1-f169.google.com ([209.85.222.169])\n by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.86_2) (envelope-from <acelan@gmail.com>) id 1wAGqe-0006fE-6o\n for kernel-team@lists.ubuntu.com; Wed, 08 Apr 2026 00:32:48 +0000",
            "by mail-qk1-f169.google.com with SMTP id\n af79cd13be357-8d4694105e5so310966085a.1\n for <kernel-team@lists.ubuntu.com>; Tue, 07 Apr 2026 17:32:47 -0700 (PDT)",
            "from localhost (211-75-139-220.hinet-ip.hinet.net. [211.75.139.220])\n by smtp.gmail.com with ESMTPSA id\n af79cd13be357-8d2a5488a28sm1428088785a.2.2026.04.07.17.32.45\n for <kernel-team@lists.ubuntu.com>\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 07 Apr 2026 17:32:45 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1775608366; x=1776213166; darn=lists.ubuntu.com;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:sender:from:to:cc:subject:date\n :message-id:reply-to;\n bh=dXhOrrKBfjqGxUlGZpLHz1Tcj81606GkfsiwzClN6tc=;\n b=lYmf2aM4bc/Lvf2Y2Da/VJHSKjanOxWGygOKjRnw+AqHKS5zJ0AMhAQWrNKV3JpM5w\n zf6rYRw12kbYExrKQJtPpbvU51vN5hU6k81DZNjZ2sQeRGIR3ASUcXV5YDsx10hZ/dNi\n XYxjzzltd5jcmWuWWRjvipEh11eCTEJixf0J+6xehSsJwiS2EDKyzMNwsgYka9aETmy8\n FUykYVsdpzpWIFKAdaofkw0xq9+bQoaJ2s4fTTyU8+gxgqkV8e/zdfImfpCYGzIJapAZ\n dQnWVP1VgqvgzuxakyHvdKvtodvub97eid4aM1u4ucXwRb7f0yD7avZEH7xG5p4eGXM9\n R0Ng==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775608366; x=1776213166;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:sender:x-gm-gg:x-gm-message-state\n :from:to:cc:subject:date:message-id:reply-to;\n bh=dXhOrrKBfjqGxUlGZpLHz1Tcj81606GkfsiwzClN6tc=;\n b=F9C8emh05mPaqwcou7ZkIwd8d1Lw3vatvpIyZgAa44oYtufv8aJDFluMb3wL/0BwdY\n +YcFj0cCpzNSgthhXi2yNWgNiIqukoBIZyt4v9yHKxxbBjqadBhqbZlChrhwEZOshtqg\n Z74g1UFyK5qhMdJ/0ou4G87r70Cz9pZ/zhrWyZ1ThBzejOLDmsHWOUHBE9De71W+jusr\n 9C4GcWM1OJ1Ske0h+0xfh3kNTVi3z10VkJFV6MvH2TdU4VAlgN+Qw5J0YFXkaiU1v246\n bR9wlDpwYk5rLTp4lgdojU6Rz8XYSnZWtp6lIat/Q1JtpmtjbdP4muMCLHKYit3Eqv0/\n i8TQ==",
        "X-Gm-Message-State": "AOJu0YzMz4B5EFzdNEru80cyyW4NH8axhfiYfb0Evqss7Vk40RSQjNFE\n bQUdgRWZN8yhgRanRjtu8DK/s+fBFHJapuExwa9GjG3hXUO9m6e4X6q4rJnWVbJH",
        "X-Gm-Gg": "AeBDietqEUZyO0HFPKxgpWEOT1aG/lgv03DuGkQ7hd0l8HWbfTVkNhzjbxpOEFhq1nW\n bLDB+xYasbr3r4cxAhDOu2VwdMIkzTG4mDe5Hc8WlrnXGvTrnvyGTy0kTTdn9bxiwl8zVKnRDXf\n pfwtbsBE24c+UhaKx8h7pgD7gC5GDcqZVKUAZYSp67b+0dPy7IurntRtyHstnKFfDfpCWq9Juk1\n +FPISlt7LmtE8Vc9XLH+wBQ5TpgQj9qIWSJeOdp7+1XRPC+SnNFXbLhrUyn+9yIdKIKUQElg5rU\n MEMNbVOATIKsGLrdVK/srFt7ZJydYiIiuXZsCZcZGEy2RkLn7oJvCMhpBPQBdraA/xHNQRMzhQ1\n ILsnc0oL5NvwEsZke3NJhnbtUUtFyLCLy4cWiKf2++AchwFszVJU8tA8CH5uQQMEhDN/fEAOOYg\n u2YzobZ5S0WtW+PE/L/ZZqdXWgqlmDGW4QZBly7Rsfd6Ehj1FWHBsQ",
        "X-Received": "by 2002:a05:620a:bc9:b0:8cf:dfc9:c0aa with SMTP id\n af79cd13be357-8d4185c928dmr2780988985a.11.1775608366417;\n Tue, 07 Apr 2026 17:32:46 -0700 (PDT)",
        "From": "AceLan Kao <acelan.kao@canonical.com>",
        "To": "kernel-team@lists.ubuntu.com",
        "Subject": "[SRU][R][PATCH 1/1] UBUNTU: SAUCE: dma-buf: set SB_I_NOEXEC and\n SB_I_NODEV on dmabuf filesystem",
        "Date": "Wed,  8 Apr 2026 08:32:38 +0800",
        "Message-ID": "<20260408003238.233653-2-acelan.kao@canonical.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260408003238.233653-1-acelan.kao@canonical.com>",
        "References": "<20260408003238.233653-1-acelan.kao@canonical.com>",
        "MIME-Version": "1.0",
        "Received-SPF": "pass client-ip=209.85.222.169; envelope-from=acelan@gmail.com;\n helo=mail-qk1-f169.google.com",
        "X-BeenThere": "kernel-team@lists.ubuntu.com",
        "X-Mailman-Version": "2.1.20",
        "Precedence": "list",
        "List-Id": "Kernel team discussions <kernel-team.lists.ubuntu.com>",
        "List-Unsubscribe": "<https://lists.ubuntu.com/mailman/options/kernel-team>,\n <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe>",
        "List-Archive": "<https://lists.ubuntu.com/archives/kernel-team>",
        "List-Post": "<mailto:kernel-team@lists.ubuntu.com>",
        "List-Help": "<mailto:kernel-team-request@lists.ubuntu.com?subject=help>",
        "List-Subscribe": "<https://lists.ubuntu.com/mailman/listinfo/kernel-team>,\n <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "Errors-To": "kernel-team-bounces@lists.ubuntu.com",
        "Sender": "\"kernel-team\" <kernel-team-bounces@lists.ubuntu.com>"
    },
    "content": "From: \"Chia-Lin Kao (AceLan)\" <acelan.kao@canonical.com>\n\nBugLink: https://bugs.launchpad.net/bugs/2139656\n\nThe VFS now warns if an inode flagged with S_ANON_INODE is located on a\nfilesystem that does not have SB_I_NOEXEC set. dmabuf inodes are\ncreated using alloc_anon_inode(), which sets S_ANON_INODE.\n\nThis triggers a warning in path_noexec() when a dmabuf is mmapped, for\nexample by GStreamer's v4l2src element.\n\n[   60.061328] WARNING: CPU: 2 PID: 2803 at fs/exec.c:125 path_noexec+0xa0/0xd0\n...\n[   60.061637]  do_mmap+0x2b5/0x680\n\nFix this by setting SB_I_NOEXEC and SB_I_NODEV on the dmabuf filesystem\ncontext, following the same pattern as commit ce7419b6cf23d (\"anon_inode:\nraise SB_I_NODEV and SB_I_NOEXEC\").\n\nSigned-off-by: Chia-Lin Kao (AceLan) <acelan.kao@canonical.com>\n(cherry picked from commit https://lore.kernel.org/lkml/20260114011917.241196-1-acelan.kao@canonical.com/)\nSigned-off-by: Chia-Lin Kao (AceLan) <acelan.kao@canonical.com>\n---\n drivers/dma-buf/dma-buf.c | 2 ++\n 1 file changed, 2 insertions(+)",
    "diff": "diff --git a/drivers/dma-buf/dma-buf.c b/drivers/dma-buf/dma-buf.c\nindex 11711874a325b..171fc980c80bf 100644\n--- a/drivers/dma-buf/dma-buf.c\n+++ b/drivers/dma-buf/dma-buf.c\n@@ -216,6 +216,8 @@ static int dma_buf_fs_init_context(struct fs_context *fc)\n \tif (!ctx)\n \t\treturn -ENOMEM;\n \tctx->dops = &dma_buf_dentry_ops;\n+\tfc->s_iflags |= SB_I_NOEXEC;\n+\tfc->s_iflags |= SB_I_NODEV;\n \treturn 0;\n }\n \n",
    "prefixes": [
        "SRU",
        "R",
        "1/1"
    ]
}