get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2220992,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2220992/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netfilter-devel/patch/20260408163512.30537-2-fw@strlen.de/",
    "project": {
        "id": 26,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/26/?format=api",
        "name": "Netfilter Development",
        "link_name": "netfilter-devel",
        "list_id": "netfilter-devel.vger.kernel.org",
        "list_email": "netfilter-devel@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null
    },
    "msgid": "<20260408163512.30537-2-fw@strlen.de>",
    "date": "2026-04-08T16:35:06",
    "name": "[net,1/7] ipvs: fix NULL deref in ip_vs_add_service error path",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "e8d77e2cf26d3f62922c3967088fc7a15fc6eda1",
    "submitter": {
        "id": 1025,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/1025/?format=api",
        "name": "Florian Westphal",
        "email": "fw@strlen.de"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/netfilter-devel/patch/20260408163512.30537-2-fw@strlen.de/mbox/",
    "series": [
        {
            "id": 499159,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/499159/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/netfilter-devel/list/?series=499159",
            "date": "2026-04-08T16:35:05",
            "name": "[net,1/7] ipvs: fix NULL deref in ip_vs_add_service error path",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/499159/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2220992/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2220992/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <netfilter-devel+bounces-11739-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "netfilter-devel@vger.kernel.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.234.253.10; helo=sea.lore.kernel.org;\n envelope-from=netfilter-devel+bounces-11739-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=91.216.245.30",
            "smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=strlen.de",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=Chamillionaire.breakpoint.cc"
        ],
        "Received": [
            "from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])\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 4frTHp3xNrz1xv0\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 09 Apr 2026 02:37:26 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id CE7D23014964\n\tfor <incoming@patchwork.ozlabs.org>; Wed,  8 Apr 2026 16:35:23 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 059813BAD8F;\n\tWed,  8 Apr 2026 16:35:23 +0000 (UTC)",
            "from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc\n [91.216.245.30])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 4D06D219EB;\n\tWed,  8 Apr 2026 16:35:21 +0000 (UTC)",
            "by Chamillionaire.breakpoint.cc (Postfix, from userid 1003)\n\tid A745D60613; Wed, 08 Apr 2026 18:35:19 +0200 (CEST)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775666122; cv=none;\n b=lMGGv6PzKAgyjkPwYtQ/tytA5SNXxd/E/ME30/ARRKr+jRdGz1f4MTs/DpdBQiyqc9gEvxS+P36uacl8MbpLvG1lNXSUCcBfrVQQM5FF/IJuQDMgweeBGg0mzvobK17Q73lOo58bcxxOLvrgHOBc2Nvvg9eXCb7ARTFQ++35yyQ=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775666122; c=relaxed/simple;\n\tbh=pLBj1j8WKNwtm/ubUQPxMPDzTS5muHXXeHszL+HkhMk=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=FLQG0ImCY8RDLoixn7QOnGjAE7OpwbVe7KTk7UC3Q4KU7QWBrJcK8TIYQtYEh1BsUTq4WG2c9zGyjGyH7onAFunalFfpg6bjYHHf2v6bfYqCh3B0s06GmNsrYCZpk9mSNGvNXP00vsQrilvUgi1tb9ohSctjWVhLfgYvn1KKUcg=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=strlen.de;\n spf=pass smtp.mailfrom=Chamillionaire.breakpoint.cc;\n arc=none smtp.client-ip=91.216.245.30",
        "From": "Florian Westphal <fw@strlen.de>",
        "To": "<netdev@vger.kernel.org>",
        "Cc": "Paolo Abeni <pabeni@redhat.com>,\n\t\"David S. Miller\" <davem@davemloft.net>,\n\tEric Dumazet <edumazet@google.com>,\n\tJakub Kicinski <kuba@kernel.org>,\n\t<netfilter-devel@vger.kernel.org>,\n\tpablo@netfilter.org",
        "Subject": "[PATCH net 1/7] ipvs: fix NULL deref in ip_vs_add_service error path",
        "Date": "Wed,  8 Apr 2026 18:35:06 +0200",
        "Message-ID": "<20260408163512.30537-2-fw@strlen.de>",
        "X-Mailer": "git-send-email 2.52.0",
        "In-Reply-To": "<20260408163512.30537-1-fw@strlen.de>",
        "References": "<20260408163512.30537-1-fw@strlen.de>",
        "Precedence": "bulk",
        "X-Mailing-List": "netfilter-devel@vger.kernel.org",
        "List-Id": "<netfilter-devel.vger.kernel.org>",
        "List-Subscribe": "<mailto:netfilter-devel+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:netfilter-devel+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit"
    },
    "content": "From: Weiming Shi <bestswngs@gmail.com>\n\nWhen ip_vs_bind_scheduler() succeeds in ip_vs_add_service(), the local\nvariable sched is set to NULL.  If ip_vs_start_estimator() subsequently\nfails, the out_err cleanup calls ip_vs_unbind_scheduler(svc, sched)\nwith sched == NULL.  ip_vs_unbind_scheduler() passes the cur_sched NULL\ncheck (because svc->scheduler was set by the successful bind) but then\ndereferences the NULL sched parameter at sched->done_service, causing a\nkernel panic at offset 0x30 from NULL.\n\n Oops: general protection fault, [..] [#1] PREEMPT SMP KASAN NOPTI\n KASAN: null-ptr-deref in range [0x0000000000000030-0x0000000000000037]\n RIP: 0010:ip_vs_unbind_scheduler (net/netfilter/ipvs/ip_vs_sched.c:69)\n Call Trace:\n  <TASK>\n  ip_vs_add_service.isra.0 (net/netfilter/ipvs/ip_vs_ctl.c:1500)\n  do_ip_vs_set_ctl (net/netfilter/ipvs/ip_vs_ctl.c:2809)\n  nf_setsockopt (net/netfilter/nf_sockopt.c:102)\n  [..]\n\nFix by simply not clearing the local sched variable after a successful\nbind.  ip_vs_unbind_scheduler() already detects whether a scheduler is\ninstalled via svc->scheduler, and keeping sched non-NULL ensures the\nerror path passes the correct pointer to both ip_vs_unbind_scheduler()\nand ip_vs_scheduler_put().\n\nWhile the bug is older, the problem popups in more recent kernels (6.2),\nwhen the new error path is taken after the ip_vs_start_estimator() call.\n\nFixes: 705dd3444081 (\"ipvs: use kthreads for stats estimation\")\nReported-by: Xiang Mei <xmei5@asu.edu>\nSigned-off-by: Weiming Shi <bestswngs@gmail.com>\nAcked-by: Simon Horman <horms@kernel.org>\nAcked-by: Julian Anastasov <ja@ssi.bg>\nSigned-off-by: Florian Westphal <fw@strlen.de>\n---\n net/netfilter/ipvs/ip_vs_ctl.c | 1 -\n 1 file changed, 1 deletion(-)",
    "diff": "diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c\nindex 35642de2a0fe..2aaf50f52c8e 100644\n--- a/net/netfilter/ipvs/ip_vs_ctl.c\n+++ b/net/netfilter/ipvs/ip_vs_ctl.c\n@@ -1452,7 +1452,6 @@ ip_vs_add_service(struct netns_ipvs *ipvs, struct ip_vs_service_user_kern *u,\n \t\tret = ip_vs_bind_scheduler(svc, sched);\n \t\tif (ret)\n \t\t\tgoto out_err;\n-\t\tsched = NULL;\n \t}\n \n \tret = ip_vs_start_estimator(ipvs, &svc->stats);\n",
    "prefixes": [
        "net",
        "1/7"
    ]
}