From: Paul Larson <plars@austin.ibm.com>
To: hch@caldera.de
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: sys_personality changes
Date: 02 Oct 2001 13:10:54 +0000 [thread overview]
Message-ID: <1002028258.8601.55.camel@plars.austin.ibm.com> (raw)
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
reply other threads:[~2001-10-02 18:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1002028258.8601.55.camel@plars.austin.ibm.com \
--to=plars@austin.ibm.com \
--cc=hch@caldera.de \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®