From: Thomas Gleixner <tglx@linutronix.de>
To: Pavel Emelyanov <xemul@openvz.org>
Cc: Frans Pop <elendil@planet.nl>, linux-kernel@vger.kernel.org
Subject: Re: [2.6.25-rc3 regression] sysctl table check failed: /kernel/vsyscall64
Date: Wed, 27 Feb 2008 18:26:08 +0100 (CET) [thread overview]
Message-ID: <alpine.LFD.1.00.0802271823500.7583@apollo.tec.linutronix.de> (raw)
In-Reply-To: <47C581AD.60603@openvz.org>
On Wed, 27 Feb 2008, Pavel Emelyanov wrote:
> Frans Pop wrote:
> > Just tried 2.6.25-rc3 and got the error below. Boot continued normally.
> > Error was not present in rc2.
> >
> > System is x86_64, dual core Pentium D, Debian unstable.
> >
> > Cheers,
> > FJP
> >
> > P.S. Yes, I do have VirtualBox working under 2.6.25 now ;-)
>
> That's due to commit ce28b9 x86: fix vsyscall wreckage
>
> The proc_handler initialization is simply dropped for this table,
> but AFAIS from the commit comment this was done simply to disable
> the vsyscall_gtod_data.sysctl_enabled tuning. Did I miss something?
No. I noticed my stupidity already. Patch below is queued for Linus.
Thanks,
tglx
------------>
Subject: x86: restore vsyscall64 prochandler
From: Thomas Gleixner <tglx@linutronix.de>
Date: Wed, 27 Feb 2008 09:39:52 +0100
commit ce28b9864b853803320c3f1d8de1b81aa4120b14
x86: fix vsyscall wreckage
removed the prochandler completely. This triggers:
sysctl table check failed: /kernel/vsyscall64 No proc_handler
Restore the sane part of the proc handler.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
arch/x86/kernel/vsyscall_64.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
Index: linux-2.6/arch/x86/kernel/vsyscall_64.c
===================================================================
--- linux-2.6.orig/arch/x86/kernel/vsyscall_64.c
+++ linux-2.6/arch/x86/kernel/vsyscall_64.c
@@ -222,10 +222,19 @@ long __vsyscall(3) venosys_1(void)
}
#ifdef CONFIG_SYSCTL
+
+static int
+vsyscall_sysctl_change(ctl_table *ctl, int write, struct file * filp,
+ void __user *buffer, size_t *lenp, loff_t *ppos)
+{
+ return proc_dointvec(ctl, write, filp, buffer, lenp, ppos);
+}
+
static ctl_table kernel_table2[] = {
{ .procname = "vsyscall64",
.data = &vsyscall_gtod_data.sysctl_enabled, .maxlen = sizeof(int),
- .mode = 0644 },
+ .mode = 0644,
+ .proc_handler = vsyscall_sysctl_change },
{}
};
prev parent reply other threads:[~2008-02-27 17:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-27 15:09 [2.6.25-rc3 regression] sysctl table check failed: /kernel/vsyscall64 Frans Pop
2008-02-27 15:18 ` Ingo Molnar
2008-02-27 15:57 ` Frans Pop
2008-02-27 15:28 ` Pavel Emelyanov
2008-02-27 17:26 ` Thomas Gleixner [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LFD.1.00.0802271823500.7583@apollo.tec.linutronix.de \
--to=tglx@linutronix.de \
--cc=elendil@planet.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=xemul@openvz.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox