Message ID | 211f8f2b213aa91e9148ca63342990b491c4917a.1662411799.git.andreyknvl@google.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 F0317ECAAD5 for <linux-mm@archiver.kernel.org>; Mon, 5 Sep 2022 21:08:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 36DB48020F; Mon, 5 Sep 2022 17:08:06 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 31C9C80214; Mon, 5 Sep 2022 17:08:06 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1BF048020F; Mon, 5 Sep 2022 17:08:06 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 00D6F80214 for <linux-mm@kvack.org>; Mon, 5 Sep 2022 17:08:05 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id CB8C4C018C for <linux-mm@kvack.org>; Mon, 5 Sep 2022 21:08:05 +0000 (UTC) X-FDA: 79879269330.15.50304F8 Received: from out1.migadu.com (out1.migadu.com [91.121.223.63]) by imf31.hostedemail.com (Postfix) with ESMTP id 6A48120080 for <linux-mm@kvack.org>; Mon, 5 Sep 2022 21:08:05 +0000 (UTC) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1662412084; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3Ia3unTlaKp85Rb8pWqelG9+mYXrhoeUqospQVb1dz0=; b=k9GvhrlesqCcUrbDOdnmlBch7VRwv0bUACvXsj5KrUPW5sdF4MBjC5SZkRj442d+sx6w7m tnEWCOK+q5fIRjz97s32CE0s9rJ95/UktQODMqjySocOXO6gpAQX1RYImMu6y9OxKme/In w/UU/p6t/iyei5VBf3WFp6FMJjZl8CA= From: andrey.konovalov@linux.dev To: Andrew Morton <akpm@linux-foundation.org> Cc: Andrey Konovalov <andreyknvl@gmail.com>, Marco Elver <elver@google.com>, Alexander Potapenko <glider@google.com>, Dmitry Vyukov <dvyukov@google.com>, Andrey Ryabinin <ryabinin.a.a@gmail.com>, kasan-dev@googlegroups.com, Peter Collingbourne <pcc@google.com>, Evgenii Stepanov <eugenis@google.com>, Florian Mayer <fmayer@google.com>, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov <andreyknvl@google.com> Subject: [PATCH mm v3 13/34] kasan: drop CONFIG_KASAN_GENERIC check from kasan_init_cache_meta Date: Mon, 5 Sep 2022 23:05:28 +0200 Message-Id: <211f8f2b213aa91e9148ca63342990b491c4917a.1662411799.git.andreyknvl@google.com> In-Reply-To: <cover.1662411799.git.andreyknvl@google.com> References: <cover.1662411799.git.andreyknvl@google.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1662412085; 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-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=3Ia3unTlaKp85Rb8pWqelG9+mYXrhoeUqospQVb1dz0=; b=m2XyD8P2+FbYrcPovBasLKtgXtCujh0D1j1aV9k5o4Ra6TXgNTVAzZB/WEAFtqb+MKt7Zv tM4Jz9lTPrTeUzf5TY5viP9mNLwB7nQkMP9Sp+WGvaJeXzJdykluBmzdwjX0CpZcmGune1 5wF1dfJmV9Boe1braWsNYrAJloG9qkM= ARC-Authentication-Results: i=1; imf31.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=k9Gvhrle; spf=pass (imf31.hostedemail.com: domain of andrey.konovalov@linux.dev designates 91.121.223.63 as permitted sender) smtp.mailfrom=andrey.konovalov@linux.dev; dmarc=pass (policy=none) header.from=linux.dev ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1662412085; a=rsa-sha256; cv=none; b=6yLLdMbLjNSdp9gfK1SV/0b7oPKllzIICwCyYy3/wSoUg9+S1THV3dx9JKWQJ07WE6SR0G xIkCzNWGt1o9wZMUNjaNnXfyM/2u/fUbKoxc537ItOmpz0tIT+Lk/ZZyz8ck59UVIEtSVz AWS8NaXUG1TzAX3knTY4BzM2w64d4SY= X-Stat-Signature: nji65ufiuxcboc7ethgwjewjzu4gqeya X-Rspamd-Queue-Id: 6A48120080 Authentication-Results: imf31.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=k9Gvhrle; spf=pass (imf31.hostedemail.com: domain of andrey.konovalov@linux.dev designates 91.121.223.63 as permitted sender) smtp.mailfrom=andrey.konovalov@linux.dev; dmarc=pass (policy=none) header.from=linux.dev X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1662412085-297302 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: <linux-mm.kvack.org> |
Series |
kasan: switch tag-based modes to stack ring from per-object metadata
|
expand
|
diff --git a/mm/kasan/generic.c b/mm/kasan/generic.c index 73aea784040a..5125fad76f70 100644 --- a/mm/kasan/generic.c +++ b/mm/kasan/generic.c @@ -367,12 +367,6 @@ void kasan_init_cache_meta(struct kmem_cache *cache, unsigned int *size) /* Continue, since free meta might still fit. */ } - /* Only the generic mode uses free meta or flexible redzones. */ - if (!IS_ENABLED(CONFIG_KASAN_GENERIC)) { - cache->kasan_info.free_meta_offset = KASAN_NO_FREE_META; - return; - } - /* * Add free meta into redzone when it's not possible to store * it in the object. This is the case when: