Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp190204img; Wed, 20 Mar 2019 17:35:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqz5biHsAFhQFCAbBlB/uZnx2giahrecRkKOgg3F+JmwtJKqH9qzkSnsDONiS9TUaCT9USPK X-Received: by 2002:a65:614f:: with SMTP id o15mr726969pgv.383.1553128550693; Wed, 20 Mar 2019 17:35:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553128550; cv=none; d=google.com; s=arc-20160816; b=ed3GiArs7KctUpz5gw/TlXVWdcWz7D2Ecivt8FTTSPJ7tdIi9TDHkUbSlMjoyDlh+/ qgYHcyfBA6OEpPbkKZOcjWe0kUT1qDyrL3ZB1q8dabReRH0d+yhbjJB57VrCjB8TPjTb qoI33z+XK7pGO9xZbk9j4Squp2pKyG9/9wWFq+4pvIZKqNA7DkKcv5M+XIC/0RY8yj8O zXE8EVO6ZtKmMLZJTLA9AfOD8MYnUyrNYBUa3v8huqB5sDoUFnPGjar6+7HVaugSa7gR ISS3iX5Ul1OuCqGAJLxap5GdnMOCGS6FbLT2fbHDM084PqFD7b8Mnbbq7OsefZNgPQ76 Ky3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=WNxH5hn+1vJ5BZfNhhP2qaREL1mT+cXvzry7emknzXo=; b=BeEBOxhQhnGcKozNUtE0vhVIfxxLWX9rRDyMcOPro7QQJ69b7CVOwdhN+oVpJpbwaj OYlx2OJwWTYCsDXBKCAsK4B4aM3dzDYOE6+rMT3x9dhd+gihZP07XgnrcZEJ8mWmCszS ibXge4ErSDOkvX5uRP7nSGvhT6NJggVLbGmig21Ie1S9LT9vryYwG5z1uJ9YP3npEYH6 OA7fnrMOI57XFqZYyIftOYO/5RIN7YRMgb6i/ItgtLJ1yq24bA7MkLo0uFIQkQBAaRT7 nixN7THXyCeYHsrFlfLbu/jEqkBQlrWpta1G+oD2OTUtbXBNHTHMs5/XEUFoqjKIyjhE 9pyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=LofPvRi1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t7si2828310pgp.196.2019.03.20.17.35.35; Wed, 20 Mar 2019 17:35:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=LofPvRi1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727757AbfCUAev (ORCPT + 99 others); Wed, 20 Mar 2019 20:34:51 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:33753 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727538AbfCUAev (ORCPT ); Wed, 20 Mar 2019 20:34:51 -0400 Received: by mail-qt1-f193.google.com with SMTP id k14so4885175qtb.0 for ; Wed, 20 Mar 2019 17:34:50 -0700 (PDT) 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=tjvlFmYtP0kwD1f/PFTDSTOg9MgbGBYZiP1Z6G0BSh/Z0MxG5z8FZHS/mimnd0TFJ/ 9D2SssFOqDK7P8JVUs950TPmop/5lwRvRYk5EbE4C0pWt/5Wcxvenm5RnZJ4rG+D1Vsq 6MNaawK7hmz+OULZ5ZMp7vDwGQ58lBiZQVMRh1mX8QknrlYtJcLE0f/n09NDR1vEmuUX pZFyGQ7loMxv2hkFVaPO/xfO/TQMnXOk3vpAsDVcfnZO/5PXC0BI13S9J9IVKyHbkua9 jm//YsjyzbmIOj6SNaKdmC+EBOjaFiNsPyYrZIgDT+kc5hTL1jHpWY1yXCq8nAeJC5z7 3tsA== X-Gm-Message-State: APjAAAWj6mQqZY4ErYKLc6621PL+dKcdiDG/VCcB81AOkeTjfkW3Vazw N9BhikIN49P8C2AJvIhqHbq2s9GKOCU= X-Received: by 2002:a0c:e58f:: with SMTP id t15mr810027qvm.170.1553128489530; Wed, 20 Mar 2019 17:34:49 -0700 (PDT) Received: from joelaf.cam.corp.google.com ([2620:0:1004:1100:cca9:fccc:8667:9bdc]) by smtp.gmail.com with ESMTPSA id u15sm2908475qth.54.2019.03.20.17.34.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Mar 2019 17:34:48 -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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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