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]
Date:	Tue, 27 Jan 2009 14:15:34 +0100
From:	Ingo Molnar <mingo@...e.hu>
To:	Rusty Russell <rusty@...tcorp.com.au>
Cc:	Takashi Iwai <tiwai@...e.de>, Ingo Molnar <mingo@...hat.com>,
	Tejun Heo <tj@...nel.org>, Kyle McMartin <kyle@...radead.org>,
	linux-kernel@...r.kernel.org, Eric Dumazet <dada1@...mosbay.com>
Subject: Re: [PATCH] module: kzalloc mod->ref


* Rusty Russell <rusty@...tcorp.com.au> wrote:

> @@ -344,8 +339,11 @@ struct module
>  	/* Destruction function. */
>  	void (*exit)(void);
>  
> -	/* Reference counts */
> -	struct module_ref ref[NR_CPUS];
> +#ifdef CONFIG_SMP
> +	char *refptr;
> +#else
> +	local_t ref;
> +#endif

hm, that construct looks rather ugly. Is there no way to provide a clean 
data type and APIs for this that just work symmetrically on both SMP and 
UP?

	Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