Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932344AbbBRSuN (ORCPT ); Wed, 18 Feb 2015 13:50:13 -0500 Received: from mail-pa0-f45.google.com ([209.85.220.45]:33431 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753585AbbBRSuK (ORCPT ); Wed, 18 Feb 2015 13:50:10 -0500 Message-ID: <54E4DEDF.1010102@kernel.dk> Date: Wed, 18 Feb 2015 10:50:07 -0800 From: Jens Axboe User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Thadeu Lima de Souza Cascardo CC: linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] blk-throttle: check stats_cpu before reading it from sysfs References: <1424114206-17504-1-git-send-email-cascardo@linux.vnet.ibm.com> In-Reply-To: <1424114206-17504-1-git-send-email-cascardo@linux.vnet.ibm.com> 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 Content-Length: 679 Lines: 18 On 02/16/2015 11:16 AM, Thadeu Lima de Souza Cascardo wrote: > When reading blkio.throttle.io_serviced in a recently created blkio > cgroup, it's possible to race against the creation of a throttle policy, > which delays the allocation of stats_cpu. > > Like other functions in the throttle code, just checking for a NULL > stats_cpu prevents the following oops caused by that race. Applied for this series, thanks. -- Jens Axboe -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/