From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2DC8C46CA1 for ; Thu, 12 Oct 2023 10:27:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377623AbjJLK1H (ORCPT ); Thu, 12 Oct 2023 06:27:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377747AbjJLK1D (ORCPT ); Thu, 12 Oct 2023 06:27:03 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C710FBA; Thu, 12 Oct 2023 03:27:01 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07CBAC43391; Thu, 12 Oct 2023 10:27:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1697106421; bh=GoK9J2GZ+U+c0uf62aOQkibvMW3DB2yaN21pbjSxWcA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QDZ99nT7+siBhEJ5mZtF9L943zqYQLF2ybIeyIv3bnRh1tOUSx/SaiBx0AJUO9/0M oZGEqVAkOYbI9cS6xt0FTs4jfIk84HzbR1GHxI64cyzbTkW9jWmIL89TGHbwI7kBQ4 VVYpCIZhd2k8t8BjjR2PdgbvB6UtBsv8QMUhPL5Q= Date: Thu, 12 Oct 2023 12:26:58 +0200 From: Greg Kroah-Hartman To: Alexander Potapenko Cc: linux-kernel@vger.kernel.org, Andrew Donnellan , Xiaoke Wang , stable@vger.kernel.org, Andrew Morton Subject: Re: [PATCH] lib/test_meminit: fix off-by-one error in test_pages() Message-ID: <2023101201-grasp-smartly-2085@gregkh> References: <2023101238-greasily-reiterate-aafc@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 12, 2023 at 10:40:14AM +0200, Alexander Potapenko wrote: > On Thu, Oct 12, 2023 at 10:17 AM Greg Kroah-Hartman > wrote: > > > > In commit efb78fa86e95 ("lib/test_meminit: allocate pages up to order > > MAX_ORDER"), the loop for testing pages is set to "<= MAX_ORDER" which > > causes crashes in systems when run. Fix this to "< MAX_ORDER" to fix > > the test to work properly. > > What are the crashes you are seeing? Are those OOMs? They are WARN_ON() triggers. They are burried in the Android build system, let me see if I can uncover them. > IIUC it should be valid to allocate with MAX_ORDER. "should", but I no longer get runtime warnings with this patch applied, so something is wrong :) Let me go dig for the logs again...