mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com>
To: Kees Cook <keescook@chromium.org>
Cc: mtk.manpages@gmail.com, Daniel Borkmann <dborkman@redhat.com>,
	Linux API <linux-api@vger.kernel.org>,
	"linux-man@vger.kernel.org" <linux-man@vger.kernel.org>,
	lkml <linux-kernel@vger.kernel.org>,
	Will Drewry <wad@chromium.org>
Subject: Re: Edited seccomp.2 man page for review [v2]
Date: Wed, 07 Jan 2015 12:53:27 +0100	[thread overview]
Message-ID: <54AD1E37.8020509@gmail.com> (raw)
In-Reply-To: <CAGXu5jKCR8ft=2XNX+SsCOokEqCt9sZizKj4wfAGrXVzf6adcg@mail.gmail.com>

Hi Kees,

On 01/05/2015 09:25 PM, Kees Cook wrote:
> On Tue, Dec 30, 2014 at 11:45 AM, Michael Kerrisk (man-pages)
> <mtk.manpages@gmail.com> wrote:
>>>> The program counter will be as though the system call happened
>>>> (i.e., it will not point to the system call instruction).
>>>> The return value register will contain an architecture\-dependent value;
>>>> if resuming execution, set it to something sensible.
>>>> .\" FIXME Regarding the preceding line, can you give an example(s)
>>>> .\"       of "something sensible"? (Depending on the answer, maybe it
>>>> .\"       might be useful to add some text on this point.)
>>>
>>> This means sensible in the context of the syscall made, or the desired
>>> behavior. For example, setting the return value to ELOOP for something
>>> like a "bind" syscall isn't very sensible.
>>
>> Okay -- I did s/sensible/appropriate for the system call/
> 
> Yes, perfect. That captures it nicely.

Okay.

>>>> .\"
>>>> .\" FIXME Please check:
>>>> .\"     In an attempt to make the text clearer, I changed
>>>> .\"     "replacing it with" to "setting the return value register to"
>>>> .\"     Okay?
>>>> (The architecture dependency is because setting the return value register to
>>>> .BR ENOSYS
>>>> could overwrite some useful information.)
>>>
>>> Well, the arch dependency is really because _how_ to change the
>>> register, and the register itself, is different between architectures.
>>> (i.e. which ptrace call is needed, and which register is being
>>> changed.) The overwriting of useful information is certainly true too,
>>> though.
>>
>> So, revert to the previous wording? Or do you have a suggested
>> better wording?
> 
> I think the previous wording is better. I'm struggling to produce
> language that makes more sense here.

Okay -- reverted.

>> Thanks. We're getting close now.
> 
> Excellent! :)

Still hoping to hear from Will Drewy regarding this FIXME in the 
page source:

.\" FIXME What is the significance of the line
.\"           ftest->code = BPF_LDX | BPF_W | BPF_ABS;
.\"       in kernel/seccomp.c::seccomp_check_filter()?

Do you know if he's about?

Cheers,

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/

  reply	other threads:[~2015-01-07 11:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-30 12:14 Michael Kerrisk (man-pages)
2014-12-30 17:16 ` Kees Cook
2014-12-30 19:45   ` Michael Kerrisk (man-pages)
2015-01-05 20:25     ` Kees Cook
2015-01-07 11:53       ` Michael Kerrisk (man-pages) [this message]
2015-01-07 12:23         ` Daniel Borkmann
2015-01-07 12:41           ` Michael Kerrisk (man-pages)

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=54AD1E37.8020509@gmail.com \
    --to=mtk.manpages@gmail.com \
    --cc=dborkman@redhat.com \
    --cc=keescook@chromium.org \
    --cc=linux-api@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-man@vger.kernel.org \
    --cc=wad@chromium.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

Powered by JetHome