public inbox for linux-parisc@vger.kernel.org
 help / color / mirror / Atom feed
* struct sigaction sa_restorer field
@ 2014-07-20 23:32 John David Anglin
  2014-07-21  8:25 ` Helge Deller
  0 siblings, 1 reply; 5+ messages in thread
From: John David Anglin @ 2014-07-20 23:32 UTC (permalink / raw)
  To: linux-parisc List

The sa_restorer field is obsolete and not in the hppa struct  
sigaction, but we still
define SA_RESTORER.  What should be done?

Dave
--
John David Anglin	dave.anglin@bell.net




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

* Re: struct sigaction sa_restorer field
  2014-07-20 23:32 struct sigaction sa_restorer field John David Anglin
@ 2014-07-21  8:25 ` Helge Deller
  2014-07-21 14:14   ` John David Anglin
  2014-08-10 13:49   ` Mike Frysinger
  0 siblings, 2 replies; 5+ messages in thread
From: Helge Deller @ 2014-07-21  8:25 UTC (permalink / raw)
  To: John David Anglin; +Cc: linux-parisc List

Hi Dave,

> The sa_restorer field is obsolete and not in the hppa struct  
> sigaction, but we still define SA_RESTORER.  What should be done?

Basically to not break userspace we can't (and shouldn't) add the sa_restorer struct member.
So, the only option would be to drop the SA_RESTORER #define, right?
But I have no idea how and if this will break some builds, since the major arches seem to define SA_RESTORER...

Helge

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

* Re: struct sigaction sa_restorer field
  2014-07-21  8:25 ` Helge Deller
@ 2014-07-21 14:14   ` John David Anglin
  2014-07-21 15:30     ` Aw: " Helge Deller
  2014-08-10 13:49   ` Mike Frysinger
  1 sibling, 1 reply; 5+ messages in thread
From: John David Anglin @ 2014-07-21 14:14 UTC (permalink / raw)
  To: Helge Deller; +Cc: linux-parisc List

On 7/21/2014 4:25 AM, Helge Deller wrote:
> Hi Dave,
>
>> The sa_restorer field is obsolete and not in the hppa struct
>> sigaction, but we still define SA_RESTORER.  What should be done?
> Basically to not break userspace we can't (and shouldn't) add the sa_restorer struct member.
> So, the only option would be to drop the SA_RESTORER #define, right?
> But I have no idea how and if this will break some builds, since the major arches seem to define SA_RESTORER...
>
I asked the question when I saw the crashme kernel test package didn't 
build due to the missing field.

In the generic sigaction struct, the field is conditional on the 
SA_RESTORER define.  I imagine that
the major arches also have sa_restorer struct member.

I agree it seems best to remove the define.

Dave

-- 
John David Anglin    dave.anglin@bell.net


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

* Aw: Re: struct sigaction sa_restorer field
  2014-07-21 14:14   ` John David Anglin
@ 2014-07-21 15:30     ` Helge Deller
  0 siblings, 0 replies; 5+ messages in thread
From: Helge Deller @ 2014-07-21 15:30 UTC (permalink / raw)
  To: John David Anglin; +Cc: linux-parisc List

> >> The sa_restorer field is obsolete and not in the hppa struct
> >> sigaction, but we still define SA_RESTORER.  What should be done?
> > Basically to not break userspace we can't (and shouldn't) add the sa_restorer struct member.
> > So, the only option would be to drop the SA_RESTORER #define, right?
> > But I have no idea how and if this will break some builds, since the major arches seem to define SA_RESTORER...
> >
> I asked the question when I saw the crashme kernel test package didn't 
> build due to the missing field.
> 
> In the generic sigaction struct, the field is conditional on the 
> SA_RESTORER define.  I imagine that
> the major arches also have sa_restorer struct member.
> 
> I agree it seems best to remove the define.

Ok, then can you send a patch ?
Should we request to backport it into stable kernels? I think so...

Helge

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

* Re: struct sigaction sa_restorer field
  2014-07-21  8:25 ` Helge Deller
  2014-07-21 14:14   ` John David Anglin
@ 2014-08-10 13:49   ` Mike Frysinger
  1 sibling, 0 replies; 5+ messages in thread
From: Mike Frysinger @ 2014-08-10 13:49 UTC (permalink / raw)
  To: Helge Deller; +Cc: John David Anglin, linux-parisc List

[-- Attachment #1: Type: text/plain, Size: 852 bytes --]

On Mon 21 Jul 2014 10:25:46 Helge Deller wrote:
> > The sa_restorer field is obsolete and not in the hppa struct
> > sigaction, but we still define SA_RESTORER.  What should be done?
> 
> Basically to not break userspace we can't (and shouldn't) add the
> sa_restorer struct member. So, the only option would be to drop the
> SA_RESTORER #define, right? But I have no idea how and if this will break
> some builds, since the major arches seem to define SA_RESTORER...

would be nice to drop.  i had to update strace to undef it for hppa since the 
field didn't actually exist -- it uses the define to see whether the field 
should be decoded (which is why strace decoding of this syscall hasn't worked 
in the past on parisc).  not all arches define it, so i think there's already 
cover for code needing to check for its existence.
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

end of thread, other threads:[~2014-08-10 13:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-20 23:32 struct sigaction sa_restorer field John David Anglin
2014-07-21  8:25 ` Helge Deller
2014-07-21 14:14   ` John David Anglin
2014-07-21 15:30     ` Aw: " Helge Deller
2014-08-10 13:49   ` Mike Frysinger

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