eb68360
Bugzilla: 1110968
eb68360
Upstream-status: Sent for 3.16                                                                                                                                                                                                                                                               
eb68360
Delivered-To: jwboyer@gmail.com
eb68360
Received: by 10.76.6.212 with SMTP id d20csp498917oaa;
eb68360
        Sat, 21 Jun 2014 07:32:08 -0700 (PDT)
eb68360
X-Received: by 10.68.222.196 with SMTP id qo4mr13568182pbc.14.1403361127771;
eb68360
        Sat, 21 Jun 2014 07:32:07 -0700 (PDT)
eb68360
Return-Path: <luto@amacapital.net>
eb68360
Received: from bastion.fedoraproject.org (bastion02.fedoraproject.org. [209.132.181.3])
eb68360
        by mx.google.com with ESMTP id lc8si14177597pab.180.2014.06.21.07.32.07
eb68360
        for <jwboyer@gmail.com>;
eb68360
        Sat, 21 Jun 2014 07:32:07 -0700 (PDT)
eb68360
Received-SPF: softfail (google.com: domain of transitioning luto@amacapital.net does not designate 209.132.181.3 as permitted sender) client-ip=209.132.181.3;
eb68360
Authentication-Results: mx.google.com;
eb68360
       spf=softfail (google.com: domain of transitioning luto@amacapital.net does not designate 209.132.181.3 as permitted sender) smtp.mail=luto@amacapital.net
eb68360
Received: by bastion02.phx2.fedoraproject.org (Postfix)
eb68360
	id 168B1409CE; Sat, 21 Jun 2014 14:32:07 +0000 (UTC)
eb68360
Delivered-To: jwboyer@fedoraproject.org
eb68360
Received: from mx1.redhat.com (ext-mx13.extmail.prod.ext.phx2.redhat.com [10.5.110.18])
eb68360
	by bastion02.phx2.fedoraproject.org (Postfix) with ESMTP id D0C2F409C7
eb68360
	for <jwboyer@fedoraproject.org>; Sat, 21 Jun 2014 14:32:06 +0000 (UTC)
eb68360
Received: from mail-pd0-f176.google.com (mail-pd0-f176.google.com [209.85.192.176])
eb68360
	by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s5LEW4FM005994
eb68360
	(version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=FAIL)
eb68360
	for <jwboyer@fedoraproject.org>; Sat, 21 Jun 2014 10:32:05 -0400
eb68360
Received: by mail-pd0-f176.google.com with SMTP id ft15so3955970pdb.7
eb68360
        for <jwboyer@fedoraproject.org>; Sat, 21 Jun 2014 07:32:04 -0700 (PDT)
eb68360
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
eb68360
        d=1e100.net; s=20130820;
eb68360
        h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
eb68360
         :references;
eb68360
        bh=9ojFh7kYLbjyUNQqXEB1a+XYU5MXkJE3dfv8VGqmp7U=;
eb68360
        b=R90lfJ9+LPLahfLiaskJdqINOIulosFA5kTRA6zFncXdehLXlO1/bgzCbVSBQp0Zda
eb68360
         jH2JtoZFUe+cfg5kQTtnVhE+H5Z+J6zTGQy3vmlloZh5QOxVDtHZU85FKZWL4ME/teZD
eb68360
         4dHDVOmlO9zXrhRKLs6jdxQnKCJNCovWf5DVPe51OuwKKCwm49VmLTHaYkCox+vsVaGk
eb68360
         J5FG3Q7yxRpGwrhMvI3yWuhj5hxaAq+R+B7pk7xY1xrekBoah2W983/ZXUVYWcclOoi+
eb68360
         pw4ntIfVczLCLffVR4UmV4/Tf4SU/pzUHAwKoDzVG8E1JP4oxtBquCPMfm19ZM0lwStV
eb68360
         wgpw==
eb68360
X-Gm-Message-State: ALoCoQlE1XpTJdEnv/MtB0QmbA8XP2ta23AV4hVoUU4182Z6n5xs9NiTKRJfyIbepTPOiKzLFr/I
eb68360
X-Received: by 10.68.132.42 with SMTP id or10mr13559986pbb.80.1403361124560;
eb68360
        Sat, 21 Jun 2014 07:32:04 -0700 (PDT)
