From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757601AbaITS5P (ORCPT ); Sat, 20 Sep 2014 14:57:15 -0400 Received: from casper.infradead.org ([85.118.1.10]:46970 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757330AbaITS5O (ORCPT ); Sat, 20 Sep 2014 14:57:14 -0400 Date: Sat, 20 Sep 2014 20:57:05 +0200 From: Peter Zijlstra To: Kirill Tkhai Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Kirill Tkhai Subject: Re: [PATCH 3/7] sched: Use dl_bw_of() under RCU read lock Message-ID: <20140920185705.GU2832@worktop.localdomain> References: <20140920165116.16299.1381.stgit@localhost> <20140920165128.16299.20888.stgit@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140920165128.16299.20888.stgit@localhost> User-Agent: Mutt/1.5.22.1 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 20, 2014 at 08:51:28PM +0400, Kirill Tkhai wrote: > From: Kirill Tkhai > > dl_bw_of() dereferences rq->rd which has to have RCU read lock held. > Probability of use-after-free and memory corruption aren't zero here. > Additionally we might want to add something like: lockdep_assert_held_rcu() and put that in dl_bw_of() and other such places.