mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* sys_personality changes
@ 2001-10-02 13:10 Paul Larson
  0 siblings, 0 replies; only message in thread
From: Paul Larson @ 2001-10-02 13:10 UTC (permalink / raw)
  To: hch; +Cc: lkml


I'm curious about the purpose of the sys_personality changes that made
it into 2.4.10.  In 2.4.9, it looked like this:

asmlinkage long sys_personality(unsigned long personality)
{
        int ret = current->personality;
        if (personality != 0xffffffff) {
                set_personality(personality);
                if (current->personality != personality)
                        ret = -EINVAL;
        }
        return ret;
}

Compared to your new one:

asmlinkage long
sys_personality(u_long personality)
{
        if (personality == 0xffffffff)
                goto ret;
        set_personality(personality);
        if (current->personality != personality)
                return -EINVAL;
ret:
        return (current->personality);
}

What was the purpose of changing the way sys_personality works?  AFAIK
sys_personality is supposed to return the previous persona.  Yours
returns the new persona instead.

Was this intended, or can we roll back this part of your patch?

Thanks,
Paul Larson


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-10-02 18:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-02 13:10 sys_personality changes Paul Larson

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

all inboxes | Powered by JetHome®