Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1346387
| Path | csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Atsushi Kumagai <ats-kumagai@wm.jp.nec.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/2] kexec: export OFFSET(page.compound_head) to find out compound tail page |
| Date | Tue, 01 Mar 2016 07:20:01 +0100 |
| Message-ID | <r7LP3-5ml-13@gated-at.bofh.it> (permalink) |
| X-Original-To | "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "kexec@lists.infradead.org" <kexec@lists.infradead.org> |
| Thread-Topic | [PATCH 2/2] kexec: export OFFSET(page.compound_head) to find out compound tail page |
| Thread-Index | AdFzf09DK22rFP50Q2On6BaoqImfUw== |
| Accept-Language | ja-JP, en-US |
| Content-Language | ja-JP |
| X-Originating-IP | [10.21.220.163] |
| Content-Type | text/plain; charset="iso-2022-jp" |
| Content-Transfer-Encoding | 8BIT |
| MIME-Version | 1.0 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 28 |
| Organization | linux.* mail to news gateway |
| X-Original-Date | Tue, 1 Mar 2016 06:14:38 +0000 |
| X-Original-Message-ID | <0910DD04CBD6DE4193FCF86B9C00BE9701E25FD3@BPXM01GP.gisp.nec.co.jp> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1346387 |
Show key headers only | View raw
PageAnon() always look at head page to check PAGE_MAPPING_ANON and tail page's page->mapping has just a poisoned data since commit 1c290f642101e6. If makedumpfile checks page->mapping of an compound tail page to distinguish anonymous page as usual, it must fail in newer kernel. So it's necessary to export OFFSET(page.compound_head) to avoid checking compound tail pages. Signed-off-by: Atsushi Kumagai <ats-kumagai@wm.jp.nec.com> --- kernel/kexec_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/kexec_core.c b/kernel/kexec_core.c index 7c0b61d..4726999 100644 --- a/kernel/kexec_core.c +++ b/kernel/kexec_core.c @@ -1415,6 +1415,7 @@ static int __init crash_save_vmcoreinfo_init(void) VMCOREINFO_OFFSET(page, private); VMCOREINFO_OFFSET(page, compound_dtor); VMCOREINFO_OFFSET(page, compound_order); + VMCOREINFO_OFFSET(page, compound_head); VMCOREINFO_OFFSET(pglist_data, node_zones); VMCOREINFO_OFFSET(pglist_data, nr_zones); #ifdef CONFIG_FLAT_NODE_MEM_MAP -- 2.7.2
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH 2/2] kexec: export OFFSET(page.compound_head) to find out compound tail page Atsushi Kumagai <ats-kumagai@wm.jp.nec.com> - 2016-03-01 07:20 +0100
csiph-web