From patchwork Thu Mar 21 00:34:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Fernandes X-Patchwork-Id: 10862733 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7322615AC for ; Thu, 21 Mar 2019 00:35:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5B65929E76 for ; Thu, 21 Mar 2019 00:35:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4E28729E99; Thu, 21 Mar 2019 00:35:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by mail.wl.linuxfoundation.org (Postfix) with SMTP id 7E66C29E76 for ; Thu, 21 Mar 2019 00:35:04 +0000 (UTC) Received: (qmail 24082 invoked by uid 550); 21 Mar 2019 00:35:02 -0000 Mailing-List: contact kernel-hardening-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Delivered-To: mailing list kernel-hardening@lists.openwall.com Received: (qmail 24049 invoked from network); 21 Mar 2019 00:35:01 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=WNxH5hn+1vJ5BZfNhhP2qaREL1mT+cXvzry7emknzXo=; b=LofPvRi1FKvhO8MdnUpMoXtwNj2VpxJhzmLikJCTAC96n8I9zjrUK+YA9mxxKIhPMR BrbNAAdLfHklU02+Odvf4TMRIqyt/4xQKRibsgsXeAp3ZVZl50OY2taDuf5Qb6Rebl4V RXav2V7cSth/x3rk6TAFQq/yKzIdUdjDth9JQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=WNxH5hn+1vJ5BZfNhhP2qaREL1mT+cXvzry7emknzXo=; b=bdDQjJ5PS1VqZWS6PxeqEYcpqPfrGxuivioDyt8EZc8kn/Th3BY4tl/ezhtzDzoeAp PEVuRBjxLX6oW4UmVngCZmzvgLO82FlFfh8Szy+Rpe5StvSnR8OXkNqoMYoJzV0b7c0+ 39zAoHLg6e5MQ5jam8u3TX4FcBUZpQlLxcSZvjtsjUsoPyU/GJIzd7g4mkrUtZwU2UHJ WxcaLKfdG0LDW02z4D0DH2yPzdFK25tOW4NL1PlAdL1GnOhkV+VCEz2/aZ5MNTnQ5ZO7 Z4dpCinPj6pY2CVxhi3VCrDWRcpNp7GyAbSOvOmCdX6jtxbDUgTUg1wZvvO03TQyX9t3 cPaA== X-Gm-Message-State: APjAAAVvVygyCZXExRW1gZxSTomdgws7gAjrISVwgU+FgwdICL267Zv/ 6g8NfGMmIVEyo9EFLIYiK2nvCg== X-Google-Smtp-Source: APXvYqw2IZEg0AtQ4SwPf0ZCsNZpyPpyXX7g4iPc87HH3TUictMPSPsYXXOMZzDmuY1YyqR053Z1SQ== X-Received: by 2002:a0c:e58f:: with SMTP id t15mr810027qvm.170.1553128489530; Wed, 20 Mar 2019 17:34:49 -0700 (PDT) From: "Joel Fernandes (Google)" To: linux-kernel@vger.kernel.org Cc: "Joel Fernandes (Google)" , Ingo Molnar , Josh Triplett , keescook@chromium.org, kernel-hardening@lists.openwall.com, kernel-team@android.com, Lai Jiangshan , Luc Van Oostenryck , Mathieu Desnoyers , Morten Rasmussen , "Paul E. McKenney" , Peter Zijlstra , rcu@vger.kernel.org, Steven Rostedt Subject: [PATCH v2 0/4] RCU fixes for rcu_assign_pointer() usage Date: Wed, 20 Mar 2019 20:34:22 -0400 Message-Id: <20190321003426.160260-1-joel@joelfernandes.org> X-Mailer: git-send-email 2.21.0.225.g810b269d1ac-goog MIME-Version: 1.0 X-Virus-Scanned: ClamAV using ClamSMTP This is just a resend with scheduler patches split from the driver fixes and Paul's Reviewed-by(s) added. These patches fix various sparse errors ccaused as a result of the recent check to add rcu_check_sparse() to rcu_assign_pointer(). The errors are due to missing annotations. The annotations added in the series can also help avoid future incorrect usages and bugs so it is a good idea to do in any case. RFC v1 -> Patch v2: Made changes based on Peter Zijlstra review. Joel Fernandes (Google) (4): sched/cpufreq: Annotate cpufreq_update_util_data pointer with __rcu sched_domain: Annotate RCU pointers properly rcuwait: Annotate task_struct with __rcu sched: Annotate perf_domain pointer with __rcu include/linux/rcuwait.h | 2 +- include/linux/sched/topology.h | 4 ++-- kernel/sched/cpufreq.c | 2 +- kernel/sched/sched.h | 18 +++++++++--------- kernel/sched/topology.c | 10 +++++----- 5 files changed, 18 insertions(+), 18 deletions(-) --- 2.21.0.225.g810b269d1ac-goog