From patchwork Mon Aug 19 21:35:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Maurer X-Patchwork-Id: 13769023 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 81CAEC3DA4A for ; Mon, 19 Aug 2024 21:35:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 11EF06B0089; Mon, 19 Aug 2024 17:35:55 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0F64F6B008A; Mon, 19 Aug 2024 17:35:55 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EFFD36B008C; Mon, 19 Aug 2024 17:35:54 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id CEE3F6B0089 for ; Mon, 19 Aug 2024 17:35:54 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 8A9A51C51E4 for ; Mon, 19 Aug 2024 21:35:54 +0000 (UTC) X-FDA: 82470302628.05.BAF0060 Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) by imf28.hostedemail.com (Postfix) with ESMTP id B862FC0017 for ; Mon, 19 Aug 2024 21:35:52 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=rtC3cSHA; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf28.hostedemail.com: domain of 3t7rDZgcKCHgiiWqnanckkcha.Ykihejqt-iigrWYg.knc@flex--mmaurer.bounces.google.com designates 209.85.128.201 as permitted sender) smtp.mailfrom=3t7rDZgcKCHgiiWqnanckkcha.Ykihejqt-iigrWYg.knc@flex--mmaurer.bounces.google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724103265; 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=nhd4bVGt7t2cMFreV83ln0lve5lvedn9wm7Lt/YZotw=; b=BJgH72pHfYqKXVwp32F0Ck9I/cU12bhmzKqHkakXolTdDHmIrLYEBtq0t7xx7Z/dR2PnPp xTfhy/K71WG2xXZv4UHjTb0UEYEwh7xfnRuroM1a3wsytXHX4VuMacKE52MDi6w+6DLT0j 7HNkLQHmRcjWx/aruZp7jLMfb3OsYpQ= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724103265; a=rsa-sha256; cv=none; b=anISe8x+qVR7pMyU1r7I09MBeLb017KDsVjr6gjpjIpgtSGvCMzBofs7SbjvKLp4HKnZlz itPxbQwyQN3oQF+Sh4Ya/ri4g1GuJDnYzQDzCvT/6G5Q4jf/gK4aj/i6IiwBTz1+uVPKmz dd47H7/u7sxFR+pUsiQZQXIL3uuqXIM= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=rtC3cSHA; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf28.hostedemail.com: domain of 3t7rDZgcKCHgiiWqnanckkcha.Ykihejqt-iigrWYg.knc@flex--mmaurer.bounces.google.com designates 209.85.128.201 as permitted sender) smtp.mailfrom=3t7rDZgcKCHgiiWqnanckkcha.Ykihejqt-iigrWYg.knc@flex--mmaurer.bounces.google.com Received: by mail-yw1-f201.google.com with SMTP id 00721157ae682-6ad9ffa0d77so87608567b3.2 for ; Mon, 19 Aug 2024 14:35:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1724103352; x=1724708152; 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=nhd4bVGt7t2cMFreV83ln0lve5lvedn9wm7Lt/YZotw=; b=rtC3cSHA66m9SemJnQ+CtLiHSNzqEeeoKGyKavrC4d/3LDxsXuFrL7cRjAUXE+KihH iT6dLKod4YzL1yluGu68LutoR0gQlmdVb6sRDHgLfrHxW2Ef9i1BROVetDrg9soW5eM1 dmsQ/A4nGuqZbwuHuC9RvxQ5hUiGoDHe0SRTz0f+cf7wXdR/9snuLsy2VbFDwPMdLmRn bkHcOjM71UpdNg7EjJkno4YVuYeOU9sJJNniGKfzNANYE6y/iz43Zy8VubSEQOlPdrm6 D92pfw/4fg1W9zGVNpHdYLaO3qHmPeRqzvZ56MSwBTqi7aYV430CWqxvY8hyRBsPo7J4 MY+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724103352; x=1724708152; 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=nhd4bVGt7t2cMFreV83ln0lve5lvedn9wm7Lt/YZotw=; b=RDJXq39B63SnI4PpR3J5gkae4KWIO0JoHobqJk7ZX265iEndZgTJf109MinSATOYRh GQuyJfxrUrD5w46jgMZHwwvmILG+a0OO4a3qdEDwWkxvsSq+oyi+L10L8coCN+zh3aYc cIu10NhIIu64HoeIU0nyxnkqiu9ub3YDqHdSKfofSrg4lR3U5tJc3NT2f/kfvfMOzrQ5 SyxyjdrozONaAbtfLg0q2s4MIvPSRaw/wRjXV70RN2jrHMSLHEqfAvsmE7/1oyMbK3Sq 2JqHZKBiZWwR1Y6/dUQF6/SrXMkgWsasqbQN/qBGqkhOFWA7rpw58pDmjuCqtDi1frUU XWJg== X-Forwarded-Encrypted: i=1; AJvYcCXMMwvH+q+FZo01Fy0S1V9AD+Y8jfUSEYzgzUu0Vl6lvCZ+b5FU3I15T3FOvihXN7van9Jh2m7ywxuKq662N1Gs5DM= X-Gm-Message-State: AOJu0YyjPeUXCSjAPBzgYO7AnD10mCIl9QGj/xi4jYdU3Ier8vBD0nea 5PZn2ws07Z+XNu+R2fVTCxIA53Q4jyuHaLisLoju74uqrsKXTJN1W/gMUdiiqsQfbVqqwvgGLQE sh+PCVQ== X-Google-Smtp-Source: AGHT+IGrdGkpFhjR6FPlXdtXR3sEdRIorE/hVIxLA4gK2OzmA6/Q93EsKJfCVwpE5jbhlit9Iqplyhs7pn+a X-Received: from anyblade.c.googlers.com ([fda3:e722:ac3:cc00:20:ed76:c0a8:1791]) (user=mmaurer job=sendgmr) by 2002:a25:6892:0:b0:e0b:a2a7:df77 with SMTP id 3f1490d57ef6-e1180e64015mr158092276.2.1724103351771; Mon, 19 Aug 2024 14:35:51 -0700 (PDT) Date: Mon, 19 Aug 2024 21:35:21 +0000 In-Reply-To: <20240819213534.4080408-1-mmaurer@google.com> Mime-Version: 1.0 References: <20240819213534.4080408-1-mmaurer@google.com> X-Mailer: git-send-email 2.46.0.184.g6999bdac58-goog Message-ID: <20240819213534.4080408-4-mmaurer@google.com> Subject: [PATCH v3 3/4] rust: kasan: Rust does not support KHWASAN From: Matthew Maurer To: dvyukov@google.com, ojeda@kernel.org, andreyknvl@gmail.com, Alex Gaynor , Wedson Almeida Filho , Petr Mladek , Masahiro Yamada , Andrew Morton , Yoann Congal , Kees Cook , Randy Dunlap , Alice Ryhl , "Gustavo A. R. Silva" , Vincent Guittot Cc: samitolvanen@google.com, kasan-dev@googlegroups.com, linux-mm@kvack.org, glider@google.com, ryabinin.a.a@gmail.com, Matthew Maurer , Boqun Feng , Gary Guo , " =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= " , Benno Lossin , Andreas Hindborg , Mathieu Desnoyers , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: B862FC0017 X-Stat-Signature: u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wJfPKL4drj4qiC9LHydxlgbFzSzW4Jsg/HcXF1SviHm7YpqWdRzgF0KwHZhs6K1ecjmdSU8n3MLfHJfXuyZGmtwJDiu2XBhCZFA2EydZJpuiNLezN/g7yy3wRrsHdxUpI8E0IrXaCxduWtFghfuTgc8RNWqsDkMRRmL7EhAeHnooouqs4nMkDeLRfpMdiGowJ6IBy1i7l9KJEOCSad2QoAYtMv6DEyhi3q6xtbgCPEFKXrqfB1Uayer4BAlut1525ooS3IhNa+gAIK/1xPN9gVuk+2J2mvtXMkvLHCri/4WkqrM1VKy4dDrbnl/2jHQNbeiDIDpUM1a4825jtXdcwobq54RQOYSdrm5jinWfG2WkW5LGRGrc0i02jmrvaoiiD24fJa6TsUj+vM43voIIQfCIdVM5do//unmt4NAcYQqqHFQfjCHlYFmAyfh4txypLiBo5yPGToUq/jdRL1MyXhNuzhIOI9J7Uwm3CeXKWksd2K1O0oelVVWMMTWMH8oZDN0aMa+9IRwpcPYspGHWIchjIQ9kAwm34yym8sqagY+TouEhKHZ4+TqP3wWHqfQrQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.001158, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Rust does not yet have support for software tags. Prevent RUST from being selected if KASAN_SW_TAGS is enabled. Signed-off-by: Matthew Maurer Reviewed-by: Andrey Konovalov --- init/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/init/Kconfig b/init/Kconfig index 72404c1f2157..a8c3a289895e 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -1907,6 +1907,7 @@ config RUST depends on !GCC_PLUGINS depends on !RANDSTRUCT depends on !DEBUG_INFO_BTF || PAHOLE_HAS_LANG_EXCLUDE + depends on !KASAN_SW_TAGS help Enables Rust support in the kernel.