From patchwork Mon Aug 19 15:15:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suren Baghdasaryan X-Patchwork-Id: 13768491 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 06BC1C52D7C for ; Mon, 19 Aug 2024 15:15:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CEF0A6B0093; Mon, 19 Aug 2024 11:15:26 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C4EB56B0096; Mon, 19 Aug 2024 11:15:26 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9E7876B0099; Mon, 19 Aug 2024 11:15:26 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 6A7306B0093 for ; Mon, 19 Aug 2024 11:15:26 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 24BD94136C for ; Mon, 19 Aug 2024 15:15:26 +0000 (UTC) X-FDA: 82469343852.21.01E9AC3 Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) by imf05.hostedemail.com (Postfix) with ESMTP id 1B22B100009 for ; Mon, 19 Aug 2024 15:15:23 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=ObRppGls; spf=pass (imf05.hostedemail.com: domain of 3imHDZgYKCJcJLI5E27FF7C5.3FDC9ELO-DDBM13B.FI7@flex--surenb.bounces.google.com designates 209.85.128.201 as permitted sender) smtp.mailfrom=3imHDZgYKCJcJLI5E27FF7C5.3FDC9ELO-DDBM13B.FI7@flex--surenb.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724080485; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=gI06ovdfCz8cO9NK2nQDa04h5rjz0kRy+tQsOrEFgfI=; b=2A2Jx7iocSQq+sCleJOGt5lrW4GYD7XlNwThl7X79WArjvaS5IwtvNG0mnI6mJ8a+vvrHv DyfazQ5VI0EkBHFNz2HxwV3fHEFf0NCOMqKE75tU8zZmm5Xg+2iMPSSRKTsRyCb9Wa8rX6 jiOpsSGEduNRxXUwFoSiVYfp9BfaYCg= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=ObRppGls; spf=pass (imf05.hostedemail.com: domain of 3imHDZgYKCJcJLI5E27FF7C5.3FDC9ELO-DDBM13B.FI7@flex--surenb.bounces.google.com designates 209.85.128.201 as permitted sender) smtp.mailfrom=3imHDZgYKCJcJLI5E27FF7C5.3FDC9ELO-DDBM13B.FI7@flex--surenb.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724080485; a=rsa-sha256; cv=none; b=DyCXt70GJ99H8Tz5MfF0kBiE7wra7nxCRCV2G9nlV3Ei/cY6jfP29gpEmM4DoEjvQwEx0y 6EsFjckgnJoSvk/Ex9nZ9NE/RmlZZQ/zPZWq/V/tR+yoQWlJyesgSsFUcZYw2vPLmHVzI+ a2mgXxw/o1QbMdI+WyN8mp83YFvbf9o= Received: by mail-yw1-f201.google.com with SMTP id 00721157ae682-6b73fb4ff56so26652557b3.0 for ; Mon, 19 Aug 2024 08:15:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1724080523; x=1724685323; darn=kvack.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=gI06ovdfCz8cO9NK2nQDa04h5rjz0kRy+tQsOrEFgfI=; b=ObRppGlshRcy8VP9cRAvUN8/7U7w4qJjlOuVPgCF9EOVs7Bc/qemV9fnsVQDDMZHk0 7kokLTy/+Cvqf4+5qrf9dv+jIaPJFBkqeDoDKfmmmr4JjNym3pImhEqBubA+cxcfu+ZF 1iOIkutHoFFNE/CFhblj6QlAZQn69ju9722mW20/OurmbB/FAc115WPG/Wn+I/Z5mClR jfTesKwvtRYLrWptDosJPkw5vFHL5zOGhkYxTGfzp4BCTw9H9I97tz935AwteK5A2OfW rhHXf1DUzJgtZEenNh6lFzXycxjNnzTLtCuQmX06MJYIgfjXZKbtmST5Aqd+ZjV+RUGK zn6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724080523; x=1724685323; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gI06ovdfCz8cO9NK2nQDa04h5rjz0kRy+tQsOrEFgfI=; b=VTLzI2LtZ+ln2NfA+Z6THA9dgg9JJqGQGprMpyaY0W9eimJIkG5cQH2snTOFdn8o0+ dM6isHscC7Et+2bNNJJ9EX5arouzZNfZC5iyVSUtJGG6g5a8fYbLr0mmidk1iGLXRwln db0Xlg3uEtHa1LnZQxBVvaibqp8YU6sR2yrEmpf5WpqCjb48gP04ymal98eYAS6UvdQZ tKQf6+NtqvBSYczzrxHvu7UTpyXnrvggHwCjJkfG/8Df++ZUzgpcW2VUQXKK/p440qEs Wep2UrwKZ37+c80FlrxxGZNtn1bozKFMp7UE+Zp3QEP2bYx+mJf+xRzY3HgDji37ygjc aveA== X-Forwarded-Encrypted: i=1; AJvYcCUWFJbs/c6gccZukAXF+tEyA7zy1+UEPqMhs10yzKJ4YVq1ORrT8VSNg3hVWkSEAMxowKeOuLOdeo8NaLUvQjhTrSw= X-Gm-Message-State: AOJu0YxBrQ9928oU7aEafMaYS83gN7LE4gV43OkcRuF1UJiPRs9L/DFJ UripeJyOa+mqWtr/UQd2vtfT8EVk3XwJhJnAJFThpmkAJeX+rxuHJU6/DuWS8ZvEtOCe9DyBMS9 oIA== X-Google-Smtp-Source: AGHT+IG/BKrJXqYP6cRYhE+Lu+8cVFetj3uIJoL3u5FtbKpk/WoSJ/pAYSGnYrr9RqZE8k4lDy0dOBXbaE4= X-Received: from surenb-desktop.mtv.corp.google.com ([2620:15c:211:201:5aea:cf26:50f4:76db]) (user=surenb job=sendgmr) by 2002:a05:690c:c04:b0:6b2:6cd4:7f9a with SMTP id 00721157ae682-6b26cd48046mr5942197b3.8.1724080522969; Mon, 19 Aug 2024 08:15:22 -0700 (PDT) Date: Mon, 19 Aug 2024 08:15:10 -0700 In-Reply-To: <20240819151512.2363698-1-surenb@google.com> Mime-Version: 1.0 References: <20240819151512.2363698-1-surenb@google.com> X-Mailer: git-send-email 2.46.0.184.g6999bdac58-goog Message-ID: <20240819151512.2363698-5-surenb@google.com> Subject: [PATCH 4/5] alloc_tag: make page allocation tag reference size configurable From: Suren Baghdasaryan To: akpm@linux-foundation.org Cc: kent.overstreet@linux.dev, corbet@lwn.net, arnd@arndb.de, mcgrof@kernel.org, rppt@kernel.org, paulmck@kernel.org, thuth@redhat.com, tglx@linutronix.de, bp@alien8.de, xiongwei.song@windriver.com, ardb@kernel.org, david@redhat.com, vbabka@suse.cz, mhocko@suse.com, hannes@cmpxchg.org, roman.gushchin@linux.dev, dave@stgolabs.net, willy@infradead.org, liam.howlett@oracle.com, pasha.tatashin@soleen.com, souravpanda@google.com, keescook@chromium.org, dennis@kernel.org, jhubbard@nvidia.com, yuzhao@google.com, vvvvvv@google.com, rostedt@goodmis.org, iamjoonsoo.kim@lge.com, rientjes@google.com, minchan@google.com, kaleshsingh@google.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-modules@vger.kernel.org, kernel-team@android.com, surenb@google.com X-Rspamd-Server: rspam03 X-Rspam-User: X-Rspamd-Queue-Id: 1B22B100009 X-Stat-Signature: zjdjhjn6wi4ffeqsjrosf8cm4rt3adzk X-HE-Tag: 1724080523-405218 X-HE-Meta: U2FsdGVkX1+gxaXwXoOWcXiNXD+4OwdRb8+bQ3WASmWoqe/hxXp6kPA38LLL6jr15/dYgzD/5mbwIhwiwKaYfuD29J0EZ/W5gIJg2NQsREdeY1IHiQmtKbktibJOx/cvnE3YWQYLRLUhc6KZILHhi94sF+9p8QIyv/r1ArZdmJ6Dme3c3UbLRg5TG1WpgaRZeznIeocDniXmwCGJ4WLvONy8fAxICX8kkI2pg6HwBgnv9fr/uyENfu9cyJf/ob2248yk5d5tzsihPcLWN1UOjiBpH0/15lvaZHs0skM7JgO9oAs6pdQGyRkq3xaY8WvE/PMOU171AVhTm7TOkzCTYCQPsFuFzZz6dyaZq0giNm2a8vYvwJLBtXy2HWkTgabH8lYY1VYVT8njyBnyugqnBlvim9gHAHMWBmjq63SNRSSkAHMnizQZRYPawYx1M9RxBcPjBGsoo2EGmPUC3T/plCedGVDZ6YCWJT8LskZvyfIkT2/Tekx84LF1Rd1p96xtCro1PtXv4kdEYP4tNPIanKuimoKZMnCMB+dS90XXVNbFpR30E/CJwzhoMpbq9wNEZWyF0N2HE0KwyYwyCYXABX+D0JS5IGhFd/9OXLOjWS/AOAE78kS2nrqPY4GZbLI+4CF/Tw1AaMJW+A/9oKwnYQ4Ee0ZIGLauTZ9pExt43OV7AF8KaOnr7LJfwDtxcfuULZz71vRS4/Kl1noSvzh0hXgsyMcPcfENievuanQB2JKt6MhT66kBFR2V3pXa5Hv7baankXx7qEBpd+cdHNSZIa+BGPIFMI6iae1eKIubK/BXamLccJd/YBPl2G5OkZN5nEkpmLpdJY7dEdI82PZX+AtJqWUPz1fj2pY1Y+oi2wcgiQsTNnZ1QGpsAOrWai8nTBkQOlhgu+bKeDt1KhiqhfYp3z7lkHlVvU/aIDT3BT5PUcrv5hxjKLdcpV26dKAIPLV0g+yhJicR46EjK2H HAd0DQZv wKZhqWujzO8M2CAOkww9PnhDUjVA3u/GgpmlSRztfhapMlUq2sMc7DwuGF0zfiSTXrL09e5P2ppf/+Q6KW0TemVIVmZWP4Sdh51CKhQRr68gEuKlFeUZp+N6UW0g1lI3Qc0aW3QtUFol5gZjlZ6kkgiW74BbkfuVKsfqrOHEKt1aFWLkc4ldFAn8hT9x+G8Ilct4ucd+cv4wB8QNjj9SXXiOLeG3fCerWAANZ0sadL1zFbjZD6WK4yoEarJpen2p2FsZO7xD4EqHl3iXzZpQ+acapf13lts65AhSf8UgApjwn2OBltPTfFzTX+yrPIGi5FpSw2nz9+EvV/nZgeEgnLWThKgr8JqaidbdPjv36wuCHGIbI6fvPz4YnE00m3HrJgzLsGIgCaIOiq3HQZqSFhcDuP7/x1gPI2n9wCJLvsruAsEiXpAwvd+/jh7QPamHjQKQ2yb9Ek5zEASHf51r2b1MdZiC75/Md88MJbBacv6dzx3tfCSChw40ICM5n7x5wogtzQuof/CPzV2k6uqDOT4UghVjy37pG3OC4buxQwpPFjbY9WCHC9jzipXbDQSoHnith X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Introduce CONFIG_PGALLOC_TAG_REF_BITS to control the size of the page allocation tag references. When the size is configured to be less than a direct pointer, the tags are searched using an index stored as the tag reference. Signed-off-by: Suren Baghdasaryan --- include/linux/alloc_tag.h | 10 +++++- include/linux/codetag.h | 3 ++ include/linux/pgalloc_tag.h | 69 +++++++++++++++++++++++++++++++++++++ lib/Kconfig.debug | 11 ++++++ lib/alloc_tag.c | 50 ++++++++++++++++++++++++++- lib/codetag.c | 4 +-- mm/mm_init.c | 1 + 7 files changed, 144 insertions(+), 4 deletions(-) diff --git a/include/linux/alloc_tag.h b/include/linux/alloc_tag.h index 21e3098220e3..b5cf24517333 100644 --- a/include/linux/alloc_tag.h +++ b/include/linux/alloc_tag.h @@ -30,8 +30,16 @@ struct alloc_tag { struct alloc_tag_counters __percpu *counters; } __aligned(8); +struct alloc_tag_kernel_section { + struct alloc_tag *first_tag; + unsigned long count; +}; + struct alloc_tag_module_section { - unsigned long start_addr; + union { + unsigned long start_addr; + struct alloc_tag *first_tag; + }; unsigned long end_addr; /* used size */ unsigned long size; diff --git a/include/linux/codetag.h b/include/linux/codetag.h index c4a3dd60205e..dafc59838d87 100644 --- a/include/linux/codetag.h +++ b/include/linux/codetag.h @@ -13,6 +13,9 @@ struct codetag_module; struct seq_buf; struct module; +#define CODETAG_SECTION_START_PREFIX "__start_" +#define CODETAG_SECTION_STOP_PREFIX "__stop_" + /* * An instance of this structure is created in a special ELF section at every * code location being tagged. At runtime, the special section is treated as diff --git a/include/linux/pgalloc_tag.h b/include/linux/pgalloc_tag.h index c76b629d0206..80b8801cb90b 100644 --- a/include/linux/pgalloc_tag.h +++ b/include/linux/pgalloc_tag.h @@ -9,7 +9,18 @@ #ifdef CONFIG_MEM_ALLOC_PROFILING +#if !defined(CONFIG_PGALLOC_TAG_REF_BITS) || CONFIG_PGALLOC_TAG_REF_BITS > 32 +#define PGALLOC_TAG_DIRECT_REF typedef union codetag_ref pgalloc_tag_ref; +#else /* !defined(CONFIG_PGALLOC_TAG_REF_BITS) || CONFIG_PGALLOC_TAG_REF_BITS > 32 */ +#if CONFIG_PGALLOC_TAG_REF_BITS > 16 +typedef u32 pgalloc_tag_ref; +#else +typedef u16 pgalloc_tag_ref; +#endif +#endif /* !defined(CONFIG_PGALLOC_TAG_REF_BITS) || CONFIG_PGALLOC_TAG_REF_BITS > 32 */ + +#ifdef PGALLOC_TAG_DIRECT_REF static inline void read_pgref(pgalloc_tag_ref *pgref, union codetag_ref *ref) { @@ -20,6 +31,63 @@ static inline void write_pgref(pgalloc_tag_ref *pgref, union codetag_ref *ref) { pgref->ct = ref->ct; } + +static inline void alloc_tag_sec_init(void) {} + +#else /* PGALLOC_TAG_DIRECT_REF */ + +extern struct alloc_tag_kernel_section kernel_tags; +extern struct alloc_tag_module_section module_tags; + +#define CODETAG_ID_NULL 0 +#define CODETAG_ID_EMPTY 1 +#define CODETAG_ID_FIRST 2 + +static inline void read_pgref(pgalloc_tag_ref *pgref, union codetag_ref *ref) +{ + pgalloc_tag_ref idx = *pgref; + + switch (idx) { + case (CODETAG_ID_NULL): + ref->ct = NULL; + break; + case (CODETAG_ID_EMPTY): + set_codetag_empty(ref); + break; + default: + idx -= CODETAG_ID_FIRST; + ref->ct = idx < kernel_tags.count ? + &kernel_tags.first_tag[idx].ct : + &module_tags.first_tag[idx - kernel_tags.count].ct; + } +} + +static inline void write_pgref(pgalloc_tag_ref *pgref, union codetag_ref *ref) +{ + struct alloc_tag *tag; + + if (!ref->ct) { + *pgref = CODETAG_ID_NULL; + return; + } + + if (is_codetag_empty(ref)) { + *pgref = CODETAG_ID_EMPTY; + return; + } + + tag = ct_to_alloc_tag(ref->ct); + if (tag >= kernel_tags.first_tag && tag < kernel_tags.first_tag + kernel_tags.count) { + *pgref = CODETAG_ID_FIRST + (tag - kernel_tags.first_tag); + return; + } + + *pgref = CODETAG_ID_FIRST + kernel_tags.count + (tag - module_tags.first_tag); +} + +void __init alloc_tag_sec_init(void); + +#endif /* PGALLOC_TAG_DIRECT_REF */ #include extern struct page_ext_operations page_alloc_tagging_ops; @@ -197,6 +265,7 @@ static inline void pgalloc_tag_sub(struct page *page, unsigned int nr) {} static inline void pgalloc_tag_split(struct page *page, unsigned int nr) {} static inline struct alloc_tag *pgalloc_tag_get(struct page *page) { return NULL; } static inline void pgalloc_tag_sub_pages(struct alloc_tag *tag, unsigned int nr) {} +static inline void alloc_tag_sec_init(void) {} #endif /* CONFIG_MEM_ALLOC_PROFILING */ diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index a30c03a66172..253f9c2028da 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -1000,6 +1000,17 @@ config MEM_ALLOC_PROFILING_DEBUG Adds warnings with helpful error messages for memory allocation profiling. +config PGALLOC_TAG_REF_BITS + int "Number of bits for page allocation tag reference (10-64)" + range 10 64 + default "64" + depends on MEM_ALLOC_PROFILING + help + Number of bits used to encode a page allocation tag reference. + + Smaller number results in less memory overhead but limits the number of + allocations which can be tagged (including allocations from modules). + source "lib/Kconfig.kasan" source "lib/Kconfig.kfence" source "lib/Kconfig.kmsan" diff --git a/lib/alloc_tag.c b/lib/alloc_tag.c index a1d80d2ef512..d0da206d539e 100644 --- a/lib/alloc_tag.c +++ b/lib/alloc_tag.c @@ -3,6 +3,7 @@ #include #include #include +#include #include #include #include @@ -11,13 +12,14 @@ #include static struct codetag_type *alloc_tag_cttype; -static struct alloc_tag_module_section module_tags; static struct maple_tree mod_area_mt = MTREE_INIT(mod_area_mt, MT_FLAGS_ALLOC_RANGE); /* A dummy object used to indicate an unloaded module */ static struct module unloaded_mod; /* A dummy object used to indicate a module prepended area */ static struct module prepend_mod; +struct alloc_tag_module_section module_tags; + DEFINE_PER_CPU(struct alloc_tag_counters, _shared_alloc_tag); EXPORT_SYMBOL(_shared_alloc_tag); @@ -157,6 +159,33 @@ static void __init procfs_init(void) proc_create_seq("allocinfo", 0400, NULL, &allocinfo_seq_op); } +#ifndef PGALLOC_TAG_DIRECT_REF + +#define SECTION_START(NAME) (CODETAG_SECTION_START_PREFIX NAME) +#define SECTION_STOP(NAME) (CODETAG_SECTION_STOP_PREFIX NAME) + +struct alloc_tag_kernel_section kernel_tags = { NULL, 0 }; + +void __init alloc_tag_sec_init(void) +{ + struct alloc_tag *last_codetag; + + kernel_tags.first_tag = (struct alloc_tag *)kallsyms_lookup_name( + SECTION_START(ALLOC_TAG_SECTION_NAME)); + last_codetag = (struct alloc_tag *)kallsyms_lookup_name( + SECTION_STOP(ALLOC_TAG_SECTION_NAME)); + kernel_tags.count = last_codetag - kernel_tags.first_tag; +} + +static inline unsigned long alloc_tag_align(unsigned long val) +{ + if (val % sizeof(struct alloc_tag) == 0) + return val; + return ((val / sizeof(struct alloc_tag)) + 1) * sizeof(struct alloc_tag); +} + +#endif /* PGALLOC_TAG_DIRECT_REF */ + static bool needs_section_mem(struct module *mod, unsigned long size) { return size >= sizeof(struct alloc_tag); @@ -214,6 +243,21 @@ static void *reserve_module_tags(struct module *mod, unsigned long size, if (!align) align = 1; +#ifndef PGALLOC_TAG_DIRECT_REF + /* + * If alloc_tag size is not a multiple of required alignment tag + * indexing does not work. + */ + if (!IS_ALIGNED(sizeof(struct alloc_tag), align)) { + pr_err("%s: alignment %lu is incompatible with allocation tag indexing (CONFIG_PGALLOC_TAG_REF_BITS)", + mod->name, align); + return ERR_PTR(-EINVAL); + } + + /* Ensure prepend consumes multiple of alloc_tag-sized blocks */ + if (prepend) + prepend = alloc_tag_align(prepend); +#endif /* PGALLOC_TAG_DIRECT_REF */ rcu_read_lock(); repeat: /* Try finding exact size and hope the start is aligned */ @@ -462,6 +506,10 @@ static int __init alloc_tag_init(void) return -ENOMEM; module_tags.end_addr = module_tags.start_addr + module_tags_mem_sz; +#ifndef PGALLOC_TAG_DIRECT_REF + /* Ensure the base is alloc_tag aligned */ + module_tags.start_addr = alloc_tag_align(module_tags.start_addr); +#endif mt_set_in_rcu(&mod_area_mt); alloc_tag_cttype = codetag_register_type(&desc); if (IS_ERR(alloc_tag_cttype)) { diff --git a/lib/codetag.c b/lib/codetag.c index d602a81bdc03..53585518a103 100644 --- a/lib/codetag.c +++ b/lib/codetag.c @@ -151,8 +151,8 @@ static struct codetag_range get_section_range(struct module *mod, const char *section) { return (struct codetag_range) { - get_symbol(mod, "__start_", section), - get_symbol(mod, "__stop_", section), + get_symbol(mod, CODETAG_SECTION_START_PREFIX, section), + get_symbol(mod, CODETAG_SECTION_STOP_PREFIX, section), }; } diff --git a/mm/mm_init.c b/mm/mm_init.c index 4ba5607aaf19..231a95782455 100644 --- a/mm/mm_init.c +++ b/mm/mm_init.c @@ -2650,6 +2650,7 @@ void __init mm_core_init(void) report_meminit(); kmsan_init_shadow(); stack_depot_early_init(); + alloc_tag_sec_init(); mem_init(); kmem_cache_init(); /*