get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 104023,
    "url": "http://patches.dpdk.org/api/patches/104023/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20211108223444.3387640-1-vfialko@marvell.com/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20211108223444.3387640-1-vfialko@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20211108223444.3387640-1-vfialko@marvell.com",
    "date": "2021-11-08T22:34:44",
    "name": "[v2] eal/arm64: support ASan",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "178d11a163e776660ea427fdc36753dda43b4165",
    "submitter": {
        "id": 2390,
        "url": "http://patches.dpdk.org/api/people/2390/?format=api",
        "name": "Volodymyr Fialko",
        "email": "vfialko@marvell.com"
    },
    "delegate": {
        "id": 24651,
        "url": "http://patches.dpdk.org/api/users/24651/?format=api",
        "username": "dmarchand",
        "first_name": "David",
        "last_name": "Marchand",
        "email": "david.marchand@redhat.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20211108223444.3387640-1-vfialko@marvell.com/mbox/",
    "series": [
        {
            "id": 20405,
            "url": "http://patches.dpdk.org/api/series/20405/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=20405",
            "date": "2021-11-08T22:34:44",
            "name": "[v2] eal/arm64: support ASan",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/20405/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/104023/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/104023/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id A7166A0C4B;\n\tMon,  8 Nov 2021 23:35:44 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 6182C40151;\n\tMon,  8 Nov 2021 23:35:44 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174])\n by mails.dpdk.org (Postfix) with ESMTP id CACD040040\n for <dev@dpdk.org>; Mon,  8 Nov 2021 23:35:42 +0100 (CET)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id\n 1A8I3aF9011733;\n Mon, 8 Nov 2021 14:35:41 -0800",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3c726bk6h7-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Mon, 08 Nov 2021 14:35:41 -0800",
            "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18;\n Mon, 8 Nov 2021 14:35:40 -0800",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend\n Transport; Mon, 8 Nov 2021 14:35:40 -0800",
            "from localhost.localdomain (unknown [10.28.34.39])\n by maili.marvell.com (Postfix) with ESMTP id 2A3815B6933;\n Mon,  8 Nov 2021 14:35:37 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : mime-version : content-transfer-encoding :\n content-type; s=pfpt0220; bh=5S/YupCozxkFH0kO+csW13mkBr4SJ7ObpD//u5R6eJU=;\n b=j7NVebrqFRxANbj4CqKE3G4MGQHtrYJmDbAW9J9dtiojSOxFvGnKYV0jpIGMVTHFDQbw\n ZY5pdLxLLtcdcLM6IW/D4Sz6VTe5TqDWZWEFNVhS/gOs3FE7j/ntqEH/R0tNjI8OYTPe\n 3uVF6Dz9VylxSowlyXmOm2ezZIaS3HYMPDqQRbwIZvFyhlbVcqMdvJxFhAi6XhhZLrKi\n 1YnaXKDqomY5SLDdLUbKoNjYJAhzoHxVKAm0LiKsXoLU6UUVZ1Tp8RaYa14GZLGXG9dw\n GqdkKnsSnzlUWUjunBRx4jipZp5k9uDrtjtJEXPhFJtJktElrsBSHgT0T2js4g5KJ8vD sw==",
        "From": "Volodymyr Fialko <vfialko@marvell.com>",
        "To": "<dev@dpdk.org>, Bruce Richardson <bruce.richardson@intel.com>, \"Anatoly\n Burakov\" <anatoly.burakov@intel.com>",
        "CC": "<jerinj@marvell.com>, Volodymyr Fialko <vfialko@marvell.com>, \"David\n Marchand\" <david.marchand@redhat.com>",
        "Date": "Mon, 8 Nov 2021 23:34:44 +0100",
        "Message-ID": "<20211108223444.3387640-1-vfialko@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "l4AGvP0AHYjJ10YR16jEEwFgxAJfjfY_",
        "X-Proofpoint-GUID": "l4AGvP0AHYjJ10YR16jEEwFgxAJfjfY_",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475\n definitions=2021-11-08_06,2021-11-08_02,2020-04-07_01",
        "Subject": "[dpdk-dev] [PATCH v2] eal/arm64: support ASan",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "This patch defines ASAN_SHADOW_OFFSET for arm64 according to the ASan\ndocumentation. This offset should cover all arm64 VMAs supported by\nASan.\n\nSigned-off-by: Volodymyr Fialko <vfialko@marvell.com>\nReviewed-by: David Marchand <david.marchand@redhat.com>\nAcked-by: Jerin Jacob <jerinj@marvell.com>\n---\nChanges since v1:\n- changed the subject\n- rewrite checks in \"elif\" manner\n---\n config/meson.build             | 2 +-\n doc/guides/prog_guide/asan.rst | 2 +-\n lib/eal/common/malloc_elem.h   | 2 ++\n 3 files changed, 4 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/config/meson.build b/config/meson.build\nindex 17b5bec406..7eb710c08d 100644\n--- a/config/meson.build\n+++ b/config/meson.build\n@@ -428,7 +428,7 @@ if get_option('b_sanitize') == 'address' or get_option('b_sanitize') == 'address\n         dpdk_extra_ldflags += '-lasan'\n     endif\n \n-    if is_linux and arch_subdir == 'x86' and dpdk_conf.get('RTE_ARCH_64')\n+    if is_linux and arch_subdir in ['x86', 'arm'] and dpdk_conf.get('RTE_ARCH_64')\n         dpdk_conf.set10('RTE_MALLOC_ASAN', true)\n     endif\n endif\ndiff --git a/doc/guides/prog_guide/asan.rst b/doc/guides/prog_guide/asan.rst\nindex 6d1b871c93..28b2382fc7 100644\n--- a/doc/guides/prog_guide/asan.rst\n+++ b/doc/guides/prog_guide/asan.rst\n@@ -33,7 +33,7 @@ Example::\n     \"stty echo\" command when an error occurs.\n \n ASan is aware of DPDK memory allocations, thanks to added instrumentation.\n-This is only enabled on x86_64 at the moment.\n+This is enabled on x86_64 and arm64 at the moment.\n Other architectures may have to define ASAN_SHADOW_OFFSET.\n \n Example heap-buffer-overflow error\ndiff --git a/lib/eal/common/malloc_elem.h b/lib/eal/common/malloc_elem.h\nindex 262d69bb3e..26e937cea0 100644\n--- a/lib/eal/common/malloc_elem.h\n+++ b/lib/eal/common/malloc_elem.h\n@@ -106,6 +106,8 @@ malloc_elem_cookies_ok(const struct malloc_elem *elem)\n \n #ifdef RTE_ARCH_X86_64\n #define ASAN_SHADOW_OFFSET    0x00007fff8000\n+#elif defined(RTE_ARCH_ARM64)\n+#define ASAN_SHADOW_OFFSET    0x001000000000\n #endif\n \n #define ASAN_SHADOW_GRAIN_SIZE\t8\n",
    "prefixes": [
        "v2"
    ]
}