summaryrefslogtreecommitdiff
path: root/.zsh/zshenv/80_python
blob: f430b784e93d4cd47a33331de8edd21ef76dac85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# zshenv/80_python
#
# Set variables related to Python
#
# Copyright © 2014-2016 Tobias Klauser <tklauser@distanz.ch>
# Released under the terms of the Artistic Licence 2.0
#
# Source repository: git://git.distanz.ch/dotfiles/zsh.git

_PYTHON_USER=$HOME/.local/lib/python2.7/site-packages
_ZIPYTHON_LATEST=$HOME/tmp/ziPythonLatest/

[ -d $_PYTHON_USER ] && export PYTHONPATH=$_PYTHON_USER:$PYTHONPATH
[ -d $_ZIPYTHON_LATEST ] && export PYTHONPATH=$PYTHONPATH:$_ZIPYTHON_LATEST

# vim:ft=zsh
8675a9a524fa9791ea7d67fdac405f7'>Diffstat (limited to 'kernel/livepatch')
tree255638c13a74a54fd7ea71cb4d9dbe0a591a98ce
parentec6f34e5b552fb0a52e6aae1a5afbbb1605cc6cc (diff)
smpboot: Add missing get_online_cpus() in smpboot_register_percpu_thread()
The following race exists in the smpboot percpu threads management: CPU0 CPU1 cpu_up(2) get_online_cpus(); smpboot_create_threads(2); smpboot_register_percpu_thread(); for_each_online_cpu(); __smpboot_create_thread(); __cpu_up(2); This results in a missing per cpu thread for the newly onlined cpu2 and in a NULL pointer dereference on a consecutive offline of that cpu. Proctect smpboot_register_percpu_thread() with get_online_cpus() to prevent that. [ tglx: Massaged changelog and removed the change in smpboot_unregister_percpu_thread() because that's an optimization and therefor not stable material. ] Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Rusty Russell <rusty@rustcorp.com.au> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com> Cc: David Rientjes <rientjes@google.com> Cc: stable@vger.kernel.org Link: http://lkml.kernel.org/r/1406777421-12830-1-git-send-email-laijs@cn.fujitsu.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat