From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754513AbbCBLoH (ORCPT ); Mon, 2 Mar 2015 06:44:07 -0500 Received: from ozlabs.org ([103.22.144.67]:46873 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753529AbbCBLlX (ORCPT ); Mon, 2 Mar 2015 06:41:23 -0500 From: Rusty Russell To: linux-kernel@vger.kernel.org Cc: Rusty Russell Subject: [PATCH 01/16] CONFIG_DISABLE_OBSOLETE_CPUMASK_FUNCTIONS: set if CPUMASK_OFFSTACK. Date: Mon, 2 Mar 2015 22:05:42 +1030 Message-Id: <1425296150-4722-1-git-send-email-rusty@rustcorp.com.au> X-Mailer: git-send-email 2.1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Using these functions with offstack cpus is unsafe. They use all NR_CPUS bits, unstead of nr_cpumask_bits. In particular, lustre (in staging) used cpus_ and that caused a bug. Reported-by: Oleg Drokin Signed-off-by: Rusty Russell --- lib/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Kconfig b/lib/Kconfig index 87da53bb1fef..722427805220 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -398,8 +398,8 @@ config CPUMASK_OFFSTACK stack overflow. config DISABLE_OBSOLETE_CPUMASK_FUNCTIONS - bool "Disable obsolete cpumask functions" if DEBUG_PER_CPU_MAPS - depends on BROKEN + bool + depends on CPUMASK_OFFSTACK config CPU_RMAP bool -- 2.1.0