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-next>] [day] [month] [year] [list]
Message-ID: <20090108232847.GV23891@ghostprotocols.net>
Date:	Thu, 8 Jan 2009 21:28:47 -0200
From:	Arnaldo Carvalho de Melo <acme@...hat.com>
To:	Leonardo Potenza <lpotenza@...ind.it>,
	David Miller <davem@...emloft.net>,
	Gerrit Renker <gerrit@....abdn.ac.uk>
Cc:	kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org,
	DCCP Mailing List <dccp@...r.kernel.org>,
	Linux Networking Development Mailing List 
	<netdev@...r.kernel.org>
Subject: Re: [PATCH] net: fix section mismatch warnings in
	dccp/ccids/lib/tfrc.c

Adding netdev to the CC list.

Em Thu, Jan 08, 2009 at 07:57:03PM +0100, Leonardo Potenza escreveu:
> From: Leonardo Potenza <lpotenza@...ind.it>
> 
> Removed the __exit annotation of tfrc_lib_exit(), in order to suppress the following section mismatch messages:
> 
> WARNING: net/dccp/dccp.o(.text+0xd9): Section mismatch in reference from the function ccid_cleanup_builtins() to the function .exit.text:tfrc_lib_exit()
> The function ccid_cleanup_builtins() references a function in an exit section.
> Often the function tfrc_lib_exit() has valid usage outside the exit section
> and the fix is to remove the __exit annotation of tfrc_lib_exit.
> 
> WARNING: net/dccp/dccp.o(.init.text+0x48): Section mismatch in reference from the function ccid_initialize_builtins() to the function .exit.text:tfrc_lib_exit()
> The function __init ccid_initialize_builtins() references
> a function __exit tfrc_lib_exit().
> This is often seen when error handling in the init function
> uses functionality in the exit path.
> The fix is often to remove the __exit annotation of
> tfrc_lib_exit() so it may be used outside an exit section.
> 
> Signed-off-by: Leonardo Potenza <lpotenza@...ind.it>
> ---
> Index: linux-2.6/net/dccp/ccids/lib/tfrc.c
> ===================================================================
> --- linux-2.6.orig/net/dccp/ccids/lib/tfrc.c	2009-01-08 19:19:50.000000000 +0100
> +++ linux-2.6/net/dccp/ccids/lib/tfrc.c	2009-01-08 19:20:07.000000000 +0100
> @@ -36,7 +36,7 @@ out:
>  	return rc;
>  }
>  
> -void __exit tfrc_lib_exit(void)
> +void tfrc_lib_exit(void)
>  {
>  	tfrc_rx_packet_history_exit();
>  	tfrc_tx_packet_history_exit();

Thanks Leonardo,

Dave/Gerrit,

	Please apply.

Acked-by: Arnaldo Carvalho de Melo <acme@...hat.com>

Thanks,

- Arnaldo
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