Message ID | 20211130114433.2580590-3-elver@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 86452C433EF for <linux-mm@archiver.kernel.org>; Tue, 30 Nov 2021 11:46:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0A4F66B0075; Tue, 30 Nov 2021 06:45:20 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 02DA46B0078; Tue, 30 Nov 2021 06:45:19 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E10DD6B007B; Tue, 30 Nov 2021 06:45:19 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0150.hostedemail.com [216.40.44.150]) by kanga.kvack.org (Postfix) with ESMTP id D2E5C6B0075 for <linux-mm@kvack.org>; Tue, 30 Nov 2021 06:45:19 -0500 (EST) Received: from smtpin26.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 8FF178121538 for <linux-mm@kvack.org>; Tue, 30 Nov 2021 11:45:09 +0000 (UTC) X-FDA: 78865415580.26.6BED706 Received: from mail-wm1-f73.google.com (mail-wm1-f73.google.com [209.85.128.73]) by imf22.hostedemail.com (Postfix) with ESMTP id 3795D1914 for <linux-mm@kvack.org>; Tue, 30 Nov 2021 11:45:08 +0000 (UTC) Received: by mail-wm1-f73.google.com with SMTP id 145-20020a1c0197000000b0032efc3eb9bcso13627272wmb.0 for <linux-mm@kvack.org>; Tue, 30 Nov 2021 03:45:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=ZmySmV7nXgp7ZU44HAHRwN8PhZWnIeFNi9/5LSGaJn0=; b=hs4LlI5lsoVztdyeXHYGVaXqoGqfWxtfU47ZxaWIXMF2LtJbb78kUIVc0cRuvGbMfb UNw6/fXMdGtPv2h8zBMi5zOcBaSwfjE2+nKiMNKeM9jeUs4vjbJK99CBpMUY1igcK2AO hkM8i+x5rI34uTiK4kGz6Ny8KsFfPBn9Skfxtgdf+EY6mB5WctN9uRu5XKue8YS4CWPZ MuVmceyTqxFjckuQpfDMMo3/XKIvHHLDEu5mET7aFh3FTzDlkJ5ONfBlsc2EWCjP5kGc SyQVbaVFhKuFSos4aYqJ8KZimc+D5tJysctdVSWpiS6AHqJ7/PEA9mqqH25rLKWF5py6 iIDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=ZmySmV7nXgp7ZU44HAHRwN8PhZWnIeFNi9/5LSGaJn0=; b=W5WhQGIssN+yd3Ys/Vv8bxnEoWOVeKnUywrIo8+7sTa+EPJVzseccXVTO+95SA0plM IRp4LN/4h57gyKn/FZrWyzNElUdcVjLel1pjgvHkYDMycu4DUGvlvWhxrW4d+xWqdw8O kHI4UIBzq/M0cIdZjz0mNBy+9rxMUhIdPSFkP6T+iYxPQhtFMSOpmVwsrSMlMbSV1h3r vXDBqrS7z7riaAMaZI+lT7plEiK9FvWzWVHV7ehjGMHOkxMEZHtwTduBb4sZhHzoLbPI j+ovKLKknALA+DGgM4So6K2cVmCjJPTG/X0R9YKOkoeS6qvLUSoceno7Rc59sEO/l4p+ twag== X-Gm-Message-State: AOAM532GlGqlW2BNWRuk4yVTUHlbKYbZxj6oJEiEW9SEtrWmjkSYx9O2 vtyzaZTa/R9DXMToJqUNKErgJFQO9g== X-Google-Smtp-Source: ABdhPJwtFgfDTN6vPjSFkCyUpvSQ19ytHU7Acqp52u/sb5E17RDsJPS4ZB9wklKdX5QEMGX86DVOVVVs4A== X-Received: from elver.muc.corp.google.com ([2a00:79e0:15:13:86b7:11e9:7797:99f0]) (user=elver job=sendgmr) by 2002:a05:600c:4f0b:: with SMTP id l11mr625318wmq.0.1638272707028; Tue, 30 Nov 2021 03:45:07 -0800 (PST) Date: Tue, 30 Nov 2021 12:44:10 +0100 In-Reply-To: <20211130114433.2580590-1-elver@google.com> Message-Id: <20211130114433.2580590-3-elver@google.com> Mime-Version: 1.0 References: <20211130114433.2580590-1-elver@google.com> X-Mailer: git-send-email 2.34.0.rc2.393.gf8c9666880-goog Subject: [PATCH v3 02/25] kcsan: Remove redundant zero-initialization of globals From: Marco Elver <elver@google.com> To: elver@google.com, "Paul E. McKenney" <paulmck@kernel.org> Cc: Alexander Potapenko <glider@google.com>, Boqun Feng <boqun.feng@gmail.com>, Borislav Petkov <bp@alien8.de>, Dmitry Vyukov <dvyukov@google.com>, Ingo Molnar <mingo@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Peter Zijlstra <peterz@infradead.org>, Thomas Gleixner <tglx@linutronix.de>, Waiman Long <longman@redhat.com>, Will Deacon <will@kernel.org>, kasan-dev@googlegroups.com, linux-arch@vger.kernel.org, linux-doc@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, llvm@lists.linux.dev, x86@kernel.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Server: rspam11 X-Rspamd-Queue-Id: 3795D1914 X-Stat-Signature: mx3gdicdznzsxoor6nuza8qmqkbe81sz Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=hs4LlI5l; spf=pass (imf22.hostedemail.com: domain of 3ww6mYQUKCIwu1Bu7w44w1u.s421y3AD-220Bqs0.47w@flex--elver.bounces.google.com designates 209.85.128.73 as permitted sender) smtp.mailfrom=3ww6mYQUKCIwu1Bu7w44w1u.s421y3AD-220Bqs0.47w@flex--elver.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com X-HE-Tag: 1638272708-872390 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 |
kcsan: Support detecting a subset of missing memory barriers
|
expand
|
diff --git a/init/init_task.c b/init/init_task.c index 2d024066e27b..73cc8f03511a 100644 --- a/init/init_task.c +++ b/init/init_task.c @@ -182,11 +182,6 @@ struct task_struct init_task #endif #ifdef CONFIG_KCSAN .kcsan_ctx = { - .disable_count = 0, - .atomic_next = 0, - .atomic_nest_count = 0, - .in_flat_atomic = false, - .access_mask = 0, .scoped_accesses = {LIST_POISON1, NULL}, }, #endif diff --git a/kernel/kcsan/core.c b/kernel/kcsan/core.c index 6bfd3040f46b..e34a1710b7bc 100644 --- a/kernel/kcsan/core.c +++ b/kernel/kcsan/core.c @@ -44,11 +44,6 @@ bool kcsan_enabled; /* Per-CPU kcsan_ctx for interrupts */ static DEFINE_PER_CPU(struct kcsan_ctx, kcsan_cpu_ctx) = { - .disable_count = 0, - .atomic_next = 0, - .atomic_nest_count = 0, - .in_flat_atomic = false, - .access_mask = 0, .scoped_accesses = {LIST_POISON1, NULL}, };