From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qc0-f169.google.com (mail-qc0-f169.google.com [209.85.216.169]) by kanga.kvack.org (Postfix) with ESMTP id E30B16B0032 for ; Thu, 26 Feb 2015 15:08:54 -0500 (EST) Received: by qcyl6 with SMTP id l6so10527329qcy.2 for ; Thu, 26 Feb 2015 12:08:54 -0800 (PST) Received: from mail-qc0-x234.google.com (mail-qc0-x234.google.com. [2607:f8b0:400d:c01::234]) by mx.google.com with ESMTPS id g9si1853062qgd.25.2015.02.26.12.08.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Feb 2015 12:08:51 -0800 (PST) Received: by qcvp6 with SMTP id p6so10421025qcv.12 for ; Thu, 26 Feb 2015 12:08:50 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <54EF2C74.60908@suse.cz> References: <54EF2C74.60908@suse.cz> Date: Thu, 26 Feb 2015 21:08:50 +0100 Message-ID: Subject: Re: 3.19.0 / kswap0 bug From: Pavol Cupka Content-Type: text/plain; charset=UTF-8 Sender: owner-linux-mm@kvack.org List-ID: To: Vlastimil Babka Cc: linux-kernel@vger.kernel.org, "linux-mm@kvack.org" Thank you for your reply, I am going to try vanilla sources and let you know. It is going to take some time thou, because I don't have to dd another drive for a little while :) Cheers Pavol On Thu, Feb 26, 2015 at 3:23 PM, Vlastimil Babka wrote: > On 02/21/2015 05:16 PM, Pavol Cupka wrote: >> Hi list, >> >> I am encountering a bug on my desktop PC. Running gentoo-sources >> (patches for gentoo) 3.19.0, gcc 4.8.4, glibc 2.19 > > Although there don't seem to be many gentoo patches on top, you should try > reproducing this with vanilla 3.19 kernel first. > >> MB: GA-MA785GT-UD3H >> CPU: AMD Phenom(tm) II X4 965 Processor >> RAM: 2x DIMM 1333 MHz 2GB >> SATA controller: SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] >> HDD: 3x HGST 4TB disks >> SSD: Intel SSD SSDSC2CT060A3 fw: i300 >> swap on first two hdd 1,5 GB in size >> /dev/sda2 partition 1571836 85824 -1 >> /dev/sdb2 partition 1571836 0 -2 >> >> this is what I've got after running dd if=/dev/urandom of=/dev/sdd1 bs=512 >> the computer was not doing other things, there is a glances instance >> running in tmux and the dd is also running in the same tmux session. > > Is it easily reproducible? Is there a last known-working kernel version? If yes, > bisect could be an option. > >> [13397.986449] BUG: Bad page state in process kswapd0 pfn:104b06 >> [13397.986462] page:ffffea000412c180 count:0 mapcount:-1 mapping: >> (null) index:0x45fc53 >> [13397.986493] flags: 0x200000000000008(uptodate) >> [13397.986513] page dumped because: nonzero mapcount > > Mapcount underflow, hm, I don't recall a similar report to this. > >> [13397.986517] Modules linked in: xfs libcrc32c exportfs firewire_ohci >> kvm firewire_core k10temp crc_itu_t >> [13397.986537] CPU: 2 PID: 664 Comm: kswapd0 Not tainted 3.19.0-gentoo-suc #1 >> [13397.986543] Hardware name: Gigabyte Technology Co., Ltd. >> GA-MA785GT-UD3H/GA-MA785GT-UD3H, BIOS F8 05/25/2010 >> [13397.986547] ffffffff81c27a04 ffff88013a603938 ffffffff819da02a >> 0000000000000092 >> [13397.986555] ffffea000412c180 ffff88013a603968 ffffffff819d640f >> ffffea000412c1c0 >> [13397.986561] ffffea000412c180 0000000000000000 ffffffff81c27a26 >> ffff88013a6039b8 >> [13397.986568] Call Trace: >> [13397.986582] [] dump_stack+0x45/0x57 >> [13397.986592] [] bad_page+0xdb/0xf9 >> [13397.986600] [] free_pages_prepare+0xff/0x160 >> [13397.986607] [] free_hot_cold_page+0x30/0x130 >> [13397.986614] [] free_hot_cold_page_list+0x4b/0xa0 >> [13397.986623] [] shrink_page_list+0x507/0xa90 >> [13397.986632] [] shrink_inactive_list+0x18d/0x4f0 >> [13397.986640] [] shrink_lruvec+0x5d5/0x7c0 >> [13397.986648] [] shrink_zone+0x97/0x240 >> [13397.986656] [] kswapd+0x509/0x9d0 >> [13397.986666] [] ? mem_cgroup_shrink_node_zone+0x140/0x140 >> [13397.986673] [] kthread+0xc4/0xe0 >> [13397.986680] [] ? kthread_create_on_node+0x180/0x180 >> [13397.986688] [] ret_from_fork+0x7c/0xb0 >> [13397.986695] [] ? kthread_create_on_node+0x180/0x180 >> [13397.986700] Disabling lock debugging due to kernel taint >> [17030.761818] BUG: Bad page state in process kswapd0 pfn:6cd0e >> [17030.761831] page:ffffea0001b34380 count:0 mapcount:-1 mapping: >> (null) index:0x17265b3 >> [17030.761861] flags: 0x100000000000008(uptodate) >> [17030.761881] page dumped because: nonzero mapcount >> [17030.761884] Modules linked in: xfs libcrc32c exportfs firewire_ohci >> kvm firewire_core k10temp crc_itu_t >> [17030.761905] CPU: 3 PID: 664 Comm: kswapd0 Tainted: G B >> 3.19.0-gentoo-suc #1 >> [17030.761910] Hardware name: Gigabyte Technology Co., Ltd. >> GA-MA785GT-UD3H/GA-MA785GT-UD3H, BIOS F8 05/25/2010 >> [17030.761915] ffffffff81c27a04 ffff88013a603938 ffffffff819da02a >> 0000000000000011 >> [17030.761922] ffffea0001b34380 ffff88013a603968 ffffffff819d640f >> ffffea0001b343c0 >> [17030.761929] ffffea0001b34380 0000000000000000 ffffffff81c27a26 >> ffff88013a6039b8 >> [17030.761936] Call Trace: >> [17030.761949] [] dump_stack+0x45/0x57 >> [17030.761979] [] bad_page+0xdb/0xf9 >> [17030.761987] [] free_pages_prepare+0xff/0x160 >> [17030.761995] [] free_hot_cold_page+0x30/0x130 >> [17030.762001] [] free_hot_cold_page_list+0x4b/0xa0 >> [17030.762010] [] shrink_page_list+0x507/0xa90 >> [17030.762019] [] shrink_inactive_list+0x18d/0x4f0 >> [17030.762028] [] shrink_lruvec+0x5d5/0x7c0 >> [17030.762037] [] shrink_zone+0x97/0x240 >> [17030.762045] [] kswapd+0x509/0x9d0 >> [17030.762054] [] ? mem_cgroup_shrink_node_zone+0x140/0x140 >> [17030.762062] [] kthread+0xc4/0xe0 >> [17030.762069] [] ? kthread_create_on_node+0x180/0x180 >> [17030.762077] [] ret_from_fork+0x7c/0xb0 >> [17030.762084] [] ? kthread_create_on_node+0x180/0x180 >> [19295.212650] BUG: Bad page state in process kswapd0 pfn:60a0e >> [19295.212663] page:ffffea0001828380 count:0 mapcount:-1 mapping: >> (null) index:0x34a1449 >> [19295.212693] flags: 0x100000000000008(uptodate) >> [19295.212713] page dumped because: nonzero mapcount >> [19295.212717] Modules linked in: xfs libcrc32c exportfs firewire_ohci >> kvm firewire_core k10temp crc_itu_t >> [19295.212737] CPU: 1 PID: 664 Comm: kswapd0 Tainted: G B >> 3.19.0-gentoo-suc #1 >> [19295.212742] Hardware name: Gigabyte Technology Co., Ltd. >> GA-MA785GT-UD3H/GA-MA785GT-UD3H, BIOS F8 05/25/2010 >> [19295.212747] ffffffff81c27a04 ffff88013a603938 ffffffff819da02a >> 00000000000000bb >> [19295.212754] ffffea0001828380 ffff88013a603968 ffffffff819d640f >> ffffea00018283c0 >> [19295.212761] ffffea0001828380 0000000000000000 ffffffff81c27a26 >> ffff88013a6039b8 >> [19295.212768] Call Trace: >> [19295.212782] [] dump_stack+0x45/0x57 >> [19295.212793] [] bad_page+0xdb/0xf9 >> [19295.212801] [] free_pages_prepare+0xff/0x160 >> [19295.212808] [] free_hot_cold_page+0x30/0x130 >> [19295.212815] [] free_hot_cold_page_list+0x4b/0xa0 >> [19295.212823] [] shrink_page_list+0x507/0xa90 >> [19295.212832] [] shrink_inactive_list+0x18d/0x4f0 >> [19295.212841] [] shrink_lruvec+0x5d5/0x7c0 >> [19295.212849] [] shrink_zone+0x97/0x240 >> [19295.212857] [] kswapd+0x509/0x9d0 >> [19295.212867] [] ? mem_cgroup_shrink_node_zone+0x140/0x140 >> [19295.212874] [] kthread+0xc4/0xe0 >> [19295.212881] [] ? kthread_create_on_node+0x180/0x180 >> [19295.212889] [] ret_from_fork+0x7c/0xb0 >> [19295.212895] [] ? kthread_create_on_node+0x180/0x180 >> [25754.399681] BUG: Bad page state in process kswapd0 pfn:110e06 >> [25754.399694] page:ffffea0004438180 count:0 mapcount:-1 mapping: >> (null) index:0x52f5b87 >> [25754.399723] flags: 0x200000000000008(uptodate) >> [25754.399742] page dumped because: nonzero mapcount >> [25754.399746] Modules linked in: xfs libcrc32c exportfs firewire_ohci >> kvm firewire_core k10temp crc_itu_t >> [25754.399766] CPU: 0 PID: 664 Comm: kswapd0 Tainted: G B >> 3.19.0-gentoo-suc #1 >> [25754.399771] Hardware name: Gigabyte Technology Co., Ltd. >> GA-MA785GT-UD3H/GA-MA785GT-UD3H, BIOS F8 05/25/2010 >> [25754.399776] ffffffff81c27a04 ffff88013a603938 ffffffff819da02a >> 0000000000000089 >> [25754.399783] ffffea0004438180 ffff88013a603968 ffffffff819d640f >> ffffea00044381c0 >> [25754.399790] ffffea0004438180 0000000000000000 ffffffff81c27a26 >> ffff88013a6039b8 >> [25754.399796] Call Trace: >> [25754.399811] [] dump_stack+0x45/0x57 >> [25754.399820] [] bad_page+0xdb/0xf9 >> [25754.399828] [] free_pages_prepare+0xff/0x160 >> [25754.399835] [] free_hot_cold_page+0x30/0x130 >> [25754.399842] [] free_hot_cold_page_list+0x4b/0xa0 >> [25754.399850] [] shrink_page_list+0x507/0xa90 >> [25754.399859] [] shrink_inactive_list+0x18d/0x4f0 >> [25754.399868] [] shrink_lruvec+0x5d5/0x7c0 >> [25754.399876] [] shrink_zone+0x97/0x240 >> [25754.399884] [] kswapd+0x509/0x9d0 >> [25754.399894] [] ? mem_cgroup_shrink_node_zone+0x140/0x140 >> [25754.399901] [] kthread+0xc4/0xe0 >> [25754.399908] [] ? kthread_create_on_node+0x180/0x180 >> [25754.399916] [] ret_from_fork+0x7c/0xb0 >> [25754.399922] [] ? kthread_create_on_node+0x180/0x180 >> [37925.847674] BUG: Bad page state in process kswapd0 pfn:2cd0e >> [37925.847686] page:ffffea0000b34380 count:0 mapcount:-1 mapping: >> (null) index:0x8c1fd03 >> [37925.847716] flags: 0x100000000000008(uptodate) >> [37925.847736] page dumped because: nonzero mapcount >> [37925.847739] Modules linked in: xfs libcrc32c exportfs firewire_ohci >> kvm firewire_core k10temp crc_itu_t >> [37925.847759] CPU: 1 PID: 664 Comm: kswapd0 Tainted: G B >> 3.19.0-gentoo-suc #1 >> [37925.847765] Hardware name: Gigabyte Technology Co., Ltd. >> GA-MA785GT-UD3H/GA-MA785GT-UD3H, BIOS F8 05/25/2010 >> [37925.847769] ffffffff81c27a04 ffff88013a603938 ffffffff819da02a >> 00000000000000a9 >> [37925.847776] ffffea0000b34380 ffff88013a603968 ffffffff819d640f >> ffffea0000b343c0 >> [37925.847783] ffffea0000b34380 0000000000000000 ffffffff81c27a26 >> ffff88013a6039b8 >> [37925.847789] Call Trace: >> [37925.847803] [] dump_stack+0x45/0x57 >> [37925.847813] [] bad_page+0xdb/0xf9 >> [37925.847821] [] free_pages_prepare+0xff/0x160 >> [37925.847847] [] free_hot_cold_page+0x30/0x130 >> [37925.847854] [] free_hot_cold_page_list+0x4b/0xa0 >> [37925.847863] [] shrink_page_list+0x507/0xa90 >> [37925.847872] [] shrink_inactive_list+0x18d/0x4f0 >> [37925.847880] [] shrink_lruvec+0x5d5/0x7c0 >> [37925.847889] [] shrink_zone+0x97/0x240 >> [37925.847897] [] kswapd+0x509/0x9d0 >> [37925.847906] [] ? mem_cgroup_shrink_node_zone+0x140/0x140 >> [37925.847914] [] kthread+0xc4/0xe0 >> [37925.847920] [] ? kthread_create_on_node+0x180/0x180 >> [37925.847929] [] ret_from_fork+0x7c/0xb0 >> [37925.847935] [] ? kthread_create_on_node+0x180/0x180 >> [60015.145582] pickup (26811) used greatest stack depth: 10776 bytes left >> [65101.140582] BUG: Bad page state in process kswapd0 pfn:1ed06 >> [65101.140595] page:ffffea00007b4180 count:0 mapcount:-1 mapping: >> (null) index:0x18160edd >> [65101.140624] flags: 0x100000000000008(uptodate) >> [65101.140644] page dumped because: nonzero mapcount >> [65101.140647] Modules linked in: xfs libcrc32c exportfs firewire_ohci >> kvm firewire_core k10temp crc_itu_t >> [65101.140668] CPU: 3 PID: 664 Comm: kswapd0 Tainted: G B >> 3.19.0-gentoo-suc #1 >> [65101.140673] Hardware name: Gigabyte Technology Co., Ltd. >> GA-MA785GT-UD3H/GA-MA785GT-UD3H, BIOS F8 05/25/2010 >> [65101.140677] ffffffff81c27a04 ffff88013a603938 ffffffff819da02a >> 000000000000008b >> [65101.140685] ffffea00007b4180 ffff88013a603968 ffffffff819d640f >> ffffea00007b41c0 >> [65101.140691] ffffea00007b4180 0000000000000000 ffffffff81c27a26 >> ffff88013a6039b8 >> [65101.140697] Call Trace: >> [65101.140712] [] dump_stack+0x45/0x57 >> [65101.140721] [] bad_page+0xdb/0xf9 >> [65101.140729] [] free_pages_prepare+0xff/0x160 >> [65101.140737] [] free_hot_cold_page+0x30/0x130 >> [65101.140743] [] free_hot_cold_page_list+0x4b/0xa0 >> [65101.140752] [] shrink_page_list+0x507/0xa90 >> [65101.140761] [] shrink_inactive_list+0x18d/0x4f0 >> [65101.140769] [] shrink_lruvec+0x5d5/0x7c0 >> [65101.140778] [] shrink_zone+0x97/0x240 >> [65101.140786] [] kswapd+0x509/0x9d0 >> [65101.140796] [] ? mem_cgroup_shrink_node_zone+0x140/0x140 >> [65101.140803] [] kthread+0xc4/0xe0 >> [65101.140810] [] ? kthread_create_on_node+0x180/0x180 >> [65101.140818] [] ret_from_fork+0x7c/0xb0 >> [65101.140825] [] ? kthread_create_on_node+0x180/0x180 >> >> is there something i can do to diagnose it more? >> >> Thank you for your help. >> >> Pavol >> -- >> 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/ >> > -- 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