Message ID | 902cc38713c94e729b3eca170cd53ce9dfb5fb47.1658189199.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 8FE56CCA479 for <linux-mm@archiver.kernel.org>; Tue, 19 Jul 2022 00:12:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5076B940008; Mon, 18 Jul 2022 20:12:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 46AE6940007; Mon, 18 Jul 2022 20:12:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1ADA9940008; Mon, 18 Jul 2022 20:12:34 -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 00AEA940007 for <linux-mm@kvack.org>; Mon, 18 Jul 2022 20:12:33 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id CFC1B35B73 for <linux-mm@kvack.org>; Tue, 19 Jul 2022 00:12:33 +0000 (UTC) X-FDA: 79701922986.25.2E171C0 Received: from out1.migadu.com (out1.migadu.com [91.121.223.63]) by imf24.hostedemail.com (Postfix) with ESMTP id 73060180008 for <linux-mm@kvack.org>; Tue, 19 Jul 2022 00:12:33 +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=1658189552; 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=tSwVFyyCCOKYSS6nxmIV1PC3/qH9HgKDBeITqQWAPk0=; b=iaswNaVcKlE6Ibx4Q/VaDqXuU//N8Bb1UH2IAMNJ/JWMbQ+g7p+b8yxsXFuzuVs1OLrb1/ WO2FkIPf2mND0jqNAq+nV6C4i52UasUQh94R1v6bxjJJhOXKBCsjr/oJoEXPYDHvqy/R/0 jWVu+YLfZGTImLr6K4Xcsg4M9iinHi0= From: andrey.konovalov@linux.dev To: Marco Elver <elver@google.com>, Alexander Potapenko <glider@google.com> Cc: Andrey Konovalov <andreyknvl@gmail.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>, Andrew Morton <akpm@linux-foundation.org>, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov <andreyknvl@google.com> Subject: [PATCH mm v2 16/33] kasan: only define metadata offsets for Generic mode Date: Tue, 19 Jul 2022 02:09:56 +0200 Message-Id: <902cc38713c94e729b3eca170cd53ce9dfb5fb47.1658189199.git.andreyknvl@google.com> In-Reply-To: <cover.1658189199.git.andreyknvl@google.com> References: <cover.1658189199.git.andreyknvl@google.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1658189553; a=rsa-sha256; cv=none; b=YoCvvGmuC1P5TlhCi1b9s9599wZK6laCw1XOkIsOEBT/lwuW/x8QPqsZDY/td0TEAcxUhB pmyKqQX4WvHLuBRj9xDX695ijEmvKFN81xaDMWML/QCusFhgSnrWgT0KjEWur9hHNtmlzx jP8HYmnRLWxK3TgCXzoq1Gi93BdRvXw= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=iaswNaVc; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf24.hostedemail.com: domain of andrey.konovalov@linux.dev designates 91.121.223.63 as permitted sender) smtp.mailfrom=andrey.konovalov@linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1658189553; 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=tSwVFyyCCOKYSS6nxmIV1PC3/qH9HgKDBeITqQWAPk0=; b=O41MJW0kA/balI/FHXjtTrDesD86Jfy3k1H2PA3YTWwWX+XcjLe01CTDgYqmbHcQAAQgus A9WcjDBWrPqEEc0kHrCsMFU9b1z1VehEqPcQ0uFt2DjlfM421R9QnyiW0+Lw9QvXQSCa4x eRnaMCaeGUEY88pPEB2XGdg7+aTAQ2Q= X-Rspam-User: Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=iaswNaVc; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf24.hostedemail.com: domain of andrey.konovalov@linux.dev designates 91.121.223.63 as permitted sender) smtp.mailfrom=andrey.konovalov@linux.dev X-Stat-Signature: i6oeyf119i8baxqjxucc43ekdnz3jwo3 X-Rspamd-Queue-Id: 73060180008 X-Rspamd-Server: rspam02 X-HE-Tag: 1658189553-226113 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/include/linux/kasan.h b/include/linux/kasan.h index 9743d4b3a918..a212c2e3f32d 100644 --- a/include/linux/kasan.h +++ b/include/linux/kasan.h @@ -98,8 +98,10 @@ static inline bool kasan_has_integrated_init(void) #ifdef CONFIG_KASAN struct kasan_cache { +#ifdef CONFIG_KASAN_GENERIC int alloc_meta_offset; int free_meta_offset; +#endif bool is_kmalloc; };