mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86: Fix the symbol versions on the 32-bit vDSO
@ 2014-03-29 20:15 Andy Lutomirski
  2014-03-30  6:33 ` Stefani Seibold
  2014-03-30 17:28 ` [tip:x86/vdso] x86, vdso: " tip-bot for Andy Lutomirski
  0 siblings, 2 replies; 7+ messages in thread
From: Andy Lutomirski @ 2014-03-29 20:15 UTC (permalink / raw)
  To: H. Peter Anvin, X86 ML; +Cc: Stefani Seibold, linux-kernel, Andy Lutomirski

The new symbols provide the same API as the 64-bit variants, so they
should have the same symbol version name.  This can't break
userspace, since these symbols are new for 32-bit Linux.

Signed-off-by: Andy Lutomirski <luto@amacapital.net>
---
 arch/x86/vdso/vdso32/vdso32.lds.S | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/arch/x86/vdso/vdso32/vdso32.lds.S b/arch/x86/vdso/vdso32/vdso32.lds.S
index 28c4607..aadb8b9 100644
--- a/arch/x86/vdso/vdso32/vdso32.lds.S
+++ b/arch/x86/vdso/vdso32/vdso32.lds.S
@@ -23,14 +23,18 @@ ENTRY(__kernel_vsyscall);
  */
 VERSION
 {
+	LINUX_2.6 {
+	global:
+		__vdso_clock_gettime;
+		__vdso_gettimeofday;
+		__vdso_time;
+	};
+
 	LINUX_2.5 {
 	global:
 		__kernel_vsyscall;
 		__kernel_sigreturn;
 		__kernel_rt_sigreturn;
-		__vdso_clock_gettime;
-		__vdso_gettimeofday;
-		__vdso_time;
 	local: *;
 	};
 }
-- 
1.9.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] x86: Fix the symbol versions on the 32-bit vDSO
  2014-03-29 20:15 [PATCH] x86: Fix the symbol versions on the 32-bit vDSO Andy Lutomirski
@ 2014-03-30  6:33 ` Stefani Seibold
  2014-03-30  6:49   ` Andy Lutomirski
  2014-03-30 16:59   ` H. Peter Anvin
  2014-03-30 17:28 ` [tip:x86/vdso] x86, vdso: " tip-bot for Andy Lutomirski
  1 sibling, 2 replies; 7+ messages in thread
From: Stefani Seibold @ 2014-03-30  6:33 UTC (permalink / raw)
  To: Andy Lutomirski; +Cc: H. Peter Anvin, X86 ML, linux-kernel

Am Samstag, den 29.03.2014, 13:15 -0700 schrieb Andy Lutomirski:
> The new symbols provide the same API as the 64-bit variants, so they
> should have the same symbol version name.  This can't break
> userspace, since these symbols are new for 32-bit Linux.
> 

This breaks my glibc patch... What is the benefit for doing this in that
way?

