Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751657AbbEYUjB (ORCPT ); Mon, 25 May 2015 16:39:01 -0400 Received: from casper.infradead.org ([85.118.1.10]:38560 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751141AbbEYUi6 convert rfc822-to-8bit (ORCPT ); Mon, 25 May 2015 16:38:58 -0400 Message-ID: <1432586334.11346.2.camel@twins> Subject: Re: [PATCH] sched/fair: Fix null pointer dereference of empty queues From: Peter Zijlstra To: Mohammed Naser Cc: linux-kernel@vger.kernel.org, mingo@redhat.com Date: Mon, 25 May 2015 22:38:54 +0200 In-Reply-To: <1432576851-24831-1-git-send-email-mnaser@vexxhost.com> References: <1432576851-24831-1-git-send-email-mnaser@vexxhost.com> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 544 Lines: 12 On Mon, 2015-05-25 at 14:00 -0400, Mohammed Naser wrote: > Calling put_prev_task() can result in nr_running being updated > to zero, which would then crash the system when the kernel > attempts to pick_next_entity() with an empty queue. Getting to pick_next_entity() with an empty queue is a bug. -- 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/