Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp241869lqb; Thu, 14 Mar 2024 10:01:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWzjNzwi5Xd8UXVeSQmAwWHmLo41y4/Fq5/CreU2axCWBhJr+Tgh62sYY8MAW7M7tg5c3quNdcK++FgZO0svN6+kPTqByBcPiUE9w1WyA== X-Google-Smtp-Source: AGHT+IFrBAsTTqrV5+RRK4+9WdlY3EYyUd99nRU5tTSTWBDAKmHXffbUDlWCbcluOV78cA4H83T9 X-Received: by 2002:a17:90b:1003:b0:29b:ecf0:c788 with SMTP id gm3-20020a17090b100300b0029becf0c788mr2221291pjb.4.1710435686665; Thu, 14 Mar 2024 10:01:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710435686; cv=pass; d=google.com; s=arc-20160816; b=a8XcIRRA1mYCh4S0+puZYxpyy2CT+i0BlK9WKDiT7dscxeLxJX9/OAYuoCqL+GWncU s/o2cqMWHauQkLGZx0Tq4XpfUOWg7fl9XugZA/c+kIBiykmSD8ZRb439iEuJhSvZ78XE 90v4oUW7ipgXxbUrbwRxI1Qazg8oBLYURuKiI1bGduuKmQzuY7W88E8b7Yk9i8pUWY0D OggvdX3Hv3Eo9ii+kBOcWE4YvPGoor0sL/NhdtcTxSOMA+4mI6A0SSRtZ9gZBRN/brC8 mMNrry+7GL9AJruFtSk8ptBdqFUleZgV7ZF9WEtGfbeTHYI+uneg64nI8RhAufttDA9G T5Dg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:in-reply-to:subject:cc:to:from:date; bh=jvtJ7LF8w/3Xbr15t+lzrOxGf5qDBW+D14Iqi8xCy1c=; fh=FaK9zsAXEcci71ucapgAx3jygLF0185pUswpEJK5tEI=; b=eHOsWad90mjeLbFO3aznkXz/iT6n/yOEotj8zQIAvyGxq/tAxBH53ICpxJDsMq861h tBwLaiHbtHjcXA3ePl+FZ3jSzCCUulYgOeV/HwuI8llVaJGVp+rfROLWxJDUTP2Szogm 9t/bRdeILGI8PJSWUmbBM0rzXj5FELRJOo9M4PBlDjKj/MBmWpLTETwBMeVSbCvX6ePg Ufed8veSyO8f1hbS9NaGfy0PzB4Bnvhf7Qz/ymqr8sq9iqP3w/nujDV9/ZoJmHVIOURm FJMJ8MVWRBfHrjnwCfzCjghWIuc18qX3PJ8MTesAUESkHPRP7BNUL6jUKfzQf2KsLVfl 2XBw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-103599-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103599-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linux.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id y16-20020a17090aca9000b0029c7692a095si965690pjt.120.2024.03.14.10.01.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 10:01:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-103599-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-103599-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103599-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linux.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 9672B283C89 for ; Thu, 14 Mar 2024 17:01:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5E106745E2; Thu, 14 Mar 2024 17:01:10 +0000 (UTC) Received: from gentwo.org (gentwo.org [62.72.0.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C0F5FDF53; Thu, 14 Mar 2024 17:01:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.72.0.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710435669; cv=none; b=Z7EW4qShg/lMDZ+5fBcTzjvlIpuiJUSXrPgAuyna1PdDdZevQmiEkPUe8bapmN+t1tTHK9xhoEPkQeWWIVMNOiTF5gnEe3o7sj7zIaJVgAt2bI9xtTT18QqlxFulbIK16LBeeyLzFJi8mbXJJkD1TCoIfTT/AMiJhH2oPbBkvVU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710435669; c=relaxed/simple; bh=+/9AxFGa0W6Y9R5mfC2f2mSSAFoTOTJWGLqKpWY3otM=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=TH4Kdnla81SDuB1v1O60bpNHOxRN+TWdYXHz6e3mDfAvTDBrwNPke3A9l2Sn5/HB1tzCHVC8aeTwdT5Ck1SDuhUuw0zKcDxbdg+VtrngTg6WrBOzwKsKtwrrGlitc/WIcATloQODTMSzlP4wVGvfH1o+CeszkGsGmyT6qAv2S6Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com; spf=fail smtp.mailfrom=linux.com; arc=none smtp.client-ip=62.72.0.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=linux.com Received: by gentwo.org (Postfix, from userid 1003) id 08A9040AB2; Thu, 14 Mar 2024 10:01:01 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id 0604D40AAD; Thu, 14 Mar 2024 10:01:01 -0700 (PDT) Date: Thu, 14 Mar 2024 10:01:01 -0700 (PDT) From: "Christoph Lameter (Ampere)" To: "Russell King (Oracle)" cc: Marek Szyprowski , Catalin Marinas , Sudeep Holla , Mark Rutland , "linux-pm@vger.kernel.org" , "Rafael J. Wysocki" , Viresh Kumar , Will Deacon , Jonathan.Cameron@huawei.com, Matteo.Carlini@arm.com, Valentin.Schneider@arm.com, akpm@linux-foundation.org, anshuman.khandual@arm.com, Eric Mackay , dave.kleikamp@oracle.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, robin.murphy@arm.com, vanshikonda@os.amperecomputing.com, yang@os.amperecomputing.com, Nishanth Menon , Stephen Boyd Subject: Re: [PATCH v3] ARM64: Dynamically allocate cpumasks and increase supported CPUs to 512 In-Reply-To: Message-ID: References: <9352f410-9dad-ac89-181a-b3cfc86176b8@linux.com> <432c1980-b00f-4b07-9e24-0bec52ccb5d6@samsung.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII On Thu, 14 Mar 2024, Russell King (Oracle) wrote: >> It is really surprising that this didn't blow up for anyone else so >> far... This means that the $subject patch is fine. > > Wow. I guess we've been lucky with that allocation hitting memory > containing zeros. Well done at tracking it down! It would have blown up with slub_debug because that includes poisoning the contents of all allocations via the slab allocator. Why did that not occur? We should have seen a backtrace with data in registers etc showing poisoning values for an unitialized object. Note that this was indeed triggered by OFFSTACK because (z)alloc_cpumask_var() only generates a kmalloc allocation if that option is set. The config option was never set before my patch was applied on ARM64.