Return-path: Received: from mx3-phx2.redhat.com ([209.132.183.24] helo=mx01.colomx.prod.int.phx2.redhat.com) by bombadil.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1OrAiK-0003sZ-H9 for kexec@lists.infradead.org; Thu, 02 Sep 2010 14:24:31 +0000 Date: Thu, 2 Sep 2010 10:23:56 -0400 (EDT) From: CAI Qian Message-ID: <2091492614.1926861283437436205.JavaMail.root@zmail06.collab.prod.int.phx2.redhat.com> In-Reply-To: <201009021420.19914.arnd@arndb.de> Subject: Re: fix /proc/vmcore seek MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Arnd Bergmann Cc: Ken'ichi Ohmichi , fweisbec@gmail.com, mingo@elte.hu, kexec , viro@zeniv.linux.org.uk, jkacur@redhat.com, akpm@linux-foundation.org, tglx@linutronix.de, kamezawa hiroyu ----- "Arnd Bergmann" wrote: > Commit 73296bc611 "procfs: Use generic_file_llseek in /proc/vmcore" > broke > seeking on /proc/vmcore. This changes it back to use default_llseek > in order to restore the original behaviour. > > Signed-off-by: Arnd Bergmann > Cc: Frederic Weisbecker > Cc: stable@kernel.org > > --- > On Thursday 02 September 2010, CAI Qian wrote: > > > > Ken'ichi, it turned out this kernel patch caused makedumpfile > failure below. > > I am not sure if this is a kernel bug or makedumpfile needs to catch > up with > > the change. > > It doesn't matter who is correct here. A user program regressed > because of a > kernel change, so we need to fix the kernel. Thanks for the report! > > Please try this patch. Confirmed makedumpfile is working again after applied this patch. > --- a/fs/proc/vmcore.c > +++ b/fs/proc/vmcore.c > @@ -163,7 +163,7 @@ static ssize_t read_vmcore(struct file *file, char > __user *buffer, > > static const struct file_operations proc_vmcore_operations = { > .read = read_vmcore, > - .llseek = generic_file_llseek, > + .llseek = default_llseek, > }; > > static struct vmcore* __init get_new_element(void) > > _______________________________________________ > kexec mailing list > kexec@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/kexec _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec