From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail138.messagelabs.com (mail138.messagelabs.com [216.82.249.35]) by kanga.kvack.org (Postfix) with SMTP id BBA6D6B004D for ; Sat, 20 Jun 2009 11:27:10 -0400 (EDT) Received: by fg-out-1718.google.com with SMTP id l27so255893fgb.4 for ; Sat, 20 Jun 2009 08:27:59 -0700 (PDT) Message-ID: <4A3CFFEC.1000805@gmail.com> Date: Sat, 20 Jun 2009 17:27:40 +0200 From: Jiri Slaby MIME-Version: 1.0 Subject: BUG: Bad page state [was: Strange oopses in 2.6.30] References: <1245448091.5475.19.camel@localhost> <1245506908.6327.36.camel@localhost> In-Reply-To: <1245506908.6327.36.camel@localhost> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org To: Maxim Levitsky Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org List-ID: On 06/20/2009 04:08 PM, Maxim Levitsky wrote: > On Sat, 2009-06-20 at 00:48 +0300, Maxim Levitsky wrote: >> I see lots of following oopses in 2.6.30 and latest -git >> >> Many different applications shows up, not just reiserfsck >> Something in MM I guess, it makes me worry. But system seems to work. >> >> Is this known? >> >> dmesg attached. >> >> >> [ 34.544040] BUG: Bad page state in process reiserfsck pfn:37d86 >> [ 34.544044] page:c2a34f38 flags:3650000c count:0 mapcount:0 >> mapping:(null) index:bffeb >> [ 34.544048] Pid: 2654, comm: reiserfsck Tainted: G B >> 2.6.30-git #4 >> [ 34.544051] Call Trace: >> [ 34.544055] [] ? printk+0x18/0x1e >> [ 34.544059] [] bad_page+0xd5/0x140 >> [ 34.544064] [] free_hot_cold_page+0x1e7/0x280 >> [ 34.544069] [] ? release_pages+0x92/0x1b0 >> [ 34.544074] [] __pagevec_free+0x25/0x30 >> [ 34.544078] [] release_pages+0x168/0x1b0 >> [ 34.544084] [] ? lru_add_drain+0x53/0xd0 >> [ 34.544088] [] free_pages_and_swap_cache+0x84/0xa0 >> [ 34.544093] [] unmap_vmas+0x73d/0x760 >> [ 34.544099] [] ? lock_release_non_nested+0x15e/0x270 >> [ 34.544104] [] exit_mmap+0xb5/0x1b0 >> [ 34.544109] [] mmput+0x36/0xc0 >> [ 34.544113] [] exit_mm+0xe4/0x120 >> [ 34.544117] [] ? acct_collect+0x139/0x180 >> [ 34.544122] [] do_exit+0x6b9/0x720 >> [ 34.544142] [] ? vfs_write+0x122/0x180 >> [ 34.544146] [] ? do_sync_write+0x0/0x110 >> [ 34.544151] [] do_group_exit+0x30/0x90 >> [ 34.544156] [] sys_exit_group+0x13/0x20 >> [ 34.544161] [] sysenter_do_call+0x12/0x3c >> [ 34.544180] BUG: Bad page state in process reiserfsck pfn:37d91 >> [ 34.544184] page:c2a35174 flags:3650000c count:0 mapcount:0 >> mapping:(null) index:bfff6 >> [ 34.544188] Pid: 2654, comm: reiserfsck Tainted: G B >> 2.6.30-git #4 I got similar on 64-bit mmotm 2009-06-12-12-20. You seem not to use 2.6.30, but some git post 2.6.30. Flags are: 0000000000400000 -- __PG_MLOCKED 800000000050000c -- my page flags 3650000c -- Maxim's page flags 0000000000693ce1 -- my PAGE_FLAGS_CHECK_AT_FREE In my .config, there is CONFIG_PAGEFLAGS_EXTENDED=y CONFIG_HAVE_MLOCKED_PAGE_BIT=y The traces: BUG: Bad page state in process gpg-agent pfn:1c83c9 page:ffffea00063cd3f8 flags:800000000050000c count:0 mapcount:0 mapping:(null) i ndex:7feda9eae Pid: 3859, comm: gpg-agent Not tainted 2.6.30-mm1_64 #641 Call Trace: [] bad_page+0xd2/0x130 [] free_hot_cold_page+0x47/0x200 [] __pagevec_free+0x38/0x50 [] release_pages+0x20c/0x240 [] free_pages_and_swap_cache+0xaf/0xd0 [] ? cpumask_any_but+0x2a/0x40 [] unmap_region+0x150/0x170 [] do_munmap+0x274/0x370 [] sys_munmap+0x4c/0x70 [] system_call_fastpath+0x16/0x1b Disabling lock debugging due to kernel taint BUG: Bad page state in process gpg-agent pfn:1c83c8 page:ffffea00063cd3c0 flags:800000000050000c count:0 mapcount:0 mapping:(null) i ndex:7feda9ead Pid: 3859, comm: gpg-agent Tainted: G B 2.6.30-mm1_64 #641 Call Trace: [] bad_page+0xd2/0x130 [] free_hot_cold_page+0x47/0x200 [] __pagevec_free+0x38/0x50 [] release_pages+0x20c/0x240 [] free_pages_and_swap_cache+0xaf/0xd0 [] ? cpumask_any_but+0x2a/0x40 [] unmap_region+0x150/0x170 [] do_munmap+0x274/0x370 [] sys_munmap+0x4c/0x70 [] system_call_fastpath+0x16/0x1b BUG: Bad page state in process gpg-agent pfn:1c800f page:ffffea00063c0348 flags:800000000050000c count:0 mapcount:0 mapping:(null) i ndex:7feda9eac Pid: 3859, comm: gpg-agent Tainted: G B 2.6.30-mm1_64 #641 Call Trace: [] bad_page+0xd2/0x130 [] free_hot_cold_page+0x47/0x200 [] __pagevec_free+0x38/0x50 [] release_pages+0x20c/0x240 [] free_pages_and_swap_cache+0xaf/0xd0 [] ? cpumask_any_but+0x2a/0x40 [] unmap_region+0x150/0x170 [] do_munmap+0x274/0x370 [] sys_munmap+0x4c/0x70 [] system_call_fastpath+0x16/0x1b -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org