lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHA+R7McGmFtXpiEJkOV2Jjgy29kzpX7tTeprS7S0pY2m9mJBw@mail.gmail.com>
Date:	Mon, 16 Feb 2015 10:36:06 -0800
From:	Cong Wang <cwang@...pensource.com>
To:	Ignacy Gawędzki 
	<ignacy.gawedzki@...en-communications.fr>,
	netdev <netdev@...r.kernel.org>
Subject: Re: [PATCH net] ematch: Fix auto-loading of ematch modules.

On Mon, Feb 16, 2015 at 10:13 AM, Ignacy Gawędzki
<ignacy.gawedzki@...en-communications.fr> wrote:
> In tcf_em_validate(), when calling tcf_em_lookup(), don't put the resulting
> pointer directly into em->ops, if the function is to possibly return -EAGAIN
> after module auto-loading.  Otherwise, module_put() will be called by
> tcf_em_tree_destroy() on em->ops->owner, while it has already been called by
> tcf_em_validate() before return.
>

Or simply reset em->ops to NULL after module_put()?
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists