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: <497F4982.8060103@goop.org>
Date:	Tue, 27 Jan 2009 09:50:58 -0800
From:	Jeremy Fitzhardinge <jeremy@...p.org>
To:	Brian Gerst <brgerst@...il.com>
CC:	Tejun Heo <htejun@...il.com>, Ingo Molnar <mingo@...e.hu>,
	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: unified percpu stuff

Brian Gerst wrote:
>> BTW, does the initial cpu0 percpu area get reallocated and moved during
>> boot, or does cpu0 keep using the same memory forever?
>>     
>
> It is reallocated in setup_per_cpu_areas().
>   

Hm, OK.  What's the reason we need to move cpu 0's percpu area?  Its 
always seemed a bit awkward.

Once it has been moved, how can I find the address of a variable in the 
original boot-time cpu 0 percpu area?  There's a couple of pages which 
Xen will have marked RO which need to be made RW if they're being freed 
back into the kernel pool.  Currently I use per_cpu_var(gdt_page), but 
guess that's a small offset rather than a directly usable address.

Thanks,
    J
--
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