> Signed-off-by: Andy Lutomirski <luto@amacapital.net>
> ---
>  arch/x86/vdso/vdso32/vdso32.lds.S | 10 +++++++---
>  1 file changed, 7 insertions(+), 3 deletions(-)
> 
> diff --git a/arch/x86/vdso/vdso32/vdso32.lds.S b/arch/x86/vdso/vdso32/vdso32.lds.S
> index 28c4607..aadb8b9 100644
> --- a/arch/x86/vdso/vdso32/vdso32.lds.S
> +++ b/arch/x86/vdso/vdso32/vdso32.lds.S
> @@ -23,14 +23,18 @@ ENTRY(__kernel_vsyscall);
>   */
>  VERSION
>  {
> +	LINUX_2.6 {
> +	global:
> +		__vdso_clock_gettime;
> +		__vdso_gettimeofday;
> +		__vdso_time;
> +	};
> +
>  	LINUX_2.5 {
>  	global:
>  		__kernel_vsyscall;
>  		__kernel_sigreturn;
>  		__kernel_rt_sigreturn;
> -		__vdso_clock_gettime;
> -		__vdso_gettimeofday;
> -		__vdso_time;
>  	local: *;
>  	};
>  }



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] x86: Fix the symbol versions on the 32-bit vDSO
  2014-03-30  6:33 ` Stefani Seibold
@ 2014-03-30  6:49   ` Andy Lutomirski
  2014-03-30 16:59   ` H. Peter Anvin
  1 sibling, 0 replies; 7+ messages in thread
From: Andy Lutomirski @ 2014-03-30  6:49 UTC (permalink / raw)
  To: Stefani Seibold; +Cc: H. Peter Anvin, X86 ML, linux-kernel

On Sat, Mar 29, 2014 at 11:33 PM, Stefani Seibold <stefani@seibold.net> wrote:
> Am Samstag, den 29.03.2014, 13:15 -0700 schrieb Andy Lutomirski:
>> The new symbols provide the same API as the 64-bit variants, so they
>> should have the same symbol version name.  This can't break
>> userspace, since these symbols are new for 32-bit Linux.
>>
>
> This breaks my glibc patch... What is the benefit for doing this in that
> way?

The functions do the same thing as they do in the 64-bit and x32
cases, so the versions should be the same.

>
>> Signed-off-by: Andy Lutomirski <luto@amacapital.net>
>> ---
>>  arch/x86/vdso/vdso32/vdso32.lds.S | 10 +++++++---
>>  1 file changed, 7 insertions(+), 3 deletions(-)
>>
>> diff --git a/arch/x86/vdso/vdso32/vdso32.lds.S b/arch/x86/vdso/vdso32/vdso32.lds.S
>> index 28c4607..aadb8b9 100644
>> --- a/arch/x86/vdso/vdso32/vdso32.lds.S
>> +++ b/arch/x86/vdso/vdso32/vdso32.lds.S
>> @@ -23,14 +23,18 @@ ENTRY(__kernel_vsyscall);
>>   */
>>  VERSION
>>  {
>> +     LINUX_2.6 {
>> +     global:
>> +             __vdso_clock_gettime;
>> +             __vdso_gettimeofday;
>> +             __vdso_time;
>> +     };
>> +
>>       LINUX_2.5 {
>>       global:
>>               __kernel_vsyscall;
>>               __kernel_sigreturn;
>>               __kernel_rt_sigreturn;
>> -             __vdso_clock_gettime;
>> -             __vdso_gettimeofday;
>> -             __vdso_time;
>>       local: *;
>>       };
>>  }
>
>



-- 
Andy Lutomirski
AMA Capital Management, LLC

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] x86: Fix the symbol versions on the 32-bit vDSO
  2014-03-30  6:33 ` Stefani Seibold
  2014-03-30  6:49   ` Andy Lutomirski
@ 2014-03-30 16:59   ` H. Peter Anvin
  2014-03-30 19:00     ` Stefani Seibold
  1 sibling, 1 reply; 7+ messages in thread
From: H. Peter Anvin @ 2014-03-30 16:59 UTC (permalink / raw)
  To: Stefani Seibold, Andy Lutomirski; +Cc: X86 ML, linux-kernel

Has your glibc patch been accepted upstream yet? I'm assuming not, in which case this is a legitimate patch.

On March 29, 2014 11:33:37 PM PDT, Stefani Seibold <stefani@seibold.net> wrote:
>Am Samstag, den 29.03.2014, 13:15 -0700 schrieb Andy Lutomirski:
>> The new symbols provide the same API as the 64-bit variants, so they
>> should have the same symbol version name.  This can't break
>> userspace, since these symbols are new for 32-bit Linux.
>> 
>
>This breaks my glibc patch... What is the benefit for doing this in
>that
>way?
>
>> Signed-off-by: Andy Lutomirski <luto@amacapital.net>
>> ---
>>  arch/x86/vdso/vdso32/vdso32.lds.S | 10 +++++++---
>>  1 file changed, 7 insertions(+), 3 deletions(-)
>> 
>> diff --git a/arch/x86/vdso/vdso32/vdso32.lds.S
>b/arch/x86/vdso/vdso32/vdso32.lds.S
>> index 28c4607..aadb8b9 100644
>> --- a/arch/x86/vdso/vdso32/vdso32.lds.S
>> +++ b/arch/x86/vdso/vdso32/vdso32.lds.S
>> @@ -23,14 +23,18 @@ ENTRY(__kernel_vsyscall);
>>   */
>>  VERSION
>>  {
>> +	LINUX_2.6 {
>> +	global:
>> +		__vdso_clock_gettime;
>> +		__vdso_gettimeofday;
>> +		__vdso_time;
>> +	};
>> +
>>  	LINUX_2.5 {
>>  	global:
>>  		__kernel_vsyscall;
>>  		__kernel_sigreturn;
>>  		__kernel_rt_sigreturn;
>> -		__vdso_clock_gettime;
>> -		__vdso_gettimeofday;
>> -		__vdso_time;
>>  	local: *;
>>  	};
>>  }

-- 
Sent from my mobile phone.  Please pardon brevity and lack of formatting.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [tip:x86/vdso] x86, vdso: Fix the symbol versions on the 32-bit vDSO
  2014-03-29 20:15 [PATCH] x86: Fix the symbol versions on the 32-bit vDSO Andy Lutomirski
  2014-03-30  6:33 ` Stefani Seibold
@ 2014-03-30 17:28 ` tip-bot for Andy Lutomirski
  1 sibling, 0 replies; 7+ messages in thread
From: tip-bot for Andy Lutomirski @ 2014-03-30 17:28 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: linux-kernel, luto, hpa, mingo, stefani, tglx

Commit-ID:  37c975545ec63320789962bf307f000f08fabd48
Gitweb:     http://git.kernel.org/tip/37c975545ec63320789962bf307f000f08fabd48
Author:     Andy Lutomirski <luto@amacapital.net>
AuthorDate: Sat, 29 Mar 2014 13:15:35 -0700
Committer:  H. Peter Anvin <hpa@zytor.com>
CommitDate: Sun, 30 Mar 2014 10:08:38 -0700

x86, vdso: Fix the symbol versions on the 32-bit vDSO

The new symbols provide the same API as the 64-bit variants, so they
should have the same symbol version name.  This can't break
userspace, since these symbols are new for 32-bit Linux.

Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Cc: Stefani Seibold <stefani@seibold.net>
Link: http://lkml.kernel.org/r/0a869bce03d25619565b1eee7d69a4fd15fd203a.1396124118.git.luto@amacapital.net
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
---
 arch/x86/vdso/vdso32/vdso32.lds.S | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/arch/x86/vdso/vdso32/vdso32.lds.S b/arch/x86/vdso/vdso32/vdso32.lds.S
index 28c4607..aadb8b9 100644
--- a/arch/x86/vdso/vdso32/vdso32.lds.S
+++ b/arch/x86/vdso/vdso32/vdso32.lds.S
@@ -23,14 +23,18 @@ ENTRY(__kernel_vsyscall);
  */
 VERSION
 {
+	LINUX_2.6 {
+	global:
+		__vdso_clock_gettime;
+		__vdso_gettimeofday;
+		__vdso_time;
+	};
+
 	LINUX_2.5 {
 	global:
 		__kernel_vsyscall;
 		__kernel_sigreturn;
 		__kernel_rt_sigreturn;
-		__vdso_clock_gettime;
-		__vdso_gettimeofday;
-		__vdso_time;
 	local: *;
 	};
 }

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] x86: Fix the symbol versions on the 32-bit vDSO
  2014-03-30 16:59   ` H. Peter Anvin
@ 2014-03-30 19:00     ` Stefani Seibold
  2014-03-30 19:09       ` H. Peter Anvin
  0 siblings, 1 reply; 7+ messages in thread
From: Stefani Seibold @ 2014-03-30 19:00 UTC (permalink / raw)
  To: H. Peter Anvin; +Cc: Andy Lutomirski, X86 ML, linux-kernel

I think it is in review. I still wait for the confirmation of my assign
form.

Am Sonntag, den 30.03.2014, 09:59 -0700 schrieb H. Peter Anvin:
> Has your glibc patch been accepted upstream yet? I'm assuming not, in which case this is a legitimate patch.
> 
> On March 29, 2014 11:33:37 PM PDT, Stefani Seibold <stefani@seibold.net> wrote:
> >Am Samstag, den 29.03.2014, 13:15 -0700 schrieb Andy Lutomirski:
> >> The new symbols provide the same API as the 64-bit variants, so they
> >> should have the same symbol version name.  This can't break
> >> userspace, since these symbols are new for 32-bit Linux.
> >> 
> >
> >This breaks my glibc patch... What is the benefit for doing this in
> >that
> >way?
> >
> >> Signed-off-by: Andy Lutomirski <luto@amacapital.net>
> >> ---
> >>  arch/x86/vdso/vdso32/vdso32.lds.S | 10 +++++++---
> >>  1 file changed, 7 insertions(+), 3 deletions(-)
> >> 
> >> diff --git a/arch/x86/vdso/vdso32/vdso32.lds.S
> >b/arch/x86/vdso/vdso32/vdso32.lds.S
> >> index 28c4607..aadb8b9 100644
> >> --- a/arch/x86/vdso/vdso32/vdso32.lds.S
> >> +++ b/arch/x86/vdso/vdso32/vdso32.lds.S
> >> @@ -23,14 +23,18 @@ ENTRY(__kernel_vsyscall);
> >>   */
> >>  VERSION
> >>  {
> >> +	LINUX_2.6 {
> >> +	global:
> >> +		__vdso_clock_gettime;
> >> +		__vdso_gettimeofday;
> >> +		__vdso_time;
> >> +	};
> >> +
> >>  	LINUX_2.5 {
> >>  	global:
> >>  		__kernel_vsyscall;
> >>  		__kernel_sigreturn;
> >>  		__kernel_rt_sigreturn;
> >> -		__vdso_clock_gettime;
> >> -		__vdso_gettimeofday;
> >> -		__vdso_time;
> >>  	local: *;
> >>  	};
> >>  }
> 



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] x86: Fix the symbol versions on the 32-bit vDSO
  2014-03-30 19:00     ` Stefani Seibold
@ 2014-03-30 19:09       ` H. Peter Anvin
  0 siblings, 0 replies; 7+ messages in thread
From: H. Peter Anvin @ 2014-03-30 19:09 UTC (permalink / raw)
  To: Stefani Seibold; +Cc: Andy Lutomirski, X86 ML, linux-kernel

Well, I applied the patch.  This is not ABI yet and Andy is right it makes more sense.

On March 30, 2014 12:00:40 PM PDT, Stefani Seibold <stefani@seibold.net> wrote:
>I think it is in review. I still wait for the confirmation of my assign
>form.
>
>Am Sonntag, den 30.03.2014, 09:59 -0700 schrieb H. Peter Anvin:
>> Has your glibc patch been accepted upstream yet? I'm assuming not, in
>which case this is a legitimate patch.
>> 
>> On March 29, 2014 11:33:37 PM PDT, Stefani Seibold
><stefani@seibold.net> wrote:
>> >Am Samstag, den 29.03.2014, 13:15 -0700 schrieb Andy Lutomirski:
>> >> The new symbols provide the same API as the 64-bit variants, so
>they
>> >> should have the same symbol version name.  This can't break
>> >> userspace, since these symbols are new for 32-bit Linux.
>> >> 
>> >
>> >This breaks my glibc patch... What is the benefit for doing this in
>> >that
>> >way?
>> >
>> >> Signed-off-by: Andy Lutomirski <luto@amacapital.net>
>> >> ---
>> >>  arch/x86/vdso/vdso32/vdso32.lds.S | 10 +++++++---
>> >>  1 file changed, 7 insertions(+), 3 deletions(-)
>> >> 
>> >> diff --git a/arch/x86/vdso/vdso32/vdso32.lds.S
>> >b/arch/x86/vdso/vdso32/vdso32.lds.S
>> >> index 28c4607..aadb8b9 100644
>> >> --- a/arch/x86/vdso/vdso32/vdso32.lds.S
>> >> +++ b/arch/x86/vdso/vdso32/vdso32.lds.S
>> >> @@ -23,14 +23,18 @@ ENTRY(__kernel_vsyscall);
>> >>   */
>> >>  VERSION
>> >>  {
>> >> +	LINUX_2.6 {
>> >> +	global:
>> >> +		__vdso_clock_gettime;
>> >> +		__vdso_gettimeofday;
>> >> +		__vdso_time;
>> >> +	};
>> >> +
>> >>  	LINUX_2.5 {
>> >>  	global:
>> >>  		__kernel_vsyscall;
>> >>  		__kernel_sigreturn;
>> >>  		__kernel_rt_sigreturn;
>> >> -		__vdso_clock_gettime;
>> >> -		__vdso_gettimeofday;
>> >> -		__vdso_time;
>> >>  	local: *;
>> >>  	};
>> >>  }
>> 

-- 
Sent from my mobile phone.  Please pardon brevity and lack of formatting.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-03-30 19:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-29 20:15 [PATCH] x86: Fix the symbol versions on the 32-bit vDSO Andy Lutomirski
2014-03-30  6:33 ` Stefani Seibold
2014-03-30  6:49   ` Andy Lutomirski
2014-03-30 16:59   ` H. Peter Anvin
2014-03-30 19:00     ` Stefani Seibold
2014-03-30 19:09       ` H. Peter Anvin
2014-03-30 17:28 ` [tip:x86/vdso] x86, vdso: " tip-bot for Andy Lutomirski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome