From patchwork Mon Feb 12 21:39:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suren Baghdasaryan X-Patchwork-Id: 13554061 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 47364C4829E for ; Mon, 12 Feb 2024 21:40:45 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E2DB66B00A9; Mon, 12 Feb 2024 16:40:25 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id DDDD86B00AA; Mon, 12 Feb 2024 16:40:25 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BE2B46B00AB; Mon, 12 Feb 2024 16:40:25 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id A92636B00A9 for ; Mon, 12 Feb 2024 16:40:25 -0500 (EST) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 8104F160231 for ; Mon, 12 Feb 2024 21:40:25 +0000 (UTC) X-FDA: 81784470810.28.D9424F2 Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) by imf26.hostedemail.com (Postfix) with ESMTP id B54EF14000A for ; Mon, 12 Feb 2024 21:40:23 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=DLcR7zfT; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf26.hostedemail.com: domain of 3RpDKZQYKCMU352pymrzzrwp.nzxwty58-xxv6lnv.z2r@flex--surenb.bounces.google.com designates 209.85.219.201 as permitted sender) smtp.mailfrom=3RpDKZQYKCMU352pymrzzrwp.nzxwty58-xxv6lnv.z2r@flex--surenb.bounces.google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1707774023; 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=QVjGOqS2/C9DQQqaQQFc7iw3YwNnxSDsGz2z4KoUl2k=; b=J5017fs7DcofTyaLiDFDoslajdNg/5uoW6IMLk2rQisCJ1d9s/nkrwPyz0z6knSYeMfouu YqTOZCIngm1H/lX/zFjAn7+Z52Znh0dFH8jV9nYel8QHiiN5fUklWcM/LVZujzaV/SIURH +jdYhpeoRsa7s5pAQkixnB9KghF9AZo= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=DLcR7zfT; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf26.hostedemail.com: domain of 3RpDKZQYKCMU352pymrzzrwp.nzxwty58-xxv6lnv.z2r@flex--surenb.bounces.google.com designates 209.85.219.201 as permitted sender) smtp.mailfrom=3RpDKZQYKCMU352pymrzzrwp.nzxwty58-xxv6lnv.z2r@flex--surenb.bounces.google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1707774023; a=rsa-sha256; cv=none; b=sG6iTZsZPsarYx9JS1sOn/IkFEm65Pst8y2TzpauxCzxqwkSrLDhiT1xeg/HJs8nMWp5FG kb1+cuh+D6XRc0TRaBMK49loZi0qX8TgMZ4mU/KKpyr5/Se+DOmRnp2eyf0cou2nZyzWdb T6L7y5xJjn7C13v4lAE3wl57jaL2I+k= Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-dcc73148612so66135276.1 for ; Mon, 12 Feb 2024 13:40:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1707774023; x=1708378823; 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=QVjGOqS2/C9DQQqaQQFc7iw3YwNnxSDsGz2z4KoUl2k=; b=DLcR7zfTGFRoEl5+SLZrz0+tdQJkj7727qj6IorlDtWOxlW0Vvl8hBCMketjMRO79v XCNoQWRkzHhOhmZnd8ny7QicRXDZD/7WuWtLtHSSQrtjiwnIvhOCd3LehwenRhOjyjGI eqcbzF2hyz+Js3tIFsEAdOngxe0WKPf0HDUfofdPzRHC2OJPQJ2yGcqF4jj8mtxsEsyO UjHWS959GrHmYfoxITsjmzO6ibgAcCidgMsS1xYkctCa/Lp3tWMp64oaKCXUXeM1OWTy W5/eile7h81Go7KEfNWiUpjI8qRzVXqesvKxX65shnO353eih+kilY7ACrS4kZLayv1q y2Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707774023; x=1708378823; 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=QVjGOqS2/C9DQQqaQQFc7iw3YwNnxSDsGz2z4KoUl2k=; b=P9UqOEFNxkx9rVsppazhea6DtOxc7b9FyfnkSg5N+qebtMZqzFPOb115F+8OhrzITq cn3Ff19T2EROXXaBQNYwkgQ2rrwhoJSmcrUNW+twGTGfYWajigw3e2QQSVLzFqd/bPVw MmjLFMmLdRLsxnfmMtxsyXzkzBT7OPcnyhZFAmyYClCnfSLSDpA5MbyveQB9WSG/m6Sh oVU9U6quRE+TP5Mzym1z3DEmSHWSg3/4PqP3Xl3kXJVHteILKGbxvUM9MnikBQNruytU sFbySKHDBAVwTNJWm3nUtDjH0yIVWp3gdWXV9wIqLpPZ7vqD3w/COzQJhS0rUyazx6PA Emvw== X-Forwarded-Encrypted: i=1; AJvYcCWUYH8vANeZtA4jBJcK5h1YyF5wW1aoXwHQ8NRXy8w6lLlxxKKpxrkDU6n7nEbqvD1AEcmbEH19dLnFeRtvIFbBmMA= X-Gm-Message-State: AOJu0Yy9KPvgwlhdXZKpX4tsEI7YEWSo5zPybP3ZOzws+aVD1FG/aIum DoZIvuO8EiMFgjR3Zbzy/iXrMWQbpcb8JVV49PM679bbaCSsV2z4P4wPmmvQhim70FWEST5Yn1O 1ng== X-Google-Smtp-Source: AGHT+IHcBrIgMIQ03gLdwIObn4fTPAITy7Rn+dgjwGrjWr5hIgaJ7mUN+6YCHWnvHC5rR1WgctLJs84VL90= X-Received: from surenb-desktop.mtv.corp.google.com ([2620:15c:211:201:b848:2b3f:be49:9cbc]) (user=surenb job=sendgmr) by 2002:a05:6902:709:b0:dbd:73bd:e55a with SMTP id k9-20020a056902070900b00dbd73bde55amr364194ybt.4.1707774022635; Mon, 12 Feb 2024 13:40:22 -0800 (PST) Date: Mon, 12 Feb 2024 13:39:09 -0800 In-Reply-To: <20240212213922.783301-1-surenb@google.com> Mime-Version: 1.0 References: <20240212213922.783301-1-surenb@google.com> X-Mailer: git-send-email 2.43.0.687.g38aa6559b0-goog Message-ID: <20240212213922.783301-24-surenb@google.com> Subject: [PATCH v3 23/35] mm/slub: Mark slab_free_freelist_hook() __always_inline From: Suren Baghdasaryan To: akpm@linux-foundation.org Cc: kent.overstreet@linux.dev, mhocko@suse.com, vbabka@suse.cz, hannes@cmpxchg.org, roman.gushchin@linux.dev, mgorman@suse.de, dave@stgolabs.net, willy@infradead.org, liam.howlett@oracle.com, corbet@lwn.net, void@manifault.com, peterz@infradead.org, juri.lelli@redhat.com, catalin.marinas@arm.com, will@kernel.org, arnd@arndb.de, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, peterx@redhat.com, david@redhat.com, axboe@kernel.dk, mcgrof@kernel.org, masahiroy@kernel.org, nathan@kernel.org, dennis@kernel.org, tj@kernel.org, muchun.song@linux.dev, rppt@kernel.org, paulmck@kernel.org, pasha.tatashin@soleen.com, yosryahmed@google.com, yuzhao@google.com, dhowells@redhat.com, hughd@google.com, andreyknvl@gmail.com, keescook@chromium.org, ndesaulniers@google.com, vvvvvv@google.com, gregkh@linuxfoundation.org, ebiggers@google.com, ytcoode@gmail.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, bristot@redhat.com, vschneid@redhat.com, cl@linux.com, penberg@kernel.org, iamjoonsoo.kim@lge.com, 42.hyeyoo@gmail.com, glider@google.com, elver@google.com, dvyukov@google.com, shakeelb@google.com, songmuchun@bytedance.com, jbaron@akamai.com, rientjes@google.com, minchan@google.com, kaleshsingh@google.com, surenb@google.com, kernel-team@android.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, iommu@lists.linux.dev, linux-arch@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-modules@vger.kernel.org, kasan-dev@googlegroups.com, cgroups@vger.kernel.org X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: B54EF14000A X-Stat-Signature: sim86ad6e6kew4a5a59o8mrs9tsdj1e7 X-Rspam-User: X-HE-Tag: 1707774023-572641 X-HE-Meta: U2FsdGVkX18ZnlfO8F4Ocs3EelIBcK7SDT0rMT3N/RC2IbCPE+KnJ3i19vRDytf3lcPZXjSrRPCOBBYMvW+1iM3K32RJo/Uh8ccx9Cy/4l21Jdddqc3Z5cgy18XDHxxF4c1QwinZdfP8JqA7HcYnr3ov+AfFYHYQq9PqITdpR2giEODcxWE++VEO3/1wHf1/+0hpQEt2/uxnkQR1h00oQ31LEi0YByBRQx4yshWul39jvKJwhb7Dg1WO6E/egHpqfJsHxgL/fJ3y447+LxG8kfIgJ1gKMAecalh8fIU14HdjrOJZUPXlkHjDu/ptMc1aVihcSvxtqo619AR5xVSWYmLckgVwn/N8ZL1YSSPLmK7vcnEzA69ziyQIu1GYRcoim4ObwCwAGrPcxAQF+cnlOfxur1c/PY8NJzC+NiXUtdFjgn8k9grOAqUaJCNNPdLAhyZ6S/tsR1YdgIS1BTtREv7LK2LYc/ZyE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RvpUWDhx9Mc0bCR7lCN7U4vLr4KL4kcsMXpi8QShEJOe5fagTMYCsUq9GWXjjzX96ZtX+MrRBfm+HnXsMX6sxY0VEX15Dxtb/F8glVo0uonBK3AYuJhnMHe0PTQW8XZEGe3pAme83IMpBgA0fL1A0s5pAg== 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: From: Kent Overstreet It seems we need to be more forceful with the compiler on this one. Signed-off-by: Kent Overstreet Signed-off-by: Suren Baghdasaryan Reviewed-by: Kees Cook --- mm/slub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/slub.c b/mm/slub.c index 9ea03d6e9c9d..4d480784942e 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -2124,7 +2124,7 @@ bool slab_free_hook(struct kmem_cache *s, void *x, bool init) return !kasan_slab_free(s, x, init); } -static inline bool slab_free_freelist_hook(struct kmem_cache *s, +static __always_inline bool slab_free_freelist_hook(struct kmem_cache *s, void **head, void **tail, int *cnt) {