From: Oleg Nesterov <oleg@redhat.com>
To: Zach Levis <zml@linux.vnet.ibm.com>
Cc: Zach Levis <zach@zachsthings.com>, Viro <viro@zeniv.linux.org.uk>,
Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org
Subject: Re: + fs-binfmts-better-handling-of-binfmt-loops.patch added to -mm tree
Date: Thu, 1 Aug 2013 18:32:37 +0200 [thread overview]
Message-ID: <20130801163237.GA16070@redhat.com> (raw)
In-Reply-To: <20130801090223.Horde.UZGId5ir309R_oaPIezA7qA@imap.linux.ibm.com>
On 08/01, Zach Levis wrote:
>
> So an example of what this would be used for (going into commit message
> of a v2 with your earlier suggestions):
Ah, so you are going to send v2, great.
May I ask you to wait a little bit? Once again, I believe that
search_binary_handler() needs a cleanup + minor fix. I'll try
to send the patch today.
> With this patch, an error is printed
I agree, it makes sense to print an error with names.
> and search_binary_handler()
> continues on to the next handler, allowing the original executable to
> run normally so the user can (hopefully) fix their misconfiguration more
> easily.
Still not sure this makes sense, but I can't judge and I won't argue.
>>> And I do not think we should ignore the possible error from
>>> copy_strings(). Even if we know that it succeeded before, another
>>> thread can, say, unmap this memory in between.
>>
>> And since we do copy_strings() again we probably need acct_arg_size()
>> after remove_arg_zero() loop, although this is not that important.
> I'm not sure if that's even necessary.
Yes, I was wrong, thanks for correcting me. We don't need this.
> It looks like there's
> copy_strings()->get_arg_page()->acct_arg_size() that's already called.
This doesn't matter, this won't unaccount the memory. But I was
wrong anyway, we do not need to unaccount because vma won't grow.
Oleg.
next prev parent reply other threads:[~2013-08-01 16:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-31 20:08 + fs-binfmts-better-handling-of-binfmt-loops.patch added to -mm tree Oleg Nesterov
2013-08-01 15:05 ` Oleg Nesterov
2013-08-01 16:02 ` Zach Levis
2013-08-01 16:32 ` Oleg Nesterov [this message]
2013-08-01 16:48 ` Zach Levis
-- strict thread matches above, loose matches on Subject: below --
2013-07-30 21:06 akpm
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=20130801163237.GA16070@redhat.com \
--to=oleg@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
--cc=zach@zachsthings.com \
--cc=zml@linux.vnet.ibm.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.