From patchwork Sat Feb 23 06:34:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Fernandes X-Patchwork-Id: 10827421 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 A86016C2 for ; Sat, 23 Feb 2019 10:40:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 89C7E2F33D for ; Sat, 23 Feb 2019 10:40:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 75C472F365; Sat, 23 Feb 2019 10:40:02 +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 9AAF72F33D for ; Sat, 23 Feb 2019 10:40:01 +0000 (UTC) Received: (qmail 5397 invoked by uid 550); 23 Feb 2019 10:39:59 -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 Delivered-To: moderator for kernel-hardening@lists.openwall.com Received: (qmail 15506 invoked from network); 23 Feb 2019 06: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=aZPXrhRn9IM7/mDZO/dEG8SNIp0XQzzuRffsSWdXti4=; b=qsnmM+tct+fgfu/vlgLGEIJPlGi2rIdsBE5znz16lhw2+SCqf6T24bz3WHyLvApaHJ O9GsHP/xCYA4VMVUhu/eNXnATeybrZH0iuoKkKELAry7Mt4q/CUrgx2DXV8sJhOy5FuH nJsPMzKoxjgdUkY3V6LBViXbapudw1z5vpdQI= 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=aZPXrhRn9IM7/mDZO/dEG8SNIp0XQzzuRffsSWdXti4=; b=s+XmYjmmm3s2ZGzDBlTwYNkr3gF9zdwSA4RcHfxoTYXDOYNDODd1h1yMaYv6SNdoh1 np7URRXrgdSkthRoRv+3G7xzvpTuPEKPngYGIanM3wH8Gbqtr+tfdJEyENLj2s5JK4PN 44ooK4S20It1C+ClwbiYn9xeVffQ4kWvXy3IyJ7nkvks1oDB33SDQaIQTNf5gGWHU504 XcOte++2Qk/gX/HHkZWpyLQb6r5pog0gmIvEJ9txb42sY6yg4wT6TNNWasNUf61rCddA 8OCzAz3Bx23KkE+PSVykmfGMk+B8RAaGu7HjWQhW99ExuXtiTsV5OfYly1abWhAbTQui 7NUw== X-Gm-Message-State: AHQUAuaPWkOK0CdkNRy8M506YJrnKf/n2SG15SFbyBOopDZcz/KVPPS6 QNXFRrInJ2p5L7Ti/o4eLPOf6Q== X-Google-Smtp-Source: AHgI3IZAv5oBDCvRHQZTZtHlN92W9LAJA8xKIMsIky7TQzQqSbTSj0qWYk7MeaVsEhML0ZMwnerO+w== X-Received: by 2002:a05:620a:13af:: with SMTP id m15mr5760550qki.198.1550903689958; Fri, 22 Feb 2019 22:34:49 -0800 (PST) From: "Joel Fernandes (Google)" To: linux-kernel@vger.kernel.org Cc: "Joel Fernandes (Google)" , Alexei Starovoitov , Christian Brauner , Daniel Borkmann , David Ahern , "David S. Miller" , Ingo Molnar , Jakub Kicinski , Jeff Kirsher , Jesper Dangaard Brouer , John Fastabend , Josh Triplett , keescook@chromium.org, kernel-hardening@lists.openwall.com, kernel-team@android.com, Kirill Tkhai , Lai Jiangshan , Martin KaFai Lau , Mathieu Desnoyers , netdev@vger.kernel.org, "Paul E. McKenney" , Peter Zijlstra , Quentin Perret , rcu@vger.kernel.org, Song Liu , Steven Rostedt , Vincent Guittot , xdp-newbies@vger.kernel.org, Yonghong Song Subject: [PATCH v2 0/6] RCU fixes for rcu_assign_pointer() usage Date: Sat, 23 Feb 2019 01:34:28 -0500 Message-Id: <20190223063434.6793-1-joel@joelfernandes.org> X-Mailer: git-send-email 2.21.0.rc0.258.g878e2cd30e-goog MIME-Version: 1.0 X-Virus-Scanned: ClamAV using ClamSMTP These patches fix various sparse errors found as a result of the recent check to add rcu_check_sparse() to rcu_assign_pointer(). The errors in some cases seem to either missing API usage, or 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 to various scheduler patches (Peter Zijlstra) Joel Fernandes (Google) (6): net: rtnetlink: Fix incorrect RCU API usage ixgbe: Fix incorrect RCU API usage 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 drivers/net/ethernet/intel/ixgbe/ixgbe.h | 4 ++-- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 15 ++++++++++----- 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 +++++----- net/core/rtnetlink.c | 4 ++-- 8 files changed, 32 insertions(+), 27 deletions(-) --- 2.21.0.rc0.258.g878e2cd30e-goog