From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: [PATCH 0/3] per_cpu() fixes Date: Thu, 26 Sep 2013 10:49:23 +0100 Message-ID: <1380188966-26665-1-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xen-devel Cc: Keir Fraser , Ian Campbell , Andrew Cooper , Ian Jackson , Tim Deegan , Jan Beulich List-Id: xen-devel@lists.xenproject.org This patch series is two independent but related changes to the use of per_cpu() with offline pcpus. The first patch is a fix for use of get_cpu_idle_time() whereby toolstack hypercalls could cause an effective NULL structure dereference. The second patch is a forward looking fix to try and prevent similar issues in the future. It causes uses of per_cpu() against an offline pcpu to cause a #GF rather than to try and dereference a very low address. The third patch is debugging code to demonstrate the effects of patch 2. Signed-off-by: Andrew Cooper CC: Keir Fraser CC: Jan Beulich CC: Tim Deegan CC: Ian Campbell CC: Ian Jackson -- 1.7.10.4