Re: linux-next: Tree for June 3

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Rusty Russell
Date: Thursday, June 3, 2010 - 5:52 am

On Thu, 3 Jun 2010 05:30:09 pm Dave Young wrote:

Thanks Dave, good bug report.

It was "module: refactor load_module part 4" where I initialized 
the per-cpu pointer before allocating it:

static int module_unload_init(struct module *mod)
{
...
	/* Hold reference count during initialization. */
	__this_cpu_write(mod->refptr->incs, 1);
...
	mod->refptr = alloc_percpu(struct module_ref);
...

This also explains Stephen's crash during module load (which was more
expected since refptr is NULL, though percpu ptrs don't work that way).

I've fixed it (by reversing the order of those lines) for tomorrow's
linux-next.

Thanks!
Rusty.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
linux-next: Tree for June 3, Stephen Rothwell, (Wed Jun 2, 8:47 pm)
Re: linux-next: Tree for June 3, Dave Young, (Thu Jun 3, 12:39 am)
Re: linux-next: Tree for June 3, Dave Young, (Thu Jun 3, 1:00 am)
Re: linux-next: Tree for June 3, Dave Young, (Thu Jun 3, 1:16 am)
Re: linux-next: Tree for June 3, Rusty Russell, (Thu Jun 3, 5:52 am)
Re: linux-next: Tree for June 3 (qlcnic), Randy Dunlap, (Thu Jun 3, 8:46 am)
Re: linux-next: Tree for June 3 (iwlwifi), Randy Dunlap, (Thu Jun 3, 8:55 am)
Re: linux-next: Tree for June 3 (iwlwifi), John W. Linville, (Thu Jun 3, 10:21 am)
Re: linux-next: Tree for June 3 (qlcnic), Anirban Chakraborty, (Thu Jun 3, 10:31 am)
Re: linux-next: Tree for June 3 (iwlwifi), Guy, Wey-Yi, (Thu Jun 3, 10:42 am)
Re: linux-next: Tree for June 3 (iwlwifi), reinette chatre, (Thu Jun 3, 10:45 am)
Re: linux-next: Tree for June 3, Tony Luck, (Fri Jun 4, 12:46 pm)
Re: linux-next: Tree for June 3, Linus Torvalds, (Fri Jun 4, 1:04 pm)
RE: linux-next: Tree for June 3, Luck, Tony, (Fri Jun 4, 1:46 pm)
RE: linux-next: Tree for June 3, Linus Torvalds, (Fri Jun 4, 3:05 pm)
RE: linux-next: Tree for June 3, Luck, Tony, (Fri Jun 4, 3:50 pm)
RE: linux-next: Tree for June 3, Linus Torvalds, (Fri Jun 4, 3:57 pm)
Re: linux-next: Tree for June 3, Rusty Russell, (Fri Jun 4, 7:39 pm)
Re: linux-next: Tree for June 3, Rusty Russell, (Fri Jun 4, 7:51 pm)
Re: linux-next: Tree for June 3, Rusty Russell, (Fri Jun 4, 9:01 pm)
RE: linux-next: Tree for June 3, Luck, Tony, (Mon Jun 7, 11:16 am)
Re: [PATCH -next] classmate-laptop: fix for RFKILL=m, CMPC=y, Thadeu Lima de Souza ..., (Wed Jun 9, 1:02 pm)