From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755293AbbIHPfN (ORCPT ); Tue, 8 Sep 2015 11:35:13 -0400 Received: from mail-io0-f177.google.com ([209.85.223.177]:34428 "EHLO mail-io0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755260AbbIHPfG (ORCPT ); Tue, 8 Sep 2015 11:35:06 -0400 Subject: Re: [PATCH block/for-linus] block: blkg_destroy_all() should clear q->root_blkg and ->root_rl.blkg To: Tejun Heo References: <20150902145307.GG22326@mtj.duckdns.org> <20150902153255.GH22326@mtj.duckdns.org> <20150904104602.GN29283@redhat.com> <20150904171302.GE25329@mtj.duckdns.org> <20150904204244.GQ29283@redhat.com> <20150905153439.GA18461@redhat.com> <20150905154840.GA19460@redhat.com> <20150905183801.GA8231@mtj.duckdns.org> <20150905194736.GB8231@mtj.duckdns.org> <20150908153132.GD13749@mtj.duckdns.org> Cc: Josh Boyer , Jeff Moyer , msnitzer@redhat.com, Li Zefan , Johannes Weiner , cgroups@vger.kernel.org, "Linux-Kernel@Vger. Kernel. Org" , "Richard W.M. Jones" From: Jens Axboe Message-ID: <55EF0028.30203@kernel.dk> Date: Tue, 8 Sep 2015 09:35:04 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <20150908153132.GD13749@mtj.duckdns.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/08/2015 09:31 AM, Tejun Heo wrote: > On Sat, Sep 05, 2015 at 03:47:36PM -0400, Tejun Heo wrote: >> While making the root blkg unconditional, ec13b1d6f0a0 ("blkcg: always >> create the blkcg_gq for the root blkcg") removed the part which clears >> q->root_blkg and ->root_rl.blkg during q exit. This leaves the two >> pointers dangling after blkg_destroy_all(). blk-throttle exit path >> performs blkg traversals and dereferences ->root_blkg and can lead to >> the following oops. > > Jens, can you please route this one w/ Richard's tested-by added? Yup, added, thanks. -- Jens Axboe