Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933822AbbHKImV (ORCPT ); Tue, 11 Aug 2015 04:42:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42905 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933763AbbHKImR (ORCPT ); Tue, 11 Aug 2015 04:42:17 -0400 Date: Tue, 11 Aug 2015 16:42:12 +0800 From: Baoquan He To: Minfei Huang Cc: Andrew Morton , ebiederm@xmission.com, vgoyal@redhat.com, dyoung@redhat.com, lisa.mitchell@hp.com, tatsu@ab.jp.nec.com, seiji.aguchi.tr@hitachi.com, linux-kernel@vger.kernel.org, kexec@lists.infradead.org Subject: Re: [Patch v2] align crash_notes allocation to make it be inside one physical page Message-ID: <20150811084212.GD9748@dhcp-17-102.nay.redhat.com> References: <1438606243-13064-1-git-send-email-bhe@redhat.com> <20150803150417.b3536887b1ad86ae04c405b7@linux-foundation.org> <20150811063333.GB9748@dhcp-17-102.nay.redhat.com> <20150811080108.GA2404@dhcp-128-25.nay.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150811080108.GA2404@dhcp-128-25.nay.redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1254 Lines: 36 Hi, On 08/11/15 at 04:01pm, Minfei Huang wrote: > Baoquan. > > If the size of notes never be exceeded to PAGE_SIZE, I think we can > revert below patch, since the situation which describes in patch does > not happen. > > commit 38dfac843cb6d7be1874888839817404a15a6b3c > Author: Greg Pearson > Date: Mon Feb 10 14:25:36 2014 -0800 > > vmcore: prevent PT_NOTE p_memsz overflow during header update > > What do you think about this? Yeah, I am fine with this reverting. If people all agree with this I can post patch to revert this. In fact I am eagerer to revert below commit since it's a littble bit confusing after crash_notes crossing 2 pages bug is fixed. Below commit is a work around fix , but it's too much. I am willing to hear people's idea. commit 34b47764297130b21aaeb4cc6119bb811814b8e3 Author: WANG Chao Date: Tue Feb 17 13:46:01 2015 -0800 vmcore: fix PT_NOTE n_namesz, n_descsz overflow issue Thanks Baoquan -- 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/