Message ID | d4bafa0534facafd1a23c465a94261e64f366493.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 8F35AECAAD3 for <linux-mm@archiver.kernel.org>; Mon, 5 Sep 2022 21:08:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B0F7280217; Mon, 5 Sep 2022 17:08:08 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A9E0F80214; Mon, 5 Sep 2022 17:08:08 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7DABA80217; Mon, 5 Sep 2022 17:08:08 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 675BB80214 for <linux-mm@kvack.org>; Mon, 5 Sep 2022 17:08:08 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 4AE4F120279 for <linux-mm@kvack.org>; Mon, 5 Sep 2022 21:08:08 +0000 (UTC) X-FDA: 79879269456.20.72D429B Received: from out1.migadu.com (out1.migadu.com [91.121.223.63]) by imf26.hostedemail.com (Postfix) with ESMTP id E702F14008C for <linux-mm@kvack.org>; Mon, 5 Sep 2022 21:08:07 +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=1662412086; 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=7s+y+NnFVR6SyFemhnOS8Di33idWzWChFcSyQrIGTFc=; b=MhZf34zW8g7msIkJ6Hi53oNdGsMbCO0SSXSal68C05dDkRfBW2HWXu0xrCDi0IWwvgbn0a obKerD9WtlA1KYihfdrWmJVlvZrhzrZ1EgTN19sSmW2cn2Bw6ZuBL9LfHyuOU7oXlj1aTG 9dns8cLxlS1xSOBmsHcBx5JsbWaBKzQ= 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 16/34] kasan: only define metadata offsets for Generic mode Date: Mon, 5 Sep 2022 23:05:31 +0200 Message-Id: <d4bafa0534facafd1a23c465a94261e64f366493.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=1662412088; 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=7s+y+NnFVR6SyFemhnOS8Di33idWzWChFcSyQrIGTFc=; b=z4cwIc8+MJfU9/TzPb5QsUh8TI5XioczSYdJGWYCCQsoCN5Kdzzxc/vro2+XFuksDYNtoO ZVkCmFcdsyrx4DvFSRx5y4KCpUHePWZP/zkYO2sr98jQBorF3+KG5KhAsG60pDesb//3pY PaFoA50Dw3PgKNRwuJ2jGFCCMY3NPN4= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=MhZf34zW; spf=pass (imf26.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=1662412088; a=rsa-sha256; cv=none; b=fGvhhc2Ivx5cFncv6AZnhbsuB648eHk8Up4BaEzpEGWpqVW6NyUIuRh8VlvvKBM9QGgSBF MEDQdBLyiqKGo9erJ50lEprcOctD1XJ0bjj7LnvaDgDxhIGHCAaORNTOrefgVzIseyaTcz MvMVlKbzcB5+ibHWhuf5X4wEaf6QPJM= X-Rspam-User: X-Stat-Signature: wdt7686mbenrcp83tyupoj4dnw7x4e6c X-Rspamd-Queue-Id: E702F14008C Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=MhZf34zW; spf=pass (imf26.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-Rspamd-Server: rspam04 X-HE-Tag: 1662412087-550277 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; };