mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Lucas De Marchi <lucas.demarchi@profusion.mobi>
Cc: Oleg Nesterov <oleg@redhat.com>,
	lucas.de.marchi@gmail.com, David Howells <dhowells@redhat.com>,
	James Morris <james.l.morris@oracle.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 2/7] usermodehelper: Export _exec() and _setup() functions
Date: Tue, 12 Mar 2013 15:00:27 -0700	[thread overview]
Message-ID: <20130312150027.51fed974151929f755b51b54@linux-foundation.org> (raw)
In-Reply-To: <CAMOw1v7XHryg6pBm7bGCyFqW0WGzi67kbOEpb8TpztFDhUhezQ@mail.gmail.com>

On Tue, 12 Mar 2013 18:52:54 -0300 Lucas De Marchi <lucas.demarchi@profusion.mobi> wrote:

> On Tue, Mar 12, 2013 at 5:31 PM, Andrew Morton
> <akpm@linux-foundation.org> wrote:
> > On Mon, 11 Mar 2013 21:48:06 -0300 Lucas De Marchi <lucas.demarchi@profusion.mobi> wrote:
> >
> >> call_usermodehelper_setup() + call_usermodehelper_exec() need to be
> >> called instead of call_usermodehelper_fns() when the cleanup function
> >> needs to be called even when an ENOMEM error occurs. In this case using
> >> call_usermodehelper_fns() the user can't distinguish if the cleanup
> >> function was called or not.
> >
> > call_usermodehelper_exec() was exported to modules but
> > call_usermodehelper_setup() was not?
> >
> 
> That was a mistake. We need both functions exported. Should I send and
> updated patch or a fixup?

From: Andrew Morton <akpm@linux-foundation.org>
Subject: usermodehelper-export-_exec-and-_setup-functions-fix

export call_usermodehelper_setup() to modules

Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: David Howells <dhowells@redhat.com>
Cc: James Morris <james.l.morris@oracle.com>
Cc: Lucas De Marchi <lucas.demarchi@profusion.mobi>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 kernel/kmod.c |    1 +
 1 file changed, 1 insertion(+)

diff -puN kernel/kmod.c~usermodehelper-export-_exec-and-_setup-functions-fix kernel/kmod.c
--- a/kernel/kmod.c~usermodehelper-export-_exec-and-_setup-functions-fix
+++ a/kernel/kmod.c
@@ -541,6 +541,7 @@ struct subprocess_info *call_usermodehel
   out:
 	return sub_info;
 }
+EXPORT_SYMBOL(call_usermodehelper_setup);
 
 /**
  * call_usermodehelper_exec - start a usermode application
_


  reply	other threads:[~2013-03-12 22:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-12  0:48 [PATCH v3 1/7] kernel/sys.c: Use the simpler call_usermodehelper() Lucas De Marchi
2013-03-12  0:48 ` [PATCH v3 2/7] usermodehelper: Export _exec() and _setup() functions Lucas De Marchi
2013-03-12 20:31   ` Andrew Morton
2013-03-12 21:52     ` Lucas De Marchi
2013-03-12 22:00       ` Andrew Morton [this message]
2013-03-12  0:48 ` [PATCH v3 3/7] kmod: split call to call_usermodehelper_fns() Lucas De Marchi
2013-03-12  0:48 ` [PATCH v3 4/7] KEYS: " Lucas De Marchi
2013-03-12  1:05   ` James Morris
2013-03-12  0:48 ` [PATCH v3 5/7] coredump: remove trailling whitespaces Lucas De Marchi
2013-03-12  0:48 ` [PATCH v3 6/7] Split remaining calls to call_usermodehelper_fns() Lucas De Marchi
2013-03-12  0:48 ` [PATCH v3 7/7] kmod: remove call_usermodehelper_fns() Lucas De Marchi
2013-03-25 12:56 ` [PATCH v3 4/7] KEYS: split call to call_usermodehelper_fns() David Howells

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=20130312150027.51fed974151929f755b51b54@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=dhowells@redhat.com \
    --cc=james.l.morris@oracle.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lucas.de.marchi@gmail.com \
    --cc=lucas.demarchi@profusion.mobi \
    --cc=oleg@redhat.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 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®