From: Helge Deller <deller@gmx.de>
To: Rusty Russell <rusty@rustcorp.com.au>, linux-kernel@vger.kernel.org
Cc: Chris Metcalf <cmetcalf@ezchip.com>,
Haavard Skinnemoen <hskinnemoen@gmail.com>,
Hans-Christian Egtvedt <egtvedt@samfundet.no>,
Tony Luck <tony.luck@intel.com>,
Fenghua Yu <fenghua.yu@intel.com>,
"James E.J. Bottomley" <jejb@parisc-linux.org>,
Martin Schwidefsky <schwidefsky@de.ibm.com>,
Heiko Carstens <heiko.carstens@de.ibm.com>,
linux-ia64@vger.kernel.org, linux-parisc@vger.kernel.org,
linux-s390@vger.kernel.org
Subject: Re: [PATCH 1/3] module_arch_freeing_init(): new hook for archs before module->module_init freed.
Date: Tue, 13 Jan 2015 22:11:34 +0100 [thread overview]
Message-ID: <54B58A06.5000800@gmx.de> (raw)
In-Reply-To: <1420678687-30548-2-git-send-email-rusty@rustcorp.com.au>
On 08.01.2015 01:58, Rusty Russell wrote:
> Archs have been abusing module_free() to clean up their arch-specific
> allocations. Since module_free() is also (ab)used by BPF and trace code,
> let's keep it to simple allocations, and provide a hook called before
> that.
>
> This means that avr32, ia64, parisc and s390 no longer need to implement
> their own module_free() at all. avr32 doesn't need module_finalize()
> either.
>
> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
> Cc: Chris Metcalf <cmetcalf@ezchip.com>
> Cc: Haavard Skinnemoen <hskinnemoen@gmail.com>
> Cc: Hans-Christian Egtvedt <egtvedt@samfundet.no>
> Cc: Tony Luck <tony.luck@intel.com>
> Cc: Fenghua Yu <fenghua.yu@intel.com>
> Cc: "James E.J. Bottomley" <jejb@parisc-linux.org>
> Cc: Helge Deller <deller@gmx.de>
> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
> Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
> Cc: linux-kernel@vger.kernel.org
> Cc: linux-ia64@vger.kernel.org
> Cc: linux-parisc@vger.kernel.org
> Cc: linux-s390@vger.kernel.org
> ---
> arch/avr32/kernel/module.c | 13 +------------
> arch/ia64/kernel/module.c | 6 ++----
> arch/parisc/kernel/module.c | 6 +-----
> arch/s390/kernel/module.c | 10 +++-------
> arch/tile/kernel/module.c | 2 +-
> include/linux/moduleloader.h | 2 ++
> kernel/module.c | 7 +++++++
> 7 files changed, 17 insertions(+), 29 deletions(-)
I successfully tested it on the parisc arch.
Acked-by: Helge Deller <deller@gmx.de>
Thanks!
Helge
next prev parent reply other threads:[~2015-01-13 21:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-08 0:58 [PATCH 0/3] Module load failure race fix Rusty Russell
2015-01-08 0:58 ` [PATCH 1/3] module_arch_freeing_init(): new hook for archs before module->module_init freed Rusty Russell
2015-01-08 7:55 ` Hans-Christian Egtvedt
2015-01-13 21:11 ` Helge Deller [this message]
2015-01-08 0:58 ` [PATCH 2/3] module: remove mod arg from module_free, rename module_memfree() Rusty Russell
2015-01-08 0:58 ` [PATCH 3/3] module: fix race in kallsyms resolution during module load success Rusty Russell
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=54B58A06.5000800@gmx.de \
--to=deller@gmx.de \
--cc=cmetcalf@ezchip.com \
--cc=egtvedt@samfundet.no \
--cc=fenghua.yu@intel.com \
--cc=heiko.carstens@de.ibm.com \
--cc=hskinnemoen@gmail.com \
--cc=jejb@parisc-linux.org \
--cc=linux-ia64@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-parisc@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
--cc=schwidefsky@de.ibm.com \
--cc=tony.luck@intel.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;
as well as URLs for NNTP newsgroup(s).