Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763122AbXHJAaz (ORCPT ); Thu, 9 Aug 2007 20:30:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754789AbXHJAas (ORCPT ); Thu, 9 Aug 2007 20:30:48 -0400 Received: from ns2.suse.de ([195.135.220.15]:60230 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754061AbXHJAar (ORCPT ); Thu, 9 Aug 2007 20:30:47 -0400 Date: Fri, 10 Aug 2007 02:30:45 +0200 From: Nick Piggin To: Hugh Dickins Cc: Mariusz Kozlowski , Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: 2.6.23-rc2-mm1: kernel BUG at mm/swap_state.c:78! Message-ID: <20070810003045.GA19591@wotan.suse.de> References: <20070809015106.cd0bfc53.akpm@linux-foundation.org> <200708091711.53898.m.kozlowski@tuxland.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2897 Lines: 59 On Thu, Aug 09, 2007 at 04:37:35PM +0100, Hugh Dickins wrote: > On Thu, 9 Aug 2007, Mariusz Kozlowski wrote: > > Hello, > > > > Nothing unusual happening, allmodconfig compiling etc. > > Not sure why it says kernel was tainted though ... hmmm. > > > > ------------[ cut here ]------------ > > kernel BUG at mm/swap_state.c:78! > > invalid opcode: 0000 [#1] > > PREEMPT > > Modules linked in: orinoco_cs orinoco hermes pl2303 usbserial pcmcia 8250_pci 8250 serial_core yenta_socket rsrc_nonstatic pcmcia_core 8139too > > CPU: 0 > > EIP: 0060:[] Tainted: P VLI > > EFLAGS: 00010246 (2.6.23-rc2-mm1 #1) > > EIP is at __add_to_swap_cache+0xc6/0xd7 > > eax: 40000000 ebx: c11285c0 ecx: 000000d0 edx: 00000283 > > esi: c11285c0 edi: 00000283 ebp: c1858f90 esp: c1858f84 > > ds: 007b es: 007b fs: 0000 gs: 0000 ss: 0068 > > Process kprefetchd (pid: 236, ti=c1858000 task=c18d14d0 task.ti=c1858000) > > Stack: 00000283 c11285c0 c3d5a3c8 c1858fa0 c01504ea c11285c0 00000000 c1858fcc > > c015307c 00000001 00000007 00000002 00000002 00000283 00000000 fffffffc > > 00000000 c0152d5c c1858fe0 c0127f2e c0127ef8 00000000 00000000 00000000 > > Call Trace: > > [] show_trace_log_lvl+0x1a/0x30 > > [] show_stack_log_lvl+0xa9/0xd5 > > [] show_registers+0x219/0x38d > > [] die+0x104/0x23e > > [] do_trap+0x83/0xad > > [] do_invalid_op+0x88/0x92 > > [] error_code+0x6a/0x70 > > [] add_to_swap_cache+0x22/0x58 > > [] kprefetchd+0x320/0x364 > > [] kthread+0x36/0x58 > > [] kernel_thread_helper+0x7/0x14 > > ======================= > > INFO: lockdep is turned off. > > Code: 0f 89 7b 0c 83 05 fc c9 53 c0 01 8b 13 c1 ea 1e 8d 04 12 01 d0 c1 e0 03 29 d0 c1 e0 05 ff 80 b8 c0 53 c0 ff 05 34 1d 68 c0 eb 96 <0f> 0b eb fe 0f 0b eb fe 0f 0b eb fe 8b 53 0c eb be 55 89 e5 56 > > EIP: [] __add_to_swap_cache+0xc6/0xd7 SS:ESP 0068:c1858f84 > > Don't worry about reproducing untainted, I got the same earlier > and was just preparing and testing the hotfix: here it is... > > > Nick's mm-clarify-__add_to_swap_cache-locking.patch is fine for mainline, > but soon generates a "kernel BUG at mm/swap_state.c:78!" when it meets > mm-implement-swap-prefetching.patch in 2.6.23-rc2-mm1. We could add a > fix to the latter, but I think it's better to adjust Nick's, so that > it's right for whichever tree it's in: move the responsibility to > SetPageLocked from read_swap_cache_async to add_to_swap_cache. Hmm, yeah I like this better, it is more like add_to_page_cache now. Thanks. - 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/