eb68360
Received: from localhost (pool-108-13-237-90.lsanca.fios.verizon.net. [108.13.237.90])
eb68360
        by mx.google.com with ESMTPSA id ak1sm18452139pbc.58.2014.06.21.07.32.02
eb68360
        for <multiple recipients>
eb68360
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
eb68360
        Sat, 21 Jun 2014 07:32:03 -0700 (PDT)
eb68360
From: Andy Lutomirski <luto@amacapital.net>
eb68360
To: Josh Boyer <jwboyer@fedoraproject.org>, "H. Peter Anvin" <hpa@zytor.com>
eb68360
Cc: "Linux-Kernel@Vger. Kernel. Org" <linux-kernel@vger.kernel.org>,
eb68360
        Andy Lutomirski <luto@amacapital.net>
eb68360
Subject: [PATCH] x86_32,signal: Fix vdso rt_sigreturn
eb68360
Date: Sat, 21 Jun 2014 07:31:55 -0700
eb68360
Message-Id: <1eb40ad923acde2e18357ef2832867432e70ac42.1403361010.git.luto@amacapital.net>
eb68360
X-Mailer: git-send-email 1.9.3
eb68360
In-Reply-To: <CA+5PVA61wwmnstiBdDemufGvXvSu4RL3WHds3NSstH-rVx7tYg@mail.gmail.com>
eb68360
References: <CA+5PVA61wwmnstiBdDemufGvXvSu4RL3WHds3NSstH-rVx7tYg@mail.gmail.com>
eb68360
X-RedHat-Spam-Score: -2.011  (BAYES_00,DCC_REPUT_13_19,RCVD_IN_DNSWL_NONE,SPF_PASS)
eb68360
X-Scanned-By: MIMEDefang 2.68 on 10.5.110.18
eb68360
eb68360
This commit:
eb68360
eb68360
    commit 6f121e548f83674ab4920a4e60afb58d4f61b829
eb68360
    Author: Andy Lutomirski <luto@amacapital.net>
eb68360
    Date:   Mon May 5 12:19:34 2014 -0700
eb68360
eb68360
        x86, vdso: Reimplement vdso.so preparation in build-time C
eb68360
eb68360
Contained this obvious typo:
eb68360
eb68360
-               restorer = VDSO32_SYMBOL(current->mm->context.vdso, rt_sigreturn);
eb68360
+               restorer = current->mm->context.vdso +
eb68360
+                       selected_vdso32->sym___kernel_sigreturn;
eb68360
eb68360
Note the missing 'rt_' in the new code.  Fix it.
eb68360
eb68360
Signed-off-by: Andy Lutomirski <luto@amacapital.net>
eb68360
---
eb68360
eb68360
Compile-tested only.  I bet that someone will test it here far more quickly
eb68360
than I can figure out how to test it:
eb68360
eb68360
https://bugzilla.redhat.com/show_bug.cgi?id=1110968
eb68360
eb68360
 arch/x86/kernel/signal.c | 2 +-
eb68360
 1 file changed, 1 insertion(+), 1 deletion(-)
eb68360
eb68360
diff --git a/arch/x86/kernel/signal.c b/arch/x86/kernel/signal.c
eb68360
index a0da58d..2851d63 100644
eb68360
--- a/arch/x86/kernel/signal.c
eb68360
+++ b/arch/x86/kernel/signal.c
eb68360
@@ -363,7 +363,7 @@ static int __setup_rt_frame(int sig, struct ksignal *ksig,
eb68360
 
eb68360
 		/* Set up to return from userspace.  */
eb68360
 		restorer = current->mm->context.vdso +
eb68360
-			selected_vdso32->sym___kernel_sigreturn;
eb68360
+			selected_vdso32->sym___kernel_rt_sigreturn;
eb68360
 		if (ksig->ka.sa.sa_flags & SA_RESTORER)
eb68360
 			restorer = ksig->ka.sa.sa_restorer;
eb68360
 		put_user_ex(restorer, &frame->pretcode);
eb68360
-- 
eb68360
1.9.3
eb68360