Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754762Ab0DTNyx (ORCPT ); Tue, 20 Apr 2010 09:54:53 -0400 Received: from mail-ew0-f220.google.com ([209.85.219.220]:33930 "EHLO mail-ew0-f220.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754574Ab0DTNyv convert rfc822-to-8bit (ORCPT ); Tue, 20 Apr 2010 09:54:51 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:message-id:from:to:cc:subject:in-reply-to:references :user-agent:mime-version:content-type:content-transfer-encoding; b=bZkrZ/wA1Ht6l9XR7mg4Sa/cJRvL5BrcBlNATpdJot9VZT/s/D52KpXXVs9ZMnOMQE 5SH+g+g3+iqTdzgZkeQhqb4g5RbWNmTbn+CboFCb7R/YCuWjq23JMvnLzKcVJHsK1S2x 4wsC8cyH+wIDWlNjzDoGLyJJdBATgiDXevF1g= Date: Tue, 20 Apr 2010 15:54:46 +0200 Message-ID: <87r5maqleh.wl%vmayatsk@redhat.com> From: Vitaly Mayatskikh To: Cong Wang Cc: Vitaly Mayatskikh , linux-kernel , Linus Torvalds , Neil Horman Subject: Re: Fix OOPS in crash_kernel_shrink In-Reply-To: <4BCDA46E.9030405@redhat.com> References: <87iq7n8toc.wl%vmayatsk@redhat.com> <4BCDA46E.9030405@redhat.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/23.1 Mule/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 967 Lines: 27 At Tue, 20 Apr 2010 20:56:14 +0800, Cong Wang wrote: > > Vitaly Mayatskikh wrote: > > Two "echo 0 > /sys/kernel/kexec_crash_size" OOPSes kernel. Also > > content of this file is invalid after first shrink to zero: it shows 1 > > instead of 0. > > > > This patch fixes it. > > Hmmm, I certainly did tests for 'echo 0 > kexec_crash_size' when I > worked on this, but I didn't get any oops. Can you show me the full > oops? Do it twice. start == end condition will work over and over, and kernel will try to release_resource() again (and that's causes OOPS). This scenario is unlikely to happen often (root privs, valid crashkernel= in cmdline, dump-capture kernel not loaded), I hit it only by chance. -- wbr, Vitaly -- 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/