From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 84757630 for ; Fri, 7 Jul 2023 00:42:03 +0000 (UTC) Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-1b88f151d8eso85775ad.0 for ; Thu, 06 Jul 2023 17:42:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1688690523; x=1691282523; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=NCyACxMAwu61UikiAif4y4Wc/o7nUyK6gIA9C5b1z4E=; b=hwNq4kHUFQI6x1rTaOwo96kkZ2B16Y4NVMhPNfED99XptiI2gLElqTNZSetDJhYL7j se+vhpRsznvDKqPwEDTSBOev5w6P9KB+DoeSXRt5I3UeDaGQoTu3Tj7PuMSqi/AiMIyX g70+8ctk9ibLGmC3cR8W63408Hmnp2wMf3Xf7GDow/Qk8VQNqHBAn4qVtelUOvpDUpRn enwIm/67mROe6whUe+JdAtH0khSXiVNSE/xS8M9H25JvgLnoujm5Ryc/O1dYTvqn9vbe IWWdCaurX+Pct+xHyJKyWQydO5offhVXv6sKm/DmEdgVceWs/eh6E5YV+SsJ5XDj9AW/ Eqfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688690523; x=1691282523; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=NCyACxMAwu61UikiAif4y4Wc/o7nUyK6gIA9C5b1z4E=; b=L86X10TTPC04ZGq/+9Bri0G/9q6d1wyHxBALu5y2lyQhtxjS6YU0h7DR7FYWLuwGt8 hAoxbMubq16ZG0fmeKl8JAnQK9XFhj7La6xdPSIq7kH9pQbiS45+CznxzNkcDjwTCGja w5YLefGmh+b9S6FTvF8p7xqkqUB5BmqN3gwbkxO8N0Y+eZENUQG2AzsE7y5K1u3RguUw PyRWFuAXYISQTKL8iiw/QCVYDD8I4z+R0GV75Fva6NI1TWfH1DlnSXwQY/ltm1Oohxy+ uBrhc8Mfgriq/c9r2LtyW8x+/l7+fd/aDL6tmE/a2URvvNULMmiDj9ZC6LHtamd1nH4I bHeQ== X-Gm-Message-State: ABy/qLaiFUvnkdKPhAy0Zg6B+UCL98e/6l6c0twsq0P/l7qs2MFbbWUX cxUMVjRMydbxpmaXAZCRyH0v4Q== X-Google-Smtp-Source: APBJJlH5srUuDgu+mX6fEyDEJnUWImMyBSSXnJ0UNtJRcpgynXXRTgag+BoqCLRFTXTJiNOWECKXmg== X-Received: by 2002:a17:902:db11:b0:1b8:ac40:35ed with SMTP id m17-20020a170902db1100b001b8ac4035edmr118524plx.24.1688690522629; Thu, 06 Jul 2023 17:42:02 -0700 (PDT) Received: from google.com ([2620:15c:2d:3:634a:24d:a19f:a90f]) by smtp.gmail.com with ESMTPSA id i6-20020a170902c94600b001b80760fd04sm1966581pla.112.2023.07.06.17.42.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jul 2023 17:42:02 -0700 (PDT) Date: Thu, 6 Jul 2023 17:41:57 -0700 From: Isaac Manjarres To: Amit Pundir Cc: Catalin Marinas , Andrew Morton , Linus Torvalds , Christoph Hellwig , Robin Murphy , Arnd Bergmann , Greg Kroah-Hartman , Will Deacon , Marc Zyngier , Herbert Xu , Ard Biesheuvel , Saravana Kannan , Alasdair Kergon , Daniel Vetter , Joerg Roedel , Mark Brown , Mike Snitzer , "Rafael J. Wysocki" , Jonathan Cameron , Vlastimil Babka , linux-mm@kvack.org, iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Linux regressions mailing list Subject: Re: [PATCH v7 00/17] mm, dma, arm64: Reduce ARCH_KMALLOC_MINALIGN to 8 Message-ID: References: <20230612153201.554742-1-catalin.marinas@arm.com> Precedence: bulk X-Mailing-List: iommu@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, Jul 05, 2023 at 07:10:02PM +0530, Amit Pundir wrote: > Hi Catalin, > > On Wed, 5 Jul 2023 at 18:17, Catalin Marinas wrote: > > > > Hi, > > > > That's v7 of the series reducing the kmalloc() minimum alignment on > > arm64 to 8 (from 128). There's no new/different functionality, mostly > > cosmetic changes and acks/tested-bys. > > > > Andrew, if there are no further comments or objections to this version, > > are you ok to take the series through the mm tree? The arm64 changes are > > fairly small. Alternatively, I can push it into linux-next now to give > > it some wider exposure and decide whether to upstream it when the > > merging window opens. Thanks. > > This patch series broke Dragonboard 845c (SDM845) running AOSP. > With this series I run into random oops at __kmem_cache_alloc_node(). > Here is one such boot log https://bugs.linaro.org/attachment.cgi?id=1146 Hey Amit, >From the log that you linked, this looks like there's corruption within the kmalloc slab caches. Can you please try enabling slub debug? That might give us more information about who is causing the corruption you're seeing here. To enable slub debug, you can add the following to your kernel config: CONFIG_SLUB_DEBUG=y and CONFIG_SLUB_DEBUG_ON=y or add slub_debug to the kernel command line. --Isaac 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D4351EB64D9 for ; Fri, 7 Jul 2023 00:42:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=9XsV0ciOQlUtC0cBLQM9SOB1pVOGDs0Nn4BZoPIqz4c=; b=PoI1D818R95fkT 7vtW/VtMYnHEwgBjuFNAFAcqdvQELMA0ZO8dwQ/3Lme4z4WAxVixeWz7vfGAz+M+CghuD+y51VeSa 8pF3WRkBgTT+WJrpHM3j9GdYtaug/r3eEGqzOJ/UUufUB04q1bD8ld2P3zs548rFTWaYZIt2ytWGk C7/1/EKxMtPCsdsx/TcZK3MSBMiI0aQbmqNFaBK97PEcCX5b68qvxG/S9t6GmSlAglN3/QBnutlGj BbIGL/HTR9BtG0CsANvTyW4MdUA9ve+KxFoZmMZz05vS6q/6O9nJs0FftB/Cn7RnoClXSMW9TZGav Nh7M5WfNQLrWnPZ3Q9+w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qHZY1-00359p-1n; Fri, 07 Jul 2023 00:42:09 +0000 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qHZXy-00358H-1c for linux-arm-kernel@lists.infradead.org; Fri, 07 Jul 2023 00:42:07 +0000 Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1b88f151d8eso85765ad.0 for ; Thu, 06 Jul 2023 17:42:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1688690523; x=1691282523; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=NCyACxMAwu61UikiAif4y4Wc/o7nUyK6gIA9C5b1z4E=; b=hwNq4kHUFQI6x1rTaOwo96kkZ2B16Y4NVMhPNfED99XptiI2gLElqTNZSetDJhYL7j se+vhpRsznvDKqPwEDTSBOev5w6P9KB+DoeSXRt5I3UeDaGQoTu3Tj7PuMSqi/AiMIyX g70+8ctk9ibLGmC3cR8W63408Hmnp2wMf3Xf7GDow/Qk8VQNqHBAn4qVtelUOvpDUpRn enwIm/67mROe6whUe+JdAtH0khSXiVNSE/xS8M9H25JvgLnoujm5Ryc/O1dYTvqn9vbe IWWdCaurX+Pct+xHyJKyWQydO5offhVXv6sKm/DmEdgVceWs/eh6E5YV+SsJ5XDj9AW/ Eqfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688690523; x=1691282523; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=NCyACxMAwu61UikiAif4y4Wc/o7nUyK6gIA9C5b1z4E=; b=jjHbKJifNZdSD63vZ34IjRnLc/fRmZhESIuBH9pCIrXQ7vYXcnzAnl7sAM2AbkMthT 2qVXIRf9hTt3TQsIZizRXQ0M/Mhi4ThoVJSBaBXE7zjhrTxbKt/so1WKjJUZItK/47+8 cmV3OwQvZ+gXIv3sjhw/J4pAmmm2oBGQAdAwz4JcdgodapOhPeDAJW/3S+8MSbgI2UOt lU/w/lhnKXPpVEwUPO12POnPA5dWvIeRv+SdL+ogDtQmnFVi0488YVFyMPLxQADd8/1E 5wi3knAAHFi2F8ccNoXt5TOKfQ0JdMWMsGBpNoUW5K+1F9XnFmR0IcwW/KJyyrpdv9Uh EJxw== X-Gm-Message-State: ABy/qLbQaq8w5bkwsg7a7LqDwX0i7ejSXL1BlME5uskov6Q1q+9jHVjZ v7RXUbsrmNVTmNMLjkH8bS0ReQ== X-Google-Smtp-Source: APBJJlH5srUuDgu+mX6fEyDEJnUWImMyBSSXnJ0UNtJRcpgynXXRTgag+BoqCLRFTXTJiNOWECKXmg== X-Received: by 2002:a17:902:db11:b0:1b8:ac40:35ed with SMTP id m17-20020a170902db1100b001b8ac4035edmr118524plx.24.1688690522629; Thu, 06 Jul 2023 17:42:02 -0700 (PDT) Received: from google.com ([2620:15c:2d:3:634a:24d:a19f:a90f]) by smtp.gmail.com with ESMTPSA id i6-20020a170902c94600b001b80760fd04sm1966581pla.112.2023.07.06.17.42.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jul 2023 17:42:02 -0700 (PDT) Date: Thu, 6 Jul 2023 17:41:57 -0700 From: Isaac Manjarres To: Amit Pundir Cc: Catalin Marinas , Andrew Morton , Linus Torvalds , Christoph Hellwig , Robin Murphy , Arnd Bergmann , Greg Kroah-Hartman , Will Deacon , Marc Zyngier , Herbert Xu , Ard Biesheuvel , Saravana Kannan , Alasdair Kergon , Daniel Vetter , Joerg Roedel , Mark Brown , Mike Snitzer , "Rafael J. Wysocki" , Jonathan Cameron , Vlastimil Babka , linux-mm@kvack.org, iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Linux regressions mailing list Subject: Re: [PATCH v7 00/17] mm, dma, arm64: Reduce ARCH_KMALLOC_MINALIGN to 8 Message-ID: References: <20230612153201.554742-1-catalin.marinas@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230706_174206_543347_60F2CABE X-CRM114-Status: GOOD ( 21.35 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Jul 05, 2023 at 07:10:02PM +0530, Amit Pundir wrote: > Hi Catalin, > > On Wed, 5 Jul 2023 at 18:17, Catalin Marinas wrote: > > > > Hi, > > > > That's v7 of the series reducing the kmalloc() minimum alignment on > > arm64 to 8 (from 128). There's no new/different functionality, mostly > > cosmetic changes and acks/tested-bys. > > > > Andrew, if there are no further comments or objections to this version, > > are you ok to take the series through the mm tree? The arm64 changes are > > fairly small. Alternatively, I can push it into linux-next now to give > > it some wider exposure and decide whether to upstream it when the > > merging window opens. Thanks. > > This patch series broke Dragonboard 845c (SDM845) running AOSP. > With this series I run into random oops at __kmem_cache_alloc_node(). > Here is one such boot log https://bugs.linaro.org/attachment.cgi?id=1146 Hey Amit, >From the log that you linked, this looks like there's corruption within the kmalloc slab caches. Can you please try enabling slub debug? That might give us more information about who is causing the corruption you're seeing here. To enable slub debug, you can add the following to your kernel config: CONFIG_SLUB_DEBUG=y and CONFIG_SLUB_DEBUG_ON=y or add slub_debug to the kernel command line. --Isaac _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel