lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 14 Dec 2012 10:14:42 +0800 From: Xishi Qiu <qiuxishi@...wei.com> To: Xishi Qiu <qiuxishi@...wei.com>, WuJianguo <wujianguo@...wei.com>, Liujiang <jiang.liu@...wei.com>, Simon Jeons <simon.jeons@...il.com>, Andrew Morton <akpm@...ux-foundation.org>, Borislav Petkov <bp@...en8.de>, Andi Kleen <andi@...stfloor.org>, Fengguang Wu <fengguang.wu@...el.com>, Wanpeng Li <liwanp@...ux.vnet.ibm.com>, <n-horiguchi@...jp.nec.com>, <linux-mm@...ck.org>, <linux-kernel@...r.kernel.org> Subject: [PATCH V4 0/3 RESEND] MCE: fix an error of mce_bad_pages statistics $ echo paddr > /sys/devices/system/memory/soft_offline_page to offline a *free* page, the value of mce_bad_pages will be added, and the page is set HWPoison flag, but it is still managed by page buddy alocator. $ cat /proc/meminfo | grep HardwareCorrupted shows the value. If we offline the same page, the value of mce_bad_pages will be added *again*, this means the value is incorrect now. Assume the page is still free during this short time. soft_offline_page() get_any_page() "else if (is_free_buddy_page(p))" branch return 0 "goto done"; "atomic_long_add(1, &mce_bad_pages);" Changelog: V4: -use num_poisoned_pages instead of mce_bad_pages -remove page lock V3: -add page lock when set HWPoison flag -adjust the function structure V2 and V1: -fix the error Xishi Qiu (3): move-poisoned-page-check-at-the-beginning-of-the-function fix-function-structure use-num_poisoned_pages-instead-of-mce_bad_pages fs/proc/meminfo.c | 2 +- include/linux/mm.h | 2 +- mm/memory-failure.c | 76 ++++++++++++++++++++++++++------------------------- 3 files changed, 41 insertions(+), 39 deletions(-) . -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists